diff --git a/jasper/.settings/org.eclipse.core.resources.prefs b/jasper/.settings/org.eclipse.core.resources.prefs index 03fa7b60..b552b272 100644 --- a/jasper/.settings/org.eclipse.core.resources.prefs +++ b/jasper/.settings/org.eclipse.core.resources.prefs @@ -1,15 +1,17 @@ eclipse.preferences.version=1 +encoding/Autorizzazione\ negata.jrxml=UTF-8 +encoding/Autorizzazione.jrxml=UTF-8 +encoding/Avviso\ di\ Non\ Competenza.jrxml=UTF-8 encoding/Modello_A.jrxml=UTF-8 encoding/Modello_A1.jrxml=UTF-8 encoding/Modello_C.jrxml=UTF-8 encoding/Modello_Sorteggio.jrxml=UTF-8 -encoding/Modello_autorizzazione.jrxml=UTF-8 encoding/Modello_deposito.jrxml=UTF-8 -encoding/Modello_diniego.jrxml=UTF-8 encoding/Modello_integrazione.jrxml=UTF-8 -encoding/Modello_non_competenza.jrxml=UTF-8 -encoding/Modello_preavviso.jrxml=UTF-8 encoding/Modello_vidimazione.jrxml=UTF-8 +encoding/Preavviso\ di\ Parere\ Contrario.jrxml=UTF-8 +encoding/VIArch\ attivazione.jrxml=UTF-8 +encoding/VIArch\ conclusione.jrxml=UTF-8 encoding/accettata_integrazione.jrxml=UTF-8 encoding/annullamento.jrxml=UTF-8 encoding/cambio_istruttore.jrxml=UTF-8 diff --git a/jasper/Modello_diniego.jrxml b/jasper/Autorizzazione negata.jrxml similarity index 98% rename from jasper/Modello_diniego.jrxml rename to jasper/Autorizzazione negata.jrxml index a6198c61..c1dee079 100644 --- a/jasper/Modello_diniego.jrxml +++ b/jasper/Autorizzazione negata.jrxml @@ -211,7 +211,7 @@ e dell'identità siciliana]]> - + @@ -221,12 +221,11 @@ e dell'identità siciliana]]> - + diff --git a/jasper/Modello_autorizzazione.jrxml b/jasper/Autorizzazione.jrxml similarity index 98% rename from jasper/Modello_autorizzazione.jrxml rename to jasper/Autorizzazione.jrxml index 6fb78b68..19653406 100644 --- a/jasper/Modello_autorizzazione.jrxml +++ b/jasper/Autorizzazione.jrxml @@ -281,7 +281,7 @@ e dell'identità siciliana]]> - + @@ -291,11 +291,10 @@ e dell'identità siciliana]]> - + @@ -390,7 +389,7 @@ L’eventuale ricorso gerarchico, debitamente sottoscritto e regolarizzato in bo - + diff --git a/jasper/Modello_non_competenza.jrxml b/jasper/Avviso di Non Competenza.jrxml similarity index 98% rename from jasper/Modello_non_competenza.jrxml rename to jasper/Avviso di Non Competenza.jrxml index f7ac934e..722fa03a 100644 --- a/jasper/Modello_non_competenza.jrxml +++ b/jasper/Avviso di Non Competenza.jrxml @@ -211,7 +211,7 @@ e dell'identità siciliana]]> - + @@ -221,11 +221,10 @@ e dell'identità siciliana]]> - + diff --git a/jasper/Modello_preavviso.jrxml b/jasper/Preavviso di Parere Contrario.jrxml similarity index 98% rename from jasper/Modello_preavviso.jrxml rename to jasper/Preavviso di Parere Contrario.jrxml index d2f2405c..b95cece9 100644 --- a/jasper/Modello_preavviso.jrxml +++ b/jasper/Preavviso di Parere Contrario.jrxml @@ -211,7 +211,7 @@ e dell'identità siciliana]]> - + @@ -221,7 +221,6 @@ e dell'identità siciliana]]> @@ -294,7 +293,7 @@ e dell'identità siciliana]]> - + diff --git a/jasper/VIArch attivazione.jrxml b/jasper/VIArch attivazione.jrxml new file mode 100644 index 00000000..5b701c9e --- /dev/null +++ b/jasper/VIArch attivazione.jrxml @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/VIArch conclusione.jrxml b/jasper/VIArch conclusione.jrxml new file mode 100644 index 00000000..c350e572 --- /dev/null +++ b/jasper/VIArch conclusione.jrxml @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jasper/annullamento.jrxml b/jasper/annullamento.jrxml index cb2f0ccd..e4db9972 100644 --- a/jasper/annullamento.jrxml +++ b/jasper/annullamento.jrxml @@ -22,7 +22,6 @@ - diff --git a/jasper/cambio_istruttore.jrxml b/jasper/cambio_istruttore.jrxml index 6666ca00..fafd7138 100644 --- a/jasper/cambio_istruttore.jrxml +++ b/jasper/cambio_istruttore.jrxml @@ -22,7 +22,6 @@ - diff --git a/liferay-plugins-sdk-6.2/build.portos.properties b/liferay-plugins-sdk-6.2/build.portos.properties deleted file mode 100644 index f0db2994..00000000 --- a/liferay-plugins-sdk-6.2/build.portos.properties +++ /dev/null @@ -1,7 +0,0 @@ -app.server.tomcat.lib.global.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/lib/ext -app.server.tomcat.deploy.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/webapps -app.server.parent.dir = /home/portos/bin/liferay-paesaggistica -app.server.tomcat.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62 -app.server.type = tomcat -app.server.tomcat.portal.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/webapps/ROOT -javac.encoding = UTF-8 diff --git a/liferay-plugins-sdk-6.2/build.portos.properties.save b/liferay-plugins-sdk-6.2/build.portos.properties.save deleted file mode 100644 index f0db2994..00000000 --- a/liferay-plugins-sdk-6.2/build.portos.properties.save +++ /dev/null @@ -1,7 +0,0 @@ -app.server.tomcat.lib.global.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/lib/ext -app.server.tomcat.deploy.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/webapps -app.server.parent.dir = /home/portos/bin/liferay-paesaggistica -app.server.tomcat.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62 -app.server.type = tomcat -app.server.tomcat.portal.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/webapps/ROOT -javac.encoding = UTF-8 diff --git a/liferay-plugins-sdk-6.2/build.ture.properties b/liferay-plugins-sdk-6.2/build.ture.properties new file mode 100644 index 00000000..f4c5d948 --- /dev/null +++ b/liferay-plugins-sdk-6.2/build.ture.properties @@ -0,0 +1,9 @@ +# Managed by Liferay IDE (remove this comment to prevent future updates) + +app.server.tomcat.lib.global.dir = /home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/lib/ext +app.server.tomcat.deploy.dir = /home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/webapps +app.server.parent.dir = /home/ture/liferay/portali/paesaggistica +app.server.tomcat.dir = /home/ture/liferay/portali/paesaggistica/tomcat-7.0.62 +app.server.type = tomcat +app.server.tomcat.portal.dir = /home/ture/liferay/portali/paesaggistica/tomcat-7.0.62/webapps/ROOT +javac.encoding = UTF-8 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 deleted file mode 100644 index f42de363..00000000 --- a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -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/lr-arpa-al-hook/.classpath b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.classpath deleted file mode 100644 index dc20ff1d..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.classpath +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f42de363..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -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/lr-arpa-al-hook/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.common.component deleted file mode 100644 index bccbe80d..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/.settings/org.eclipse.wst.common.component +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/build.xml b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/build.xml deleted file mode 100644 index d94f83db..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/build.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/META-INF/custom_jsps/html/portlet/portal_settings/authentication/arpa.jsp b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/META-INF/custom_jsps/html/portlet/portal_settings/authentication/arpa.jsp deleted file mode 100644 index 79766e4a..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/META-INF/custom_jsps/html/portlet/portal_settings/authentication/arpa.jsp +++ /dev/null @@ -1,34 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%-- -/** - * 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. - */ ---%> - -<%@ include file="/html/portlet/portal_settings/init.jsp" %> - -<% -boolean arpaAuthEnabled = PrefsPropsUtil.getBoolean(company.getCompanyId(), _ARPA_AUTH_ENABLED_KEY, _ARPA_AUTH_ENABLED_VALUE); - -%> - - - - - -<%! -private static final String _ARPA_AUTH_ENABLED_KEY = "arpa.auth.enabled"; - -private static final boolean _ARPA_AUTH_ENABLED_VALUE = GetterUtil.getBoolean(PropsUtil.get(_ARPA_AUTH_ENABLED_KEY)); - -%> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-common-2.1.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-common-2.1.jar deleted file mode 100644 index 45c2ebef..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-common-2.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-common-spagent-1.3.1.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-common-spagent-1.3.1.jar deleted file mode 100644 index 10f6c65f..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-common-spagent-1.3.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-conditional-authentication-filter-1.0.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-conditional-authentication-filter-1.0.jar deleted file mode 100644 index 4dff0765..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-conditional-authentication-filter-1.0.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-saml-common-1.1.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-saml-common-1.1.jar deleted file mode 100644 index ced35599..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-saml-common-1.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-saml2-mapper-1.3.1.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-saml2-mapper-1.3.1.jar deleted file mode 100644 index d0ec603c..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-saml2-mapper-1.3.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-spagent-filter-1.3.1.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-spagent-filter-1.3.1.jar deleted file mode 100644 index aae13515..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-spagent-filter-1.3.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-spagent-shared-1.3.1.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-spagent-shared-1.3.1.jar deleted file mode 100644 index 216e0d1e..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/arpa-spagent-shared-1.3.1.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-collections.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-collections.jar deleted file mode 100644 index fa5df82a..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-collections.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-configuration.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-configuration.jar deleted file mode 100644 index 2d4689a1..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-configuration.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-lang.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-lang.jar deleted file mode 100644 index 98467d3a..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-lang.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-logging.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-logging.jar deleted file mode 100644 index 8758a96b..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/commons-logging.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/log4j.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/log4j.jar deleted file mode 100644 index 068867eb..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/log4j.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-bridges.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-bridges.jar deleted file mode 100644 index 7d7435fe..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-bridges.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-taglib.jar deleted file mode 100644 index fbba5f0a..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-taglib.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/liferay-hook.xml deleted file mode 100644 index 28e65b62..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/liferay-hook.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - portal.properties - content/language.properties - /META-INF/custom_jsps - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/liferay-plugin-package.properties b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/liferay-plugin-package.properties deleted file mode 100644 index 948f09c7..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/liferay-plugin-package.properties +++ /dev/null @@ -1,15 +0,0 @@ -name=ARPA AutoLogin -module-group-id=liferay -module-incremental-version=1 -tags= -short-description= -long-description= -change-log= -page-url=http://www.liferay.com -author=Liferay, Inc. -licenses=LGPL -liferay-versions=6.2+ -portal-dependency-jars=\ - commons-configuration.jar,\ - commons-lang.jar,\ - commons-collections.jar diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/content/language.properties b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/content/language.properties deleted file mode 100644 index c2a6e88f..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/content/language.properties +++ /dev/null @@ -1,4 +0,0 @@ -arpa=Arpa -arpa-login-url = Url di Accreditamento -arpa-redirect-url = Chiave per il redirect -arpa-redirect-url-encoded = Redirect Url Codificato \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/ArpaUtils.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/ArpaUtils.java deleted file mode 100644 index f65fe3e7..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/ArpaUtils.java +++ /dev/null @@ -1,228 +0,0 @@ -package it.toscana.regione.arpa.al.util; - -import it.toscana.regione.arpa.common.ArpaSSOProxy; -import it.toscana.regione.arpa.common.ArpaUser; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; - -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.model.User; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.util.PortalUtil; - - -public class ArpaUtils { - - protected static Log _log = LogFactoryUtil.getLog(ArpaUtils.class); - - public static ArpaUser getUser(ArpaSSOProxy proxy) { - - ArpaUser user = proxy.getAuthenticatedUser(); - - if (user != null) { - - _log.debug("Authenticated User is : " + user); - - } else { - _log.warn("Authenticated User is null"); - } - - ArpaUser delegatingUser = proxy.getDelegatingUser(); - if (delegatingUser != null) { - - _log.debug("Delegating User is : " + delegatingUser); - - user = delegatingUser; - } else { - _log.debug("Delegating User is null"); - } - - return user; - } - - public static String getUserInfo(HttpServletRequest request) { - - String result = null; - try { - User user = PortalUtil.getUser(request); - String userId = ""; - String screename = ""; - if (user != null) { - userId = String.valueOf(user.getUserId()); - screename = user.getScreenName(); - } else { - _log.debug("Liferay User is null"); - } - - result = userId + "," + screename; - } catch (Exception e) { - _log.error("Error getting Liferay User ", e); - } - - - _log.debug("Returning message result = " + result); - - return result; - } - - public static String getUserInfo(HttpSession session) { - - Long userId = (Long) session.getAttribute("USER_ID"); - String result = null; - if (userId != null) { - try { - User user = UserLocalServiceUtil.fetchUserById(userId.longValue()); - String screename = ""; - if (user != null) { - screename = user.getScreenName(); - } else { - _log.debug("Liferay User is null"); - } - - result = userId + "," + screename; - } catch (Exception e) { - _log.error("Error getting user with id " + userId, e); - } - } - return result; - } - - public static boolean isArpaAuthenticated(HttpSession session) { - - boolean isArpaAuthenticated = false; - if (session != null) { - - _log.debug("Getting session attribute with key = _ARPA_AUTOLOGIN_AUTHENTICATED"); - - Object arpaAuthenticated = session.getAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED"); - - _log.debug("Getted session attribute with key = _ARPA_AUTOLOGIN_AUTHENTICATED and value = " + arpaAuthenticated); - - if (arpaAuthenticated != null) { - if ((arpaAuthenticated instanceof Boolean)) { - isArpaAuthenticated = ((Boolean) arpaAuthenticated).booleanValue(); - } - } - } - - if (isArpaAuthenticated) { - _log.debug("User is authenticated width Arpa "); - } else { - _log.debug("User is not authenticated width Arpa "); - } - - return isArpaAuthenticated; - } - - public static boolean isArpaAuthenticated(HttpServletRequest request) { - - HttpSession session = request.getSession(); - return isArpaAuthenticated(session); - } - - public static void markAuthenticated(HttpSession session, ArpaUser realUser, ArpaUser arpaUser) { - - boolean authenticated = true; - - if (arpaUser != null) { - _log.debug("Setting session attribute key = _ARPA_AUTOLOGIN_AUTHENTICATED_EMAIL value = " - + arpaUser.getEmailAddress()); - - session.setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED_EMAIL", arpaUser.getEmailAddress()); - - _log.debug("Setting session attribute key = _ARPA_AUTOLOGIN_AUTHENTICATED_CF value = " + arpaUser.getCf()); - - session.setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED_CF", arpaUser.getCf()); - } - - if (realUser != null) { - _log.debug("Setting session attribute key = _ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF value = " + realUser.getCf()); - - session.setAttribute("_ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF", realUser.getCf()); - } - if (arpaUser != null) { - _log.debug("Setting session attribute key = _ARPA_AUTOLOGIN_AUTHENTICATED value = " + authenticated); - } - session.setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED", Boolean.valueOf(authenticated)); - } - - - public static String getArpaUserInfo(HttpSession session) { - - boolean isArpaAuthenticated = isArpaAuthenticated(session); - String result = null; - Object realCf = null; - Object cf = null; - if ((isArpaAuthenticated) && (session != null)) { - - _log.debug("Getting session attribute with key = _ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF"); - - realCf = session.getAttribute("_ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF"); - - _log.debug("Getted session attribute with key = _ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF and value = " + realCf); - } - - _log.debug("Getting session attribute with key = _ARPA_AUTOLOGIN_AUTHENTICATED_CF"); - - cf = session.getAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED_CF"); - - _log.debug("Getted session attribute with key = _ARPA_AUTOLOGIN_AUTHENTICATED_CF and value = " + cf); - - - if (cf == null) { - cf = ""; - } - if (realCf == null) { - realCf = ""; - } - result = isArpaAuthenticated + "," + cf + "," + realCf; - - _log.debug("Returning result message = " + result); - return result; - } - - public static String getArpaUserInfo(HttpServletRequest request) { - - return getArpaUserInfo(request.getSession()); - } - - public static boolean isLogoutAlreadyCalled(HttpServletRequest request) { - - boolean result = false; - HttpSession session = request.getSession(false); - result = isLogoutAlreadyCalled(session); - return result; - } - - public static boolean isLogoutAlreadyCalled(HttpSession session) { - - boolean result = false; - if (session != null) { - _log.debug("Getting session attribute _ARPA_AUTOLOGIN_LOGOUT_LOG_CALLED"); - - Object value = session.getAttribute("_ARPA_AUTOLOGIN_LOGOUT_LOG_CALLED"); - if (_log.isDebugEnabled()) { - _log.debug("Session attribute _ARPA_AUTOLOGIN_LOGOUT_LOG_CALLED = " + value); - } - result = value != null; - } - return result; - } - - public static void markLogoutCalled(HttpSession session) { - - _log.debug("Setting session attribute _ARPA_AUTOLOGIN_LOGOUT_LOG_CALLED = true"); - - if (session != null) { - session.setAttribute("_ARPA_AUTOLOGIN_LOGOUT_LOG_CALLED", Boolean.valueOf(true)); - } else if (_log.isDebugEnabled()) _log.debug("Could not set session attribute _ARPA_AUTOLOGIN_LOGOUT_LOG_CALLED = true because session is null"); - } - - public static void markLogoutCalled(HttpServletRequest request) { - - HttpSession session = request.getSession(false); - markLogoutCalled(session); - } -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/Constants.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/Constants.java deleted file mode 100644 index 9ac95d16..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/Constants.java +++ /dev/null @@ -1,45 +0,0 @@ -package it.toscana.regione.arpa.al.util; - -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.PropsUtil; - -public interface Constants extends com.liferay.portal.kernel.util.Constants { - public static final String _ARPA_AUTH_ENABLED_KEY = "arpa.auth.enabled"; - public static final boolean _ARPA_AUTH_ENABLED_VALUE = GetterUtil.getBoolean(PropsUtil.get(_ARPA_AUTH_ENABLED_KEY)); - public static final String EMAIL_ATTRIBUTE = "emailAddress"; - /* - * public static final String DEFAULT_PARAMETER_LOGOUT_LOG_ALREADY_CALLED = - * "_ARPA_AUTOLOGIN_LOGOUT_LOG_CALLED"; public static final String ARPA_AUTHENTICATED_PARAMETER = - * "_ARPA_AUTOLOGIN_AUTHENTICATED"; public static final String ARPA_AUTHENTICATED_CF_PARAMETER = - * "_ARPA_AUTOLOGIN_AUTHENTICATED_CF"; public static final String - * ARPA_AUTHENTICATED_REAL_CF_PARAMETER = "_ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF"; public static - * final String ARPA_AUTHENTICATED_EMAIL_PARAMETER = "_ARPA_AUTOLOGIN_AUTHENTICATED_EMAIL"; public - * static final String INVALIDATE_SESSION_DEFAULT_MESSAGE_PRE = "SessionInvalidated"; public - * static final String LOGIN_DEFAULT_MESSAGE_PRE = "Login"; public static final String - * LOGOUT_DEFAULT_MESSAGE_PRE = "Logout"; public static final String USER_UPDATE_USER_ASSOCIATION - * = "arpa.roledecoder.updateuserassociation"; public static final boolean - * DEFAULT_USER_UPDATE_USER_ASSOCIATION = true; public static final String AUTENTICATING_ARPA_USER - * = "arpa.agent.user.authenticating"; public static final String EMAIL_NULL_AUTOGENERATE = - * "arpa.createuser.null.email.autogenerate"; public static final String - * EMAIL_ADDRESS_USER_AUTHENTICATE_PARAMETER = "arpa.authenticate.emailaddress"; public static - * final boolean DEFAULT_EMAIL_SEND_AFTER_CREATE_USER = false; public static final String - * EMAIL_SEND_AFTER_CREATE_USER = "arpa.createuser.emailsend"; public static final String - * USER_NULL_AUTOGENERATE = "arpa.roledecoder.autocreateuser"; public static final boolean - * DEFAULT_USER_NULL_AUTOGENERATE = true; public static final boolean - * DEFAULT_EMAIL_NULL_AUTOGENERATE = true; public static final boolean - * DEFAULT_AGREED_TO_TERMS_AFTER_CREATE_USER = false; public static final boolean - * DEFAULT_AGREED_TO_TERMS_AUTOGENERATED_EMAIL = false; public static final String - * AGREED_TO_TERMS_AUTOGENERATED_EMAIL = "arpa.createuser.agreedToTerms.view.email.autogenerate"; - * public static final String AGREED_TO_TERMS_AFTER_CREATE_USER = - * "arpa.createuser.agreedToTerms.ignore"; public static final String - * USERGROUP_AUTOCREATE_PARAMETER = "arpa.roledecoder.autocreateusergroup"; public static final - * String ORGANIZATION_AUTOCREATE_PARAMETER = "arpa.roledecoder.autocreateorganization"; public - * static final String USERDAO_IMPL_PARAMETER = "arpa.userdao.impl"; public static final String - * AUTO_LOGIN_REDIRECT_AND_CONTINUE_ENABLED_PARAMETER = - * "arpa.authenticate.loginredirectandcontinue.enabled"; public static final boolean - * DEFAULT_AUTO_LOGIN_REDIRECT_AND_CONTINUE_ENABLED_PARAMETER = true; - */ - // public static final String ROLE_DECODER_LOCATION_PARAMETER = "arpa.roledecoder.location"; - // public static final String ROLE_AUTOCREATE_PARAMETER = "arpa.roledecoder.autocreaterole"; - // public static final String AGENT_CHECK_PARAMETER = "arpa.agent.attribute.verify"; -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/mapper/AttributeArpaUser.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/mapper/AttributeArpaUser.java deleted file mode 100644 index f60afe48..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/util/mapper/AttributeArpaUser.java +++ /dev/null @@ -1,84 +0,0 @@ -package it.toscana.regione.arpa.al.util.mapper; - -import it.toscana.regione.arpa.common.ArpaAttribute; -import it.toscana.regione.arpa.common.ArpaSSOProxy; -import it.toscana.regione.arpa.common.ArpaUser; - -import java.util.Collection; - -public class AttributeArpaUser implements ArpaUser { - private ArpaSSOProxy proxy; - private ArpaUser target; - - - public AttributeArpaUser(ArpaSSOProxy proxy, ArpaUser target) { - this.proxy = proxy; - this.target = target; - } - - public String getBirthcc() { - return this.target == null ? null : this.target.getBirthcc(); - } - - public String getBirthday() { - return this.target == null ? null : this.target.getBirthday(); - } - - public String getCf() { - return this.target == null ? null : this.target.getCf(); - } - - public String getName() { - return this.target == null ? null : this.target.getName(); - } - - public String getSurname() { - return this.target == null ? null : this.target.getSurname(); - } - - public ArpaSSOProxy getProxy() { - return this.proxy; - } - - public String getEmailAddress() { - String email = this.target == null ? null : this.target.getEmailAddress(); - /* - * if ((this.proxy != null) && Validator.isNull(email)) { - * log.debug("Try to getting email Address from Attributes"); try { email = - * getMappedAttribute("emailAddress"); - * - * log.debug("Email Attribute is " + email); } catch (Exception e) { - * log.error("Error getting attribute emailAddress from user Attribute", e); } } - */ - return email; - } - - public String getAttribute(String attributeName) { - return getSingleAttribute(this.proxy.getWorkingAttributes(attributeName)); - } - - - private static String getSingleAttribute(ArpaAttribute arpaAttribute) { - if (arpaAttribute != null) { - Collection values = arpaAttribute.getValues(); - if ((values != null) && (values.size() > 0)) { - return values.iterator().next().toString(); - } - } - return null; - } - - private static String getSingleAttribute(Collection attributeSet) { - ArpaAttribute arpaAttribute = getArpaAttribute(attributeSet); - return getSingleAttribute(arpaAttribute); - } - - private static ArpaAttribute getArpaAttribute(Collection attributeSet) { - if ((attributeSet != null) && (attributeSet.size() > 0)) { - ArpaAttribute atrribute = (ArpaAttribute) attributeSet.iterator().next(); - return atrribute; - } - return null; - } - -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/ArpaAutoLogin.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/ArpaAutoLogin.java deleted file mode 100644 index 25511362..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/ArpaAutoLogin.java +++ /dev/null @@ -1,377 +0,0 @@ -package it.toscana.regione.arpa.al.version6_2; - -import it.toscana.regione.arpa.al.util.ArpaUtils; -import it.toscana.regione.arpa.al.util.Constants; -import it.toscana.regione.arpa.al.util.mapper.AttributeArpaUser; -import it.toscana.regione.arpa.common.ArpaException; -import it.toscana.regione.arpa.common.ArpaProxyFactoryLocator; -import it.toscana.regione.arpa.common.ArpaSSOProxy; -import it.toscana.regione.arpa.common.ArpaUser; - -import java.util.Locale; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import com.liferay.portal.NoSuchUserException; -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.FriendlyURLNormalizerUtil; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.PrefsPropsUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.User; -import com.liferay.portal.security.auth.AutoLogin; -import com.liferay.portal.security.auth.AutoLoginException; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portal.util.PortalUtil; - - -public class ArpaAutoLogin implements AutoLogin { - - - private static final Log _log = LogFactoryUtil.getLog(ArpaAutoLogin.class); - - - public final String[] login(HttpServletRequest request, HttpServletResponse response) throws AutoLoginException { - - String[] result = doLogin(request, response); - if ((result != null) && (result.length > 0)) { - long companyId = PortalUtil.getCompanyId(request); - boolean enabled = true; - try { - enabled = - PrefsPropsUtil.getBoolean(companyId, "arpa.authenticate.loginredirectandcontinue.enabled", - Boolean.valueOf(true)); - } catch (SystemException e) { - _log.error(e, e); - } - - if (enabled) { - String currentURL = PortalUtil.getCurrentURL(request); - _log.trace("Cecking if currentURL " + currentURL + " contains /portal/login"); - - if (currentURL.contains("/portal/login")) { - String redirect = ParamUtil.getString(request, "redirect"); - - if (Validator.isNotNull(redirect)) { - _log.debug("Setting AUTO_LOGIN_REDIRECT_AND_CONTINUE parameter to " + redirect); - request.setAttribute("AUTO_LOGIN_REDIRECT_AND_CONTINUE", redirect); - } - - } - - } else { - _log.trace("Function AUTO_LOGIN_REDIRECT_AND_CONTINUE is not enabled"); - } - } - - return result; - } - - protected String[] doLogin(HttpServletRequest request, HttpServletResponse response) { - - String[] result = null; - User user = null; - long companyId = PortalUtil.getCompanyId(request); - - boolean arpaAuthEnabled = false; - try { - arpaAuthEnabled = - PrefsPropsUtil.getBoolean(companyId, Constants._ARPA_AUTH_ENABLED_KEY, Constants._ARPA_AUTH_ENABLED_VALUE); - } catch (SystemException e) { - _log.error(e, e); - } - - // _log.info("3F: spAgentSSOToken = " + request.getAttribute("spAgentSSOToken")); - // - // _log.info("******3FC*******"); - // Enumeration parametersName = request.getParameterNames(); - // while (parametersName.hasMoreElements()) { - // - // String paramName = parametersName.nextElement(); - // - // String[] paramValues = request.getParameterValues(paramName); - // for (int i = 0; i < paramValues.length; i++) { - // _log.info("Parameter " + paramName + " = " + paramValues[i]); - // } - // - // } - // - // Enumeration attributesName = request.getAttributeNames(); - // while (attributesName.hasMoreElements()) { - // - // String attributeName = attributesName.nextElement(); - // - // String attributeValue = (String) request.getAttribute(attributeName); - // - // _log.info("Attribute " + attributeName + " = " + attributeValue); - // - // } - // _log.info("******3FC*******"); - - if (arpaAuthEnabled) { - _log.debug("3F: autenticazione arpa abilitata"); - String agentCheckParameterName = StringPool.BLANK; - try { - agentCheckParameterName = PrefsPropsUtil.getString(companyId, "arpa.agent.attribute.verify"); - } catch (SystemException e) { - _log.error(e, e); - } - - boolean canContinue = true; - Object agentCheckValue = null; - - if ((agentCheckParameterName != null) && (agentCheckParameterName.trim().length() > 0)) { - _log.debug("3F: entro qui"); - _log.debug("Try to get agent Check attribute from request " + agentCheckParameterName); - - canContinue = false; - agentCheckValue = request.getAttribute(agentCheckParameterName); - if (agentCheckValue != null) { - canContinue = true; - _log.debug("Value of AgentCheckParameter " + agentCheckValue); - if ((agentCheckValue instanceof Boolean)) { - canContinue = ((Boolean) agentCheckValue).booleanValue(); - } - } else _log.debug("Agent Check attribute is null"); - - } - - boolean authenticated = false; - if (canContinue) { - _log.debug("3F: sono abilitato ad autenticare"); - - try { - ArpaSSOProxy proxy = ArpaProxyFactoryLocator.getInstance(request); - if (proxy != null) { - _log.debug("3F: provo ad autenticare"); - ArpaUser arpaUser = ArpaUtils.getUser(proxy); - if (arpaUser != null) { - request.setAttribute("arpa.agent.user.authenticating", arpaUser); - arpaUser = new AttributeArpaUser(proxy, arpaUser); - _log.debug("Try to login user " + arpaUser); - - try { - - user = createUserIfnotExist(companyId, arpaUser); - - } catch (Exception portalException) { - _log.error("Error Getting or Adding User " + arpaUser.getCf(), portalException); - } - - if (user != null) { - result = makeCredentials(user); - authenticated = true; - try { - _log.debug("Setting request and session attribute key = _ARPA_AUTOLOGIN_AUTHENTICATED_EMAIL value = " - + arpaUser.getEmailAddress()); - - - request.setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED_EMAIL", arpaUser.getEmailAddress()); - - request.getSession().setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED_EMAIL", arpaUser.getEmailAddress()); - - _log.debug("Setting request and session attribute key = _ARPA_AUTOLOGIN_AUTHENTICATED_CF value = " - + arpaUser.getCf()); - - - request.setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED_CF", arpaUser.getCf()); - - request.getSession().setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED_CF", arpaUser.getCf()); - - ArpaUser realUser = proxy.getAuthenticatedUser(); - - _log.debug("Setting request and session attribute key = _ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF value = " - + realUser.getCf()); - - request.setAttribute("_ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF", realUser.getCf()); - - request.getSession().setAttribute("_ARPA_AUTOLOGIN_REAL_AUTHENTICATED_CF", realUser.getCf()); - } catch (Exception e) { - _log.error("Cannot Setting Parameter on request and session, caused by", e); - } - - } - - } else { - _log.warn("ArpaUser is null"); - } - } - - } catch (ArpaException e) { - _log.error("Error getting ArpaUser", e); - } - } else { - _log.debug("Request is not processed because request parameter " + agentCheckParameterName + " is = " - + agentCheckValue); - } - - - if ((result != null) && (result.length >= 3)) { - _log.debug("Credentials:[" + result[0] + "][" + result[1] + "][" + result[2] + "]"); - } else { - _log.debug("No Authenticated User"); - } - - _log.debug("Setting request and session attribute key = _ARPA_AUTOLOGIN_AUTHENTICATED value = " + authenticated); - - request.setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED", Boolean.valueOf(authenticated)); - request.getSession().setAttribute("_ARPA_AUTOLOGIN_AUTHENTICATED", Boolean.valueOf(authenticated)); - } - return result; - } - - protected User createUserIfnotExist(long companyId, ArpaUser arpaUser) throws PortalException, SystemException { - - User user = null; - if (arpaUser != null) { - String screenName = arpaUser.getCf(); - screenName = FriendlyURLNormalizerUtil.normalize(screenName); - user = UserLocalServiceUtil.fetchUserByScreenName(companyId, screenName); - if (user == null) { - _log.info("L'utente [" + arpaUser.getCf() + "] non e' censito. Tento Creazione Utente nel Sistema"); - boolean male = true; - int birthdayMonth = 0; - int birthdayDay = 1; - int birthdayYear = 1970; - String jobTitle = StringPool.BLANK; - String openId = StringPool.BLANK; - long[] groupIds = null; - long[] organizationIds = null; - long[] roleIds = null; - long[] userGroupIds = null; - long facebookId = 0l; - boolean autoPassword = true; - String password1 = "replaceme"; - String password2 = "replaceme"; - boolean autoScreenName = false; - boolean sendEmailToUser = false; - Locale locale = Locale.ITALY; - ServiceContext serviceContext = new ServiceContext(); - String userScreenName = arpaUser.getCf(); - long creatorUserId = UserLocalServiceUtil.getDefaultUserId(companyId); - - String emailAddress = arpaUser.getEmailAddress(); - String firstName = arpaUser.getName(); - if ((firstName == null) || (firstName.trim().length() <= 0)) { - firstName = screenName; - } - String middleName = StringPool.BLANK; - String lastName = arpaUser.getSurname(); - if ((lastName == null) || (lastName.trim().length() <= 0)) { - lastName = screenName; - } - - try { - user = - UserLocalServiceUtil.addUser(creatorUserId, companyId, autoPassword, password1, password2, - autoScreenName, screenName, emailAddress, facebookId, openId, locale, firstName, middleName, - lastName, 0, 0, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds, - roleIds, userGroupIds, sendEmailToUser, serviceContext); - /* - * long userId = 0; if (user != null) { userId = user.getUserId(); - * _log.debug("Updating Password Reset "); - * UserLocalServiceUtil.updatePasswordReset(userId, false); } if ((user != null) && - * (!screenName.equals(user.getScreenName()))) { _log.debug("Updating ScreenName from " + - * user.getScreenName() + " to " + screenName); - * UserLocalServiceUtil.updateScreenName(userId, screenName); if (_log.isDebugEnabled()) { - * _log.debug("Updated ScreenName from " + user.getScreenName() + " to " + screenName); } - * try { user = UserLocalServiceUtil.getUserById(userId); } catch (Exception e) { - * _log.warn("Error refreshing user after updating screename = " + user.getScreenName()); - * } } if ((user != null) && (updateAgreedToTermsOfUse) && - * ((!viewAgreedToTermsOfUseNullEmail) || (!autogeneratedEmail))) { - * _log.debug("Updating AgreedToTermsOfUse for user " + user.getScreenName()); try { - * UserLocalServiceUtil.updateAgreedToTermsOfUse(user.getUserId(), true); } catch - * (Exception e) { if (_log.isWarnEnabled()) { - * _log.warn("Errror updating AgreedToTermsOfUse for user Id = " + user, e); } } } - */ - _log.info("Ho aggiunto il nuovo utente [" + userScreenName + "]."); - } catch (Exception e) { - throw new PortalException("Error Adding user on Liferay", e); - } - - } else { - _log.warn("The User already Exist, Ignoring add user = " + user); - } - } - return user; - } - - protected User loginUser(long companyId, ArpaUser arpaUser) throws PortalException, SystemException { - - String userScreenName = arpaUser.getCf(); - User user = null; - if (arpaUser != null) { - try { - user = UserLocalServiceUtil.getUserByScreenName(companyId, userScreenName); - - _log.info("L'utente [" + userScreenName + "] e' gia' censito."); - - } catch (NoSuchUserException ex) { - boolean authenticateWithEmailAddress = - PrefsPropsUtil.getBoolean(companyId, "arpa.authenticate.emailaddress", Boolean.valueOf(false)); - - if (authenticateWithEmailAddress) { - String emailAddress = arpaUser.getEmailAddress(); - if ((emailAddress != null) && (emailAddress.trim().length() > 0)) { - try { - _log.info("L'utente [" + userScreenName + "] non e' censito con lo screename, Provo con l'email address."); - - user = UserLocalServiceUtil.getUserByEmailAddress(companyId, emailAddress); - - _log.info("L'utente [" + userScreenName + "] e' gia' censito con l'indirizzo email " + emailAddress + "."); - - } catch (NoSuchUserException ex2) { - _log.info("L'utente [" + userScreenName + "] non e' censito con l'indirizzo email " + emailAddress + ". "); - - } catch (PortalException e) { - _log.info( - "L'utente [" + userScreenName + "] non e' censito con l'indirizzo email " + emailAddress + ". ", e); - } catch (SystemException e) { - _log.info( - "L'utente [" + userScreenName + "] non e' censito con l'indirizzo email " + emailAddress + ". ", e); - } - - } - - } else { - _log.info("L'utente [" + userScreenName - + "] non e' censito con lo screename, non provo con l'email address perche' la funzione e' disabilitata."); - } - - } - - } - - return user; - } - - - protected String[] makeCredentials(User user) { - - String[] retval = null; - if (user != null) { - retval = new String[3]; - retval[0] = String.valueOf(user.getUserId()); - retval[1] = user.getPassword(); - retval[2] = Boolean.FALSE.toString(); - } - - return retval; - } - - - @Override - public String[] handleException(HttpServletRequest request, HttpServletResponse response, Exception e) - throws AutoLoginException { - - _log.error(e); - return null; - } - -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LiferayLogUserAction.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LiferayLogUserAction.java deleted file mode 100644 index 69c7a5c0..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LiferayLogUserAction.java +++ /dev/null @@ -1,44 +0,0 @@ -package it.toscana.regione.arpa.al.version6_2.action; - -import com.liferay.portal.kernel.events.Action; -import com.liferay.portal.kernel.events.ActionException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; - -import it.toscana.regione.arpa.al.util.ArpaUtils; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; - -public abstract class LiferayLogUserAction extends Action { - - protected static Log _log = LogFactoryUtil.getLog(LiferayLogUserAction.class); - - public abstract String getMessagePre(HttpServletRequest request); - - - - public void run(HttpServletRequest request, HttpServletResponse response) throws ActionException { - try { - String remoteInfo = "Host = " + request.getRemoteHost() + ", Port= " + request.getRemotePort(); - - _log.debug("Running " + remoteInfo + ", User = " + request.getRemoteUser()); - - HttpSession session = request.getSession(); - if (session != null) { - String message = - "[" + getMessagePre(request) + "," + ArpaUtils.getUserInfo(request) + "," - + ArpaUtils.getArpaUserInfo(request) + "]"; - - - _log.info(message); - - _log.debug("Getting session attribute with key = _ARPA_AUTOLOGIN_AUTHENTICATED"); - } - - } catch (Exception e) { - _log.error("Error executing operations", e); - } - } -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LiferayLogoutSessionAction.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LiferayLogoutSessionAction.java deleted file mode 100644 index 10107ba2..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LiferayLogoutSessionAction.java +++ /dev/null @@ -1,44 +0,0 @@ -package it.toscana.regione.arpa.al.version6_2.action; - -import com.liferay.portal.kernel.events.ActionException; -import com.liferay.portal.kernel.events.SessionAction; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; - -import it.toscana.regione.arpa.al.util.ArpaUtils; - -import javax.servlet.http.HttpSession; - -public class LiferayLogoutSessionAction extends SessionAction { - - private static Log _log = LogFactoryUtil.getLog(LiferayLogoutSessionAction.class); - - @Override - public void run(HttpSession session) throws ActionException { - if (_log.isDebugEnabled()) { - _log.debug("Called"); - } - if (session != null) { - String userInfo = ArpaUtils.getUserInfo(session); - if (userInfo != null) { - if (!ArpaUtils.isLogoutAlreadyCalled(session)) { - String message = - "[" + getMessagePre(session) + "," + userInfo + "," + ArpaUtils.getArpaUserInfo(session) + "]"; - - _log.info(message); - } else { - _log.debug("Do no print message because session invalidation _log is already printed"); - } - - } else - _log.debug("Do no print message because user is not authenticated"); - } - } - - protected String getMessagePre(HttpSession session) { - return "SessionInvalidated"; - } - - - -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LogLoginPostAction.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LogLoginPostAction.java deleted file mode 100644 index 98a81daf..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LogLoginPostAction.java +++ /dev/null @@ -1,11 +0,0 @@ -package it.toscana.regione.arpa.al.version6_2.action; - -import javax.servlet.http.HttpServletRequest; - -public class LogLoginPostAction extends LiferayLogUserAction { - - @Override - public String getMessagePre(HttpServletRequest request) { - return "Login"; - } -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LogLogoutPreAction.java b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LogLogoutPreAction.java deleted file mode 100644 index d06fe426..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/it/toscana/regione/arpa/al/version6_2/action/LogLogoutPreAction.java +++ /dev/null @@ -1,21 +0,0 @@ -package it.toscana.regione.arpa.al.version6_2.action; - -import com.liferay.portal.kernel.events.ActionException; - -import it.toscana.regione.arpa.al.util.ArpaUtils; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -public class LogLogoutPreAction extends LiferayLogUserAction { - - public void run(HttpServletRequest request, HttpServletResponse response) throws ActionException { - super.run(request, response); - ArpaUtils.markLogoutCalled(request); - } - - @Override - public String getMessagePre(HttpServletRequest request) { - return "Logout"; - } -} diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/portal.properties b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/portal.properties deleted file mode 100644 index 3502f768..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/src/portal.properties +++ /dev/null @@ -1,41 +0,0 @@ - -#Wed Feb 26 17:06:52 CET 2014 -company.settings.form.authentication=arpa -#login.form.navigation.pre=arpa -# Se true vuol dire che il sistema ARPA è attivo -arpa.auth.enabled = true -# paramerto da passare per il backurl -arpa.redirect.url = backurl -# se true significa che manderà l'indirizzo di back codificato html -arpa.redirect.encoded = true - -######################################################################### -# # -# Proprieta' ARPA PLUGIN da settare nel file portal-ext.properties # -# # -######################################################################### - -#Se true, si salta la verifica dell'agent attribute nella request -#arpa.function.mode.test=false - -#Indica se inviare la mail con password all'utente non registrato che accede con arpa -#arpa.createuser.emailsend=true -#Permette al sistema la generazione automatica di un indirizzo email nel caso non fosse presente in Arpa oppure già presente in liferay (default true) -#arpa.createuser.null.email.autogenerate=true -#Evita la visualizzazione del messaggio di accettazione delle policy -#arpa.createuser.agreedToTerms.ignore=true - -#Per la versione 6.2 utilizzare questa configurazione -auto.login.hooks=it.toscana.regione.arpa.al.version6_2.ArpaAutoLogin -logout.events.pre=it.toscana.regione.arpa.al.version6_2.action.LogLogoutPreAction -logout.events.post=it.toscana.regione.arpa.al.version6_2.action.LogLoginPostAction -servlet.session.destroy.events=it.toscana.regione.arpa.al.version6_2.action.LiferayLogoutSessionAction - -##OLD properties -#Indica al modulo di autenticazione dove cercare il file per il mapping dei ruoli -#arpa.roledecoder.location=liferayMapper.xml -#Se true, indica al modulo di autenticazione se creare automaticamente il ruolo nel caso non fosse trovato all'interno di Liferay -#arpa.roledecoder.autocreaterole=true -#Non permette la modifica via gui dell'attributo screename -#Indica il nome dell'attributo all'interno della request per verificare se la richiesta e' stata elaborata dall'agent. -#arpa.agent.attribute.verify=_ARPA_ENFORCED_URL \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/web.xml b/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/web.xml deleted file mode 100644 index 4250bba6..00000000 --- a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/web.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file 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 deleted file mode 100644 index f42de363..00000000 --- a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -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-autodestroy-portlet/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/.gitignore similarity index 100% rename from liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/.gitignore rename to liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/.gitignore diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/commons-logging.jar b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/commons-logging.jar deleted file mode 100644 index 8758a96b..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/commons-logging.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/log4j.jar b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/log4j.jar deleted file mode 100644 index 068867eb..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/log4j.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-bridges.jar b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-bridges.jar deleted file mode 100644 index 7d7435fe..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-bridges.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-taglib.jar deleted file mode 100644 index fbba5f0a..00000000 Binary files a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-taglib.jar and /dev/null differ 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 3b053b72..65d421b8 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 @@ -875e1c4437fb71ef78ec054720f63e50 +2c267788e15963b22e4e720e12f5611c diff --git a/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index f42de363..00000000 --- a/liferay-plugins-sdk-6.2/layouttpl/bootstrapt_1_column-layouttpl/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -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/lib/iris-IUV-client.jar b/liferay-plugins-sdk-6.2/lib/iris-IUV-client.jar deleted file mode 100644 index 0c400bef..00000000 Binary files a/liferay-plugins-sdk-6.2/lib/iris-IUV-client.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/lib/iris-axis-client.jar b/liferay-plugins-sdk-6.2/lib/iris-axis-client.jar deleted file mode 100644 index 66f6d745..00000000 Binary files a/liferay-plugins-sdk-6.2/lib/iris-axis-client.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/build.xml b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/build.xml deleted file mode 100644 index 566ad490..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/build.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/META-INF/MANIFEST.MF deleted file mode 100644 index 254272e1..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Class-Path: - diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/liferay-display.xml b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/liferay-display.xml deleted file mode 100644 index 270137cb..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/liferay-display.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/liferay-portlet.xml deleted file mode 100644 index 588634b1..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/liferay-portlet.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - test-portos - /icon.png - /css/main.css - - /js/main.js - - test-portos-portlet - - - administrator - Administrator - - - guest - Guest - - - power-user - Power User - - - user - User - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/portlet.xml deleted file mode 100644 index c5560dd5..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/portlet.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - test-portos - Test Portos - - it.tref.liferay.portos.plugin.TestPortosPortlet - - - view-template - /html/testportos/view.jsp - - 0 - - text/html - view - - - Test Portos - Test Portos - - - - administrator - - - guest - - - power-user - - - user - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/plugin/TestPortosPortlet.java b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/plugin/TestPortosPortlet.java deleted file mode 100644 index 81bc3a83..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/plugin/TestPortosPortlet.java +++ /dev/null @@ -1,99 +0,0 @@ -package it.tref.liferay.portos.plugin; - -import it.tref.liferay.portos.bo.model.ControlloPratica; -import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.service.ClpSerializer; -import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; - -import java.util.List; - -import javax.portlet.ActionRequest; -import javax.portlet.ActionResponse; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -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.search.Indexer; -import com.liferay.portal.kernel.search.IndexerRegistryUtil; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.WebKeys; -import com.liferay.portal.theme.ThemeDisplay; -import com.liferay.util.bridges.mvc.MVCPortlet; - -/** - * Portlet implementation class TestPortosPortlet - */ -public class TestPortosPortlet extends MVCPortlet { - private static final Log _log = LogFactoryUtil.getLog(TestPortosPortlet.class); - - public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) { - - - try { - - ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); - - Indexer intIndexer = IndexerRegistryUtil.getIndexer(IntPratica.class); - Indexer controlloIndexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - - if (intPratica != null) { - - intIndexer.delete(themeDisplay.getCompanyId(), intPratica.getUuid()); - intIndexer.reindex(IntPratica.class.getName(), intPratica.getIntPraticaId()); - - ClassLoader classLoader = - (ClassLoader) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), "portletClassLoader"); - - DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class, classLoader); - queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); - - List appList = - ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - if (appList != null && !appList.isEmpty()) { - for (ControlloPratica controlloPratica : appList) { - controlloIndexer.delete(themeDisplay.getCompanyId(),controlloPratica.getUuid()); - controlloIndexer.reindex(ControlloPratica.class.getName(),controlloPratica.getControlloPraticaId()); - } - } - } - } catch (PortalException | SystemException e) { - _log.error(e,e); - } - - - - } - - public void updateCollaudoStatico(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { - -// ClassLoader classLoader = -// (ClassLoader) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), "portletClassLoader"); -// -// DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(DettPratica.class, classLoader); -// queryCP.add(RestrictionsFactoryUtil.ne("oldDettPraticaId", 0L)); -// -// List lista = DettPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, QueryUtil.ALL_POS); -// for (DettPratica dettPratica : lista) { -// -// dettPratica.setCollaudoStatico(!dettPratica.getCollaudoStatico()); -// DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); -// -// } - } - - public void testActionUrl(ActionRequest actionRequest, ActionResponse actionResponse) { - System.out.println(ParamUtil.getString(actionRequest, "pagamentoId")); - } - -} diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/web.xml b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/web.xml deleted file mode 100644 index 1aa8cdb8..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/WEB-INF/web.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/init.jsp b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/init.jsp deleted file mode 100644 index 4e3d68f9..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/init.jsp +++ /dev/null @@ -1,12 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> -<%@taglib uri="http://liferay.com/tld/aui" prefix="aui" %> -<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %> -<%@taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %> -<%@taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %> -<%@taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> -<%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %> - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/rigenera_pagamento.jsp b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/rigenera_pagamento.jsp deleted file mode 100644 index 99c882d5..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/rigenera_pagamento.jsp +++ /dev/null @@ -1,62 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> -<%@include file="init.jsp"%> - -<% -long pagamentoId = ParamUtil.getLong(request, "pagamentoId", 0L); -String dialogId = "testPopupIdUnique"; -String portletNameApp = "#p_p_id_"+ themeDisplay.getPortletDisplay().getId() +"_"; -%> - - - - - - - -
-
-
- Si sicuri di voler rigenerare il pagamento? Questa azione sar irreversibile! -
-
- -
-
- -
-
- -
-
- - - -
- -
- - - - -Liferay.provide( - window, - 'closePopup', - function() { - - Liferay.Util.getOpener().refreshPortlet(); - Liferay.Util.getOpener().closePopup('<%= dialogId %>'); - - }, - ['aui-base','liferay-util-window'] -); - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/view.jsp b/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/view.jsp deleted file mode 100644 index 2c4415e6..00000000 --- a/liferay-plugins-sdk-6.2/portlets/PortoTestPlugin-portlet/docroot/html/testportos/view.jsp +++ /dev/null @@ -1,115 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> -<%@include file="init.jsp"%> - -
- - -
-
-
Form per reindicizzare un fascicolo
- -
- - - - -
-
-
-
- -
- - -
-
-
Corregge le DettPratica: Va premuto solo una volta!!!!
- -
- - -
-
-
-
- - - - - - - - - - - - - - - - -   - - - - - - - Liferay.provide(window, 'refreshPortlet', function() { - var curPortlet = '#p_p_id'; - Liferay.Portlet.refresh(curPortlet); - }, - ['aui-dialog','aui-dialog-iframe'] - ); - - - - Liferay.provide(window, 'closePopup', function(dialogId) { - var A = AUI(); - var dialog = Liferay.Util.Window.getById(dialogId); - dialog.destroy(); - }, - ['liferay-util-window'] - ); - - - -
- -
- - - 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 deleted file mode 100644 index f42de363..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -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/.tern-project b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.tern-project new file mode 100644 index 00000000..a185ba0d --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.tern-project @@ -0,0 +1 @@ +{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/.gitignore new file mode 100644 index 00000000..840e7d31 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/.gitignore @@ -0,0 +1 @@ +/classes/ diff --git a/liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-java.jar b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/util-java.jar similarity index 100% rename from liferay-plugins-sdk-6.2/hooks/lr-arpa-al-hook/docroot/WEB-INF/lib/util-java.jar rename to liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/lib/util-java.jar 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 2e149d63..576bdec9 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=24 - build.date=1598351718206 + build.number=26 + build.date=1618410701755 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp index c1456196..07d65aa8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_bo/add_richiesta.jsp @@ -1,80 +1,74 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="init.jsp" %> - -
+
- - - -
+ +
- +
- - function (val, fieldNode, ruleValue) { - return fieldNode.get('disabled') || (val != null && val!=''); + + function (val, fieldNode, ruleValue) { + return fieldNode.get('disabled') || (val != null && val != ''); + } + + + function (val, fieldNode, ruleValue) { + if (fieldNode.get('disabled')) { + return true; } - - - - function (val, fieldNode, ruleValue) { - if(fieldNode.get('disabled')){ - return true; - } - var regex = '^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$'; - var regex1 = /^(?:[B-DF-HJ-NP-TV-Z](?:[AEIOU]{2}|[AEIOU]X)|[AEIOU]{2}X|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[1256LMRS][\dLMNP-V])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[\dLMNP-V][1-9MNP-V]|[1-9MNP-V][0L]))[A-Z]$/i; - var regexObj = new RegExp (regex1); - var result = regexObj.test(val); - return result; - } - - + var regex = '^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$'; + var regex1 = /^(?:[B-DF-HJ-NP-TV-Z](?:[AEIOU]{2}|[AEIOU]X)|[AEIOU]{2}X|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[1256LMRS][\dLMNP-V])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[\dLMNP-V][1-9MNP-V]|[1-9MNP-V][0L]))[A-Z]$/i; + var regexObj = new RegExp (regex1); + var result = regexObj.test(val); + return result; + } + +
-
+
- +
- +
-
+
-
- +
+ function (val, fieldNode, ruleValue) { var A = AUI(); - - var checkValue = true; - + var checkValue = true; var portletNamespace = ''; - var sanatorie = A.one("#"+portletNamespace + "sanatoria").val(); - - if(sanatorie == "true"){ - if(val == ""){ + var sanatorie = A.one("#" + portletNamespace + "sanatoria").val(); + if (sanatorie == "true") { + if (val == "") { checkValue = false; } } - return checkValue; } @@ -82,100 +76,97 @@
-
+
-
Tipologia Soggetto
+
Tipologia Soggetto
- - - - - - - + + + + + + +
-
+
-
Tipologia Richiesta
+
Tipologia Richiesta
- - + +
- -
+
-
+
- +
- - -
+
function (val, fieldNode, ruleValue) { - var A = AUI(); - - var checkValue = true; - var portletNamespace = ''; - var dataVidimazione = A.one("#"+portletNamespace + "dataVidimazione").val(); - var sanatorie = A.one("#"+portletNamespace + "sanatoria").val(); - - if(sanatorie == "true"){ - checkValue = false; - } - - if(dataVidimazione != ""){ - var checkDateFixed = "01/01/2015"; - var checkDateFixed = new Date(checkDateFixed); - - var vidimazioneDate = new Date(dataVidimazione); - - if(vidimazioneDate <= checkDateFixed){ - checkValue = false; - } - } - - if(!checkValue){ - if(val != ""){ - return true; - } - - } - - return checkValue; + var A = AUI(); + var checkValue = true; + var portletNamespace = ''; + var dataVidimazione = A.one("#" + portletNamespace + "dataVidimazione").val(); + var sanatorie = A.one("#"+portletNamespace + "sanatoria").val(); + if (sanatorie == "true") { + checkValue = false; + } + if (dataVidimazione != "") { + var checkDateFixed = "01/01/2015"; + var checkDateFixed = new Date(checkDateFixed); + var vidimazioneDate = new Date(dataVidimazione); + if (vidimazioneDate <= checkDateFixed) { + checkValue = false; + } + } + if (!checkValue) { + if (val != "") { + return true; + } + } + return checkValue; }
- -
+
- - - - - - - -YUI().use( - 'aui-datepicker', - function(Y) { - var datepicker = new Y.DatePicker( - { - trigger: '.calendarDatepicker', - calendar: { - dateFormat: 'dd/MM/yyyy', - }, - mask: '%d/%m/%Y', - popover: { - toolbars: { - header: [[ - { - icon: 'icon-trash', - label: Liferay.Language.get("Cancella"), - on: { - click: function() { - datepicker.clearSelection(); - } - } - } - ]] - }, - zIndex: 1 - } - } - ); - } -); - - +YUI().use('aui-datepicker', function(Y) { + var datepicker = new Y.DatePicker({ + trigger: '.calendarDatepicker', + calendar: { + dateFormat: 'dd/MM/yyyy', + }, + mask: '%d/%m/%Y', + popover: { + toolbars: { + header: [[{ + icon: 'icon-trash', + label: Liferay.Language.get("Cancella"), + on: { + click: function() { + datepicker.clearSelection(); + } + } + }]] + }, + zIndex: 1 + } + }); +}); + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp index da3be83c..58e207bc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/richiedi-atto.jsp @@ -73,7 +73,7 @@ boolean isNoCNSUser = UserLocalServiceUtil.hasRoleUser(roleNoCNS.getRoleId(), th - + @@ -104,14 +104,14 @@ boolean isNoCNSUser = UserLocalServiceUtil.hasRoleUser(roleNoCNS.getRoleId(), th
- +
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp index c4cf58d9..958dfc00 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp @@ -174,14 +174,6 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi <%= LanguageUtil.get(pageContext, "norm-dm2018") %>
-
- - <%= LanguageUtil.get(pageContext, "norm-dm01") %> -
-
- - <%= LanguageUtil.get(pageContext, "norm-dm02") %> -
@@ -189,18 +181,6 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
-
- - <%= LanguageUtil.get(pageContext, "norm-dm03") %> -
-
- - <%= LanguageUtil.get(pageContext, "norm-dprg01") %> -
-
- - <%= LanguageUtil.get(pageContext, "norm-dprg02") %> -
<%= LanguageUtil.get(pageContext, "norm-anr") %> @@ -481,7 +461,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
- <%=LanguageUtil.get(pageContext, "tc-in-ca") %> + <%=LanguageUtil.get(pageContext, "tc-in-c-a") %>
@@ -1400,7 +1380,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi

- Questo fascicolo non disponibile sotto forma digitale. Potr ritirare una copia cartacea presso uno degli Uffici del Settore Sismica. + Questo fascicolo non � disponibile sotto forma digitale. Potr� ritirare una copia cartacea presso uno degli Uffici del Settore Sismica.

diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml index c968ecd9..f679b091 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml @@ -13,6 +13,6 @@ - + \ No newline at end of file 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 11baead3..81f1995e 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 @@ -3ae4ba23d25ab17dd579df162025fd7e +987c468ab803b131a7ff0c2ece8911b3 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 deleted file mode 100644 index f42de363..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -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/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/.gitignore new file mode 100644 index 00000000..840e7d31 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/.gitignore @@ -0,0 +1 @@ +/classes/ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.project deleted file mode 100644 index 61738ef7..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.project +++ /dev/null @@ -1,36 +0,0 @@ - - - portos-autodestroy-portlet - - - - - - org.eclipse.wst.jsdt.core.javascriptValidator - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.wst.common.project.facet.core.builder - - - - - org.eclipse.wst.validation.validationbuilder - - - - - - org.eclipse.jem.workbench.JavaEMFNature - org.eclipse.wst.common.modulecore.ModuleCoreNature - org.eclipse.wst.common.project.facet.core.nature - org.eclipse.jdt.core.javanature - org.eclipse.wst.jsdt.core.jsNature - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/.jsdtscope b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/.jsdtscope deleted file mode 100644 index 840a01d5..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/.jsdtscope +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 0c68a61d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,7 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 -org.eclipse.jdt.core.compiler.compliance=1.8 -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.8 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b6..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/build.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/build.xml deleted file mode 100644 index 8d0c32c9..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/build.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/META-INF/MANIFEST.MF b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/META-INF/MANIFEST.MF deleted file mode 100644 index 254272e1..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Class-Path: - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-plugin-package.properties b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-plugin-package.properties deleted file mode 100644 index 56ef65c4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/liferay-plugin-package.properties +++ /dev/null @@ -1,13 +0,0 @@ -name=Portos Autodestroy Portos -module-group-id=liferay -module-incremental-version=1 -tags= -short-description= -long-description= -change-log= -page-url=http://www.liferay.com -author=Liferay, Inc. -licenses=LGPL -liferay-versions=6.2.0+ -required-deployment-contexts=\ - portos-bo-portlet diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/autodestroy/portlet/AutoDestroyPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/autodestroy/portlet/AutoDestroyPortlet.java deleted file mode 100644 index 7aa996be..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/autodestroy/portlet/AutoDestroyPortlet.java +++ /dev/null @@ -1,32 +0,0 @@ -package it.tref.liferay.portos.autodestroy.portlet; - -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; - -import javax.portlet.ActionRequest; -import javax.portlet.ActionResponse; - -import com.liferay.portal.kernel.cache.CacheRegistryUtil; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.servlet.SessionErrors; -import com.liferay.util.bridges.mvc.MVCPortlet; - -/** - * Portlet implementation class AutoDestroyPortlet - */ -public class AutoDestroyPortlet extends MVCPortlet { - - private static Log _log = LogFactoryUtil.getLog(AutoDestroyPortlet.class.getName()); - - public void autoDestroy(ActionRequest actionRequest, ActionResponse actionResponse) { - - try { - IntPraticaLocalServiceUtil.clearDb(); - CacheRegistryUtil.clear(); - } catch (Exception e) { - SessionErrors.add(actionRequest, "errore"); - _log.error(e, e); - } - } - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/aui.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/aui.tld deleted file mode 100644 index 1eeac884..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/aui.tld +++ /dev/null @@ -1,2568 +0,0 @@ - - - - aui:.]]> - 1.0 - aui - http://alloy.liferay.com/tld/aui - - - button-item - com.liferay.taglib.aui.ButtonItemTag - JSP - - ]]> - activeState - false - true - boolean - - - ]]> - boundingBox - false - true - java.lang.String - - - ]]> - classNames - false - true - java.lang.Object - - - ]]> - contentBox - false - true - java.lang.String - - - boundingBox.]]> - cssClass - false - true - java.lang.String - - - ]]> - defaultState - false - true - boolean - - - ]]> - depth - false - true - java.lang.Object - - - ]]> - destroyed - false - true - boolean - - - ]]> - disabled - false - true - boolean - - - ]]> - focused - false - true - boolean - - - {fn: // The function to execute - context: // The context to execute the function in - type: // The type of event to listen for (defaults to "click") - }]]> - handler - false - true - java.lang.Object - - - ]]> - height - false - true - java.lang.Object - - - boundingBox when - visible is set to - false.]]> - hideClass - false - true - java.lang.String - - - ]]> - hoverState - false - true - boolean - - - ]]> - icon - false - true - java.lang.String - - - aui-button-icon.]]> - iconNode - false - true - java.lang.String - - - ]]> - buttonitemId - false - true - java.lang.String - - - ]]> - index - false - true - java.lang.Object - - - ]]> - initialized - false - true - boolean - - - ]]> - label - false - true - java.lang.String - - - aui-button-label.]]> - labelNode - false - true - java.lang.String - - - ]]> - buttonitemParent - false - true - java.lang.Object - - - true the render phase will be autimatically invoked - preventing the .render() manual call.]]> - render - false - true - java.lang.Object - - - ]]> - rendered - false - true - boolean - - - ]]> - root - false - true - java.lang.Object - - - -
0
(Default) Not selected
-
1
Fully selected
-
2
Partially selected
- ]]>
- selected - false - true - java.lang.Object -
- - ]]> - srcNode - false - true - java.lang.String - - - ]]> - strings - false - true - java.lang.Object - - - ]]> - tabIndex - false - true - java.lang.Object - - - ]]> - title - false - true - java.lang.String - - - ]]> - type - false - true - java.lang.String - - - ]]> - useARIA - false - true - boolean - - - ]]> - visible - false - true - boolean - - - ]]> - width - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterActiveStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterBoundingBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterClassNamesChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterContentBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterCssClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDefaultStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDepthChange - false - true - java.lang.Object - - - - Lifecycle event for the destroy phase, - fired prior to destruction. Invoking the preventDefault - method on the event object provided to subscribers will - prevent destruction from proceeding. -

-

- Subscribers to the "after" moment of this event, will be notified - after destruction is complete (and as a result cannot prevent - destruction). -

]]>
- afterDestroy - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDestroyedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterDisabledChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterFocusedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHandlerChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHeightChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHideClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterHoverStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIconChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIconNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIdChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterIndexChange - false - true - java.lang.Object - - - - Lifecycle event for the init phase, fired prior to initialization. - Invoking the preventDefault() method on the event object provided - to subscribers will prevent initialization from occuring. -

-

- Subscribers to the "after" momemt of this event, will be notified - after initialization of the object is complete (and therefore - cannot prevent initialization). -

]]>
- afterInit - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterInitializedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterLabelChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterLabelNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterParentChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterRenderChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterRenderedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterRootChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterSelectedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterSrcNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterStringsChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterTabIndexChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterTitleChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterTypeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterUseARIAChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterVisibleChange - false - true - java.lang.Object - - - ]]> - afterContentUpdate - false - true - java.lang.Object - - - - Subscribers to the "on" moment of this event, will be notified - before the widget is rendered. -

-

- Subscribers to the "after" moment of this event, will be notified - after rendering is complete. -

]]>
- afterRender - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - afterWidthChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onActiveStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onBoundingBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onClassNamesChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onContentBoxChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onCssClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDefaultStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDepthChange - false - true - java.lang.Object - - - - Lifecycle event for the destroy phase, - fired prior to destruction. Invoking the preventDefault - method on the event object provided to subscribers will - prevent destruction from proceeding. -

-

- Subscribers to the "after" moment of this event, will be notified - after destruction is complete (and as a result cannot prevent - destruction). -

]]>
- onDestroy - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDestroyedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onDisabledChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onFocusedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHandlerChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHeightChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHideClassChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onHoverStateChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIconChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIconNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIdChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onIndexChange - false - true - java.lang.Object - - - - Lifecycle event for the init phase, fired prior to initialization. - Invoking the preventDefault() method on the event object provided - to subscribers will prevent initialization from occuring. -

-

- Subscribers to the "after" momemt of this event, will be notified - after initialization of the object is complete (and therefore - cannot prevent initialization). -

]]>
- onInit - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onInitializedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onLabelChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onLabelNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onParentChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onRenderChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onRenderedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onRootChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onSelectedChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onSrcNodeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onStringsChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onTabIndexChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onTitleChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onTypeChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onUseARIAChange - false - true - java.lang.Object - - - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onVisibleChange - false - true - java.lang.Object - - - ]]> - onContentUpdate - false - true - java.lang.Object - - - - Subscribers to the "on" moment of this event, will be notified - before the widget is rendered. -

-

- Subscribers to the "after" moment of this event, will be notified - after rendering is complete. -

]]>
- onRender - false - true - java.lang.Object -
- - on method if you wish to be notified before the attribute's value has changed, or using the after method if you wish to be notified after the attribute's value has changed.]]> - onWidthChange - false - true - java.lang.Object - - true -
- - - a - com.liferay.taglib.aui.ATag - JSP - - <p> tag could be used for something other than a paragraph.]]> - ariaRole - false - true - java.lang.String - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.util.Map - - - - href - true - true - java.lang.String - - - - id - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - - lang - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - self. Possible values are blank, self, parent, top, and a unique frame's name.]]> - target - false - true - java.lang.String - - - - title - false - true - java.lang.String - - true - - - button - com.liferay.taglib.aui.ButtonTag - JSP - - primary attribute.]]> - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - false.]]> - disabled - false - true - boolean - - - - href - false - true - java.lang.String - - - here.]]> - icon - false - true - java.lang.String - - - left.]]> - iconAlign - false - true - java.lang.String - - - - name - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - type attribute is set to submit, this value is set to true. For all other types, the value is set to false by default.]]> - primary - false - true - java.lang.Object - - - button, submit, cancel and reset. The default value is button.]]> - type - false - true - java.lang.String - - - href location when a user clicks the button. The default value is false.]]> - useDialog - false - true - boolean - - - value - false - true - java.lang.String - - true - - - <div> tag to wrap <aui:button> components and offer additional styling.]]> - button-row - com.liferay.taglib.aui.ButtonRowTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - true - - - <aui:row> component.]]> - col - com.liferay.taglib.aui.ColTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - offset - false - true - int - - - offsetWidth - false - true - int - - - 12. For example, a span of 4 would result in a column width 4/12 (or 1/3) of the total width of the containing row.]]> - span - false - true - int - - - span attribute. The width is then converted to a span expressed as ((width/100) x 12), rounded to the nearest whole number. For example, a width of 33 would be converted to 3.96, which would be rounded up to a span value of 4.]]> - width - false - true - int - - true - - - aui:col.]]> - column - com.liferay.taglib.aui.ColumnTag - JSP - - 20 would be 20%. The default value is 0.]]> - columnWidth - false - true - int - - - - cssClass - false - true - java.lang.String - - - false.]]> - first - false - true - boolean - - - - id - false - true - java.lang.String - - - false.]]> - last - false - true - boolean - - true - - - component - com.liferay.taglib.aui.ComponentTag - JSP - - defineVar - false - true - boolean - - - excludeAttributes - false - true - java.lang.String - - - javaScriptAttributes - false - true - java.lang.String - - - module - false - true - java.lang.String - - - name - false - true - java.lang.String - - - options - false - true - java.util.Map - - - scriptPosition - false - true - java.lang.String - - - tagPageContext - true - true - javax.servlet.jsp.JspContext - - - useJavaScript - false - true - java.io.Serializable - - - var - false - true - java.lang.String - - true - - - <div> tag to wrap <aui:row> components and offer additional styling.]]> - container - com.liferay.taglib.aui.ContainerTag - JSP - - - cssClass - false - true - java.lang.String - - - true.]]> - fluid - false - true - boolean - - - - id - false - true - java.lang.String - - true - - - <div> tag to wrap form fields and offer additional styling.]]> - field-wrapper - com.liferay.taglib.aui.FieldWrapperTag - JSP - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - false.]]> - first - false - true - boolean - - - - helpMessage - false - true - java.lang.String - - - false.]]> - inlineField - false - true - boolean - - - right and left.]]> - inlineLabel - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - false.]]> - last - false - true - boolean - - - - name - false - true - java.lang.String - - - - required - false - true - boolean - - - - <div> tag to group related form elements and offer additional styling.]]> - fieldset - com.liferay.taglib.aui.FieldsetTag - JSP - - - column - false - true - boolean - - - - cssClass - false - true - java.lang.String - - - - helpMessage - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - - label - false - true - java.lang.String - - true - - - - form - com.liferay.taglib.aui.FormTag - JSP - - - action - false - true - java.lang.String - - - - cssClass - false - true - java.lang.String - - - true.]]> - escapeXml - false - true - boolean - - - false.]]> - inlineLabels - false - true - boolean - - - post. Possible values are get and post.]]> - method - false - true - java.lang.String - - - fm.]]> - name - false - true - java.lang.String - - - - onSubmit - false - true - java.lang.String - - - - portletNamespace - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - true - - - - icon - com.liferay.taglib.aui.IconTag - JSP - - image attribute.]]> - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.util.Map - - - - id - false - true - java.lang.String - - - icon-edit CSS class by setting the value edit. If an icon image is referenced for cssClass and image, both icons are shown in the component.]]> - image - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - self. Possible values are blank, self, parent, top, and a unique frame's name.]]> - target - false - true - java.lang.String - - - - url - false - true - java.lang.String - - true - - - - input - com.liferay.taglib.aui.InputTag - JSP - - - autoFocus - false - true - boolean - - - - autoSize - false - true - boolean - - - - bean - false - true - java.lang.Object - - - false.]]> - changesContext - false - true - boolean - - - type is radio or checkbox.]]> - checked - false - true - boolean - - - 0.]]> - classPK - false - true - long - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - dateTogglerCheckboxLabel - false - true - java.lang.String - - - - defaultLanguageId - false - true - java.lang.String - - - false.]]> - disabled - false - true - boolean - - - field - false - true - java.lang.String - - - field of the component.]]> - fieldParam - false - true - java.lang.String - - - - first - false - true - boolean - - - - formName - false - true - java.lang.String - - - - helpMessage - false - true - java.lang.String - - - input-group-addon.]]> - helpTextCssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - false.]]> - ignoreRequestValue - false - true - boolean - - - false.]]> - inlineField - false - true - boolean - - - right and left.]]> - inlineLabel - false - true - java.lang.String - - - name attribute's value.]]> - label - false - true - java.lang.String - - - languageId - false - true - java.lang.String - - - - last - false - true - boolean - - - false.]]> - localized - false - true - boolean - - - type is number or range. Note that the max value is inclusive if the input's type is range.]]> - max - false - true - java.lang.Object - - - - model - false - true - java.lang.Class - - - type is number or range. Note that the min value is inclusive if the input's type is range.]]> - min - false - true - java.lang.Object - - - multiple - false - true - boolean - - - - name - true - true - java.lang.String - - - - onChange - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - - placeholder - false - true - java.lang.String - - - - prefix - false - true - java.lang.String - - - - required - false - true - boolean - - - textarea.]]> - resizable - false - true - boolean - - - - showRequiredLabel - false - true - boolean - - - - suffix - false - true - java.lang.String - - - - title - false - true - java.lang.String - - - text, hidden, assetCategories, assetTags, textarea, timeZone, password, checkbox, radio, submit, button, color, email, number, range, resource, url, and an empty value. If an empty value or no value is set, the input's type is obtained automatically from the input component's bean.]]> - type - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - - - value - false - true - java.lang.Object - - - div that wraps the input component.]]> - wrapperCssClass - false - true - java.lang.String - - true - - - - layout - com.liferay.taglib.aui.LayoutTag - JSP - - - cssClass - false - true - java.lang.String - - true - - - - model-context - com.liferay.taglib.aui.ModelContextTag - JSP - - - bean - false - true - java.lang.Object - - - - defaultLanguageId - false - true - java.lang.String - - - - model - false - true - java.lang.Class - - - - <nav:item> components for an <aui:nav-bar> component.]]> - nav - com.liferay.taglib.aui.NavTag - JSP - - - ariaLabel - false - true - java.lang.String - - - <p> tag could be used for something other than a paragraph.]]> - ariaRole - false - true - java.lang.String - - - collapsible - false - true - boolean - - - - cssClass - false - true - java.lang.String - - - icon - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - true - - - - nav-bar - com.liferay.taglib.aui.NavBarTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - true - - - <aui:nav-bar> component.]]> - nav-bar-search - com.liferay.taglib.aui.NavBarSearchTag - JSP - - - cssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - file - false - true - java.lang.String - - - - searchContainer - false - true - com.liferay.portal.kernel.dao.search.SearchContainer - - true - - - <aui:nav> component.]]> - nav-item - com.liferay.taglib.aui.NavItemTag - JSP - - href attribute.]]> - anchorCssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - anchorData - false - true - java.lang.Object - - - href attribute.]]> - anchorId - false - true - java.lang.String - - - - ariaLabel - false - true - java.lang.String - - - <p> tag could be used for something other than a paragraph.]]> - ariaRole - false - true - java.lang.String - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.lang.Object - - - false.]]> - dropdown - false - true - boolean - - - - href - false - true - java.lang.Object - - - - iconCssClass - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - localizeLabel - false - true - boolean - - - false.]]> - selected - false - true - boolean - - - state - false - true - java.lang.String - - - - title - false - true - java.lang.String - - - toggle - false - true - boolean - - - href location when a user clicks the navigation item. The default value is false.]]> - useDialog - false - true - boolean - - - drop-down-menu class. The default value is true.]]> - wrapDropDownMenu - false - true - boolean - - true - - - <aui:select> component.]]> - option - com.liferay.taglib.aui.OptionTag - JSP - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", foo> would render as the attribute data-class-name = foo;.]]> - data - false - true - java.util.Map - - - false.]]> - disabled - false - true - boolean - - - - label - false - true - java.lang.Object - - - false.]]> - selected - false - true - boolean - - - text-align:right;.]]> - style - false - true - java.lang.String - - - useModelValue - false - true - boolean - - - label attribute.]]> - value - false - true - java.lang.Object - - true - - - panel - com.liferay.taglib.aui.PanelTag - JSP - - collapsed - false - true - boolean - - - collapsible - false - true - boolean - - - id - false - true - java.lang.String - - - label - false - true - java.lang.String - - - - <aui:col> components.]]> - row - com.liferay.taglib.aui.RowTag - JSP - - - cssClass - false - true - java.lang.String - - - row-fluid CSS class to the row. The default value is true. If set to false, the row CSS class is assigned.]]> - fluid - false - true - boolean - - - - id - false - true - java.lang.String - - true - - - - script - com.liferay.taglib.aui.ScriptTag - JSP - - - position - false - true - java.lang.String - - - - use - false - true - java.lang.String - - - - <aui:option> components.]]> - select - com.liferay.taglib.aui.SelectTag - JSP - - - bean - false - true - java.lang.Object - - - false.]]> - changesContext - false - true - boolean - - - - cssClass - false - true - java.lang.String - - - HashMap<"class-name", "foo"> would render as the attribute data-class-name = "foo";.]]> - data - false - true - java.util.Map - - - false.]]> - disabled - false - true - boolean - - - false.]]> - first - false - true - boolean - - - - helpMessage - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - ignoreRequestValue - false - true - boolean - - - false.]]> - inlineField - false - true - boolean - - - right and left.]]> - inlineLabel - false - true - java.lang.String - - - - label - false - true - java.lang.String - - - false.]]> - last - false - true - boolean - - - ListTypeImpl.java.]]> - listType - false - true - java.lang.String - - - listTypeFieldName - false - true - java.lang.String - - - true, the select field expands to allow for multiple selections. The default value is false.]]> - multiple - false - true - boolean - - - label attribute and takes the place of the label.]]> - name - true - true - java.lang.String - - - - onChange - false - true - java.lang.String - - - - onClick - false - true - java.lang.String - - - - prefix - false - true - java.lang.String - - - false.]]> - required - false - true - boolean - - - false.]]> - showEmptyOption - false - true - boolean - - - required attribute is set to true. The default value is false.]]> - showRequiredLabel - false - true - boolean - - - - suffix - false - true - java.lang.String - - - - title - false - true - java.lang.String - - - true.]]> - useNamespace - false - true - boolean - - true - - - - spacer - com.liferay.taglib.aui.SpacerTag - JSP - - - - translation-manager - com.liferay.taglib.aui.TranslationManagerTag - JSP - - - availableLocales - false - true - java.util.Locale[] - - - - defaultLanguageId - false - true - java.lang.String - - - editingLanguageId - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - true. If this is set to false, the translation manager will not work entirely.]]> - initialize - false - true - boolean - - - false.]]> - readOnly - false - true - boolean - - - - - validator - com.liferay.taglib.aui.ValidatorTagImpl - JSP - - true.]]> - customValidatorRequired - false - true - boolean - - - - errorMessage - false - true - java.lang.String - - - acceptFiles, alpha, alphanum, date, digits, email, equalTo, iri, max, maxLength, min, minLength, number, required, and url.]]> - name - true - true - java.lang.String - - - - - workflow-status - com.liferay.taglib.aui.WorkflowStatusTag - JSP - - - bean - false - true - java.lang.Object - - - - helpMessage - false - true - java.lang.String - - - - id - false - true - java.lang.String - - - - model - false - true - java.lang.Class - - - true.]]> - showIcon - false - true - boolean - - - true.]]> - showLabel - false - true - boolean - - - 0 (Approved), 1 (Pending), 2 (Draft), 3 (Expired), 4 (Denied), 5 (Inactive), 6 (Incomplete), 7 (Scheduled), and 8 (In-Trash). Any other value defaults to status (Any).]]> - status - false - true - java.lang.Integer - - - - statusMessage - false - true - java.lang.String - - - - version - false - true - java.lang.String - - -
\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld deleted file mode 100644 index 7c046647..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet-ext.tld +++ /dev/null @@ -1,538 +0,0 @@ - - - - - 1.0 - 1.1 - liferay-portlet - http://liferay.com/tld/portlet - - - - - actionURL - com.liferay.taglib.portlet.ActionURLTag - com.liferay.taglib.portlet.ActionURLTei - JSP - - allowEmptyParam - false - true - - - anchor - false - true - - - copyCurrentRenderParameters - false - true - - - doAsGroupId - false - true - - - doAsUserId - false - true - - - encrypt - false - true - - - escapeXml - false - true - - - name - false - true - - - plid - false - true - - - portletConfiguration - false - true - - - portletMode - false - true - - - portletName - false - true - - - refererGroupId - false - true - - - refererPlid - false - true - - - secure - false - true - - - var - false - true - - - varImpl - false - true - - - windowState - false - true - - - - icon-back - com.liferay.taglib.portletext.IconBackTag - JSP - - - icon-close - com.liferay.taglib.portletext.IconCloseTag - JSP - - - icon-configuration - com.liferay.taglib.portletext.IconConfigurationTag - JSP - - - icon-edit - com.liferay.taglib.portletext.IconEditTag - JSP - - - icon-edit-defaults - com.liferay.taglib.portletext.IconEditDefaultsTag - JSP - - - icon-edit-guest - com.liferay.taglib.portletext.IconEditGuestTag - JSP - - - icon-export-import - com.liferay.taglib.portletext.IconExportImportTag - JSP - - - icon-help - com.liferay.taglib.portletext.IconHelpTag - JSP - - - icon-maximize - com.liferay.taglib.portletext.IconMaximizeTag - JSP - - - icon-minimize - com.liferay.taglib.portletext.IconMinimizeTag - JSP - - - icon-options - com.liferay.taglib.portletext.IconOptionsTag - JSP - - - icon-portlet - com.liferay.taglib.portletext.IconPortletTag - JSP - - ariaRole - false - true - - - id - false - true - - - label - false - true - - - portlet - false - true - - - url - false - true - - - - icon-portlet-css - com.liferay.taglib.portletext.IconPortletCssTag - JSP - - - icon-print - com.liferay.taglib.portletext.IconPrintTag - JSP - - - icon-refresh - com.liferay.taglib.portletext.IconRefreshTag - JSP - - - param - com.liferay.taglib.util.ParamTag - empty - - name - true - true - - - value - true - true - - - - preview - com.liferay.taglib.portletext.PreviewTag - JSP - - portletName - true - true - - - queryString - false - true - - - showBorders - false - true - - - width - false - true - - - - - - - renderURL - com.liferay.taglib.portlet.RenderURLTag - com.liferay.taglib.portlet.RenderURLTei - JSP - - allowEmptyParam - false - true - - - anchor - false - true - - - copyCurrentRenderParameters - false - true - - - doAsGroupId - false - true - - - doAsUserId - false - true - - - encrypt - false - true - - - escapeXml - false - true - - - plid - false - true - - - portletConfiguration - false - true - - - portletMode - false - true - - - portletName - false - true - - - refererGroupId - false - true - - - refererPlid - false - true - - - secure - false - true - - - var - false - true - - - varImpl - false - true - - - windowState - false - true - - - - renderURLParams - com.liferay.taglib.portlet.RenderURLParamsTag - JSP - - varImpl - true - true - - - - - - - resourceURL - com.liferay.taglib.portlet.ResourceURLTag - com.liferay.taglib.portlet.ResourceURLTei - JSP - - anchor - false - true - - - copyCurrentRenderParameters - false - true - - - doAsGroupId - false - true - - - doAsUserId - false - true - - - encrypt - false - true - - - escapeXml - false - true - - - id - false - true - - - plid - false - true - - - portletConfiguration - false - true - - - portletMode - false - true - - - portletName - false - true - - - refererGroupId - false - true - - - refererPlid - false - true - - - secure - false - true - - - var - false - true - - - varImpl - false - true - - - windowState - false - true - - - - runtime - com.liferay.taglib.portletext.RuntimeTag - JSP - - defaultPreferences - false - true - - - portletName - true - true - - - queryString - false - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet.tld deleted file mode 100644 index a7cd2fdf..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-portlet.tld +++ /dev/null @@ -1,158 +0,0 @@ - - - - - 1.0 - 1.1 - portlet - http://java.sun.com/portlet - - actionURL - com.liferay.taglib.portlet.ActionURLTag - com.liferay.taglib.portlet.ActionURLTei - JSP - - copyCurrentRenderParameters - false - true - - - escapeXml - false - true - - - name - false - true - - - portletMode - false - true - - - secure - false - true - - - var - false - true - - - windowState - false - true - - - - defineObjects - com.liferay.taglib.portlet.DefineObjectsTag - com.liferay.taglib.portlet.DefineObjectsTei - empty - - - namespace - com.liferay.taglib.portlet.NamespaceTag - empty - - - param - com.liferay.taglib.util.ParamTag - empty - - name - true - true - - - value - true - true - - - - property - com.liferay.taglib.util.PropertyTag - empty - - name - true - true - - - value - true - true - - - - renderURL - com.liferay.taglib.portlet.RenderURLTag - com.liferay.taglib.portlet.RenderURLTei - JSP - - copyCurrentRenderParameters - false - true - - - escapeXml - false - true - - - portletMode - false - true - - - secure - false - true - - - var - false - true - - - windowState - false - true - - - - resourceURL - com.liferay.taglib.portlet.ResourceURLTag - com.liferay.taglib.portlet.ResourceURLTei - JSP - - cacheability - false - true - - - escapeXml - false - true - - - id - false - true - - - secure - false - true - - - var - false - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-security.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-security.tld deleted file mode 100644 index f8e6f6dd..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-security.tld +++ /dev/null @@ -1,106 +0,0 @@ - - - - - 1.0 - 1.1 - liferay-security - http://liferay.com/tld/security - - doAsURL - com.liferay.taglib.security.DoAsURLTag - com.liferay.taglib.security.DoAsURLTei - JSP - - doAsUserId - false - true - - - var - false - true - - - - encrypt - com.liferay.taglib.security.EncryptTag - JSP - - className - false - true - - - protocol - true - true - - - style - false - true - - - target - false - true - - - unencryptedParams - false - true - - - url - true - true - - - - permissionsURL - com.liferay.taglib.security.PermissionsURLTag - com.liferay.taglib.security.PermissionsURLTei - JSP - - modelResource - true - true - - - modelResourceDescription - true - true - - - redirect - false - true - - - resourceGroupId - false - true - - - resourcePrimKey - true - true - - - roleTypes - false - true - - - var - false - true - - - windowState - false - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-theme.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-theme.tld deleted file mode 100644 index 90ac81db..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-theme.tld +++ /dev/null @@ -1,65 +0,0 @@ - - - - - 1.0 - 1.1 - theme - http://liferay.com/tld/theme - - defineObjects - com.liferay.taglib.theme.DefineObjectsTag - com.liferay.taglib.theme.DefineObjectsTei - empty - - - include - com.liferay.taglib.theme.IncludeTag - JSP - - page - true - true - - - - layout-icon - com.liferay.taglib.theme.LayoutIconTag - JSP - - layout - true - true - - - - meta-tags - com.liferay.taglib.theme.MetaTagsTag - JSP - - - param - com.liferay.taglib.util.ParamTag - JSP - - name - true - true - - - value - true - true - - - - wrap-portlet - com.liferay.taglib.theme.WrapPortletTag - JSP - - page - true - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-ui.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-ui.tld deleted file mode 100644 index a9a746a8..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-ui.tld +++ /dev/null @@ -1,4691 +0,0 @@ - - - - Provides the Liferay UI component tags, prefixed with liferay-ui:]]>. - 1.0 - liferay-ui - http://liferay.com/tld/ui - - app-view-display-style - com.liferay.taglib.ui.AppViewDisplayStyleTag - empty - - displayStyle - true - true - - - displayStyles - true - true - - - requestParams - true - true - - - - Creates a component for displaying entry items such as images, documents, folders, etc. in a concise but informative manner. Items are displayed in a similar fashion to entries in the file system of most operating systems. - app-view-entry - com.liferay.taglib.ui.AppViewEntryTag - empty - - The path to an action JSP page. - actionJsp - false - true - - - The Java class name for any categories added to the entry. - assetCategoryClassName - false - true - - - The Java class primary key for any categories added to the entry. This is a Java long]]>. - assetCategoryClassPK - false - true - - - The Java class name for any tags added to the entry. - assetTagClassName - false - true - - - The Java class primary key for any tags added to the entry. This is a Java long]]>. - assetTagClassPK - false - true - - - The name of the entry's author. - author - false - true - - - The date the entry was created. - createDate - false - true - - - A CSS class for styling this component. - cssClass - false - true - - - Miscellaneous data to be stored via a map. This data is not shared with the browser. The map holds key value pairs of type <String, Object>]]>. - data - false - true - java.util.Map - - - A description of the entry. - description - false - true - - - A date to display the entry. - displayDate - false - true - - - A display style for the component. Options are list]]>, icon]]>, and descriptive]]>. - displayStyle - true - true - - - A date for the entry to expire and be automatically deleted. - expirationDate - false - true - - - Whether the entry is a folder. The default is false]]>. - folder - false - true - boolean - - - The group ID of the entry. This is a Java long]]>. - groupId - false - true - - - The version number of the most recently published copy of the entry. - latestApprovedVersion - false - true - - - The author of the most recently published version of the entry. - latestApprovedVersionAuthor - false - true - - - Whether the entry is locked. The default value is false]]>. - locked - false - true - boolean - - - The date of the most recent modification to the entry. - modifiedDate - false - true - - - The date the entry was reviewed. - reviewDate - false - true - - - A checkbox input ID to be used for the entry row checker. - rowCheckerId - false - true - - - A name for the entry row checker. - rowCheckerName - false - true - - - Whether to show a shortcut icon link to the entry. The default value is false]]>. - shortcut - false - true - boolean - - - Whether the entry is selectable. An actual checkbox is used when the display style is icon]]> or descriptive]]>. The default value is false]]>. - showCheckbox - true - true - boolean - - - Whether to show the link title. The default value is true]]>. - showLinkTitle - false - true - boolean - - - The current status of the entry, as represented by an integer. Options are -1: STATUS_ANY]]>, 0: STATUS_APPROVED]]>, 1: ACTION_PUBLISH]]>, 2: STATUS_DRAFT]]>, and 4: STATUS_DENIED]]>. The default value is -1]]>. - status - false - true - int - - - A CSS style to be applied to the div containing the thumbnail for the entry. - thumbnailDivStyle - false - true - - - The source URL for an entry thumbnail image. - thumbnailSrc - true - true - - - A CSS style to be applied to the thumbnail for the entry. - thumbnailStyle - false - true - - - A title for the entry. - title - true - true - - - The current version of the entry. - version - false - true - - - A URL to view the full entry. - url - false - true - - - - Creates a navigation list item component for navigating app view entries. - app-view-navigation-entry - com.liferay.taglib.ui.AppViewNavigationEntryTag - empty - - The path for an action JSP page. - actionJsp - false - true - - - A CSS class for styling this component. - cssClass - false - true - - - Data to be applied to the component link and stored via a map. This data is not shared with the browser. The map holds key value pairs of type <String, Object>]]>. - dataView - false - true - java.util.Map - - - A title for the component. - entryTitle - true - true - - - A CSS class for setting the icon of the component. - iconImage - false - true - - - iconSrc - false - true - - - Whether the entry is selected. - selected - false - true - boolean - - - A URL to view the entry. - viewURL - true - true - - - - Creates a toolbar for viewing items in app view. - app-view-toolbar - com.liferay.taglib.ui.AppViewToolbarTag - JSP - - Whether to include the option to choose a display style for component items. If the value is true]]>, a list of display style options is rendered. The default value is false]]>. - includeDisplayStyle - false - true - boolean - - - Whether to include an option to select all component items. The default value is false]]>. - includeSelectAll - false - true - boolean - - - The file path for a search JSP page. - searchJsp - false - true - - - - Creates a component for displaying search results of entries in app view. - app-view-search-entry - com.liferay.taglib.ui.AppViewSearchEntryTag - empty - - The file path for an action JSP page. - actionJsp - false - true - - - containerIcon - false - true - - - The name of the container that the entry is in, such as the name of a folder. - containerName - false - true - - - containerSrc - false - true - - - The type of container the entry is in, such as Folder]]>. - containerType - false - true - - - A CSS class for styling this component. - cssClass - false - true - - - A description of the entry. - description - true - true - - - A list of objects containing information such as content, user ID, and titles of the entry file attachments. - fileEntryTuples - false - true - - - Whether the entry is locked. The default value is false]]>. - locked - false - true - boolean - - - A list of objects containing information such as content, author, and status of entry messages. An example would be a comment made by one user on another user's blog post. - mbMessages - false - true - - - Query terms of the search. - queryTerms - true - true - - - A checkbox input ID to be used for the entry row checker. This is a Java long]]>. - rowCheckerId - false - true - - - A name to be used for the entry row checker. - rowCheckerName - false - true - - - Whether the entry is selectable via a checkbox. The default value is true]]>. - showCheckbox - false - true - boolean - - - The current status of the entry as represented by an integer. Options are -1: STATUS_ANY]]>, 0: STATUS_APPROVED]]>, 1: ACTION_PUBLISH]]>, 2: STATUS_DRAFT]]>, and 4: STATUS_DENIED]]>. - status - false - true - - - The URL for an entry thumbnail image. - thumbnailSrc - false - true - - - A title for the entry. - title - true - true - - - A URL used to view the full entry. - url - true - true - - - The current and past versions of the entry. - versions - false - true - - - - asset-categories-error - com.liferay.taglib.ui.AssetCategoriesErrorTag - JSP - - - asset-categories-navigation - com.liferay.taglib.ui.AssetCategoriesNavigationTag - JSP - - hidePortletWhenEmpty - false - true - - - vocabularyIds - false - true - - - - asset-categories-selector - com.liferay.taglib.ui.AssetCategoriesSelectorTag - JSP - - className - false - true - - - classPK - false - true - - - contentCallback - false - true - - - curCategoryIds - false - true - - - groupIds - false - true - - - hiddenInput - false - true - - - ignoreRequestValue - false - true - - - - asset-categories-summary - com.liferay.taglib.ui.AssetCategoriesSummaryTag - JSP - - className - true - true - - - classPK - true - true - - - message - false - true - - - portletURL - false - true - - - - asset-links - com.liferay.taglib.ui.AssetLinksTag - JSP - - assetEntryId - false - true - - - className - false - true - - - classPK - false - true - - - - Creates a liferay-ui:error]]> component to display tag-related error messages. - asset-tags-error - com.liferay.taglib.ui.AssetTagsErrorTag - JSP - - - asset-tags-navigation - com.liferay.taglib.ui.AssetTagsNavigationTag - JSP - - classNameId - false - true - - - displayStyle - false - true - - - hidePortletWhenEmpty - false - true - - - maxAssetTags - false - true - - - showAssetCount - false - true - - - showZeroAssetCount - false - true - - - - Creates a Liferay.AssetTagsSelector]]> component to create and select tags to add to an asset, such as a blog entry, bookmark, or wiki page. - asset-tags-selector - com.liferay.taglib.ui.AssetTagsSelectorTag - JSP - - Whether to automatically focus the tag input field. The default value is false]]>. - autoFocus - false - true - boolean - - - The Java class of the asset. - className - false - true - - - The Java class primary key of an asset to associate with the tags. This is a Java long]]>. - classPK - false - true - - - A function to get tag suggestions based on the asset's content. - contentCallback - false - true - - - The current selected tags. - curTags - false - true - - - The group IDs of the asset tags. - groupIds - false - true - - - The name of the hidden input for passing in the asset's current tags. - hiddenInput - false - true - - - An ID for the component instance. - id - false - true - - - ignoreRequestValue - false - true - - - - Creates a component to display all the tags associated with an asset, such as a blog entry, wiki page, or message boards message. - asset-tags-summary - com.liferay.taglib.ui.AssetTagsSummaryTag - JSP - - An array of the asset tag names. - assetTagNames - false - true - - - The Java class of the asset. - className - true - true - - - The Java class primary key of an asset. This is a Java long]]>. - classPK - true - true - - - A message to display before the tag labels. A standard example is tags]]>, which renders as Tags:]]>. - message - false - true - - - The URL of a portlet to display the tags. - portletURL - false - true - - - - breadcrumb - com.liferay.taglib.ui.BreadcrumbTag - JSP - - displayStyle - false - true - - - portletURL - false - true - - - selLayout - false - true - - - selLayoutParam - false - true - - - showCurrentGroup - false - true - - - showCurrentPortlet - false - true - - - showGuestGroup - false - true - - - showLayout - false - true - - - showParentGroups - false - true - - - showPortletBreadcrumb - false - true - - - - Creates a calendar with configurable events. - calendar - com.liferay.taglib.ui.CalendarTag - JSP - - A given set of integers, corresponding to a day of the chosen month, and to mark with a dot. - data - false - true - java.util.Set - - - A day of the month to highlight in the calendar. - day - false - true - int - - - A format for the header. - headerFormat - false - true - java.text.Format - - - A pattern for the calendar header. A possible value is MMM/dd/yyyy]]>. - headerPattern - false - true - - - A month of the year to display at the top of the calendar. - month - true - true - int - - - Whether to display up to six calendar weeks relative to the set day. If the set day of the month is in the latter part of the month, the current month's weeks will be displayed and up to two weeks of the next month will be displayed. The default value is false]]>. - showAllPotentialWeeks - false - true - boolean - - - A year to display at the top of the calendar. - year - true - true - int - - - - Creates an image CAPTCHA with a corresponding verification input. - captcha - com.liferay.taglib.ui.CaptchaTag - JSP - - The source URL for the image CAPTCHA. - url - true - true - - - - categorization-filter - com.liferay.taglib.ui.CategorizationFilterTag - JSP - - assetType - false - true - - - portletURL - false - true - - - - custom-attribute - com.liferay.taglib.ui.CustomAttributeTag - JSP - - className - true - true - - - classPK - true - true - - - editable - false - true - - - label - false - true - - - name - true - true - - - - custom-attribute-list - com.liferay.taglib.ui.CustomAttributeListTag - JSP - - className - true - true - - - classPK - true - true - - - editable - false - true - - - ignoreAttributeNames - false - true - - - label - false - true - - - - custom-attributes-available - com.liferay.taglib.ui.CustomAttributesAvailableTag - JSP - - className - true - true - - - classPK - false - true - - - companyId - false - true - - - ignoreAttributeNames - false - true - - - editable - false - true - - - - ddm-template-selector - com.liferay.taglib.ui.DDMTemplateSelectorTag - JSP - - classNameId - true - true - - - displayStyle - true - true - - - displayStyleGroupId - true - true - - - displayStyles - false - true - - - icon - false - true - - - label - false - true - - - refreshURL - false - true - - - showEmptyOption - false - true - - - - diff - com.liferay.taglib.ui.DiffTag - JSP - - diffResults - true - true - - - sourceName - true - true - - - targetName - true - true - - - - diff-html - com.liferay.taglib.ui.DiffHtmlTag - JSP - - diffHtmlResults - true - true - - - - discussion - com.liferay.taglib.ui.DiscussionTag - JSP - - assetEntryVisible - false - true - - - className - true - true - - - classPK - true - true - - - formAction - true - true - - - formName - false - true - - - hideControls - false - true - - - permissionClassName - false - true - - - permissionClassPK - false - true - - - ratingsEnabled - false - true - - - redirect - false - true - - - Deprecated as of 6.2.0, with no direct replacement - subject - false - true - - - userId - true - true - - - - Creates an error message to display to the user. - error - com.liferay.taglib.ui.ErrorTag - com.liferay.taglib.ui.ErrorTei - JSP - - A class for the exception. - exception - false - true - - - The name of a field on which to focus the error message. - focusField - false - true - - - A key to place in the SessionErrors]]> object to trigger the error message. - key - false - true - - - Explicit message text or a language key name from which to derive text for the message. - message - false - true - - - rowBreak - false - true - - - Whether to translate the message into the user's language. The default value is true]]>. - translateMessage - false - true - boolean - - - - error-marker - com.liferay.taglib.ui.ErrorMarkerTag - JSP - - key - false - true - - - value - false - true - - - - Creates a flag icon that lets users report inappropriate content. - flags - com.liferay.taglib.ui.FlagsTag - JSP - - The flagged asset's Java class name. - className - true - true - - - The flagged asset's entry ID. - classPK - true - true - - - The flagged asset's title. - contentTitle - true - true - - - Whether to show message text as a label next to the flag icon or as a tooltip. The default value is true]]>. - label - false - true - boolean - - - Text to display next to the flag icon. The default text is Flag]]>. - message - false - true - - - The user ID of the user who flagged the asset. - reportedUserId - true - true - - - - flash - com.liferay.taglib.ui.FlashTag - JSP - - align - false - true - - - allowFullScreen - false - true - - - allowScriptAccess - false - true - - - base - false - true - - - bgcolor - false - true - - - devicefont - false - true - - - flashvars - false - true - - - height - false - true - - - id - false - true - - - loop - false - true - - - menu - false - true - - - movie - true - true - - - play - false - true - - - quality - false - true - - - salign - false - true - - - scale - false - true - - - swliveconnect - false - true - - - version - false - true - - - width - false - true - - - wmode - false - true - - - - Creates a navigable form for multiple section forms. It's default navigation is a side navigation box with links to each section. But the navigation can be configured as a progressive step navigation positioned above the form or as vertically stacked accordion style sections that expand when clicked. - form-navigator - com.liferay.taglib.ui.FormNavigatorTag - JSP - - A URL for the form's cancel button. - backURL - false - true - - - The name of each category in the form. - categoryNames - true - true - - - The name of each section within a category. - categorySections - true - true - - - A type of navigation to be used. Options are steps]]> and panel]]>. The default display style is side navigation. - displayStyle - false - true - - - A name for the form. - formName - false - true - - - HTML to append to the navigator. Examples include alternate form buttons, form instructions, or information about the form. - htmlBottom - false - true - - - HTML to prepend to the navigator. - htmlTop - false - true - - - A path to the formSection.jsp]]> file's folder /path/to/jsp/folder/]]>. - jspPath - false - true - - - Whether to show the Submit]]> and Cancel]]> buttons. The default value is true]]>. - showButtons - false - true - boolean - - - - group-search - com.liferay.taglib.ui.GroupSearchTag - JSP - - groupParams - true - true - - - portletURL - true - true - - - rowChecker - false - true - - - - Creates a header that displays its text above a horizontal rule accompanied by a configurable back URL button. - header - com.liferay.taglib.ui.HeaderTag - JSP - - Text to display on mouse over of the back URL. The default value is Back]]>. - backLabel - false - true - - - A URL for navigating back to. - backURL - false - true - - - A CSS class for styling the header component. - cssClass - false - true - - - Whether to escape the header's XML tags. The default value is true]]>. - escapeXml - false - true - boolean - - - Whether to translate the header's title]]> into the localized language. The default value is true]]>. - localizeTitle - false - true - boolean - - - Whether to display the back URL. The default value is true]]>. - showBackURL - false - true - boolean - - - A title to display as the header text. - title - true - true - - - - Creates a fully configurable icon that provides access to current Liferay theme icons. - icon - com.liferay.taglib.ui.IconTag - JSP - - A value for the alt]]> attribute of the embedded img]]> tag. - alt - false - true - - - A role for assistive technologies to interpret for HTML elements that have been used for something other than their intended purpose. For example, the <p>]]> tag could be used for something other than a paragraph. - ariaRole - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - Miscellaneous data to be stored via a map. This data is not shared with the browser. The map holds key value pairs of type <String, Object>]]>. - data - false - true - java.util.Map - - - An icon from a Bootstrap icon CSS Class. Note that any image for the image]]> attribute takes precedence. Icon CSS classes to specify for this attribute can be found at http://marcoceppi.github.io/bootstrap-glyphicons/]]>. - iconCssClass - false - true - - - An ID for the component instance. - id - false - true - - - An image for the icon, from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. This image takes precedence over any icon value set via the iconCssClass]]> attribute. - image - false - true - - - An icon to display on mouse over of the component. The icon image comes from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. - imageHover - false - true - - - Whether to display the message]]> attribute's value as the icon's label. - label - false - true - boolean - - - A language to associate with the icon, to assist search engines and web browsers in finding and rendering the icon appropriately. - lang - false - true - - - A CSS class for styling the icon's URL. - linkCssClass - false - true - - - Whether to translate the icon's message]]> into the user's language. - localizeMessage - false - true - boolean - - - Text to be displayed for the icon on mouse over. - message - false - true - - - An HTTP request method. Possible values are get]]> and post]]>. - method - false - true - - - A function to be called on a user clicking the icon. - onClick - false - true - - - The location of an image file to use in the icon. - src - false - true - - - The location of an image file to use on mouse over of the icon. This value takes precedence over the imageHover]]> attribute. This image takes precedence over icons set with the imageHover]]> attribute. - srcHover - false - true - - - A target window in which to open the URL. The default value is self]]>. Possible values are blank]]>, self]]>, parent]]>, top]]>, and a unique frame's name. - target - false - true - - - Whether to use a tooltip. The default value is true]]>. - toolTip - false - true - boolean - - - A URL to navigate to when the icon is clicked. - url - false - true - - - Whether to open the URL in a dialog window. The default value is false]]>. - useDialog - false - true - boolean - - - - Creates an icon to associate with deactivating an item. - icon-deactivate - com.liferay.taglib.ui.IconDeactivateTag - JSP - - Whether to display a message on the icon's label on mouse over of the icon. The default value is false]]>. - label - false - true - boolean - - - A URL navigated to when the icon is clicked. - url - true - true - - - - Creates a configurable icon to associate with deleting or removing an item. - icon-delete - com.liferay.taglib.ui.IconDeleteTag - JSP - - Text to use in place of the text from the default deletion confirmation message language key are-you-sure-you-want-to-delete-this]]>. If the trash]]> attribute is set to true]]>, no confirmation message is shown. - confirmation - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - An ID for the component instance. - id - false - true - - - An image for the icon, from the current theme. The value can be the filename prefix of any image file in the theme's common]]> image folder. The image takes precedence over any default icon images. - image - false - true - - - Whether to display the message]]> attribute's value as the icon's label. The default value is false]]>. - label - false - true - boolean - - - Text to display on mouse over of the icon. - message - false - true - - - An HTTP request method to invoke. Possible values are get]]> and post]]>. - method - false - true - - - Whether to use the trash icon instead of the remove icon. The default value isfalse]]>. - trash - false - true - boolean - - - A URL navigated to when the icon is clicked. - url - true - true - - - - Creates a help icon that displays a custom message as a tooltip on mouse over of the help icon. - icon-help - com.liferay.taglib.ui.IconHelpTag - JSP - - Text to be displayed on mouse over of the icon. - message - true - true - - - - Creates a list of icons from a list of child components. - icon-list - com.liferay.taglib.ui.IconListTag - JSP - - Whether to render the icon list when there is only one child component. The default value is false]]>. - showWhenSingleIcon - false - true - boolean - - - - Creates an icon menu from a list of child components. - icon-menu - com.liferay.taglib.ui.IconMenuTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - A position from which to pop up the icon menu dialog in relation to the trigger. The default direction is left]]>. Possible values are up]]>, down]]>, left]]> or right]]>. - direction - false - true - - - Whether to disable the icon menu. - disabled - false - true - boolean - - - Whether to extend the icon menu trigger by wrapping it in a button. The default value is true]]>. - extended - false - true - boolean - - - The location of an image file to use in the icon. - icon - false - true - - - An ID for the component instance. - id - false - true - - - Whether to translate the message to the user's language. The default value is true]]>. - localizeMessage - false - true - boolean - - - The number of items to show in the icon menu before scrolling. The default value is 15. - maxDisplayItems - false - true - int - - - Text to display next to the icon menu trigger. The default value is actions]]>. - message - false - true - - - Whether to add the select]]> CSS class to the icon menu. If set to true]]>, the selected icon is added to the icon menu's trigger when the icon is selected. The default value is false]]>. - select - false - true - boolean - - - Whether to extend the icon menu by default. The default value is false]]>. - showExpanded - false - true - boolean - - - Whether to show an arrow, indicating a popup dialog, next to the icon menu's trigger icon. The default value is true]]>. - showArrow - false - true - boolean - - - Whether to show the icon menu when there is only one icon. The default value is false]]>. - showWhenSingleIcon - false - true - boolean - - - A CSS class for styling the trigger for the icon menu. The default value is btn btn-default]]>. - triggerCssClass - false - true - - - Whether the icon menu drop-down caret points to the direction set by the direction]]> attribute. - useIconCaret - false - true - boolean - - - - input-asset-links - com.liferay.taglib.ui.InputAssetLinksTag - JSP - - assetEntryId - false - true - - - className - false - true - - - classPK - false - true - - - - Creates a configurable input checkbox. - input-checkbox - com.liferay.taglib.ui.InputCheckBoxTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - Whether the checkbox is selected by default. - defaultValue - false - true - boolean - - - Whether the checkbox is disabled. - disabled - false - true - boolean - - - A name for the checkbox's form. - formName - false - true - - - An ID for the component instance. - id - false - true - - - A function to be called on a user clicking the checkbox. - onClick - false - true - - - A variable name for the component. - param - true - true - - - - Creates a date input field that displays a calendar for date selection. - input-date - com.liferay.taglib.ui.InputDateTag - JSP - - Whether the date field gets focus by default. The default value is false]]>. - autoFocus - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - A variable name to refer to the day of the component. - dayParam - false - true - - - A day value to display in the input field. - dayValue - false - true - int - - - Whether to disable the namespace for the component. The default value is false]]>. - disableNamespace - false - true - boolean - - - Whether to disable the input field. The default value is false]]>. - disabled - false - true - boolean - - - A day to set as the first day of the week. The default value is Calendar.SUNDAY - 2]]>. - firstDayOfWeek - false - true - int - - - A name for the date input's form. - formName - false - true - - - A variable name to refer to the combined month and year of the component. - monthAndYearParam - false - true - - - A variable name to refer to the month of the component. - monthParam - false - true - - - The numerical value for a month to display in the input field. Integer values for the month start with 0]]>. - monthValue - false - true - int - - - A name for the date input. - name - false - true - - - Whether the component's values can be set to null. - nullable - false - true - - - A variable name to refer to the year of the component. - yearParam - false - true - - - A year value to display in the input field. - yearValue - false - true - int - - - - Creates an input field for editing rich text. - input-editor - com.liferay.taglib.ui.InputEditorTag - JSP - - A map of configuration parameters. The map holds key value pairs of type <String, String>]]>. - configParams - false - true - java.util.Map - - - The ID of a language for the input editor's text. - contentsLanguageId - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - editorImpl - false - true - - - inlineEdit - false - true - - - inlineEditSaveURL - false - true - - - A map of configuration parameters. The map holds key value pairs of <String, String>]]>. - fileBrowserParams - false - true - java.util.Map - - - height - false - true - - - initMethod - false - true - - - A name for the input editor. The default value is editor]]>. - name - false - true - - - A function to be called when the input editor loses focus. - onBlurMethod - false - true - - - A function to be called on a change in the input editor. - onChangeMethod - false - true - - - A function to be called when the input editor gets focus. - onFocusMethod - false - true - - - Whether the field for the input editor is resizable. The default value is true]]>. - resizable - false - true - boolean - - - Whether to skip loading resources necessary for the CKEditor. The default value is false]]>. - skipEditorLoading - false - true - boolean - - - A toolbar for the input editor. The default value is liferay]]>. Possible values are bbcode]]>, creole]]>, editInPlace]]>, email]]>, liferay]]>, liferayArticle]]>, phone]]>, simple]]>, and tablet]]>. - toolbarSet - false - true - - - width - false - true - - - - input-field - com.liferay.taglib.ui.InputFieldTag - JSP - - autoFocus - false - true - - - autoSize - false - true - - - bean - false - true - - - cssClass - false - true - - - dateTogglerCheckboxLabel - false - true - - - defaultLanguageId - false - true - - - defaultValue - false - true - - - disabled - false - true - - - field - true - true - - - fieldParam - false - true - - - formName - false - true - - - format - false - true - - - id - false - true - - - ignoreRequestValue - false - true - - - languageId - false - true - - - model - true - true - - - placeholder - false - true - - - - input-localized - com.liferay.taglib.ui.InputLocalizedTag - JSP - - autoFocus - false - true - - - autoSize - false - true - - - availableLocales - false - true - - - cssClass - false - true - - - defaultLanguageId - false - true - - - disabled - false - true - - - displayWidth - false - true - - - formName - false - true - - - id - false - true - - - ignoreRequestValue - false - true - - - languageId - false - true - - - maxLength - false - true - - - name - true - true - - - type - false - true - - - xml - true - true - - true - - - Creates an input move boxes component comprised of two columns of key value pairs that can be rearranged. - input-move-boxes - com.liferay.taglib.ui.InputMoveBoxesTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - A name for the left box. - leftBoxName - true - true - - - A list of key value pairs for the left box. - leftList - true - true - java.util.List - - - A function to be called on a change in selection in the left list. - leftOnChange - false - true - - - Whether the left list can be reordered. The default value is false]]>. - leftReorder - false - true - boolean - - - A title to display at the top of the right box. - leftTitle - true - true - - - A name for the right box. - rightBoxName - true - true - - - A list of key value pairs for the right box. - rightList - true - true - java.util.List - - - A function to be called on a change in selection in the right list. - rightOnChange - false - true - - - Whether the right list can be reordered. The default value is false]]>. - rightReorder - false - true - boolean - - - A title to display at the top of the right box. - rightTitle - true - true - - - - input-permissions - com.liferay.taglib.ui.InputPermissionsTag - JSP - - formName - false - true - - - modelName - false - true - - - - input-permissions-params - com.liferay.taglib.ui.InputPermissionsParamsTag - JSP - - modelName - true - true - - - - input-repeat - com.liferay.taglib.ui.InputRepeatTag - JSP - - cssClass - false - true - - - event - false - true - - - - input-resource - com.liferay.taglib.ui.InputResourceTag - JSP - - cssClass - false - true - - - id - false - true - - - title - false - true - - - url - true - true - - - - input-scheduler - com.liferay.taglib.ui.InputSchedulerTag - JSP - - - Creates a configurable search box. - input-search - com.liferay.taglib.ui.InputSearchTag - JSP - - Whether the search field gets focus by default. The default value is false]]>. - autoFocus - false - true - boolean - - - A text value for the search button's label. The default value is Search]]>. - buttonLabel - false - true - - - A CSS class for styling the component. - cssClass - false - true - - - An ID for the component instance. The default value is displayTerms.KEYWORDS]]>. - id - false - true - - - A name for the search box. The default value is displayTerms.KEYWORDS]]>. - name - false - true - - - Placeholder text for the search field. The default value is the value of the buttonLabel]]> attribute. - placeholder - false - true - - - Whether to show the search button. The default value is true]]>. - showButton - false - true - boolean - - - A title for the search box. - title - false - true - - - Whether to use a namespace with the search button. The default value is true]]>. - useNamespace - false - true - boolean - - - - Creates a select input component with yes or no options. - input-select - com.liferay.taglib.ui.InputSelectTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - Whether to select yes]]> as the input's default value. - defaultValue - false - true - boolean - - - Whether to disable input. - disabled - false - true - boolean - - - A name for the input select's form. - formName - false - true - - - A variable name for the component. - param - true - true - - - - Creates a configurable text area input field. - input-textarea - com.liferay.taglib.ui.InputTextAreaTag - JSP - - A CSS class for styling the component. - cssClass - false - true - - - Text to display in the text area. - defaultValue - false - true - - - Whether to disable input. The default value is false]]>. - disabled - false - true - boolean - - - A variable name for the component. - param - true - true - - - - Creates a time input field that provides a scrollable dropdown list of hours, in intervals designated by the minuteInterval]]> attribute. - input-time - com.liferay.taglib.ui.InputTimeTag - JSP - - The name of the AM/PM parameter for the time input. An acceptable value is ampm]]>. - amPmParam - true - true - - - A time to AM or PM. Acceptable values are 0]]> for AM and 1]]> for PM. The default value is 0]]>. - amPmValue - false - true - int - - - A CSS class for styling the time input. - cssClass - false - true - - - A date parameter for the time input. An acceptable value is date]]>. - dateParam - false - true - - - A date to associate with the time displayed. - dateValue - false - true - java.util.Date - - - Whether the input field is disabled. - disabled - false - true - boolean - - - The name of the hour parameter for the component. An acceptable value is hour]]>. - hourParam - true - true - - - An hour value for the time displayed. The default value is 12]]>. - hourValue - false - true - int - - - A minute interval displayed in the input. The default value is 30]]>. - minuteInterval - false - true - int - - - The name of the minute parameter for the component. An acceptable value is minute]]>. - minuteParam - true - true - - - A minute value for the time displayed. The default value is 00]]>. - minuteValue - false - true - int - - - A name for the time input. - name - false - true - - - - Creates a configurable timezone drop-down menu. - input-time-zone - com.liferay.taglib.ui.InputTimeZoneTag - JSP - - Whether the field gets focus by default. - autoFocus - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - Whether to consider daylight savings for the times. The default value is true]]>. - daylight - false - true - boolean - - - Whether the field is disabled. - disabled - false - true - boolean - - - A style number corresponding to the time zone. A value of 0]]> displays the time zone's abbreviated name and a value of 1]]> displays its full name, e.g. "Pacific Standard Time." The default value is 0]]>. - displayStyle - false - true - int - - - A name for the component. - name - true - true - - - Whether the times can be null. - nullable - false - true - boolean - - - The ID of a time zone to associate with the component. For example, setting the value to PST]]> associates the component with the Pacific Standard Time zone. - value - false - true - - - - journal-article - com.liferay.taglib.ui.JournalArticleTag - JSP - - articleId - false - true - - - articlePage - false - true - - - articleResourcePrimKey - false - true - - - groupId - false - true - - - languageId - false - true - - - showAvailableLocales - false - true - - - showTitle - false - true - - - templateId - false - true - - - xmlRequest - false - true - - - - journal-content-search - com.liferay.taglib.ui.JournalContentSearchTag - JSP - - showListed - false - true - - - targetPortletId - false - true - - - type - false - true - - - - language - com.liferay.taglib.ui.LanguageTag - JSP - - displayCurrentLocale - false - true - - - displayStyle - false - true - - - formAction - false - true - - - formName - false - true - - - languageId - false - true - - - languageIds - false - true - - - name - false - true - - - - logo-selector - com.liferay.taglib.ui.LogoSelectorTag - JSP - - currentLogoURL - false - true - - - defaultLogoURL - false - true - - - editLogoURL - false - true - - - imageId - false - true - - - logoDisplaySelector - false - true - - - showBackground - false - true - - - - membership-policy-error - com.liferay.taglib.ui.MembershipPolicyErrorTag - JSP - - - Creates a message to display to the user. - message - com.liferay.taglib.ui.MessageTag - JSP - - Arguments for the language key, if the language key is configured to recieve arguments. - arguments - false - true - - - The name of a language key from which to derive the message to be displayed. - key - true - true - - - Whether to translate the language key value into the user's language. The default value is true]]>. - localizeKey - false - true - boolean - - - Whether to translate the arguments into the user's language. The default value is true]]>. - translateArguments - false - true - boolean - - - unicode - false - true - boolean - - - - my-sites - com.liferay.taglib.ui.MySitesTag - JSP - - classNames - false - true - - - cssClass - false - true - - - includeControlPanel - false - true - - - max - false - true - - - - navigation - com.liferay.taglib.ui.NavigationTag - JSP - - bulletStyle - false - true - - - displayStyle - false - true - - - headerType - false - true - - - includedLayouts - false - true - - - nestedChildren - false - true - - - preview - false - true - - - rootLayoutLevel - false - true - - - rootLayoutType - false - true - - - - Creates a page iterator for paginating through lists of items. - page-iterator - com.liferay.taglib.ui.PageIteratorTag - JSP - - Which page of items to display (e.g., first, second, third, etc.). - cur - true - true - int - - - A variable name to refer to the cur]]> value of the component. - curParam - true - true - - - The number of items to display per page. - delta - false - true - int - - - Whether the user can choose the number of items displayed per page. The default value is false]]>. - deltaConfigurable - false - true - boolean - - - A variable name to refer to the delta value of the component. - deltaParam - false - true - - - A name for the form. - formName - false - true - - - An ID for the component instance. - id - false - true - - - JavaScript to be called when the first]]>, previous]]>, next]]>, or last]]> links are clicked if the URL property is not set. - jsCall - false - true - - - A maximum number of pages to iterate through. - maxPages - false - true - int - - - A target for the first]]>, previous]]>, next]]>, and last]]> link buttons. - target - false - true - - - The total number of items in the iterator. - total - true - true - int - - - A type of iterator to display. Options are approximate]]>, article]]>, more]]>, and regular]]>. - type - false - true - - - A base URL for the iterator. Parameters are added to and removed from this URL as the user navigates through pages. - url - false - true - - - - Creates a collapsible panel for housing content. - panel - com.liferay.taglib.ui.PanelTag - JSP - - Whether the panel can be collapsed. The default value is true]]>. - collapsible - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - A default state for the component. Possible values are open]]> and any string other than open. Any string other than open]]> collapses the panel. The default value is open]]>. - defaultState - false - true - - - Whether the panel is extended. The default value is false]]>. - extended - false - true - boolean - - - Text to display as a help tool tip on mouse over of the panel's help icon. - helpMessage - false - true - - - An icon to display next to the panel's title. The icon can be specified using the name of one of the Bootstrap icon CSS classes found at http://marcoceppi.github.io/bootstrap-glyphicons/]]>. - iconCssClass - false - true - - - An ID for the component instance. - id - false - true - - - The ID of the component that contains the panel. If a liferay-ui:panel-container]]> is used as the container for the panel, its ID is used as the value for the parentID]]>. - parentId - false - true - - - Whether to remember the component's state and persist it to the database. The default value is false]]>. - persistState - false - true - boolean - - - A state for the component. Possible values are open]]> and any string other than open. Any string other than open]]> collapses the panel. - state - false - true - - - A title to display at the top of the panel. - title - true - true - - - - Creates a collapsible container to house liferay-ui:panel]]> components. - panel-container - com.liferay.taglib.ui.PanelContainerTag - JSP - - Whether only one panel can be shown at a time. As one panel is opened, the others close, creating an accordian effect. The default value is false]]>. - accordion - false - true - boolean - - - A CSS class for styling the component. - cssClass - false - true - - - Whether to extend the interface with additional styling. The default value is false]]>. - extended - false - true - boolean - - - An ID for the component instance. - id - false - true - - - Whether to remember the component's state and persist it to the database. The default value is false]]>. - persistState - false - true - boolean - - - - param - com.liferay.taglib.util.ParamTag - JSP - - name - true - true - - - value - true - true - - - - Renders a PNG image with the source given for the image]]> attribute. - png-image - com.liferay.taglib.ui.PngImageTag - JSP - - The height of the image in pixels. A possible value would be 16]]>. px]]> is then appended to the end of the value. - height - true - true - int - - - The location of a PNG image file to use. - image - true - true - - - The height of the image in pixels. A possible value would be 16]]>. px]]> is then appended to the end of the value. - width - true - true - int - - - - progress - com.liferay.taglib.ui.ProgressTag - JSP - - height - false - true - - - id - true - true - - - message - false - true - - - sessionKey - true - true - - - updatePeriod - false - true - - - - ratings - com.liferay.taglib.ui.RatingsTag - JSP - - className - true - true - - - classPK - true - true - - - numberOfStars - false - true - - - ratingsEntry - false - true - - - ratingsStats - false - true - - - type - false - true - - - url - false - true - - - - ratings-score - com.liferay.taglib.ui.RatingsScoreTag - JSP - - score - true - true - - - - restore-entry - com.liferay.taglib.ui.RestoreEntryTag - JSP - - duplicateEntryAction - false - true - - - overrideMessage - false - true - - - renameMessage - false - true - - - restoreEntryAction - false - true - - - - Creates a clickable link and/or icon to an RSS feed document. - rss - com.liferay.taglib.ui.RSSTag - JSP - - A default maximum number of items to display. The default value is 20]]>. - delta - false - true - int - - - A default style to display. - displayStyle - false - true - - - A default format for the RSS feed. Options are atom_1.0]]>, rss_1.0]]>, and rss_2.0]]>. - feedType - false - true - - - A message to display next to the RSS icon. - message - false - true - - - A name for the RSS feed. - name - false - true - - - A URL from which to retrieve feed information. - resourceURL - false - true - - - The URL for an RSS feed file. - url - false - true - - - - Creates a configuration component for users to define RSS settings, such as how many articles to display. - rss-settings - com.liferay.taglib.ui.RSSSettingsTag - JSP - - A default maximum number of items to display. The default value is 20]]>. - delta - false - true - int - - - A default style to display. - displayStyle - false - true - - - Available RSS display styles from which the user can choose. Options are abstract]]>, full-content]]>, and title]]>. - displayStyles - false - true - - - Whether users are able to subscribe. Default value is false]]>. - enabled - false - true - boolean - - - A default format for the RSS feed. Options are atom_1.0]]>, rss_1.0]]>, and rss_2.0]]>. - feedType - false - true - - - A name for the component. - name - false - true - - - Whether the RSS feed has a name. The default value is false]]>. - nameEnabled - false - true - boolean - - - - Creates a search form, with an additional select input to set the scope of the search. - search - com.liferay.taglib.ui.SearchTag - JSP - - - Creates a grid for displaying a list of objects and their properties. - search-container - com.liferay.taglib.ui.SearchContainerTag - com.liferay.taglib.ui.SearchContainerTei - JSP - - A variable for the search container's pagination. Different pagination variables ensure independent pagination when multiple search containers are on a JSP. - curParam - false - true - - - The number of items to show on each search container page. - delta - false - true - int - - - The delta]]> attribute as configurable by users. - deltaConfigurable - false - true - - - deltaParam - false - true - - - displayTerms - false - true - - - A message displayed when the search container is empty. - emptyResultsMessage - false - true - - - headerNames - false - true - - - hover - false - true - - - id - false - true - - - iteratorURL - false - true - - - orderByCol - false - true - - - orderByColParam - false - true - - - orderByComparator - false - true - - - An order type for the columns, either ascending or descending. Values are asc]]> or desc]]>. - orderByType - false - true - - - orderByTypeParam - false - true - - - Inserts a checkbox column in the search container. Value must be a RowChecker]]> object. - rowChecker - false - true - - - searchContainer - false - true - - - searchTerms - false - true - - - The total number of objects in the search container. - total - false - true - int - - - A variable name for the results of the total]]> attribute. The default is total]]>. - totalVar - false - true - - - A variable name for the SearchContainer]]> object. The default is searchContainer]]>. - var - false - true - - - - search-container-column-button - com.liferay.taglib.ui.SearchContainerColumnButtonTag - JSP - - align - false - true - - - colspan - false - true - - - cssClass - false - true - - - href - true - true - - - index - false - true - - - name - false - true - - - valign - false - true - - - - Creates a date column in a search container. - search-container-column-date - com.liferay.taglib.ui.SearchContainerColumnDateTag - JSP - - A horizontal alignment for the column contents. The default is left]]>. - align - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - A URL for the items in the column. - href - false - true - - - index - false - true - - - A name for the column. - name - false - true - - - Whether to set the column as sortable. The default value is false]]>. - orderable - false - true - boolean - - - An object's property by which to sort the column. - orderableProperty - false - true - - - A property to request from the row object. - property - false - true - - - A vertical alignment for the column contents. The default is middle]]>. - valign - false - true - - - A value for the column. - value - false - true - - - - Creates a column in a search container with the contents of a JSP file. - search-container-column-jsp - com.liferay.taglib.ui.SearchContainerColumnJSPTag - JSP - - A horizontal alignment for the column contents. The default is left]]>. - align - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - index - false - true - - - name - false - true - - - The JSP file's location. - path - true - true - - - valign - false - true - - - - Creates a column in a search container for the workflow status. - search-container-column-status - com.liferay.taglib.ui.SearchContainerColumnStatusTag - JSP - - A horizontal alignment for the column contents. The default is left]]>. - align - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - A URL for the column's contents. - href - false - true - - - index - false - true - - - name - false - true - - - Whether to set the column as sortable. The default value is false]]>. - orderable - false - true - boolean - - - An object's property by which to sort the column. - orderableProperty - false - true - - - An object's property to use for the column. - property - false - true - - - A vertical alignment for the column contents. The default is middle]]>. - valign - false - true - - - A workflow status for the item. - status - false - true - - - statusByUserId - false - true - - - statusDate - false - true - - - - Creates a text column in a search container. - search-container-column-text - com.liferay.taglib.ui.SearchContainerColumnTextTag - com.liferay.taglib.ui.SearchContainerColumnTextTei - JSP - - A horizontal alignment for the column contents. - align - false - true - - - A string buffer variable for constructing a URL in a scriptlet. - buffer - false - true - - - The number of columns to span. The default is 1]]>. - colspan - false - true - int - - - A CSS class for styling the column. - cssClass - false - true - - - href - false - true - - - index - false - true - - - name - false - true - - - Whether to set the column as sortable. The default value is false]]>. - orderable - false - true - boolean - - - An object's property by which to sort the column. - orderableProperty - false - true - - - property - false - true - - - target - false - true - - - title - false - true - - - Whether to automatically translate values. The default value is false]]>. - translate - false - true - boolean - - - A vertical alignment for the column contents. The default is middle]]>. - valign - false - true - - - value - false - true - - - - The list of objects to display in the search container. - search-container-results - com.liferay.taglib.ui.SearchContainerResultsTag - com.liferay.taglib.ui.SearchContainerResultsTei - JSP - - A list of objects to display in the search container. - results - false - true - - - A variable to use for the results. - resultsVar - false - true - - - Deprecated as of 6.2.0, replaced by liferay-ui:search-container#total - total - false - true - - - Deprecated as of 6.2.0, replaced by liferay-ui:search-container#totalVar - totalVar - false - true - - - - Creates rows in the search container for each object returned by liferay-ui:search-container-results]]>. - search-container-row - com.liferay.taglib.ui.SearchContainerRowTag - com.liferay.taglib.ui.SearchContainerRowTei - JSP - - bold - false - true - - - The class name of the objects to display in rows. - className - true - true - - - The returned model instances as HTML escaped. - escapedModel - false - true - - - A variable name to use for the rows' index. - indexVar - false - true - - - A property to use as the primary key for the object type in the className]]> attribute. - keyProperty - false - true - - - A variable name to use for each object as the search container iterates through the objects returned by liferay-ui:search-container-results]]>. - modelVar - false - true - - - A model property to use as the row ID. - rowIdProperty - false - true - - - A variable name to use for the rows. - rowVar - false - true - - - servletContext - false - true - - - stringKey - false - true - - - - Creates parameters for rows in the search container. The liferay-ui:search-container-row]]> tag is required. - search-container-row-parameter - com.liferay.taglib.ui.SearchContainerRowParameterTag - JSP - - A name for the row parameter. - name - true - true - - - A value for the row parameter. - value - true - true - - - - search-form - com.liferay.taglib.ui.SearchFormTag - JSP - - page - true - true - - - searchContainer - false - true - - - servletContext - false - true - - - showAddButton - false - true - - - - Creates a search results page iterator with an optional paginator. - search-iterator - com.liferay.taglib.ui.SearchIteratorTag - JSP - - Whether to add a liferay-ui:search-paginator]]> to the search container. The default value is true]]>. - paginate - false - true - boolean - - - All configurable properties of the search container, such as cur]]> and curParam]]>. These properties are set with searchContainer.getCur()]]> and searchContainer.getCurParam()]]> respectively. - searchContainer - false - true - - - A type of iterator to display. Options are approximate]]>, article]]>, more]]>, and regular]]>. - type - false - true - - - - Creates a page iterator to paginate through search results - search-paginator - com.liferay.taglib.ui.SearchPaginatorTag - JSP - - An ID for the component instance. - id - false - true - - - All configurable porperties of the search container, such as cur]]> and curParam]]>. These properties are set with searchContainer.getCur()]]> and searchContainer.getCurParam()]]> respectively. - searchContainer - true - true - - - A type of iterator to display. Options are approximate]]>, article]]>, more]]>, and regular]]>. - type - false - true - - - - search-speed - com.liferay.taglib.ui.SearchSpeedTag - JSP - - hits - true - true - - - searchContainer - true - true - - - - Creates a search instance that can be toggled between basic and advanced search. - search-toggle - com.liferay.taglib.ui.SearchToggleTag - JSP - - Whether the search input field is automatically focused. The default value is false]]>. - autoFocus - false - true - boolean - - - A label for the search button such as Search]]> or Go]]>. - buttonLabel - false - true - - - Terms to be used and displayed through the search instance. Term examples include keywords]]>, advancedSearch]]>, and description]]>. - displayTerms - true - true - - - The component instance's ID. - id - true - true - - - width - false - true - - - - section - com.liferay.taglib.ui.SectionTag - com.liferay.taglib.ui.SectionTei - JSP - - - sites-directory - com.liferay.taglib.ui.SitesDirectoryTag - JSP - - displayStyle - false - true - - - sites - false - true - - - - social-activities - com.liferay.taglib.ui.SocialActivitiesTag - JSP - - activities - false - true - - - className - false - true - - - classPK - false - true - - - displayRSSFeed - false - true - - - feedDelta - false - true - - - feedDisplayStyle - false - true - - - feedEnabled - false - true - - - feedLink - false - true - - - feedLinkMessage - false - true - - - feedTitle - false - true - - - feedType - false - true - - - - social-bookmark - com.liferay.taglib.ui.SocialBookmarkTag - JSP - - contentId - false - true - - - target - false - true - - - title - true - true - - - type - true - true - - - url - true - true - - - - social-bookmarks - com.liferay.taglib.ui.SocialBookmarksTag - JSP - - contentId - false - true - - - displayStyle - false - true - - - target - false - true - - - title - true - true - - - types - false - true - - - url - true - true - - - - staging - com.liferay.taglib.ui.StagingTag - JSP - - cssClass - false - true - - - extended - false - true - - - groupId - false - true - - - icon - false - true - - - layoutSetBranchId - false - true - - - message - false - true - - - onlyActions - false - true - - - privateLayout - false - true - - - selPlid - false - true - - - showManageBranches - false - true - - - - Creates a success message to display to the user. - success - com.liferay.taglib.ui.SuccessTag - empty - - A key to be placed in the SessionMessages]]> object to trigger the success message. - key - true - true - - - Explicit message text or the name of a language key from which to derive the message text. - message - true - true - - - Whether to translate the success message into the user's language. The default value is true]]>. - translateMessage - false - true - boolean - - - - table-iterator - com.liferay.taglib.ui.TableIteratorTag - com.liferay.taglib.ui.TableIteratorTei - JSP - - bodyPage - false - true - - - list - true - true - - - listType - true - true - - - rowBreak - false - true - - - rowLength - true - true - - - rowPadding - false - true - - - rowValign - false - true - - - width - false - true - - - - Creates a tabbed UI of section dividers that each house their own content. - tabs - com.liferay.taglib.ui.TabsTag - JSP - - - A label for the back URL. - backLabel - false - true - - - A URL for navigating back to. - backURL - false - true - - - A name for the tab's form. - formName - false - true - - - The names of the tabs. Each name must be separated by a comma with no spaces. - names - true - true - - - A function to be called on a user clicking any of the tabs. - onClick - false - true - - - A variable for the component. - param - false - true - - - A URL to refer to the portlet that contains the component. - portletURL - false - true - - - Whether the page refreshes when a tab is clicked. - refresh - false - true - boolean - - - Tab values that must follow the same order as the names]]> attribute. Each value must be separated by a comma with no spaces. - tabsValues - false - true - - - A design type for the tabs. Possible values are tabs]]> and pills]]>. - type - false - true - - - A URL to which all the tabs are linked when clicked. You can also set each tab's URL individually using url[number]]]> attribute. - url - false - true - - - url0 - false - true - - - A URL to which the second tab is linked when clicked. - url1 - false - true - - - A URL to which the third tab is linked when clicked - url2 - false - true - - - A URL to which the fourth tab is linked when clicked - url3 - false - true - - - A URL to which the fifth tab is linked when clicked - url4 - false - true - - - A URL to which the sixth tab is linked when clicked - url5 - false - true - - - A URL to which the seventh tab is linked when clicked - url6 - false - true - - - A URL to which the eighth tab is linked when clicked - url7 - false - true - - - A URL to which the ninth tab is linked when clicked - url8 - false - true - - - A URL to which the tenth tab is linked when clicked - url9 - false - true - - - An active tab from the value given in the attribute tabsValues]]>. No matter which tab a user selects, the tab given for this value always remains active. - value - false - true - - - - Creates a component that toggles the visibility of the content of the component matching the given id]]>. Default icons are used as the component's default mechanism for showing and hiding the content. - toggle - com.liferay.taglib.ui.ToggleTag - JSP - - Whether to initially show content by default. The default value is true]]>. - defaultShowContent - false - true - boolean - - - An icon to use as the mechanism for hiding the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used. - hideImage - false - true - - - Text to display as a link for hiding the content. It overrides the hideImage]]> attribute. Note that the showMessage]]> attribute must also be configured in order for the hide message to render. - hideMessage - false - true - - - The ID of a component instance whose content's visibility to toggle. - id - true - true - - - An icon to use as the mechanism for showing the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used. - showImage - false - true - - - A link to use as the mechanism for showing the content. The text value of this attribute is used as the link's text. The message takes precedence over showing an image, via the showImage]]> attribute. If you specify a showMessage]]> attribute, you should also specify the hideMessage]]> attribute; a null]]> is otherwise displayed for the text of the hide link. - showMessage - false - true - - - Text to be prefixed to the Toggle()]]> function that is called to toggle visibility of the content. If this is not configured, a random key is generated and prefixed to the Toggle()]]> function. For example, a value of run]]> would result in a function named runToggle()]]>. - stateVar - false - true - - - - toggle-area - com.liferay.taglib.ui.ToggleAreaTag - JSP - - align - false - true - - - defaultShowContent - false - true - - - hideImage - false - true - - - hideMessage - false - true - - - id - false - true - - - showImage - false - true - - - showMessage - false - true - - - stateVar - false - true - - - - toggle-value - com.liferay.taglib.ui.ToggleValueTag - JSP - - defaultValue - false - true - - - id - true - true - - - - Creates a component for users to permanently delete items such as images, articles, etc. from the recycle bin. - trash-empty - com.liferay.taglib.ui.TrashEmptyTag - empty - - A message to display to confirm that the user wants to remove the item(s) from the recycle bin. - confirmMessage - false - true - - - A message to be used for the empty-trash]]> button and link. - emptyMessage - false - true - - - A message to display to give users information about removing items from the recycle bin. - infoMessage - false - true - - - A URL for the empty-trash]]> button/link. - portletURL - true - true - - - The number of items to be removed from the recycle bin. - totalEntries - true - true - int - - - - Creates a message confirming items were moved to the recycle bin and presenting an option to restore them. - trash-undo - com.liferay.taglib.ui.TrashUndoTag - empty - - The URL of the undo link. - portletURL - true - true - - - A redirect URL. - redirect - false - true - - - - upload-progress - com.liferay.taglib.ui.UploadProgressTag - JSP - - height - false - true - - - id - true - true - - - message - false - true - - - redirect - false - true - - - updatePeriod - false - true - - - - user-display - com.liferay.taglib.ui.UserDisplayTag - com.liferay.taglib.ui.UserDisplayTei - JSP - - displayStyle - false - true - - - url - false - true - - - userId - true - true - - - userName - false - true - - - - user-search - com.liferay.taglib.ui.UserSearchTag - JSP - - portletURL - true - true - - - rowChecker - false - true - - - userParams - true - true - - - - webdav - com.liferay.taglib.ui.WebDAVTag - JSP - - path - true - true - - - - write - com.liferay.taglib.ui.WriteTag - JSP - - bean - true - true - - - property - true - true - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-util.tld b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-util.tld deleted file mode 100644 index 72a4caf0..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/tld/liferay-util.tld +++ /dev/null @@ -1,141 +0,0 @@ - - - - - 1.2 - 1.1 - liferay-util - http://liferay.com/tld/util - - body-bottom - com.liferay.taglib.util.BodyBottomTag - JSP - - outputKey - false - true - - - - body-top - com.liferay.taglib.util.BodyTopTag - JSP - - outputKey - false - true - - - - buffer - com.liferay.taglib.util.BufferTag - com.liferay.taglib.util.BufferTei - JSP - - var - true - true - - - - get-url - com.liferay.taglib.util.GetUrlTag - com.liferay.taglib.util.GetUrlTei - JSP - - expires - false - true - - - url - true - true - - - var - false - true - - - - html-bottom - com.liferay.taglib.util.HtmlBottomTag - JSP - - outputKey - false - true - - - position - false - true - - - - html-top - com.liferay.taglib.util.HtmlTopTag - JSP - - outputKey - false - true - - - position - false - true - - - - include - com.liferay.taglib.util.IncludeTag - JSP - - page - true - true - - - portletId - false - true - - - servletContext - false - true - - - strict - false - true - - - useCustomPage - false - true - - - - param - com.liferay.taglib.util.ParamTag - JSP - - name - true - true - - - value - true - true - - - - whitespace-remover - com.liferay.taglib.util.WhitespaceRemoverTag - JSP - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/web.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/web.xml deleted file mode 100644 index 6a84959d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/WEB-INF/web.xml +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/init.jsp deleted file mode 100644 index b181c87c..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/init.jsp +++ /dev/null @@ -1,66 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - -<%@page import="java.text.Format"%> -<%@page import="com.liferay.portal.kernel.util.FastDateFormatFactoryUtil"%> -<%@page import="com.liferay.portal.kernel.util.StringUtil"%> -<%@page import="java.util.Arrays"%> -<%@page import="javax.portlet.WindowState"%> -<%@page import="javax.portlet.PortletMode"%> - -<%@taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> - -<%@taglib uri="http://liferay.com/tld/aui" prefix="aui" %> -<%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %> -<%@taglib uri="http://liferay.com/tld/security" prefix="liferay-security" %> -<%@taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %> -<%@taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %> -<%@taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %> - -<%@page import="com.liferay.portal.kernel.dao.search.ResultRow" %> -<%@page import="com.liferay.portal.kernel.template.TemplateHandler" %> -<%@page import="com.liferay.portal.kernel.template.TemplateHandlerRegistryUtil" %> -<%@page import="com.liferay.portal.kernel.util.GetterUtil" %> -<%@page import="com.liferay.portal.kernel.util.ParamUtil" %> -<%@page import="com.liferay.portal.kernel.util.StringPool" %> -<%@page import="com.liferay.portal.kernel.util.WebKeys" %> -<%@page import="com.liferay.portal.kernel.util.TextFormatter" %> -<%@page import="com.liferay.portal.model.Group" %> -<%@page import="com.liferay.portlet.portletdisplaytemplate.util.PortletDisplayTemplateUtil" %> -<%@page import="com.liferay.portal.theme.ThemeDisplay" %> -<%@page import="com.liferay.portal.util.PortalUtil" %> -<%@ page import="com.liferay.portlet.PortletPreferencesFactoryUtil" %> -<%@ page import="com.liferay.portal.kernel.util.Validator" %> -<%@ page import="com.liferay.portal.kernel.language.LanguageUtil" %> - -<%@ page import="javax.portlet.PortletPreferences" %> - - -<%@page import="java.text.SimpleDateFormat" %> -<%@page import="java.util.List" %> - - -<%@ page import="com.liferay.portal.kernel.dao.orm.QueryUtil" %> -<%@ page import="com.liferay.portal.kernel.dao.search.DisplayTerms" %> -<%@ page import="com.liferay.portal.kernel.dao.search.ResultRow" %> -<%@ page import="com.liferay.portal.kernel.dao.search.RowChecker" %> - -<%@ page import="com.liferay.portal.kernel.dao.search.SearchContainer" %> -<%@ page import="com.liferay.portal.kernel.util.OrderByComparator" %> -<%@ page import="com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil" %> - - - - - - - -<% -Format dateFormatDate = FastDateFormatFactoryUtil.getDate(locale, timeZone); -Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone); -WindowState windowState = renderRequest.getWindowState(); -PortletMode portletMode = renderRequest.getPortletMode(); - -String currentURL = PortalUtil.getCurrentURL(liferayPortletRequest); - - -%> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/view.jsp deleted file mode 100644 index 844c8151..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/html/autodestroy/view.jsp +++ /dev/null @@ -1,11 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@include file="/html/autodestroy/init.jsp" %> - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/icon.png b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/icon.png deleted file mode 100644 index 807b862c..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/docroot/icon.png and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/test/integration/arquillian.xml b/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/test/integration/arquillian.xml deleted file mode 100644 index 9413609b..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-autodestroy-portlet/test/integration/arquillian.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 8099 - tomcat - tomcat - - - \ No newline at end of file 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 index 46a56d08..694eab2b 100644 --- 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 @@ -1,6 +1,5 @@ eclipse.preferences.version=1 encoding//docroot/html/amministrazione/tabs/territori/view.jsp=UTF-8 -encoding//docroot/html/common/import_all_window.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 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/META-INF/custom_jsps/html/portlet/dockbar/view_user_account.jspf b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/META-INF/custom_jsps/html/portlet/dockbar/view_user_account.jspf index 0b1b0037..646de0e5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/META-INF/custom_jsps/html/portlet/dockbar/view_user_account.jspf +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/META-INF/custom_jsps/html/portlet/dockbar/view_user_account.jspf @@ -14,7 +14,6 @@ * details. */ --%> - @@ -87,7 +86,7 @@ myProfileURL.setParameter("struts_action", "/my_sites/view"); myProfileURL.setParameter("groupId", String.valueOf(mySiteGroup.getGroupId())); - myProfileURL.setParameter("privateLayout", Boolean.FALSE.toString()); + myProfileURL.setParameter("privateLayout", StringPool.FALSE); myProfileURL.setPortletMode(PortletMode.VIEW); myProfileURL.setWindowState(WindowState.NORMAL); %> @@ -108,7 +107,7 @@ myDashboardURL.setParameter("struts_action", "/my_sites/view"); myDashboardURL.setParameter("groupId", String.valueOf(mySiteGroup.getGroupId())); - myDashboardURL.setParameter("privateLayout", Boolean.TRUE.toString()); + myDashboardURL.setParameter("privateLayout", StringPool.TRUE); myDashboardURL.setPortletMode(PortletMode.VIEW); myDashboardURL.setWindowState(WindowState.NORMAL); %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/iris-IUV-client.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/iris-IUV-client.jar deleted file mode 100644 index 0c400bef..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/iris-IUV-client.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/iris-axis-client.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/iris-axis-client.jar deleted file mode 100644 index 66f6d745..00000000 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/iris-axis-client.jar and /dev/null differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml index 4513515c..e1335b66 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml @@ -38,27 +38,6 @@ - - - Verifica Pagamenti - it.tref.liferay.portos.bo.scheduler.VerificaPagamentiScheduler - - - 30 - second - - - Pratiche it.tref.liferay.portos.bo.scheduler.SchedulerPratiche @@ -112,17 +91,6 @@ tabelle-di-sistema-portlet - - 3 - /icon.png - /css/main.css - - /js/main.js - - - sorteggio-portlet - - 4 /icon.png diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml index c49b57c4..36cd5677 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml @@ -68,38 +68,6 @@ user - - 3 - Sorteggio - it.tref.liferay.portos.bo.portlet.SorteggioPortlet - - view-template - /html/sorteggio/view.jsp - - 0 - - text/html - view - - content.Language - - Sorteggio - Sorteggio - - - - administrator - - - guest - - - power-user - - - user - - 4 Gestione Firme 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 b87e0d2b..6b8ffcdd 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,52 +1,48 @@ - + Davide Barbagallo, 3F Consulting portos_bo - - - - + - + + + - - + - - @@ -57,119 +53,53 @@ - + - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - + - - + - - @@ -178,64 +108,58 @@ - + + - + + + - + - - + - - - + + - - + - - @@ -243,21 +167,16 @@ - - + - - - - @@ -267,58 +186,48 @@ - - + - - - - - - - - - - - - + + + + @@ -328,14 +237,17 @@ + + + @@ -345,47 +257,35 @@ - + + - - + - - - - - + - + - - - - - + - @@ -409,26 +309,16 @@ - - - - - - + + + - - - - @@ -439,19 +329,14 @@ - - - - - @@ -459,23 +344,13 @@ - - - - - - - - - - @@ -574,7 +449,6 @@ - @@ -591,8 +465,6 @@ - - @@ -611,13 +483,9 @@ - - - - @@ -631,7 +499,6 @@ - @@ -645,7 +512,7 @@ - + @@ -654,24 +521,10 @@ - - - - - - - - - - - - - - @@ -679,7 +532,6 @@ - @@ -687,59 +539,42 @@ + - - - - + + - + - - - - - - + + - - + - - - - - + @@ -757,9 +592,7 @@ - - @@ -767,54 +600,50 @@ + + + + + + - - - - - + - - - - - + @@ -831,9 +660,7 @@ - - @@ -847,39 +674,36 @@ + + + + - - - - - + - - @@ -888,8 +712,6 @@ - - @@ -910,11 +732,8 @@ - - - @@ -922,72 +741,73 @@ - - - - + + + + - + + + + + + + + - + - - + - - @@ -997,9 +817,7 @@ - - @@ -1008,75 +826,59 @@ - - - + + + + - - - - - + + - - - + - + - - + - - - - - @@ -1084,14 +886,12 @@ - - @@ -1104,22 +904,18 @@ - - - - @@ -1128,109 +924,112 @@ - - + + + - - - + - + + + - + + - + + + - + + + + + + + + - + - - - @@ -1238,110 +1037,74 @@ - - - + + - + + + - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - + + + @@ -1349,28 +1112,18 @@ - - - - + - - - - - - @@ -1385,10 +1138,6 @@ - - - - @@ -1419,102 +1168,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + - - - - - - + - - - - + - - - - - - @@ -1528,37 +1216,23 @@ - - - - - + - - - + - - - - - - @@ -1567,37 +1241,29 @@ - + - - - + - - - - - + @@ -1606,93 +1272,91 @@ + + + + + + - + + + + + + - + + - - + - - - - + - - - - - - @@ -1700,11 +1364,10 @@ - - + @@ -1713,69 +1376,70 @@ + + + + + + + + - + + - - - + + + - - - - - @@ -1789,10 +1453,8 @@ - - DuplicateProvincia CodiceProvincia @@ -1801,12 +1463,10 @@ NoSuchProvincia CSVFileNotFound CSVFileFormat - CodiceBelfiore CodiceComune CodiceIstat Denominazione DuplicateComune - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/HttpServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/HttpServiceUtil.java index 5b698001..d63aa1b2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/HttpServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/mwg/sismica/bo/util/HttpServiceUtil.java @@ -4,6 +4,8 @@ import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; +import java.io.IOException; + import javax.servlet.http.HttpServletResponse; import org.apache.http.HttpResponse; @@ -18,10 +20,11 @@ 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.servlet.HttpHeaders; import com.liferay.portal.kernel.util.ContentTypes; +import com.liferay.portal.kernel.util.Http.Options; import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Http.Options; public class HttpServiceUtil { private static final Log _log = LogFactoryUtil.getLog(HttpServiceUtil.class); @@ -41,15 +44,16 @@ public class HttpServiceUtil { public static JSONObject postJson(String url, String json) throws Exception { JSONObject risposta = null; HttpPost request = new HttpPost(url); - request.setHeader("Content-type", ContentTypes.APPLICATION_JSON); + request.setHeader(HttpHeaders.CONTENT_TYPE, ContentTypes.APPLICATION_JSON); request.setEntity(new StringEntity(json)); CloseableHttpClient client = HttpClientBuilder.create().build(); HttpResponse response = client.execute(request); - int statusCode = response.getStatusLine().getStatusCode(); String responseBody = EntityUtils.toString(response.getEntity(), StringPool.UTF8); + try { client.close(); - + } catch (IOException e) { + } if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) { risposta = JSONFactoryUtil.createJSONObject(responseBody); _log.info(url + " || " + json + " || " + risposta); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchInfoFascicoloException.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchInfoFascicoloException.java deleted file mode 100644 index 532da19c..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchInfoFascicoloException.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * 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.bo; - -import com.liferay.portal.NoSuchModelException; - -/** - * @author Davide Barbagallo, 3F Consulting - */ -public class NoSuchInfoFascicoloException extends NoSuchModelException { - - public NoSuchInfoFascicoloException() { - super(); - } - - public NoSuchInfoFascicoloException(String msg) { - super(msg); - } - - public NoSuchInfoFascicoloException(String msg, Throwable cause) { - super(msg, cause); - } - - public NoSuchInfoFascicoloException(Throwable cause) { - super(cause); - } - -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchSorteggioException.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchSorteggioException.java deleted file mode 100644 index 59613285..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/NoSuchSorteggioException.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * 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.bo; - -import com.liferay.portal.NoSuchModelException; - -/** - * @author Davide Barbagallo, 3F Consulting - */ -public class NoSuchSorteggioException extends NoSuchModelException { - - public NoSuchSorteggioException() { - super(); - } - - public NoSuchSorteggioException(String msg) { - super(msg); - } - - public NoSuchSorteggioException(String msg, Throwable cause) { - super(msg, cause); - } - - public NoSuchSorteggioException(Throwable cause) { - super(cause); - } - -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeClp.java index 37072e19..0600baf3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeClp.java @@ -88,7 +88,6 @@ public class AllegatoManualeClp extends BaseModelImpl attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("avvisoId", getAvvisoId()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("descrizione", getDescrizione()); return attributes; @@ -168,12 +167,6 @@ public class AllegatoManualeClp extends BaseModelImpl setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String descrizione = (String)attributes.get("descrizione"); if (descrizione != null) { @@ -468,29 +461,6 @@ public class AllegatoManualeClp extends BaseModelImpl } } - @Override - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - - if (_allegatoManualeRemoteModel != null) { - try { - Class clazz = _allegatoManualeRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldFileEntryId", long.class); - - method.invoke(_allegatoManualeRemoteModel, oldFileEntryId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getDescrizione() { return _descrizione; @@ -603,7 +573,6 @@ public class AllegatoManualeClp extends BaseModelImpl clone.setDettPraticaId(getDettPraticaId()); clone.setAvvisoId(getAvvisoId()); clone.setFileEntryId(getFileEntryId()); - clone.setOldFileEntryId(getOldFileEntryId()); clone.setDescrizione(getDescrizione()); return clone; @@ -657,7 +626,7 @@ public class AllegatoManualeClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(29); + StringBundler sb = new StringBundler(27); sb.append("{uuid="); sb.append(getUuid()); @@ -683,8 +652,6 @@ public class AllegatoManualeClp extends BaseModelImpl sb.append(getAvvisoId()); sb.append(", fileEntryId="); sb.append(getFileEntryId()); - sb.append(", oldFileEntryId="); - sb.append(getOldFileEntryId()); sb.append(", descrizione="); sb.append(getDescrizione()); sb.append("}"); @@ -694,7 +661,7 @@ public class AllegatoManualeClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(46); + StringBundler sb = new StringBundler(43); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.AllegatoManuale"); @@ -748,10 +715,6 @@ public class AllegatoManualeClp extends BaseModelImpl "fileEntryId"); - sb.append( - "oldFileEntryId"); sb.append( "descrizione private long _dettPraticaId; private long _avvisoId; private long _fileEntryId; - private long _oldFileEntryId; private String _descrizione; private BaseModel _allegatoManualeRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeModel.java index b64e461f..e3da2376 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeModel.java @@ -263,20 +263,6 @@ public interface AllegatoManualeModel extends BaseModel, */ public void setFileEntryId(long fileEntryId); - /** - * Returns the old file entry ID of this allegato manuale. - * - * @return the old file entry ID of this allegato manuale - */ - public long getOldFileEntryId(); - - /** - * Sets the old file entry ID of this allegato manuale. - * - * @param oldFileEntryId the old file entry ID of this allegato manuale - */ - public void setOldFileEntryId(long oldFileEntryId); - /** * Returns the descrizione of this allegato manuale. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeSoap.java index 9817089c..ca59ac24 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeSoap.java @@ -43,7 +43,6 @@ public class AllegatoManualeSoap implements Serializable { soapModel.setDettPraticaId(model.getDettPraticaId()); soapModel.setAvvisoId(model.getAvvisoId()); soapModel.setFileEntryId(model.getFileEntryId()); - soapModel.setOldFileEntryId(model.getOldFileEntryId()); soapModel.setDescrizione(model.getDescrizione()); return soapModel; @@ -195,14 +194,6 @@ public class AllegatoManualeSoap implements Serializable { _fileEntryId = fileEntryId; } - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - } - public String getDescrizione() { return _descrizione; } @@ -223,6 +214,5 @@ public class AllegatoManualeSoap implements Serializable { private long _dettPraticaId; private long _avvisoId; private long _fileEntryId; - private long _oldFileEntryId; private String _descrizione; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeWrapper.java index 3f49775e..b2ea25da 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AllegatoManualeWrapper.java @@ -63,7 +63,6 @@ public class AllegatoManualeWrapper implements AllegatoManuale, attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("avvisoId", getAvvisoId()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("descrizione", getDescrizione()); return attributes; @@ -143,12 +142,6 @@ public class AllegatoManualeWrapper implements AllegatoManuale, setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String descrizione = (String)attributes.get("descrizione"); if (descrizione != null) { @@ -438,26 +431,6 @@ public class AllegatoManualeWrapper implements AllegatoManuale, _allegatoManuale.setFileEntryId(fileEntryId); } - /** - * Returns the old file entry ID of this allegato manuale. - * - * @return the old file entry ID of this allegato manuale - */ - @Override - public long getOldFileEntryId() { - return _allegatoManuale.getOldFileEntryId(); - } - - /** - * Sets the old file entry ID of this allegato manuale. - * - * @param oldFileEntryId the old file entry ID of this allegato manuale - */ - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _allegatoManuale.setOldFileEntryId(oldFileEntryId); - } - /** * Returns the descrizione of this allegato manuale. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Avviso.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Avviso.java index 28e10f5c..b2242eb9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Avviso.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Avviso.java @@ -35,6 +35,11 @@ public interface Avviso extends AvvisoModel, PersistedModel { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + public java.lang.String getDescriptionOggettoProtocollo( + java.lang.String tipoProcedura) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + public java.lang.String getDescriptionOggettoProtocollo() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -44,6 +49,11 @@ public interface Avviso extends AvvisoModel, PersistedModel { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + public java.lang.String translateTipoDocumento( + java.lang.String tipoProcedura) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + public java.lang.String translateTipoDocumento() throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoClp.java index 4f580745..206675b5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoClp.java @@ -92,8 +92,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { attributes.put("fileEntryIdBase", getFileEntryIdBase()); attributes.put("fileEntryIdInvio", getFileEntryIdInvio()); attributes.put("fileEntryIdProtocollo", getFileEntryIdProtocollo()); - attributes.put("oldFileEntryIdBase", getOldFileEntryIdBase()); - attributes.put("oldFileEntryIdInvio", getOldFileEntryIdInvio()); attributes.put("dtCreateFileEntryInvio", getDtCreateFileEntryInvio()); attributes.put("userCodiceFiscalePrimaFirma", getUserCodiceFiscalePrimaFirma()); @@ -115,7 +113,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { attributes.put("rifiutato", getRifiutato()); attributes.put("dtRifiuto", getDtRifiuto()); attributes.put("commentoRifiuto", getCommentoRifiuto()); - attributes.put("oldAvvisoId", getOldAvvisoId()); attributes.put("intPraticaId", getIntPraticaId()); attributes.put("controlloPraticaId", getControlloPraticaId()); attributes.put("classPk", getClassPk()); @@ -223,18 +220,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { setFileEntryIdProtocollo(fileEntryIdProtocollo); } - Long oldFileEntryIdBase = (Long)attributes.get("oldFileEntryIdBase"); - - if (oldFileEntryIdBase != null) { - setOldFileEntryIdBase(oldFileEntryIdBase); - } - - Long oldFileEntryIdInvio = (Long)attributes.get("oldFileEntryIdInvio"); - - if (oldFileEntryIdInvio != null) { - setOldFileEntryIdInvio(oldFileEntryIdInvio); - } - Date dtCreateFileEntryInvio = (Date)attributes.get( "dtCreateFileEntryInvio"); @@ -358,12 +343,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { setCommentoRifiuto(commentoRifiuto); } - Long oldAvvisoId = (Long)attributes.get("oldAvvisoId"); - - if (oldAvvisoId != null) { - setOldAvvisoId(oldAvvisoId); - } - Long intPraticaId = (Long)attributes.get("intPraticaId"); if (intPraticaId != null) { @@ -770,54 +749,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { } } - @Override - public long getOldFileEntryIdBase() { - return _oldFileEntryIdBase; - } - - @Override - public void setOldFileEntryIdBase(long oldFileEntryIdBase) { - _oldFileEntryIdBase = oldFileEntryIdBase; - - if (_avvisoRemoteModel != null) { - try { - Class clazz = _avvisoRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldFileEntryIdBase", - long.class); - - method.invoke(_avvisoRemoteModel, oldFileEntryIdBase); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getOldFileEntryIdInvio() { - return _oldFileEntryIdInvio; - } - - @Override - public void setOldFileEntryIdInvio(long oldFileEntryIdInvio) { - _oldFileEntryIdInvio = oldFileEntryIdInvio; - - if (_avvisoRemoteModel != null) { - try { - Class clazz = _avvisoRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldFileEntryIdInvio", - long.class); - - method.invoke(_avvisoRemoteModel, oldFileEntryIdInvio); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public Date getDtCreateFileEntryInvio() { return _dtCreateFileEntryInvio; @@ -1321,29 +1252,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { } } - @Override - public long getOldAvvisoId() { - return _oldAvvisoId; - } - - @Override - public void setOldAvvisoId(long oldAvvisoId) { - _oldAvvisoId = oldAvvisoId; - - if (_avvisoRemoteModel != null) { - try { - Class clazz = _avvisoRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldAvvisoId", long.class); - - method.invoke(_avvisoRemoteModel, oldAvvisoId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public long getIntPraticaId() { return _intPraticaId; @@ -1456,6 +1364,26 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { } } + @Override + public java.lang.String translateTipoDocumento( + java.lang.String tipoProcedura) { + try { + String methodName = "translateTipoDocumento"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { tipoProcedura }; + + java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getDownloadUrl( com.liferay.portal.theme.ThemeDisplay themeDisplay) { @@ -1478,6 +1406,26 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { } } + @Override + public java.lang.String getDescriptionOggettoProtocollo( + java.lang.String tipoProcedura) { + try { + String methodName = "getDescriptionOggettoProtocollo"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { tipoProcedura }; + + java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getDescriptionOggettoProtocollo() { try { @@ -1607,8 +1555,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { clone.setFileEntryIdBase(getFileEntryIdBase()); clone.setFileEntryIdInvio(getFileEntryIdInvio()); clone.setFileEntryIdProtocollo(getFileEntryIdProtocollo()); - clone.setOldFileEntryIdBase(getOldFileEntryIdBase()); - clone.setOldFileEntryIdInvio(getOldFileEntryIdInvio()); clone.setDtCreateFileEntryInvio(getDtCreateFileEntryInvio()); clone.setUserCodiceFiscalePrimaFirma(getUserCodiceFiscalePrimaFirma()); clone.setFirmaInCorso(getFirmaInCorso()); @@ -1629,7 +1575,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { clone.setRifiutato(getRifiutato()); clone.setDtRifiuto(getDtRifiuto()); clone.setCommentoRifiuto(getCommentoRifiuto()); - clone.setOldAvvisoId(getOldAvvisoId()); clone.setIntPraticaId(getIntPraticaId()); clone.setControlloPraticaId(getControlloPraticaId()); clone.setClassPk(getClassPk()); @@ -1686,7 +1631,7 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { @Override public String toString() { - StringBundler sb = new StringBundler(87); + StringBundler sb = new StringBundler(81); sb.append("{uuid="); sb.append(getUuid()); @@ -1720,10 +1665,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { sb.append(getFileEntryIdInvio()); sb.append(", fileEntryIdProtocollo="); sb.append(getFileEntryIdProtocollo()); - sb.append(", oldFileEntryIdBase="); - sb.append(getOldFileEntryIdBase()); - sb.append(", oldFileEntryIdInvio="); - sb.append(getOldFileEntryIdInvio()); sb.append(", dtCreateFileEntryInvio="); sb.append(getDtCreateFileEntryInvio()); sb.append(", userCodiceFiscalePrimaFirma="); @@ -1764,8 +1705,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { sb.append(getDtRifiuto()); sb.append(", commentoRifiuto="); sb.append(getCommentoRifiuto()); - sb.append(", oldAvvisoId="); - sb.append(getOldAvvisoId()); sb.append(", intPraticaId="); sb.append(getIntPraticaId()); sb.append(", controlloPraticaId="); @@ -1781,7 +1720,7 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { @Override public String toXmlString() { - StringBundler sb = new StringBundler(133); + StringBundler sb = new StringBundler(124); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Avviso"); @@ -1851,14 +1790,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { "fileEntryIdProtocollo"); - sb.append( - "oldFileEntryIdBase"); - sb.append( - "oldFileEntryIdInvio"); sb.append( "dtCreateFileEntryInvio implements Avviso { "commentoRifiuto"); - sb.append( - "oldAvvisoId"); sb.append( "intPraticaId implements Avviso { private long _fileEntryIdBase; private long _fileEntryIdInvio; private long _fileEntryIdProtocollo; - private long _oldFileEntryIdBase; - private long _oldFileEntryIdInvio; private Date _dtCreateFileEntryInvio; private String _userCodiceFiscalePrimaFirma; private boolean _firmaInCorso; @@ -2004,7 +1929,6 @@ public class AvvisoClp extends BaseModelImpl implements Avviso { private boolean _rifiutato; private Date _dtRifiuto; private String _commentoRifiuto; - private long _oldAvvisoId; private long _intPraticaId; private long _controlloPraticaId; private long _classPk; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoModel.java index 4d78678b..f9f26ee8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoModel.java @@ -321,34 +321,6 @@ public interface AvvisoModel extends BaseModel, StagedGroupedModel { */ public void setFileEntryIdProtocollo(long fileEntryIdProtocollo); - /** - * Returns the old file entry ID base of this avviso. - * - * @return the old file entry ID base of this avviso - */ - public long getOldFileEntryIdBase(); - - /** - * Sets the old file entry ID base of this avviso. - * - * @param oldFileEntryIdBase the old file entry ID base of this avviso - */ - public void setOldFileEntryIdBase(long oldFileEntryIdBase); - - /** - * Returns the old file entry ID invio of this avviso. - * - * @return the old file entry ID invio of this avviso - */ - public long getOldFileEntryIdInvio(); - - /** - * Sets the old file entry ID invio of this avviso. - * - * @param oldFileEntryIdInvio the old file entry ID invio of this avviso - */ - public void setOldFileEntryIdInvio(long oldFileEntryIdInvio); - /** * Returns the dt create file entry invio of this avviso. * @@ -686,20 +658,6 @@ public interface AvvisoModel extends BaseModel, StagedGroupedModel { */ public void setCommentoRifiuto(String commentoRifiuto); - /** - * Returns the old avviso ID of this avviso. - * - * @return the old avviso ID of this avviso - */ - public long getOldAvvisoId(); - - /** - * Sets the old avviso ID of this avviso. - * - * @param oldAvvisoId the old avviso ID of this avviso - */ - public void setOldAvvisoId(long oldAvvisoId); - /** * Returns the int pratica ID of this avviso. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoSoap.java index 515e63da..b3146b96 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoSoap.java @@ -47,8 +47,6 @@ public class AvvisoSoap implements Serializable { soapModel.setFileEntryIdBase(model.getFileEntryIdBase()); soapModel.setFileEntryIdInvio(model.getFileEntryIdInvio()); soapModel.setFileEntryIdProtocollo(model.getFileEntryIdProtocollo()); - soapModel.setOldFileEntryIdBase(model.getOldFileEntryIdBase()); - soapModel.setOldFileEntryIdInvio(model.getOldFileEntryIdInvio()); soapModel.setDtCreateFileEntryInvio(model.getDtCreateFileEntryInvio()); soapModel.setUserCodiceFiscalePrimaFirma(model.getUserCodiceFiscalePrimaFirma()); soapModel.setFirmaInCorso(model.getFirmaInCorso()); @@ -69,7 +67,6 @@ public class AvvisoSoap implements Serializable { soapModel.setRifiutato(model.getRifiutato()); soapModel.setDtRifiuto(model.getDtRifiuto()); soapModel.setCommentoRifiuto(model.getCommentoRifiuto()); - soapModel.setOldAvvisoId(model.getOldAvvisoId()); soapModel.setIntPraticaId(model.getIntPraticaId()); soapModel.setControlloPraticaId(model.getControlloPraticaId()); soapModel.setClassPk(model.getClassPk()); @@ -254,22 +251,6 @@ public class AvvisoSoap implements Serializable { _fileEntryIdProtocollo = fileEntryIdProtocollo; } - public long getOldFileEntryIdBase() { - return _oldFileEntryIdBase; - } - - public void setOldFileEntryIdBase(long oldFileEntryIdBase) { - _oldFileEntryIdBase = oldFileEntryIdBase; - } - - public long getOldFileEntryIdInvio() { - return _oldFileEntryIdInvio; - } - - public void setOldFileEntryIdInvio(long oldFileEntryIdInvio) { - _oldFileEntryIdInvio = oldFileEntryIdInvio; - } - public Date getDtCreateFileEntryInvio() { return _dtCreateFileEntryInvio; } @@ -459,14 +440,6 @@ public class AvvisoSoap implements Serializable { _commentoRifiuto = commentoRifiuto; } - public long getOldAvvisoId() { - return _oldAvvisoId; - } - - public void setOldAvvisoId(long oldAvvisoId) { - _oldAvvisoId = oldAvvisoId; - } - public long getIntPraticaId() { return _intPraticaId; } @@ -515,8 +488,6 @@ public class AvvisoSoap implements Serializable { private long _fileEntryIdBase; private long _fileEntryIdInvio; private long _fileEntryIdProtocollo; - private long _oldFileEntryIdBase; - private long _oldFileEntryIdInvio; private Date _dtCreateFileEntryInvio; private String _userCodiceFiscalePrimaFirma; private boolean _firmaInCorso; @@ -537,7 +508,6 @@ public class AvvisoSoap implements Serializable { private boolean _rifiutato; private Date _dtRifiuto; private String _commentoRifiuto; - private long _oldAvvisoId; private long _intPraticaId; private long _controlloPraticaId; private long _classPk; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoWrapper.java index d620b4b3..c5e53c2a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoWrapper.java @@ -66,8 +66,6 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { attributes.put("fileEntryIdBase", getFileEntryIdBase()); attributes.put("fileEntryIdInvio", getFileEntryIdInvio()); attributes.put("fileEntryIdProtocollo", getFileEntryIdProtocollo()); - attributes.put("oldFileEntryIdBase", getOldFileEntryIdBase()); - attributes.put("oldFileEntryIdInvio", getOldFileEntryIdInvio()); attributes.put("dtCreateFileEntryInvio", getDtCreateFileEntryInvio()); attributes.put("userCodiceFiscalePrimaFirma", getUserCodiceFiscalePrimaFirma()); @@ -89,7 +87,6 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { attributes.put("rifiutato", getRifiutato()); attributes.put("dtRifiuto", getDtRifiuto()); attributes.put("commentoRifiuto", getCommentoRifiuto()); - attributes.put("oldAvvisoId", getOldAvvisoId()); attributes.put("intPraticaId", getIntPraticaId()); attributes.put("controlloPraticaId", getControlloPraticaId()); attributes.put("classPk", getClassPk()); @@ -197,18 +194,6 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { setFileEntryIdProtocollo(fileEntryIdProtocollo); } - Long oldFileEntryIdBase = (Long)attributes.get("oldFileEntryIdBase"); - - if (oldFileEntryIdBase != null) { - setOldFileEntryIdBase(oldFileEntryIdBase); - } - - Long oldFileEntryIdInvio = (Long)attributes.get("oldFileEntryIdInvio"); - - if (oldFileEntryIdInvio != null) { - setOldFileEntryIdInvio(oldFileEntryIdInvio); - } - Date dtCreateFileEntryInvio = (Date)attributes.get( "dtCreateFileEntryInvio"); @@ -332,12 +317,6 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { setCommentoRifiuto(commentoRifiuto); } - Long oldAvvisoId = (Long)attributes.get("oldAvvisoId"); - - if (oldAvvisoId != null) { - setOldAvvisoId(oldAvvisoId); - } - Long intPraticaId = (Long)attributes.get("intPraticaId"); if (intPraticaId != null) { @@ -725,46 +704,6 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { _avviso.setFileEntryIdProtocollo(fileEntryIdProtocollo); } - /** - * Returns the old file entry ID base of this avviso. - * - * @return the old file entry ID base of this avviso - */ - @Override - public long getOldFileEntryIdBase() { - return _avviso.getOldFileEntryIdBase(); - } - - /** - * Sets the old file entry ID base of this avviso. - * - * @param oldFileEntryIdBase the old file entry ID base of this avviso - */ - @Override - public void setOldFileEntryIdBase(long oldFileEntryIdBase) { - _avviso.setOldFileEntryIdBase(oldFileEntryIdBase); - } - - /** - * Returns the old file entry ID invio of this avviso. - * - * @return the old file entry ID invio of this avviso - */ - @Override - public long getOldFileEntryIdInvio() { - return _avviso.getOldFileEntryIdInvio(); - } - - /** - * Sets the old file entry ID invio of this avviso. - * - * @param oldFileEntryIdInvio the old file entry ID invio of this avviso - */ - @Override - public void setOldFileEntryIdInvio(long oldFileEntryIdInvio) { - _avviso.setOldFileEntryIdInvio(oldFileEntryIdInvio); - } - /** * Returns the dt create file entry invio of this avviso. * @@ -1237,26 +1176,6 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { _avviso.setCommentoRifiuto(commentoRifiuto); } - /** - * Returns the old avviso ID of this avviso. - * - * @return the old avviso ID of this avviso - */ - @Override - public long getOldAvvisoId() { - return _avviso.getOldAvvisoId(); - } - - /** - * Sets the old avviso ID of this avviso. - * - * @param oldAvvisoId the old avviso ID of this avviso - */ - @Override - public void setOldAvvisoId(long oldAvvisoId) { - _avviso.setOldAvvisoId(oldAvvisoId); - } - /** * Returns the int pratica ID of this avviso. * @@ -1448,6 +1367,14 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { return _avviso.getFullDescription(); } + @Override + public java.lang.String getDescriptionOggettoProtocollo( + java.lang.String tipoProcedura) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _avviso.getDescriptionOggettoProtocollo(tipoProcedura); + } + @Override public java.lang.String getDescriptionOggettoProtocollo() throws com.liferay.portal.kernel.exception.PortalException, @@ -1463,6 +1390,14 @@ public class AvvisoWrapper implements Avviso, ModelWrapper { return _avviso.getDownloadUrl(themeDisplay); } + @Override + public java.lang.String translateTipoDocumento( + java.lang.String tipoProcedura) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _avviso.translateTipoDocumento(tipoProcedura); + } + @Override public java.lang.String translateTipoDocumento() throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoClp.java index 71c125f6..69f2607d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoClp.java @@ -100,7 +100,6 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("normEsenteBollo", getNormEsenteBollo()); attributes.put("importoBolli", getImportoBolli()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); return attributes; } @@ -257,12 +256,6 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { if (importoBolli != null) { setImportoBolli(importoBolli); } - - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } } @Override @@ -876,30 +869,6 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { } } - @Override - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _oldDettPraticaId = oldDettPraticaId; - - if (_collaudoRemoteModel != null) { - try { - Class clazz = _collaudoRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldDettPraticaId", - long.class); - - method.invoke(_collaudoRemoteModel, oldDettPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public java.lang.String getTitle(java.util.Locale locale) { try { @@ -1057,7 +1026,6 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { clone.setMezzoPagamento(getMezzoPagamento()); clone.setNormEsenteBollo(getNormEsenteBollo()); clone.setImportoBolli(getImportoBolli()); - clone.setOldDettPraticaId(getOldDettPraticaId()); return clone; } @@ -1110,7 +1078,7 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(51); sb.append("{uuid="); sb.append(getUuid()); @@ -1162,8 +1130,6 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { sb.append(getNormEsenteBollo()); sb.append(", importoBolli="); sb.append(getImportoBolli()); - sb.append(", oldDettPraticaId="); - sb.append(getOldDettPraticaId()); sb.append("}"); return sb.toString(); @@ -1171,7 +1137,7 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(79); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Collaudo"); @@ -1277,10 +1243,6 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { "importoBolli"); - sb.append( - "oldDettPraticaId"); sb.append(""); @@ -1313,7 +1275,6 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { private String _mezzoPagamento; private boolean _normEsenteBollo; private String _importoBolli; - private long _oldDettPraticaId; private BaseModel _collaudoRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoModel.java index dd2edaf0..c3f66f09 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoModel.java @@ -479,20 +479,6 @@ public interface CollaudoModel extends BaseModel, StagedGroupedModel { */ public void setImportoBolli(String importoBolli); - /** - * Returns the old dett pratica ID of this collaudo. - * - * @return the old dett pratica ID of this collaudo - */ - public long getOldDettPraticaId(); - - /** - * Sets the old dett pratica ID of this collaudo. - * - * @param oldDettPraticaId the old dett pratica ID of this collaudo - */ - public void setOldDettPraticaId(long oldDettPraticaId); - @Override public boolean isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoSoap.java index 6f82f9be..073e5032 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoSoap.java @@ -56,7 +56,6 @@ public class CollaudoSoap implements Serializable { soapModel.setMezzoPagamento(model.getMezzoPagamento()); soapModel.setNormEsenteBollo(model.getNormEsenteBollo()); soapModel.setImportoBolli(model.getImportoBolli()); - soapModel.setOldDettPraticaId(model.getOldDettPraticaId()); return soapModel; } @@ -325,14 +324,6 @@ public class CollaudoSoap implements Serializable { _importoBolli = importoBolli; } - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - public void setOldDettPraticaId(long oldDettPraticaId) { - _oldDettPraticaId = oldDettPraticaId; - } - private String _uuid; private long _collaudoId; private long _companyId; @@ -358,5 +349,4 @@ public class CollaudoSoap implements Serializable { private String _mezzoPagamento; private boolean _normEsenteBollo; private String _importoBolli; - private long _oldDettPraticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java index 8f5fc12b..313e67a7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java @@ -75,7 +75,6 @@ public class CollaudoWrapper implements Collaudo, ModelWrapper { attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("normEsenteBollo", getNormEsenteBollo()); attributes.put("importoBolli", getImportoBolli()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); return attributes; } @@ -232,12 +231,6 @@ public class CollaudoWrapper implements Collaudo, ModelWrapper { if (importoBolli != null) { setImportoBolli(importoBolli); } - - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } } /** @@ -822,26 +815,6 @@ public class CollaudoWrapper implements Collaudo, ModelWrapper { _collaudo.setImportoBolli(importoBolli); } - /** - * Returns the old dett pratica ID of this collaudo. - * - * @return the old dett pratica ID of this collaudo - */ - @Override - public long getOldDettPraticaId() { - return _collaudo.getOldDettPraticaId(); - } - - /** - * Sets the old dett pratica ID of this collaudo. - * - * @param oldDettPraticaId the old dett pratica ID of this collaudo - */ - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _collaudo.setOldDettPraticaId(oldDettPraticaId); - } - @Override public boolean isNew() { return _collaudo.isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPratica.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPratica.java index 277c1440..63c0df93 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPratica.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPratica.java @@ -31,4 +31,5 @@ public interface ControlloPratica extends ControlloPraticaModel, PersistedModel * * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. */ + public int getUnitaOperativa(); } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaClp.java index 5517cc66..d0f1ef2b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaClp.java @@ -557,6 +557,25 @@ public class ControlloPraticaClp extends BaseModelImpl } } + @Override + public int getUnitaOperativa() { + try { + String methodName = "getUnitaOperativa"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Integer returnObj = (Integer)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaWrapper.java index 76be329e..1ce000b9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ControlloPraticaWrapper.java @@ -720,6 +720,11 @@ public class ControlloPraticaWrapper implements ControlloPratica, _controlloPratica.persist(); } + @Override + public int getUnitaOperativa() { + return _controlloPratica.getUnitaOperativa(); + } + @Override public boolean equals(Object obj) { if (this == obj) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java index 9b9b7864..a62a8d60 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java @@ -38,10 +38,4 @@ public interface DettPratica extends DettPraticaModel, PersistedModel { public java.lang.String getFullDescription(); public java.lang.String getMiddleDescription(); - - public java.lang.String serializeToVersioning() - throws java.lang.NoSuchFieldException, java.lang.SecurityException; - - public java.lang.String serializeToVersioningPage() - throws java.lang.NoSuchFieldException, java.lang.SecurityException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java index 65774e70..7a133fc1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java @@ -102,16 +102,13 @@ public class DettPraticaClp extends BaseModelImpl attributes.put("mezzoPagamentoBolli", getMezzoPagamentoBolli()); attributes.put("dataEffettuazione", getDataEffettuazione()); attributes.put("version", getVersion()); - attributes.put("versionata", getVersionata()); attributes.put("status", getStatus()); attributes.put("statusByUserId", getStatusByUserId()); attributes.put("statusByUserName", getStatusByUserName()); attributes.put("statusDate", getStatusDate()); attributes.put("statusTask", getStatusTask()); - attributes.put("workflowForzato", getWorkflowForzato()); attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); attributes.put("dtInvioSignal", getDtInvioSignal()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); attributes.put("destinazione", getDestinazione()); attributes.put("ag", getAg()); attributes.put("descLongIntervento", getDescLongIntervento()); @@ -122,14 +119,11 @@ public class DettPraticaClp extends BaseModelImpl attributes.put("localita", getLocalita()); attributes.put("estremiCatastali", getEstremiCatastali()); attributes.put("estremiPratCom", getEstremiPratCom()); - attributes.put("variataDa", getVariataDa()); attributes.put("varianteNumero", getVarianteNumero()); - attributes.put("varianteSostanziale", getVarianteSostanziale()); attributes.put("operaConforme", getOperaConforme()); attributes.put("collaudoStatico", getCollaudoStatico()); attributes.put("noCollaudo", getNoCollaudo()); attributes.put("codiceFiscaleDelegato", getCodiceFiscaleDelegato()); - attributes.put("codiceRuoloDelegato", getCodiceRuoloDelegato()); attributes.put("codiceFiscaleDelegatoCommittente", getCodiceFiscaleDelegatoCommittente()); attributes.put("codiceFiscaleDelegatoFineLavori", @@ -153,21 +147,11 @@ public class DettPraticaClp extends BaseModelImpl attributes.put("sanatoriaEdilizia47", getSanatoriaEdilizia47()); attributes.put("sanatoriaEdilizia724", getSanatoriaEdilizia724()); attributes.put("sanatoriaEdilizia326", getSanatoriaEdilizia326()); - attributes.put("lavoriInEconomiaCommittente", - getLavoriInEconomiaCommittente()); - attributes.put("inizioLavoriContestualeOpera", - getInizioLavoriContestualeOpera()); - attributes.put("dataInizioLavoriOpera", getDataInizioLavoriOpera()); - attributes.put("dataInizioEsecuzioneOpera", - getDataInizioEsecuzioneOpera()); - attributes.put("dataFineEsecuzioneOpera", getDataFineEsecuzioneOpera()); - attributes.put("metratura", getMetratura()); attributes.put("lavoriPubblici", getLavoriPubblici()); attributes.put("pagamentoIdOneri", getPagamentoIdOneri()); attributes.put("pagamentoIdBolli", getPagamentoIdBolli()); attributes.put("lavoriPubbliciPercentuale", getLavoriPubbliciPercentuale()); - attributes.put("numeroCivico", getNumeroCivico()); attributes.put("dcParticelle", getDcParticelle()); attributes.put("dcFoglio", getDcFoglio()); attributes.put("dcAllegato", getDcAllegato()); @@ -377,6 +361,7 @@ public class DettPraticaClp extends BaseModelImpl attributes.put("tcAltro", getTcAltro()); attributes.put("tcAltroDescrizione", getTcAltroDescrizione()); attributes.put("tcConDispositivi", getTcConDispositivi()); + attributes.put("interventoVoceP7", getInterventoVoceP7()); attributes.put("normLavoriInProprio", getNormLavoriInProprio()); attributes.put("normLavoriNoDirettore", getNormLavoriNoDirettore()); attributes.put("normEsenteBollo", getNormEsenteBollo()); @@ -385,24 +370,10 @@ public class DettPraticaClp extends BaseModelImpl attributes.put("normDpr02Dep", getNormDpr02Dep()); attributes.put("normDpr01Aut", getNormDpr01Aut()); attributes.put("normDpr02Aut", getNormDpr02Aut()); - attributes.put("normDpr03", getNormDpr03()); - attributes.put("normDpr04", getNormDpr04()); - attributes.put("normDpr05", getNormDpr05()); - attributes.put("normDm01", getNormDm01()); - attributes.put("normDm02", getNormDm02()); - attributes.put("normDm03", getNormDm03()); attributes.put("normDm2018", getNormDm2018()); - attributes.put("normDm04", getNormDm04()); - attributes.put("normDm05", getNormDm05()); - attributes.put("normDprg01", getNormDprg01()); - attributes.put("normDprg02", getNormDprg02()); attributes.put("normAnr", getNormAnr()); - attributes.put("normOrd01", getNormOrd01()); - attributes.put("normCI01", getNormCI01()); - attributes.put("normLTC01", getNormLTC01()); attributes.put("normArt3com3", getNormArt3com3()); attributes.put("normArt3com4", getNormArt3com4()); - attributes.put("dpdc", getDpdc()); attributes.put("normSismaBonus", getNormSismaBonus()); attributes.put("clRischioPreInt", getClRischioPreInt()); attributes.put("clRischioPostInt", getClRischioPostInt()); @@ -572,12 +543,6 @@ public class DettPraticaClp extends BaseModelImpl setVersion(version); } - Boolean versionata = (Boolean)attributes.get("versionata"); - - if (versionata != null) { - setVersionata(versionata); - } - Integer status = (Integer)attributes.get("status"); if (status != null) { @@ -608,12 +573,6 @@ public class DettPraticaClp extends BaseModelImpl setStatusTask(statusTask); } - Boolean workflowForzato = (Boolean)attributes.get("workflowForzato"); - - if (workflowForzato != null) { - setWorkflowForzato(workflowForzato); - } - Long soggettoSostituitoId = (Long)attributes.get("soggettoSostituitoId"); if (soggettoSostituitoId != null) { @@ -626,12 +585,6 @@ public class DettPraticaClp extends BaseModelImpl setDtInvioSignal(dtInvioSignal); } - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } - String destinazione = (String)attributes.get("destinazione"); if (destinazione != null) { @@ -692,25 +645,12 @@ public class DettPraticaClp extends BaseModelImpl setEstremiPratCom(estremiPratCom); } - Long variataDa = (Long)attributes.get("variataDa"); - - if (variataDa != null) { - setVariataDa(variataDa); - } - Long varianteNumero = (Long)attributes.get("varianteNumero"); if (varianteNumero != null) { setVarianteNumero(varianteNumero); } - Boolean varianteSostanziale = (Boolean)attributes.get( - "varianteSostanziale"); - - if (varianteSostanziale != null) { - setVarianteSostanziale(varianteSostanziale); - } - Boolean operaConforme = (Boolean)attributes.get("operaConforme"); if (operaConforme != null) { @@ -736,13 +676,6 @@ public class DettPraticaClp extends BaseModelImpl setCodiceFiscaleDelegato(codiceFiscaleDelegato); } - String codiceRuoloDelegato = (String)attributes.get( - "codiceRuoloDelegato"); - - if (codiceRuoloDelegato != null) { - setCodiceRuoloDelegato(codiceRuoloDelegato); - } - String codiceFiscaleDelegatoCommittente = (String)attributes.get( "codiceFiscaleDelegatoCommittente"); @@ -834,47 +767,6 @@ public class DettPraticaClp extends BaseModelImpl setSanatoriaEdilizia326(sanatoriaEdilizia326); } - Boolean lavoriInEconomiaCommittente = (Boolean)attributes.get( - "lavoriInEconomiaCommittente"); - - if (lavoriInEconomiaCommittente != null) { - setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); - } - - Boolean inizioLavoriContestualeOpera = (Boolean)attributes.get( - "inizioLavoriContestualeOpera"); - - if (inizioLavoriContestualeOpera != null) { - setInizioLavoriContestualeOpera(inizioLavoriContestualeOpera); - } - - Date dataInizioLavoriOpera = (Date)attributes.get( - "dataInizioLavoriOpera"); - - if (dataInizioLavoriOpera != null) { - setDataInizioLavoriOpera(dataInizioLavoriOpera); - } - - Date dataInizioEsecuzioneOpera = (Date)attributes.get( - "dataInizioEsecuzioneOpera"); - - if (dataInizioEsecuzioneOpera != null) { - setDataInizioEsecuzioneOpera(dataInizioEsecuzioneOpera); - } - - Date dataFineEsecuzioneOpera = (Date)attributes.get( - "dataFineEsecuzioneOpera"); - - if (dataFineEsecuzioneOpera != null) { - setDataFineEsecuzioneOpera(dataFineEsecuzioneOpera); - } - - String metratura = (String)attributes.get("metratura"); - - if (metratura != null) { - setMetratura(metratura); - } - Boolean lavoriPubblici = (Boolean)attributes.get("lavoriPubblici"); if (lavoriPubblici != null) { @@ -900,12 +792,6 @@ public class DettPraticaClp extends BaseModelImpl setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); } - String numeroCivico = (String)attributes.get("numeroCivico"); - - if (numeroCivico != null) { - setNumeroCivico(numeroCivico); - } - String dcParticelle = (String)attributes.get("dcParticelle"); if (dcParticelle != null) { @@ -1981,6 +1867,12 @@ public class DettPraticaClp extends BaseModelImpl setTcConDispositivi(tcConDispositivi); } + String interventoVoceP7 = (String)attributes.get("interventoVoceP7"); + + if (interventoVoceP7 != null) { + setInterventoVoceP7(interventoVoceP7); + } + Boolean normLavoriInProprio = (Boolean)attributes.get( "normLavoriInProprio"); @@ -2031,96 +1923,18 @@ public class DettPraticaClp extends BaseModelImpl setNormDpr02Aut(normDpr02Aut); } - Boolean normDpr03 = (Boolean)attributes.get("normDpr03"); - - if (normDpr03 != null) { - setNormDpr03(normDpr03); - } - - Boolean normDpr04 = (Boolean)attributes.get("normDpr04"); - - if (normDpr04 != null) { - setNormDpr04(normDpr04); - } - - Boolean normDpr05 = (Boolean)attributes.get("normDpr05"); - - if (normDpr05 != null) { - setNormDpr05(normDpr05); - } - - Boolean normDm01 = (Boolean)attributes.get("normDm01"); - - if (normDm01 != null) { - setNormDm01(normDm01); - } - - Boolean normDm02 = (Boolean)attributes.get("normDm02"); - - if (normDm02 != null) { - setNormDm02(normDm02); - } - - Boolean normDm03 = (Boolean)attributes.get("normDm03"); - - if (normDm03 != null) { - setNormDm03(normDm03); - } - Boolean normDm2018 = (Boolean)attributes.get("normDm2018"); if (normDm2018 != null) { setNormDm2018(normDm2018); } - Boolean normDm04 = (Boolean)attributes.get("normDm04"); - - if (normDm04 != null) { - setNormDm04(normDm04); - } - - Boolean normDm05 = (Boolean)attributes.get("normDm05"); - - if (normDm05 != null) { - setNormDm05(normDm05); - } - - Boolean normDprg01 = (Boolean)attributes.get("normDprg01"); - - if (normDprg01 != null) { - setNormDprg01(normDprg01); - } - - Boolean normDprg02 = (Boolean)attributes.get("normDprg02"); - - if (normDprg02 != null) { - setNormDprg02(normDprg02); - } - Boolean normAnr = (Boolean)attributes.get("normAnr"); if (normAnr != null) { setNormAnr(normAnr); } - Boolean normOrd01 = (Boolean)attributes.get("normOrd01"); - - if (normOrd01 != null) { - setNormOrd01(normOrd01); - } - - Boolean normCI01 = (Boolean)attributes.get("normCI01"); - - if (normCI01 != null) { - setNormCI01(normCI01); - } - - Boolean normLTC01 = (Boolean)attributes.get("normLTC01"); - - if (normLTC01 != null) { - setNormLTC01(normLTC01); - } - Boolean normArt3com3 = (Boolean)attributes.get("normArt3com3"); if (normArt3com3 != null) { @@ -2133,12 +1947,6 @@ public class DettPraticaClp extends BaseModelImpl setNormArt3com4(normArt3com4); } - Boolean dpdc = (Boolean)attributes.get("dpdc"); - - if (dpdc != null) { - setDpdc(dpdc); - } - Boolean normSismaBonus = (Boolean)attributes.get("normSismaBonus"); if (normSismaBonus != null) { @@ -2780,34 +2588,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public boolean getVersionata() { - return _versionata; - } - - @Override - public boolean isVersionata() { - return _versionata; - } - - @Override - public void setVersionata(boolean versionata) { - _versionata = versionata; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setVersionata", boolean.class); - - method.invoke(_dettPraticaRemoteModel, versionata); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public int getStatus() { return _status; @@ -2935,35 +2715,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public boolean getWorkflowForzato() { - return _workflowForzato; - } - - @Override - public boolean isWorkflowForzato() { - return _workflowForzato; - } - - @Override - public void setWorkflowForzato(boolean workflowForzato) { - _workflowForzato = workflowForzato; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setWorkflowForzato", - boolean.class); - - method.invoke(_dettPraticaRemoteModel, workflowForzato); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public long getSoggettoSostituitoId() { return _soggettoSostituitoId; @@ -3011,30 +2762,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _oldDettPraticaId = oldDettPraticaId; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldDettPraticaId", - long.class); - - method.invoke(_dettPraticaRemoteModel, oldDettPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getDestinazione() { return _destinazione; @@ -3270,29 +2997,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public long getVariataDa() { - return _variataDa; - } - - @Override - public void setVariataDa(long variataDa) { - _variataDa = variataDa; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setVariataDa", long.class); - - method.invoke(_dettPraticaRemoteModel, variataDa); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public long getVarianteNumero() { return _varianteNumero; @@ -3316,35 +3020,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public boolean getVarianteSostanziale() { - return _varianteSostanziale; - } - - @Override - public boolean isVarianteSostanziale() { - return _varianteSostanziale; - } - - @Override - public void setVarianteSostanziale(boolean varianteSostanziale) { - _varianteSostanziale = varianteSostanziale; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setVarianteSostanziale", - boolean.class); - - method.invoke(_dettPraticaRemoteModel, varianteSostanziale); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public boolean getOperaConforme() { return _operaConforme; @@ -3455,30 +3130,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public String getCodiceRuoloDelegato() { - return _codiceRuoloDelegato; - } - - @Override - public void setCodiceRuoloDelegato(String codiceRuoloDelegato) { - _codiceRuoloDelegato = codiceRuoloDelegato; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setCodiceRuoloDelegato", - String.class); - - method.invoke(_dettPraticaRemoteModel, codiceRuoloDelegato); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getCodiceFiscaleDelegatoCommittente() { return _codiceFiscaleDelegatoCommittente; @@ -3827,29 +3478,27 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getLavoriInEconomiaCommittente() { - return _lavoriInEconomiaCommittente; + public boolean getLavoriPubblici() { + return _lavoriPubblici; } @Override - public boolean isLavoriInEconomiaCommittente() { - return _lavoriInEconomiaCommittente; + public boolean isLavoriPubblici() { + return _lavoriPubblici; } @Override - public void setLavoriInEconomiaCommittente( - boolean lavoriInEconomiaCommittente) { - _lavoriInEconomiaCommittente = lavoriInEconomiaCommittente; + public void setLavoriPubblici(boolean lavoriPubblici) { + _lavoriPubblici = lavoriPubblici; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setLavoriInEconomiaCommittente", + Method method = clazz.getMethod("setLavoriPubblici", boolean.class); - method.invoke(_dettPraticaRemoteModel, - lavoriInEconomiaCommittente); + method.invoke(_dettPraticaRemoteModel, lavoriPubblici); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -3858,29 +3507,22 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getInizioLavoriContestualeOpera() { - return _inizioLavoriContestualeOpera; - } - - @Override - public boolean isInizioLavoriContestualeOpera() { - return _inizioLavoriContestualeOpera; + public long getPagamentoIdOneri() { + return _pagamentoIdOneri; } @Override - public void setInizioLavoriContestualeOpera( - boolean inizioLavoriContestualeOpera) { - _inizioLavoriContestualeOpera = inizioLavoriContestualeOpera; + public void setPagamentoIdOneri(long pagamentoIdOneri) { + _pagamentoIdOneri = pagamentoIdOneri; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setInizioLavoriContestualeOpera", - boolean.class); + Method method = clazz.getMethod("setPagamentoIdOneri", + long.class); - method.invoke(_dettPraticaRemoteModel, - inizioLavoriContestualeOpera); + method.invoke(_dettPraticaRemoteModel, pagamentoIdOneri); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -3889,22 +3531,22 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public Date getDataInizioLavoriOpera() { - return _dataInizioLavoriOpera; + public long getPagamentoIdBolli() { + return _pagamentoIdBolli; } @Override - public void setDataInizioLavoriOpera(Date dataInizioLavoriOpera) { - _dataInizioLavoriOpera = dataInizioLavoriOpera; + public void setPagamentoIdBolli(long pagamentoIdBolli) { + _pagamentoIdBolli = pagamentoIdBolli; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setDataInizioLavoriOpera", - Date.class); + Method method = clazz.getMethod("setPagamentoIdBolli", + long.class); - method.invoke(_dettPraticaRemoteModel, dataInizioLavoriOpera); + method.invoke(_dettPraticaRemoteModel, pagamentoIdBolli); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -3913,22 +3555,22 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public Date getDataInizioEsecuzioneOpera() { - return _dataInizioEsecuzioneOpera; + public int getLavoriPubbliciPercentuale() { + return _lavoriPubbliciPercentuale; } @Override - public void setDataInizioEsecuzioneOpera(Date dataInizioEsecuzioneOpera) { - _dataInizioEsecuzioneOpera = dataInizioEsecuzioneOpera; + public void setLavoriPubbliciPercentuale(int lavoriPubbliciPercentuale) { + _lavoriPubbliciPercentuale = lavoriPubbliciPercentuale; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setDataInizioEsecuzioneOpera", - Date.class); + Method method = clazz.getMethod("setLavoriPubbliciPercentuale", + int.class); - method.invoke(_dettPraticaRemoteModel, dataInizioEsecuzioneOpera); + method.invoke(_dettPraticaRemoteModel, lavoriPubbliciPercentuale); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -3937,22 +3579,21 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public Date getDataFineEsecuzioneOpera() { - return _dataFineEsecuzioneOpera; + public String getDcParticelle() { + return _dcParticelle; } @Override - public void setDataFineEsecuzioneOpera(Date dataFineEsecuzioneOpera) { - _dataFineEsecuzioneOpera = dataFineEsecuzioneOpera; + public void setDcParticelle(String dcParticelle) { + _dcParticelle = dcParticelle; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setDataFineEsecuzioneOpera", - Date.class); + Method method = clazz.getMethod("setDcParticelle", String.class); - method.invoke(_dettPraticaRemoteModel, dataFineEsecuzioneOpera); + method.invoke(_dettPraticaRemoteModel, dcParticelle); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -3961,21 +3602,21 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public String getMetratura() { - return _metratura; + public String getDcFoglio() { + return _dcFoglio; } @Override - public void setMetratura(String metratura) { - _metratura = metratura; + public void setDcFoglio(String dcFoglio) { + _dcFoglio = dcFoglio; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setMetratura", String.class); + Method method = clazz.getMethod("setDcFoglio", String.class); - method.invoke(_dettPraticaRemoteModel, metratura); + method.invoke(_dettPraticaRemoteModel, dcFoglio); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -3984,178 +3625,8 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getLavoriPubblici() { - return _lavoriPubblici; - } - - @Override - public boolean isLavoriPubblici() { - return _lavoriPubblici; - } - - @Override - public void setLavoriPubblici(boolean lavoriPubblici) { - _lavoriPubblici = lavoriPubblici; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setLavoriPubblici", - boolean.class); - - method.invoke(_dettPraticaRemoteModel, lavoriPubblici); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getPagamentoIdOneri() { - return _pagamentoIdOneri; - } - - @Override - public void setPagamentoIdOneri(long pagamentoIdOneri) { - _pagamentoIdOneri = pagamentoIdOneri; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setPagamentoIdOneri", - long.class); - - method.invoke(_dettPraticaRemoteModel, pagamentoIdOneri); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getPagamentoIdBolli() { - return _pagamentoIdBolli; - } - - @Override - public void setPagamentoIdBolli(long pagamentoIdBolli) { - _pagamentoIdBolli = pagamentoIdBolli; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setPagamentoIdBolli", - long.class); - - method.invoke(_dettPraticaRemoteModel, pagamentoIdBolli); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public int getLavoriPubbliciPercentuale() { - return _lavoriPubbliciPercentuale; - } - - @Override - public void setLavoriPubbliciPercentuale(int lavoriPubbliciPercentuale) { - _lavoriPubbliciPercentuale = lavoriPubbliciPercentuale; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setLavoriPubbliciPercentuale", - int.class); - - method.invoke(_dettPraticaRemoteModel, lavoriPubbliciPercentuale); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getNumeroCivico() { - return _numeroCivico; - } - - @Override - public void setNumeroCivico(String numeroCivico) { - _numeroCivico = numeroCivico; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNumeroCivico", String.class); - - method.invoke(_dettPraticaRemoteModel, numeroCivico); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getDcParticelle() { - return _dcParticelle; - } - - @Override - public void setDcParticelle(String dcParticelle) { - _dcParticelle = dcParticelle; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setDcParticelle", String.class); - - method.invoke(_dettPraticaRemoteModel, dcParticelle); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getDcFoglio() { - return _dcFoglio; - } - - @Override - public void setDcFoglio(String dcFoglio) { - _dcFoglio = dcFoglio; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setDcFoglio", String.class); - - method.invoke(_dettPraticaRemoteModel, dcFoglio); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getDcAllegato() { - return _dcAllegato; + public String getDcAllegato() { + return _dcAllegato; } @Override @@ -8419,6 +7890,30 @@ public class DettPraticaClp extends BaseModelImpl } } + @Override + public String getInterventoVoceP7() { + return _interventoVoceP7; + } + + @Override + public void setInterventoVoceP7(String interventoVoceP7) { + _interventoVoceP7 = interventoVoceP7; + + if (_dettPraticaRemoteModel != null) { + try { + Class clazz = _dettPraticaRemoteModel.getClass(); + + Method method = clazz.getMethod("setInterventoVoceP7", + String.class); + + method.invoke(_dettPraticaRemoteModel, interventoVoceP7); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + @Override public boolean getNormLavoriInProprio() { return _normLavoriInProprio; @@ -8648,26 +8143,26 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDpr03() { - return _normDpr03; + public boolean getNormDm2018() { + return _normDm2018; } @Override - public boolean isNormDpr03() { - return _normDpr03; + public boolean isNormDm2018() { + return _normDm2018; } @Override - public void setNormDpr03(boolean normDpr03) { - _normDpr03 = normDpr03; + public void setNormDm2018(boolean normDm2018) { + _normDm2018 = normDm2018; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDpr03", boolean.class); + Method method = clazz.getMethod("setNormDm2018", boolean.class); - method.invoke(_dettPraticaRemoteModel, normDpr03); + method.invoke(_dettPraticaRemoteModel, normDm2018); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -8676,26 +8171,26 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDpr04() { - return _normDpr04; + public boolean getNormAnr() { + return _normAnr; } @Override - public boolean isNormDpr04() { - return _normDpr04; + public boolean isNormAnr() { + return _normAnr; } @Override - public void setNormDpr04(boolean normDpr04) { - _normDpr04 = normDpr04; + public void setNormAnr(boolean normAnr) { + _normAnr = normAnr; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDpr04", boolean.class); + Method method = clazz.getMethod("setNormAnr", boolean.class); - method.invoke(_dettPraticaRemoteModel, normDpr04); + method.invoke(_dettPraticaRemoteModel, normAnr); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -8704,26 +8199,26 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDpr05() { - return _normDpr05; + public boolean getNormArt3com3() { + return _normArt3com3; } @Override - public boolean isNormDpr05() { - return _normDpr05; + public boolean isNormArt3com3() { + return _normArt3com3; } @Override - public void setNormDpr05(boolean normDpr05) { - _normDpr05 = normDpr05; + public void setNormArt3com3(boolean normArt3com3) { + _normArt3com3 = normArt3com3; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDpr05", boolean.class); + Method method = clazz.getMethod("setNormArt3com3", boolean.class); - method.invoke(_dettPraticaRemoteModel, normDpr05); + method.invoke(_dettPraticaRemoteModel, normArt3com3); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -8732,26 +8227,26 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDm01() { - return _normDm01; + public boolean getNormArt3com4() { + return _normArt3com4; } @Override - public boolean isNormDm01() { - return _normDm01; + public boolean isNormArt3com4() { + return _normArt3com4; } @Override - public void setNormDm01(boolean normDm01) { - _normDm01 = normDm01; + public void setNormArt3com4(boolean normArt3com4) { + _normArt3com4 = normArt3com4; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDm01", boolean.class); + Method method = clazz.getMethod("setNormArt3com4", boolean.class); - method.invoke(_dettPraticaRemoteModel, normDm01); + method.invoke(_dettPraticaRemoteModel, normArt3com4); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -8760,26 +8255,27 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDm02() { - return _normDm02; + public boolean getNormSismaBonus() { + return _normSismaBonus; } @Override - public boolean isNormDm02() { - return _normDm02; + public boolean isNormSismaBonus() { + return _normSismaBonus; } @Override - public void setNormDm02(boolean normDm02) { - _normDm02 = normDm02; + public void setNormSismaBonus(boolean normSismaBonus) { + _normSismaBonus = normSismaBonus; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDm02", boolean.class); + Method method = clazz.getMethod("setNormSismaBonus", + boolean.class); - method.invoke(_dettPraticaRemoteModel, normDm02); + method.invoke(_dettPraticaRemoteModel, normSismaBonus); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -8788,26 +8284,22 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDm03() { - return _normDm03; - } - - @Override - public boolean isNormDm03() { - return _normDm03; + public String getClRischioPreInt() { + return _clRischioPreInt; } @Override - public void setNormDm03(boolean normDm03) { - _normDm03 = normDm03; + public void setClRischioPreInt(String clRischioPreInt) { + _clRischioPreInt = clRischioPreInt; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDm03", boolean.class); + Method method = clazz.getMethod("setClRischioPreInt", + String.class); - method.invoke(_dettPraticaRemoteModel, normDm03); + method.invoke(_dettPraticaRemoteModel, clRischioPreInt); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -8816,26 +8308,22 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDm2018() { - return _normDm2018; - } - - @Override - public boolean isNormDm2018() { - return _normDm2018; + public String getClRischioPostInt() { + return _clRischioPostInt; } @Override - public void setNormDm2018(boolean normDm2018) { - _normDm2018 = normDm2018; + public void setClRischioPostInt(String clRischioPostInt) { + _clRischioPostInt = clRischioPostInt; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDm2018", boolean.class); + Method method = clazz.getMethod("setClRischioPostInt", + String.class); - method.invoke(_dettPraticaRemoteModel, normDm2018); + method.invoke(_dettPraticaRemoteModel, clRischioPostInt); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -8844,411 +8332,26 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public boolean getNormDm04() { - return _normDm04; + public boolean getIntervFinPub() { + return _intervFinPub; } @Override - public boolean isNormDm04() { - return _normDm04; + public boolean isIntervFinPub() { + return _intervFinPub; } @Override - public void setNormDm04(boolean normDm04) { - _normDm04 = normDm04; + public void setIntervFinPub(boolean intervFinPub) { + _intervFinPub = intervFinPub; if (_dettPraticaRemoteModel != null) { try { Class clazz = _dettPraticaRemoteModel.getClass(); - Method method = clazz.getMethod("setNormDm04", boolean.class); + Method method = clazz.getMethod("setIntervFinPub", boolean.class); - method.invoke(_dettPraticaRemoteModel, normDm04); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormDm05() { - return _normDm05; - } - - @Override - public boolean isNormDm05() { - return _normDm05; - } - - @Override - public void setNormDm05(boolean normDm05) { - _normDm05 = normDm05; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormDm05", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normDm05); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormDprg01() { - return _normDprg01; - } - - @Override - public boolean isNormDprg01() { - return _normDprg01; - } - - @Override - public void setNormDprg01(boolean normDprg01) { - _normDprg01 = normDprg01; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormDprg01", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normDprg01); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormDprg02() { - return _normDprg02; - } - - @Override - public boolean isNormDprg02() { - return _normDprg02; - } - - @Override - public void setNormDprg02(boolean normDprg02) { - _normDprg02 = normDprg02; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormDprg02", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normDprg02); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormAnr() { - return _normAnr; - } - - @Override - public boolean isNormAnr() { - return _normAnr; - } - - @Override - public void setNormAnr(boolean normAnr) { - _normAnr = normAnr; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormAnr", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normAnr); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormOrd01() { - return _normOrd01; - } - - @Override - public boolean isNormOrd01() { - return _normOrd01; - } - - @Override - public void setNormOrd01(boolean normOrd01) { - _normOrd01 = normOrd01; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormOrd01", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normOrd01); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormCI01() { - return _normCI01; - } - - @Override - public boolean isNormCI01() { - return _normCI01; - } - - @Override - public void setNormCI01(boolean normCI01) { - _normCI01 = normCI01; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormCI01", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normCI01); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormLTC01() { - return _normLTC01; - } - - @Override - public boolean isNormLTC01() { - return _normLTC01; - } - - @Override - public void setNormLTC01(boolean normLTC01) { - _normLTC01 = normLTC01; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormLTC01", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normLTC01); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormArt3com3() { - return _normArt3com3; - } - - @Override - public boolean isNormArt3com3() { - return _normArt3com3; - } - - @Override - public void setNormArt3com3(boolean normArt3com3) { - _normArt3com3 = normArt3com3; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormArt3com3", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normArt3com3); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormArt3com4() { - return _normArt3com4; - } - - @Override - public boolean isNormArt3com4() { - return _normArt3com4; - } - - @Override - public void setNormArt3com4(boolean normArt3com4) { - _normArt3com4 = normArt3com4; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormArt3com4", boolean.class); - - method.invoke(_dettPraticaRemoteModel, normArt3com4); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getDpdc() { - return _dpdc; - } - - @Override - public boolean isDpdc() { - return _dpdc; - } - - @Override - public void setDpdc(boolean dpdc) { - _dpdc = dpdc; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setDpdc", boolean.class); - - method.invoke(_dettPraticaRemoteModel, dpdc); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getNormSismaBonus() { - return _normSismaBonus; - } - - @Override - public boolean isNormSismaBonus() { - return _normSismaBonus; - } - - @Override - public void setNormSismaBonus(boolean normSismaBonus) { - _normSismaBonus = normSismaBonus; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setNormSismaBonus", - boolean.class); - - method.invoke(_dettPraticaRemoteModel, normSismaBonus); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getClRischioPreInt() { - return _clRischioPreInt; - } - - @Override - public void setClRischioPreInt(String clRischioPreInt) { - _clRischioPreInt = clRischioPreInt; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setClRischioPreInt", - String.class); - - method.invoke(_dettPraticaRemoteModel, clRischioPreInt); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getClRischioPostInt() { - return _clRischioPostInt; - } - - @Override - public void setClRischioPostInt(String clRischioPostInt) { - _clRischioPostInt = clRischioPostInt; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setClRischioPostInt", - String.class); - - method.invoke(_dettPraticaRemoteModel, clRischioPostInt); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getIntervFinPub() { - return _intervFinPub; - } - - @Override - public boolean isIntervFinPub() { - return _intervFinPub; - } - - @Override - public void setIntervFinPub(boolean intervFinPub) { - _intervFinPub = intervFinPub; - - if (_dettPraticaRemoteModel != null) { - try { - Class clazz = _dettPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setIntervFinPub", boolean.class); - - method.invoke(_dettPraticaRemoteModel, intervFinPub); + method.invoke(_dettPraticaRemoteModel, intervFinPub); } catch (Exception e) { throw new UnsupportedOperationException(e); @@ -9346,25 +8449,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public java.lang.String serializeToVersioningPage() { - try { - String methodName = "serializeToVersioningPage"; - - Class[] parameterTypes = new Class[] { }; - - Object[] parameterValues = new Object[] { }; - - java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, - parameterTypes, parameterValues); - - return returnObj; - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - @Override public java.lang.String getMiddleDescription() { try { @@ -9384,25 +8468,6 @@ public class DettPraticaClp extends BaseModelImpl } } - @Override - public java.lang.String serializeToVersioning() { - try { - String methodName = "serializeToVersioning"; - - Class[] parameterTypes = new Class[] { }; - - Object[] parameterValues = new Object[] { }; - - java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, - parameterTypes, parameterValues); - - return returnObj; - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - @Override public java.lang.String getFullDescription() { try { @@ -9610,16 +8675,13 @@ public class DettPraticaClp extends BaseModelImpl clone.setMezzoPagamentoBolli(getMezzoPagamentoBolli()); clone.setDataEffettuazione(getDataEffettuazione()); clone.setVersion(getVersion()); - clone.setVersionata(getVersionata()); clone.setStatus(getStatus()); clone.setStatusByUserId(getStatusByUserId()); clone.setStatusByUserName(getStatusByUserName()); clone.setStatusDate(getStatusDate()); clone.setStatusTask(getStatusTask()); - clone.setWorkflowForzato(getWorkflowForzato()); clone.setSoggettoSostituitoId(getSoggettoSostituitoId()); clone.setDtInvioSignal(getDtInvioSignal()); - clone.setOldDettPraticaId(getOldDettPraticaId()); clone.setDestinazione(getDestinazione()); clone.setAg(getAg()); clone.setDescLongIntervento(getDescLongIntervento()); @@ -9630,14 +8692,11 @@ public class DettPraticaClp extends BaseModelImpl clone.setLocalita(getLocalita()); clone.setEstremiCatastali(getEstremiCatastali()); clone.setEstremiPratCom(getEstremiPratCom()); - clone.setVariataDa(getVariataDa()); clone.setVarianteNumero(getVarianteNumero()); - clone.setVarianteSostanziale(getVarianteSostanziale()); clone.setOperaConforme(getOperaConforme()); clone.setCollaudoStatico(getCollaudoStatico()); clone.setNoCollaudo(getNoCollaudo()); clone.setCodiceFiscaleDelegato(getCodiceFiscaleDelegato()); - clone.setCodiceRuoloDelegato(getCodiceRuoloDelegato()); clone.setCodiceFiscaleDelegatoCommittente(getCodiceFiscaleDelegatoCommittente()); clone.setCodiceFiscaleDelegatoFineLavori(getCodiceFiscaleDelegatoFineLavori()); clone.setCodiceFiscaleDelegatoCollaudo(getCodiceFiscaleDelegatoCollaudo()); @@ -9651,17 +8710,10 @@ public class DettPraticaClp extends BaseModelImpl clone.setSanatoriaEdilizia47(getSanatoriaEdilizia47()); clone.setSanatoriaEdilizia724(getSanatoriaEdilizia724()); clone.setSanatoriaEdilizia326(getSanatoriaEdilizia326()); - clone.setLavoriInEconomiaCommittente(getLavoriInEconomiaCommittente()); - clone.setInizioLavoriContestualeOpera(getInizioLavoriContestualeOpera()); - clone.setDataInizioLavoriOpera(getDataInizioLavoriOpera()); - clone.setDataInizioEsecuzioneOpera(getDataInizioEsecuzioneOpera()); - clone.setDataFineEsecuzioneOpera(getDataFineEsecuzioneOpera()); - clone.setMetratura(getMetratura()); clone.setLavoriPubblici(getLavoriPubblici()); clone.setPagamentoIdOneri(getPagamentoIdOneri()); clone.setPagamentoIdBolli(getPagamentoIdBolli()); clone.setLavoriPubbliciPercentuale(getLavoriPubbliciPercentuale()); - clone.setNumeroCivico(getNumeroCivico()); clone.setDcParticelle(getDcParticelle()); clone.setDcFoglio(getDcFoglio()); clone.setDcAllegato(getDcAllegato()); @@ -9823,6 +8875,7 @@ public class DettPraticaClp extends BaseModelImpl clone.setTcAltro(getTcAltro()); clone.setTcAltroDescrizione(getTcAltroDescrizione()); clone.setTcConDispositivi(getTcConDispositivi()); + clone.setInterventoVoceP7(getInterventoVoceP7()); clone.setNormLavoriInProprio(getNormLavoriInProprio()); clone.setNormLavoriNoDirettore(getNormLavoriNoDirettore()); clone.setNormEsenteBollo(getNormEsenteBollo()); @@ -9831,24 +8884,10 @@ public class DettPraticaClp extends BaseModelImpl clone.setNormDpr02Dep(getNormDpr02Dep()); clone.setNormDpr01Aut(getNormDpr01Aut()); clone.setNormDpr02Aut(getNormDpr02Aut()); - clone.setNormDpr03(getNormDpr03()); - clone.setNormDpr04(getNormDpr04()); - clone.setNormDpr05(getNormDpr05()); - clone.setNormDm01(getNormDm01()); - clone.setNormDm02(getNormDm02()); - clone.setNormDm03(getNormDm03()); clone.setNormDm2018(getNormDm2018()); - clone.setNormDm04(getNormDm04()); - clone.setNormDm05(getNormDm05()); - clone.setNormDprg01(getNormDprg01()); - clone.setNormDprg02(getNormDprg02()); clone.setNormAnr(getNormAnr()); - clone.setNormOrd01(getNormOrd01()); - clone.setNormCI01(getNormCI01()); - clone.setNormLTC01(getNormLTC01()); clone.setNormArt3com3(getNormArt3com3()); clone.setNormArt3com4(getNormArt3com4()); - clone.setDpdc(getDpdc()); clone.setNormSismaBonus(getNormSismaBonus()); clone.setClRischioPreInt(getClRischioPreInt()); clone.setClRischioPostInt(getClRischioPostInt()); @@ -9907,7 +8946,7 @@ public class DettPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(541); + StringBundler sb = new StringBundler(489); sb.append("{uuid="); sb.append(getUuid()); @@ -9959,8 +8998,6 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getDataEffettuazione()); sb.append(", version="); sb.append(getVersion()); - sb.append(", versionata="); - sb.append(getVersionata()); sb.append(", status="); sb.append(getStatus()); sb.append(", statusByUserId="); @@ -9971,14 +9008,10 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getStatusDate()); sb.append(", statusTask="); sb.append(getStatusTask()); - sb.append(", workflowForzato="); - sb.append(getWorkflowForzato()); sb.append(", soggettoSostituitoId="); sb.append(getSoggettoSostituitoId()); sb.append(", dtInvioSignal="); sb.append(getDtInvioSignal()); - sb.append(", oldDettPraticaId="); - sb.append(getOldDettPraticaId()); sb.append(", destinazione="); sb.append(getDestinazione()); sb.append(", ag="); @@ -9999,12 +9032,8 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getEstremiCatastali()); sb.append(", estremiPratCom="); sb.append(getEstremiPratCom()); - sb.append(", variataDa="); - sb.append(getVariataDa()); sb.append(", varianteNumero="); sb.append(getVarianteNumero()); - sb.append(", varianteSostanziale="); - sb.append(getVarianteSostanziale()); sb.append(", operaConforme="); sb.append(getOperaConforme()); sb.append(", collaudoStatico="); @@ -10013,8 +9042,6 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getNoCollaudo()); sb.append(", codiceFiscaleDelegato="); sb.append(getCodiceFiscaleDelegato()); - sb.append(", codiceRuoloDelegato="); - sb.append(getCodiceRuoloDelegato()); sb.append(", codiceFiscaleDelegatoCommittente="); sb.append(getCodiceFiscaleDelegatoCommittente()); sb.append(", codiceFiscaleDelegatoFineLavori="); @@ -10041,18 +9068,6 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getSanatoriaEdilizia724()); sb.append(", sanatoriaEdilizia326="); sb.append(getSanatoriaEdilizia326()); - sb.append(", lavoriInEconomiaCommittente="); - sb.append(getLavoriInEconomiaCommittente()); - sb.append(", inizioLavoriContestualeOpera="); - sb.append(getInizioLavoriContestualeOpera()); - sb.append(", dataInizioLavoriOpera="); - sb.append(getDataInizioLavoriOpera()); - sb.append(", dataInizioEsecuzioneOpera="); - sb.append(getDataInizioEsecuzioneOpera()); - sb.append(", dataFineEsecuzioneOpera="); - sb.append(getDataFineEsecuzioneOpera()); - sb.append(", metratura="); - sb.append(getMetratura()); sb.append(", lavoriPubblici="); sb.append(getLavoriPubblici()); sb.append(", pagamentoIdOneri="); @@ -10061,8 +9076,6 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getPagamentoIdBolli()); sb.append(", lavoriPubbliciPercentuale="); sb.append(getLavoriPubbliciPercentuale()); - sb.append(", numeroCivico="); - sb.append(getNumeroCivico()); sb.append(", dcParticelle="); sb.append(getDcParticelle()); sb.append(", dcFoglio="); @@ -10385,6 +9398,8 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getTcAltroDescrizione()); sb.append(", tcConDispositivi="); sb.append(getTcConDispositivi()); + sb.append(", interventoVoceP7="); + sb.append(getInterventoVoceP7()); sb.append(", normLavoriInProprio="); sb.append(getNormLavoriInProprio()); sb.append(", normLavoriNoDirettore="); @@ -10401,42 +9416,14 @@ public class DettPraticaClp extends BaseModelImpl sb.append(getNormDpr01Aut()); sb.append(", normDpr02Aut="); sb.append(getNormDpr02Aut()); - sb.append(", normDpr03="); - sb.append(getNormDpr03()); - sb.append(", normDpr04="); - sb.append(getNormDpr04()); - sb.append(", normDpr05="); - sb.append(getNormDpr05()); - sb.append(", normDm01="); - sb.append(getNormDm01()); - sb.append(", normDm02="); - sb.append(getNormDm02()); - sb.append(", normDm03="); - sb.append(getNormDm03()); sb.append(", normDm2018="); sb.append(getNormDm2018()); - sb.append(", normDm04="); - sb.append(getNormDm04()); - sb.append(", normDm05="); - sb.append(getNormDm05()); - sb.append(", normDprg01="); - sb.append(getNormDprg01()); - sb.append(", normDprg02="); - sb.append(getNormDprg02()); sb.append(", normAnr="); sb.append(getNormAnr()); - sb.append(", normOrd01="); - sb.append(getNormOrd01()); - sb.append(", normCI01="); - sb.append(getNormCI01()); - sb.append(", normLTC01="); - sb.append(getNormLTC01()); sb.append(", normArt3com3="); sb.append(getNormArt3com3()); sb.append(", normArt3com4="); sb.append(getNormArt3com4()); - sb.append(", dpdc="); - sb.append(getDpdc()); sb.append(", normSismaBonus="); sb.append(getNormSismaBonus()); sb.append(", clRischioPreInt="); @@ -10456,7 +9443,7 @@ public class DettPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(814); + StringBundler sb = new StringBundler(736); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DettPratica"); @@ -10562,10 +9549,6 @@ public class DettPraticaClp extends BaseModelImpl "version"); - sb.append( - "versionata"); sb.append( "status "statusTask"); - sb.append( - "workflowForzato"); sb.append( "soggettoSostituitoId "dtInvioSignal"); - sb.append( - "oldDettPraticaId"); sb.append( "destinazione "estremiPratCom"); - sb.append( - "variataDa"); sb.append( "varianteNumero"); - sb.append( - "varianteSostanziale"); sb.append( "operaConforme "codiceFiscaleDelegato"); - sb.append( - "codiceRuoloDelegato"); sb.append( "codiceFiscaleDelegatoCommittente "sanatoriaEdilizia326"); - sb.append( - "lavoriInEconomiaCommittente"); - sb.append( - "inizioLavoriContestualeOpera"); - sb.append( - "dataInizioLavoriOpera"); - sb.append( - "dataInizioEsecuzioneOpera"); - sb.append( - "dataFineEsecuzioneOpera"); - sb.append( - "metratura"); sb.append( "lavoriPubblici "lavoriPubbliciPercentuale"); - sb.append( - "numeroCivico"); sb.append( "dcParticelle "tcConDispositivi"); + sb.append( + "interventoVoceP7"); sb.append( "normLavoriInProprio "normDpr02Aut"); - sb.append( - "normDpr03"); - sb.append( - "normDpr04"); - sb.append( - "normDpr05"); - sb.append( - "normDm01"); - sb.append( - "normDm02"); - sb.append( - "normDm03"); sb.append( "normDm2018"); - sb.append( - "normDm04"); - sb.append( - "normDm05"); - sb.append( - "normDprg01"); - sb.append( - "normDprg02"); sb.append( "normAnr"); - sb.append( - "normOrd01"); - sb.append( - "normCI01"); - sb.append( - "normLTC01"); sb.append( "normArt3com3 "normArt3com4"); - sb.append( - "dpdc"); sb.append( "normSismaBonus private String _mezzoPagamentoBolli; private Date _dataEffettuazione; private int _version; - private boolean _versionata; private int _status; private long _statusByUserId; private String _statusByUserUuid; private String _statusByUserName; private Date _statusDate; private int _statusTask; - private boolean _workflowForzato; private long _soggettoSostituitoId; private Date _dtInvioSignal; - private long _oldDettPraticaId; private String _destinazione; private String _ag; private String _descLongIntervento; @@ -11595,14 +10475,11 @@ public class DettPraticaClp extends BaseModelImpl private String _localita; private String _estremiCatastali; private String _estremiPratCom; - private long _variataDa; private long _varianteNumero; - private boolean _varianteSostanziale; private boolean _operaConforme; private boolean _collaudoStatico; private boolean _noCollaudo; private String _codiceFiscaleDelegato; - private String _codiceRuoloDelegato; private String _codiceFiscaleDelegatoCommittente; private String _codiceFiscaleDelegatoFineLavori; private String _codiceFiscaleDelegatoCollaudo; @@ -11616,17 +10493,10 @@ public class DettPraticaClp extends BaseModelImpl private boolean _sanatoriaEdilizia47; private boolean _sanatoriaEdilizia724; private boolean _sanatoriaEdilizia326; - private boolean _lavoriInEconomiaCommittente; - private boolean _inizioLavoriContestualeOpera; - private Date _dataInizioLavoriOpera; - private Date _dataInizioEsecuzioneOpera; - private Date _dataFineEsecuzioneOpera; - private String _metratura; private boolean _lavoriPubblici; private long _pagamentoIdOneri; private long _pagamentoIdBolli; private int _lavoriPubbliciPercentuale; - private String _numeroCivico; private String _dcParticelle; private String _dcFoglio; private String _dcAllegato; @@ -11788,6 +10658,7 @@ public class DettPraticaClp extends BaseModelImpl private boolean _tcAltro; private String _tcAltroDescrizione; private boolean _tcConDispositivi; + private String _interventoVoceP7; private boolean _normLavoriInProprio; private boolean _normLavoriNoDirettore; private boolean _normEsenteBollo; @@ -11796,24 +10667,10 @@ public class DettPraticaClp extends BaseModelImpl private boolean _normDpr02Dep; private boolean _normDpr01Aut; private boolean _normDpr02Aut; - private boolean _normDpr03; - private boolean _normDpr04; - private boolean _normDpr05; - private boolean _normDm01; - private boolean _normDm02; - private boolean _normDm03; private boolean _normDm2018; - private boolean _normDm04; - private boolean _normDm05; - private boolean _normDprg01; - private boolean _normDprg02; private boolean _normAnr; - private boolean _normOrd01; - private boolean _normCI01; - private boolean _normLTC01; private boolean _normArt3com3; private boolean _normArt3com4; - private boolean _dpdc; private boolean _normSismaBonus; private String _clRischioPreInt; private String _clRischioPostInt; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java index cc794836..c1056ee4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaModel.java @@ -470,27 +470,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setVersion(int version); - /** - * Returns the versionata of this dett pratica. - * - * @return the versionata of this dett pratica - */ - public boolean getVersionata(); - - /** - * Returns true if this dett pratica is versionata. - * - * @return true if this dett pratica is versionata; false otherwise - */ - public boolean isVersionata(); - - /** - * Sets whether this dett pratica is versionata. - * - * @param versionata the versionata of this dett pratica - */ - public void setVersionata(boolean versionata); - /** * Returns the status of this dett pratica. * @@ -587,27 +566,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setStatusTask(int statusTask); - /** - * Returns the workflow forzato of this dett pratica. - * - * @return the workflow forzato of this dett pratica - */ - public boolean getWorkflowForzato(); - - /** - * Returns true if this dett pratica is workflow forzato. - * - * @return true if this dett pratica is workflow forzato; false otherwise - */ - public boolean isWorkflowForzato(); - - /** - * Sets whether this dett pratica is workflow forzato. - * - * @param workflowForzato the workflow forzato of this dett pratica - */ - public void setWorkflowForzato(boolean workflowForzato); - /** * Returns the soggetto sostituito ID of this dett pratica. * @@ -636,20 +594,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setDtInvioSignal(Date dtInvioSignal); - /** - * Returns the old dett pratica ID of this dett pratica. - * - * @return the old dett pratica ID of this dett pratica - */ - public long getOldDettPraticaId(); - - /** - * Sets the old dett pratica ID of this dett pratica. - * - * @param oldDettPraticaId the old dett pratica ID of this dett pratica - */ - public void setOldDettPraticaId(long oldDettPraticaId); - /** * Returns the destinazione of this dett pratica. * @@ -800,20 +744,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setEstremiPratCom(String estremiPratCom); - /** - * Returns the variata da of this dett pratica. - * - * @return the variata da of this dett pratica - */ - public long getVariataDa(); - - /** - * Sets the variata da of this dett pratica. - * - * @param variataDa the variata da of this dett pratica - */ - public void setVariataDa(long variataDa); - /** * Returns the variante numero of this dett pratica. * @@ -828,27 +758,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setVarianteNumero(long varianteNumero); - /** - * Returns the variante sostanziale of this dett pratica. - * - * @return the variante sostanziale of this dett pratica - */ - public boolean getVarianteSostanziale(); - - /** - * Returns true if this dett pratica is variante sostanziale. - * - * @return true if this dett pratica is variante sostanziale; false otherwise - */ - public boolean isVarianteSostanziale(); - - /** - * Sets whether this dett pratica is variante sostanziale. - * - * @param varianteSostanziale the variante sostanziale of this dett pratica - */ - public void setVarianteSostanziale(boolean varianteSostanziale); - /** * Returns the opera conforme of this dett pratica. * @@ -927,21 +836,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setCodiceFiscaleDelegato(String codiceFiscaleDelegato); - /** - * Returns the codice ruolo delegato of this dett pratica. - * - * @return the codice ruolo delegato of this dett pratica - */ - @AutoEscape - public String getCodiceRuoloDelegato(); - - /** - * Sets the codice ruolo delegato of this dett pratica. - * - * @param codiceRuoloDelegato the codice ruolo delegato of this dett pratica - */ - public void setCodiceRuoloDelegato(String codiceRuoloDelegato); - /** * Returns the codice fiscale delegato committente of this dett pratica. * @@ -1165,107 +1059,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setSanatoriaEdilizia326(boolean sanatoriaEdilizia326); - /** - * Returns the lavori in economia committente of this dett pratica. - * - * @return the lavori in economia committente of this dett pratica - */ - public boolean getLavoriInEconomiaCommittente(); - - /** - * Returns true if this dett pratica is lavori in economia committente. - * - * @return true if this dett pratica is lavori in economia committente; false otherwise - */ - public boolean isLavoriInEconomiaCommittente(); - - /** - * Sets whether this dett pratica is lavori in economia committente. - * - * @param lavoriInEconomiaCommittente the lavori in economia committente of this dett pratica - */ - public void setLavoriInEconomiaCommittente( - boolean lavoriInEconomiaCommittente); - - /** - * Returns the inizio lavori contestuale opera of this dett pratica. - * - * @return the inizio lavori contestuale opera of this dett pratica - */ - public boolean getInizioLavoriContestualeOpera(); - - /** - * Returns true if this dett pratica is inizio lavori contestuale opera. - * - * @return true if this dett pratica is inizio lavori contestuale opera; false otherwise - */ - public boolean isInizioLavoriContestualeOpera(); - - /** - * Sets whether this dett pratica is inizio lavori contestuale opera. - * - * @param inizioLavoriContestualeOpera the inizio lavori contestuale opera of this dett pratica - */ - public void setInizioLavoriContestualeOpera( - boolean inizioLavoriContestualeOpera); - - /** - * Returns the data inizio lavori opera of this dett pratica. - * - * @return the data inizio lavori opera of this dett pratica - */ - public Date getDataInizioLavoriOpera(); - - /** - * Sets the data inizio lavori opera of this dett pratica. - * - * @param dataInizioLavoriOpera the data inizio lavori opera of this dett pratica - */ - public void setDataInizioLavoriOpera(Date dataInizioLavoriOpera); - - /** - * Returns the data inizio esecuzione opera of this dett pratica. - * - * @return the data inizio esecuzione opera of this dett pratica - */ - public Date getDataInizioEsecuzioneOpera(); - - /** - * Sets the data inizio esecuzione opera of this dett pratica. - * - * @param dataInizioEsecuzioneOpera the data inizio esecuzione opera of this dett pratica - */ - public void setDataInizioEsecuzioneOpera(Date dataInizioEsecuzioneOpera); - - /** - * Returns the data fine esecuzione opera of this dett pratica. - * - * @return the data fine esecuzione opera of this dett pratica - */ - public Date getDataFineEsecuzioneOpera(); - - /** - * Sets the data fine esecuzione opera of this dett pratica. - * - * @param dataFineEsecuzioneOpera the data fine esecuzione opera of this dett pratica - */ - public void setDataFineEsecuzioneOpera(Date dataFineEsecuzioneOpera); - - /** - * Returns the metratura of this dett pratica. - * - * @return the metratura of this dett pratica - */ - @AutoEscape - public String getMetratura(); - - /** - * Sets the metratura of this dett pratica. - * - * @param metratura the metratura of this dett pratica - */ - public void setMetratura(String metratura); - /** * Returns the lavori pubblici of this dett pratica. * @@ -1329,21 +1122,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setLavoriPubbliciPercentuale(int lavoriPubbliciPercentuale); - /** - * Returns the numero civico of this dett pratica. - * - * @return the numero civico of this dett pratica - */ - @AutoEscape - public String getNumeroCivico(); - - /** - * Sets the numero civico of this dett pratica. - * - * @param numeroCivico the numero civico of this dett pratica - */ - public void setNumeroCivico(String numeroCivico); - /** * Returns the dc particelle of this dett pratica. * @@ -4250,6 +4028,21 @@ public interface DettPraticaModel extends BaseModel, */ public void setTcConDispositivi(boolean tcConDispositivi); + /** + * Returns the intervento voce p7 of this dett pratica. + * + * @return the intervento voce p7 of this dett pratica + */ + @AutoEscape + public String getInterventoVoceP7(); + + /** + * Sets the intervento voce p7 of this dett pratica. + * + * @param interventoVoceP7 the intervento voce p7 of this dett pratica + */ + public void setInterventoVoceP7(String interventoVoceP7); + /** * Returns the norm lavori in proprio of this dett pratica. * @@ -4418,132 +4211,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setNormDpr02Aut(boolean normDpr02Aut); - /** - * Returns the norm dpr03 of this dett pratica. - * - * @return the norm dpr03 of this dett pratica - */ - public boolean getNormDpr03(); - - /** - * Returns true if this dett pratica is norm dpr03. - * - * @return true if this dett pratica is norm dpr03; false otherwise - */ - public boolean isNormDpr03(); - - /** - * Sets whether this dett pratica is norm dpr03. - * - * @param normDpr03 the norm dpr03 of this dett pratica - */ - public void setNormDpr03(boolean normDpr03); - - /** - * Returns the norm dpr04 of this dett pratica. - * - * @return the norm dpr04 of this dett pratica - */ - public boolean getNormDpr04(); - - /** - * Returns true if this dett pratica is norm dpr04. - * - * @return true if this dett pratica is norm dpr04; false otherwise - */ - public boolean isNormDpr04(); - - /** - * Sets whether this dett pratica is norm dpr04. - * - * @param normDpr04 the norm dpr04 of this dett pratica - */ - public void setNormDpr04(boolean normDpr04); - - /** - * Returns the norm dpr05 of this dett pratica. - * - * @return the norm dpr05 of this dett pratica - */ - public boolean getNormDpr05(); - - /** - * Returns true if this dett pratica is norm dpr05. - * - * @return true if this dett pratica is norm dpr05; false otherwise - */ - public boolean isNormDpr05(); - - /** - * Sets whether this dett pratica is norm dpr05. - * - * @param normDpr05 the norm dpr05 of this dett pratica - */ - public void setNormDpr05(boolean normDpr05); - - /** - * Returns the norm dm01 of this dett pratica. - * - * @return the norm dm01 of this dett pratica - */ - public boolean getNormDm01(); - - /** - * Returns true if this dett pratica is norm dm01. - * - * @return true if this dett pratica is norm dm01; false otherwise - */ - public boolean isNormDm01(); - - /** - * Sets whether this dett pratica is norm dm01. - * - * @param normDm01 the norm dm01 of this dett pratica - */ - public void setNormDm01(boolean normDm01); - - /** - * Returns the norm dm02 of this dett pratica. - * - * @return the norm dm02 of this dett pratica - */ - public boolean getNormDm02(); - - /** - * Returns true if this dett pratica is norm dm02. - * - * @return true if this dett pratica is norm dm02; false otherwise - */ - public boolean isNormDm02(); - - /** - * Sets whether this dett pratica is norm dm02. - * - * @param normDm02 the norm dm02 of this dett pratica - */ - public void setNormDm02(boolean normDm02); - - /** - * Returns the norm dm03 of this dett pratica. - * - * @return the norm dm03 of this dett pratica - */ - public boolean getNormDm03(); - - /** - * Returns true if this dett pratica is norm dm03. - * - * @return true if this dett pratica is norm dm03; false otherwise - */ - public boolean isNormDm03(); - - /** - * Sets whether this dett pratica is norm dm03. - * - * @param normDm03 the norm dm03 of this dett pratica - */ - public void setNormDm03(boolean normDm03); - /** * Returns the norm dm2018 of this dett pratica. * @@ -4565,90 +4232,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setNormDm2018(boolean normDm2018); - /** - * Returns the norm dm04 of this dett pratica. - * - * @return the norm dm04 of this dett pratica - */ - public boolean getNormDm04(); - - /** - * Returns true if this dett pratica is norm dm04. - * - * @return true if this dett pratica is norm dm04; false otherwise - */ - public boolean isNormDm04(); - - /** - * Sets whether this dett pratica is norm dm04. - * - * @param normDm04 the norm dm04 of this dett pratica - */ - public void setNormDm04(boolean normDm04); - - /** - * Returns the norm dm05 of this dett pratica. - * - * @return the norm dm05 of this dett pratica - */ - public boolean getNormDm05(); - - /** - * Returns true if this dett pratica is norm dm05. - * - * @return true if this dett pratica is norm dm05; false otherwise - */ - public boolean isNormDm05(); - - /** - * Sets whether this dett pratica is norm dm05. - * - * @param normDm05 the norm dm05 of this dett pratica - */ - public void setNormDm05(boolean normDm05); - - /** - * Returns the norm dprg01 of this dett pratica. - * - * @return the norm dprg01 of this dett pratica - */ - public boolean getNormDprg01(); - - /** - * Returns true if this dett pratica is norm dprg01. - * - * @return true if this dett pratica is norm dprg01; false otherwise - */ - public boolean isNormDprg01(); - - /** - * Sets whether this dett pratica is norm dprg01. - * - * @param normDprg01 the norm dprg01 of this dett pratica - */ - public void setNormDprg01(boolean normDprg01); - - /** - * Returns the norm dprg02 of this dett pratica. - * - * @return the norm dprg02 of this dett pratica - */ - public boolean getNormDprg02(); - - /** - * Returns true if this dett pratica is norm dprg02. - * - * @return true if this dett pratica is norm dprg02; false otherwise - */ - public boolean isNormDprg02(); - - /** - * Sets whether this dett pratica is norm dprg02. - * - * @param normDprg02 the norm dprg02 of this dett pratica - */ - public void setNormDprg02(boolean normDprg02); - /** * Returns the norm anr of this dett pratica. * @@ -4670,69 +4253,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setNormAnr(boolean normAnr); - /** - * Returns the norm ord01 of this dett pratica. - * - * @return the norm ord01 of this dett pratica - */ - public boolean getNormOrd01(); - - /** - * Returns true if this dett pratica is norm ord01. - * - * @return true if this dett pratica is norm ord01; false otherwise - */ - public boolean isNormOrd01(); - - /** - * Sets whether this dett pratica is norm ord01. - * - * @param normOrd01 the norm ord01 of this dett pratica - */ - public void setNormOrd01(boolean normOrd01); - - /** - * Returns the norm c i01 of this dett pratica. - * - * @return the norm c i01 of this dett pratica - */ - public boolean getNormCI01(); - - /** - * Returns true if this dett pratica is norm c i01. - * - * @return true if this dett pratica is norm c i01; false otherwise - */ - public boolean isNormCI01(); - - /** - * Sets whether this dett pratica is norm c i01. - * - * @param normCI01 the norm c i01 of this dett pratica - */ - public void setNormCI01(boolean normCI01); - - /** - * Returns the norm l t c01 of this dett pratica. - * - * @return the norm l t c01 of this dett pratica - */ - public boolean getNormLTC01(); - - /** - * Returns true if this dett pratica is norm l t c01. - * - * @return true if this dett pratica is norm l t c01; false otherwise - */ - public boolean isNormLTC01(); - - /** - * Sets whether this dett pratica is norm l t c01. - * - * @param normLTC01 the norm l t c01 of this dett pratica - */ - public void setNormLTC01(boolean normLTC01); - /** * Returns the norm art3com3 of this dett pratica. * @@ -4775,27 +4295,6 @@ public interface DettPraticaModel extends BaseModel, */ public void setNormArt3com4(boolean normArt3com4); - /** - * Returns the dpdc of this dett pratica. - * - * @return the dpdc of this dett pratica - */ - public boolean getDpdc(); - - /** - * Returns true if this dett pratica is dpdc. - * - * @return true if this dett pratica is dpdc; false otherwise - */ - public boolean isDpdc(); - - /** - * Sets whether this dett pratica is dpdc. - * - * @param dpdc the dpdc of this dett pratica - */ - public void setDpdc(boolean dpdc); - /** * Returns the norm sisma bonus of this dett pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java index 25d408fd..3380ad32 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaSoap.java @@ -56,16 +56,13 @@ public class DettPraticaSoap implements Serializable { soapModel.setMezzoPagamentoBolli(model.getMezzoPagamentoBolli()); soapModel.setDataEffettuazione(model.getDataEffettuazione()); soapModel.setVersion(model.getVersion()); - soapModel.setVersionata(model.getVersionata()); soapModel.setStatus(model.getStatus()); soapModel.setStatusByUserId(model.getStatusByUserId()); soapModel.setStatusByUserName(model.getStatusByUserName()); soapModel.setStatusDate(model.getStatusDate()); soapModel.setStatusTask(model.getStatusTask()); - soapModel.setWorkflowForzato(model.getWorkflowForzato()); soapModel.setSoggettoSostituitoId(model.getSoggettoSostituitoId()); soapModel.setDtInvioSignal(model.getDtInvioSignal()); - soapModel.setOldDettPraticaId(model.getOldDettPraticaId()); soapModel.setDestinazione(model.getDestinazione()); soapModel.setAg(model.getAg()); soapModel.setDescLongIntervento(model.getDescLongIntervento()); @@ -76,14 +73,11 @@ public class DettPraticaSoap implements Serializable { soapModel.setLocalita(model.getLocalita()); soapModel.setEstremiCatastali(model.getEstremiCatastali()); soapModel.setEstremiPratCom(model.getEstremiPratCom()); - soapModel.setVariataDa(model.getVariataDa()); soapModel.setVarianteNumero(model.getVarianteNumero()); - soapModel.setVarianteSostanziale(model.getVarianteSostanziale()); soapModel.setOperaConforme(model.getOperaConforme()); soapModel.setCollaudoStatico(model.getCollaudoStatico()); soapModel.setNoCollaudo(model.getNoCollaudo()); soapModel.setCodiceFiscaleDelegato(model.getCodiceFiscaleDelegato()); - soapModel.setCodiceRuoloDelegato(model.getCodiceRuoloDelegato()); soapModel.setCodiceFiscaleDelegatoCommittente(model.getCodiceFiscaleDelegatoCommittente()); soapModel.setCodiceFiscaleDelegatoFineLavori(model.getCodiceFiscaleDelegatoFineLavori()); soapModel.setCodiceFiscaleDelegatoCollaudo(model.getCodiceFiscaleDelegatoCollaudo()); @@ -97,17 +91,10 @@ public class DettPraticaSoap implements Serializable { soapModel.setSanatoriaEdilizia47(model.getSanatoriaEdilizia47()); soapModel.setSanatoriaEdilizia724(model.getSanatoriaEdilizia724()); soapModel.setSanatoriaEdilizia326(model.getSanatoriaEdilizia326()); - soapModel.setLavoriInEconomiaCommittente(model.getLavoriInEconomiaCommittente()); - soapModel.setInizioLavoriContestualeOpera(model.getInizioLavoriContestualeOpera()); - soapModel.setDataInizioLavoriOpera(model.getDataInizioLavoriOpera()); - soapModel.setDataInizioEsecuzioneOpera(model.getDataInizioEsecuzioneOpera()); - soapModel.setDataFineEsecuzioneOpera(model.getDataFineEsecuzioneOpera()); - soapModel.setMetratura(model.getMetratura()); soapModel.setLavoriPubblici(model.getLavoriPubblici()); soapModel.setPagamentoIdOneri(model.getPagamentoIdOneri()); soapModel.setPagamentoIdBolli(model.getPagamentoIdBolli()); soapModel.setLavoriPubbliciPercentuale(model.getLavoriPubbliciPercentuale()); - soapModel.setNumeroCivico(model.getNumeroCivico()); soapModel.setDcParticelle(model.getDcParticelle()); soapModel.setDcFoglio(model.getDcFoglio()); soapModel.setDcAllegato(model.getDcAllegato()); @@ -269,6 +256,7 @@ public class DettPraticaSoap implements Serializable { soapModel.setTcAltro(model.getTcAltro()); soapModel.setTcAltroDescrizione(model.getTcAltroDescrizione()); soapModel.setTcConDispositivi(model.getTcConDispositivi()); + soapModel.setInterventoVoceP7(model.getInterventoVoceP7()); soapModel.setNormLavoriInProprio(model.getNormLavoriInProprio()); soapModel.setNormLavoriNoDirettore(model.getNormLavoriNoDirettore()); soapModel.setNormEsenteBollo(model.getNormEsenteBollo()); @@ -277,24 +265,10 @@ public class DettPraticaSoap implements Serializable { soapModel.setNormDpr02Dep(model.getNormDpr02Dep()); soapModel.setNormDpr01Aut(model.getNormDpr01Aut()); soapModel.setNormDpr02Aut(model.getNormDpr02Aut()); - soapModel.setNormDpr03(model.getNormDpr03()); - soapModel.setNormDpr04(model.getNormDpr04()); - soapModel.setNormDpr05(model.getNormDpr05()); - soapModel.setNormDm01(model.getNormDm01()); - soapModel.setNormDm02(model.getNormDm02()); - soapModel.setNormDm03(model.getNormDm03()); soapModel.setNormDm2018(model.getNormDm2018()); - soapModel.setNormDm04(model.getNormDm04()); - soapModel.setNormDm05(model.getNormDm05()); - soapModel.setNormDprg01(model.getNormDprg01()); - soapModel.setNormDprg02(model.getNormDprg02()); soapModel.setNormAnr(model.getNormAnr()); - soapModel.setNormOrd01(model.getNormOrd01()); - soapModel.setNormCI01(model.getNormCI01()); - soapModel.setNormLTC01(model.getNormLTC01()); soapModel.setNormArt3com3(model.getNormArt3com3()); soapModel.setNormArt3com4(model.getNormArt3com4()); - soapModel.setDpdc(model.getDpdc()); soapModel.setNormSismaBonus(model.getNormSismaBonus()); soapModel.setClRischioPreInt(model.getClRischioPreInt()); soapModel.setClRischioPostInt(model.getClRischioPostInt()); @@ -561,18 +535,6 @@ public class DettPraticaSoap implements Serializable { _version = version; } - public boolean getVersionata() { - return _versionata; - } - - public boolean isVersionata() { - return _versionata; - } - - public void setVersionata(boolean versionata) { - _versionata = versionata; - } - public int getStatus() { return _status; } @@ -613,18 +575,6 @@ public class DettPraticaSoap implements Serializable { _statusTask = statusTask; } - public boolean getWorkflowForzato() { - return _workflowForzato; - } - - public boolean isWorkflowForzato() { - return _workflowForzato; - } - - public void setWorkflowForzato(boolean workflowForzato) { - _workflowForzato = workflowForzato; - } - public long getSoggettoSostituitoId() { return _soggettoSostituitoId; } @@ -641,14 +591,6 @@ public class DettPraticaSoap implements Serializable { _dtInvioSignal = dtInvioSignal; } - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - public void setOldDettPraticaId(long oldDettPraticaId) { - _oldDettPraticaId = oldDettPraticaId; - } - public String getDestinazione() { return _destinazione; } @@ -729,14 +671,6 @@ public class DettPraticaSoap implements Serializable { _estremiPratCom = estremiPratCom; } - public long getVariataDa() { - return _variataDa; - } - - public void setVariataDa(long variataDa) { - _variataDa = variataDa; - } - public long getVarianteNumero() { return _varianteNumero; } @@ -745,18 +679,6 @@ public class DettPraticaSoap implements Serializable { _varianteNumero = varianteNumero; } - public boolean getVarianteSostanziale() { - return _varianteSostanziale; - } - - public boolean isVarianteSostanziale() { - return _varianteSostanziale; - } - - public void setVarianteSostanziale(boolean varianteSostanziale) { - _varianteSostanziale = varianteSostanziale; - } - public boolean getOperaConforme() { return _operaConforme; } @@ -801,14 +723,6 @@ public class DettPraticaSoap implements Serializable { _codiceFiscaleDelegato = codiceFiscaleDelegato; } - public String getCodiceRuoloDelegato() { - return _codiceRuoloDelegato; - } - - public void setCodiceRuoloDelegato(String codiceRuoloDelegato) { - _codiceRuoloDelegato = codiceRuoloDelegato; - } - public String getCodiceFiscaleDelegatoCommittente() { return _codiceFiscaleDelegatoCommittente; } @@ -935,64 +849,6 @@ public class DettPraticaSoap implements Serializable { _sanatoriaEdilizia326 = sanatoriaEdilizia326; } - public boolean getLavoriInEconomiaCommittente() { - return _lavoriInEconomiaCommittente; - } - - public boolean isLavoriInEconomiaCommittente() { - return _lavoriInEconomiaCommittente; - } - - public void setLavoriInEconomiaCommittente( - boolean lavoriInEconomiaCommittente) { - _lavoriInEconomiaCommittente = lavoriInEconomiaCommittente; - } - - public boolean getInizioLavoriContestualeOpera() { - return _inizioLavoriContestualeOpera; - } - - public boolean isInizioLavoriContestualeOpera() { - return _inizioLavoriContestualeOpera; - } - - public void setInizioLavoriContestualeOpera( - boolean inizioLavoriContestualeOpera) { - _inizioLavoriContestualeOpera = inizioLavoriContestualeOpera; - } - - public Date getDataInizioLavoriOpera() { - return _dataInizioLavoriOpera; - } - - public void setDataInizioLavoriOpera(Date dataInizioLavoriOpera) { - _dataInizioLavoriOpera = dataInizioLavoriOpera; - } - - public Date getDataInizioEsecuzioneOpera() { - return _dataInizioEsecuzioneOpera; - } - - public void setDataInizioEsecuzioneOpera(Date dataInizioEsecuzioneOpera) { - _dataInizioEsecuzioneOpera = dataInizioEsecuzioneOpera; - } - - public Date getDataFineEsecuzioneOpera() { - return _dataFineEsecuzioneOpera; - } - - public void setDataFineEsecuzioneOpera(Date dataFineEsecuzioneOpera) { - _dataFineEsecuzioneOpera = dataFineEsecuzioneOpera; - } - - public String getMetratura() { - return _metratura; - } - - public void setMetratura(String metratura) { - _metratura = metratura; - } - public boolean getLavoriPubblici() { return _lavoriPubblici; } @@ -1029,14 +885,6 @@ public class DettPraticaSoap implements Serializable { _lavoriPubbliciPercentuale = lavoriPubbliciPercentuale; } - public String getNumeroCivico() { - return _numeroCivico; - } - - public void setNumeroCivico(String numeroCivico) { - _numeroCivico = numeroCivico; - } - public String getDcParticelle() { return _dcParticelle; } @@ -2681,6 +2529,14 @@ public class DettPraticaSoap implements Serializable { _tcConDispositivi = tcConDispositivi; } + public String getInterventoVoceP7() { + return _interventoVoceP7; + } + + public void setInterventoVoceP7(String interventoVoceP7) { + _interventoVoceP7 = interventoVoceP7; + } + public boolean getNormLavoriInProprio() { return _normLavoriInProprio; } @@ -2777,78 +2633,6 @@ public class DettPraticaSoap implements Serializable { _normDpr02Aut = normDpr02Aut; } - public boolean getNormDpr03() { - return _normDpr03; - } - - public boolean isNormDpr03() { - return _normDpr03; - } - - public void setNormDpr03(boolean normDpr03) { - _normDpr03 = normDpr03; - } - - public boolean getNormDpr04() { - return _normDpr04; - } - - public boolean isNormDpr04() { - return _normDpr04; - } - - public void setNormDpr04(boolean normDpr04) { - _normDpr04 = normDpr04; - } - - public boolean getNormDpr05() { - return _normDpr05; - } - - public boolean isNormDpr05() { - return _normDpr05; - } - - public void setNormDpr05(boolean normDpr05) { - _normDpr05 = normDpr05; - } - - public boolean getNormDm01() { - return _normDm01; - } - - public boolean isNormDm01() { - return _normDm01; - } - - public void setNormDm01(boolean normDm01) { - _normDm01 = normDm01; - } - - public boolean getNormDm02() { - return _normDm02; - } - - public boolean isNormDm02() { - return _normDm02; - } - - public void setNormDm02(boolean normDm02) { - _normDm02 = normDm02; - } - - public boolean getNormDm03() { - return _normDm03; - } - - public boolean isNormDm03() { - return _normDm03; - } - - public void setNormDm03(boolean normDm03) { - _normDm03 = normDm03; - } - public boolean getNormDm2018() { return _normDm2018; } @@ -2861,54 +2645,6 @@ public class DettPraticaSoap implements Serializable { _normDm2018 = normDm2018; } - public boolean getNormDm04() { - return _normDm04; - } - - public boolean isNormDm04() { - return _normDm04; - } - - public void setNormDm04(boolean normDm04) { - _normDm04 = normDm04; - } - - public boolean getNormDm05() { - return _normDm05; - } - - public boolean isNormDm05() { - return _normDm05; - } - - public void setNormDm05(boolean normDm05) { - _normDm05 = normDm05; - } - - public boolean getNormDprg01() { - return _normDprg01; - } - - public boolean isNormDprg01() { - return _normDprg01; - } - - public void setNormDprg01(boolean normDprg01) { - _normDprg01 = normDprg01; - } - - public boolean getNormDprg02() { - return _normDprg02; - } - - public boolean isNormDprg02() { - return _normDprg02; - } - - public void setNormDprg02(boolean normDprg02) { - _normDprg02 = normDprg02; - } - public boolean getNormAnr() { return _normAnr; } @@ -2921,42 +2657,6 @@ public class DettPraticaSoap implements Serializable { _normAnr = normAnr; } - public boolean getNormOrd01() { - return _normOrd01; - } - - public boolean isNormOrd01() { - return _normOrd01; - } - - public void setNormOrd01(boolean normOrd01) { - _normOrd01 = normOrd01; - } - - public boolean getNormCI01() { - return _normCI01; - } - - public boolean isNormCI01() { - return _normCI01; - } - - public void setNormCI01(boolean normCI01) { - _normCI01 = normCI01; - } - - public boolean getNormLTC01() { - return _normLTC01; - } - - public boolean isNormLTC01() { - return _normLTC01; - } - - public void setNormLTC01(boolean normLTC01) { - _normLTC01 = normLTC01; - } - public boolean getNormArt3com3() { return _normArt3com3; } @@ -2981,18 +2681,6 @@ public class DettPraticaSoap implements Serializable { _normArt3com4 = normArt3com4; } - public boolean getDpdc() { - return _dpdc; - } - - public boolean isDpdc() { - return _dpdc; - } - - public void setDpdc(boolean dpdc) { - _dpdc = dpdc; - } - public boolean getNormSismaBonus() { return _normSismaBonus; } @@ -3078,16 +2766,13 @@ public class DettPraticaSoap implements Serializable { private String _mezzoPagamentoBolli; private Date _dataEffettuazione; private int _version; - private boolean _versionata; private int _status; private long _statusByUserId; private String _statusByUserName; private Date _statusDate; private int _statusTask; - private boolean _workflowForzato; private long _soggettoSostituitoId; private Date _dtInvioSignal; - private long _oldDettPraticaId; private String _destinazione; private String _ag; private String _descLongIntervento; @@ -3098,14 +2783,11 @@ public class DettPraticaSoap implements Serializable { private String _localita; private String _estremiCatastali; private String _estremiPratCom; - private long _variataDa; private long _varianteNumero; - private boolean _varianteSostanziale; private boolean _operaConforme; private boolean _collaudoStatico; private boolean _noCollaudo; private String _codiceFiscaleDelegato; - private String _codiceRuoloDelegato; private String _codiceFiscaleDelegatoCommittente; private String _codiceFiscaleDelegatoFineLavori; private String _codiceFiscaleDelegatoCollaudo; @@ -3119,17 +2801,10 @@ public class DettPraticaSoap implements Serializable { private boolean _sanatoriaEdilizia47; private boolean _sanatoriaEdilizia724; private boolean _sanatoriaEdilizia326; - private boolean _lavoriInEconomiaCommittente; - private boolean _inizioLavoriContestualeOpera; - private Date _dataInizioLavoriOpera; - private Date _dataInizioEsecuzioneOpera; - private Date _dataFineEsecuzioneOpera; - private String _metratura; private boolean _lavoriPubblici; private long _pagamentoIdOneri; private long _pagamentoIdBolli; private int _lavoriPubbliciPercentuale; - private String _numeroCivico; private String _dcParticelle; private String _dcFoglio; private String _dcAllegato; @@ -3291,6 +2966,7 @@ public class DettPraticaSoap implements Serializable { private boolean _tcAltro; private String _tcAltroDescrizione; private boolean _tcConDispositivi; + private String _interventoVoceP7; private boolean _normLavoriInProprio; private boolean _normLavoriNoDirettore; private boolean _normEsenteBollo; @@ -3299,24 +2975,10 @@ public class DettPraticaSoap implements Serializable { private boolean _normDpr02Dep; private boolean _normDpr01Aut; private boolean _normDpr02Aut; - private boolean _normDpr03; - private boolean _normDpr04; - private boolean _normDpr05; - private boolean _normDm01; - private boolean _normDm02; - private boolean _normDm03; private boolean _normDm2018; - private boolean _normDm04; - private boolean _normDm05; - private boolean _normDprg01; - private boolean _normDprg02; private boolean _normAnr; - private boolean _normOrd01; - private boolean _normCI01; - private boolean _normLTC01; private boolean _normArt3com3; private boolean _normArt3com4; - private boolean _dpdc; private boolean _normSismaBonus; private String _clRischioPreInt; private String _clRischioPostInt; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java index bda111db..d7eda794 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java @@ -76,16 +76,13 @@ public class DettPraticaWrapper implements DettPratica, attributes.put("mezzoPagamentoBolli", getMezzoPagamentoBolli()); attributes.put("dataEffettuazione", getDataEffettuazione()); attributes.put("version", getVersion()); - attributes.put("versionata", getVersionata()); attributes.put("status", getStatus()); attributes.put("statusByUserId", getStatusByUserId()); attributes.put("statusByUserName", getStatusByUserName()); attributes.put("statusDate", getStatusDate()); attributes.put("statusTask", getStatusTask()); - attributes.put("workflowForzato", getWorkflowForzato()); attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); attributes.put("dtInvioSignal", getDtInvioSignal()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); attributes.put("destinazione", getDestinazione()); attributes.put("ag", getAg()); attributes.put("descLongIntervento", getDescLongIntervento()); @@ -96,14 +93,11 @@ public class DettPraticaWrapper implements DettPratica, attributes.put("localita", getLocalita()); attributes.put("estremiCatastali", getEstremiCatastali()); attributes.put("estremiPratCom", getEstremiPratCom()); - attributes.put("variataDa", getVariataDa()); attributes.put("varianteNumero", getVarianteNumero()); - attributes.put("varianteSostanziale", getVarianteSostanziale()); attributes.put("operaConforme", getOperaConforme()); attributes.put("collaudoStatico", getCollaudoStatico()); attributes.put("noCollaudo", getNoCollaudo()); attributes.put("codiceFiscaleDelegato", getCodiceFiscaleDelegato()); - attributes.put("codiceRuoloDelegato", getCodiceRuoloDelegato()); attributes.put("codiceFiscaleDelegatoCommittente", getCodiceFiscaleDelegatoCommittente()); attributes.put("codiceFiscaleDelegatoFineLavori", @@ -127,21 +121,11 @@ public class DettPraticaWrapper implements DettPratica, attributes.put("sanatoriaEdilizia47", getSanatoriaEdilizia47()); attributes.put("sanatoriaEdilizia724", getSanatoriaEdilizia724()); attributes.put("sanatoriaEdilizia326", getSanatoriaEdilizia326()); - attributes.put("lavoriInEconomiaCommittente", - getLavoriInEconomiaCommittente()); - attributes.put("inizioLavoriContestualeOpera", - getInizioLavoriContestualeOpera()); - attributes.put("dataInizioLavoriOpera", getDataInizioLavoriOpera()); - attributes.put("dataInizioEsecuzioneOpera", - getDataInizioEsecuzioneOpera()); - attributes.put("dataFineEsecuzioneOpera", getDataFineEsecuzioneOpera()); - attributes.put("metratura", getMetratura()); attributes.put("lavoriPubblici", getLavoriPubblici()); attributes.put("pagamentoIdOneri", getPagamentoIdOneri()); attributes.put("pagamentoIdBolli", getPagamentoIdBolli()); attributes.put("lavoriPubbliciPercentuale", getLavoriPubbliciPercentuale()); - attributes.put("numeroCivico", getNumeroCivico()); attributes.put("dcParticelle", getDcParticelle()); attributes.put("dcFoglio", getDcFoglio()); attributes.put("dcAllegato", getDcAllegato()); @@ -351,6 +335,7 @@ public class DettPraticaWrapper implements DettPratica, attributes.put("tcAltro", getTcAltro()); attributes.put("tcAltroDescrizione", getTcAltroDescrizione()); attributes.put("tcConDispositivi", getTcConDispositivi()); + attributes.put("interventoVoceP7", getInterventoVoceP7()); attributes.put("normLavoriInProprio", getNormLavoriInProprio()); attributes.put("normLavoriNoDirettore", getNormLavoriNoDirettore()); attributes.put("normEsenteBollo", getNormEsenteBollo()); @@ -359,24 +344,10 @@ public class DettPraticaWrapper implements DettPratica, attributes.put("normDpr02Dep", getNormDpr02Dep()); attributes.put("normDpr01Aut", getNormDpr01Aut()); attributes.put("normDpr02Aut", getNormDpr02Aut()); - attributes.put("normDpr03", getNormDpr03()); - attributes.put("normDpr04", getNormDpr04()); - attributes.put("normDpr05", getNormDpr05()); - attributes.put("normDm01", getNormDm01()); - attributes.put("normDm02", getNormDm02()); - attributes.put("normDm03", getNormDm03()); attributes.put("normDm2018", getNormDm2018()); - attributes.put("normDm04", getNormDm04()); - attributes.put("normDm05", getNormDm05()); - attributes.put("normDprg01", getNormDprg01()); - attributes.put("normDprg02", getNormDprg02()); attributes.put("normAnr", getNormAnr()); - attributes.put("normOrd01", getNormOrd01()); - attributes.put("normCI01", getNormCI01()); - attributes.put("normLTC01", getNormLTC01()); attributes.put("normArt3com3", getNormArt3com3()); attributes.put("normArt3com4", getNormArt3com4()); - attributes.put("dpdc", getDpdc()); attributes.put("normSismaBonus", getNormSismaBonus()); attributes.put("clRischioPreInt", getClRischioPreInt()); attributes.put("clRischioPostInt", getClRischioPostInt()); @@ -546,12 +517,6 @@ public class DettPraticaWrapper implements DettPratica, setVersion(version); } - Boolean versionata = (Boolean)attributes.get("versionata"); - - if (versionata != null) { - setVersionata(versionata); - } - Integer status = (Integer)attributes.get("status"); if (status != null) { @@ -582,12 +547,6 @@ public class DettPraticaWrapper implements DettPratica, setStatusTask(statusTask); } - Boolean workflowForzato = (Boolean)attributes.get("workflowForzato"); - - if (workflowForzato != null) { - setWorkflowForzato(workflowForzato); - } - Long soggettoSostituitoId = (Long)attributes.get("soggettoSostituitoId"); if (soggettoSostituitoId != null) { @@ -600,12 +559,6 @@ public class DettPraticaWrapper implements DettPratica, setDtInvioSignal(dtInvioSignal); } - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } - String destinazione = (String)attributes.get("destinazione"); if (destinazione != null) { @@ -666,25 +619,12 @@ public class DettPraticaWrapper implements DettPratica, setEstremiPratCom(estremiPratCom); } - Long variataDa = (Long)attributes.get("variataDa"); - - if (variataDa != null) { - setVariataDa(variataDa); - } - Long varianteNumero = (Long)attributes.get("varianteNumero"); if (varianteNumero != null) { setVarianteNumero(varianteNumero); } - Boolean varianteSostanziale = (Boolean)attributes.get( - "varianteSostanziale"); - - if (varianteSostanziale != null) { - setVarianteSostanziale(varianteSostanziale); - } - Boolean operaConforme = (Boolean)attributes.get("operaConforme"); if (operaConforme != null) { @@ -710,13 +650,6 @@ public class DettPraticaWrapper implements DettPratica, setCodiceFiscaleDelegato(codiceFiscaleDelegato); } - String codiceRuoloDelegato = (String)attributes.get( - "codiceRuoloDelegato"); - - if (codiceRuoloDelegato != null) { - setCodiceRuoloDelegato(codiceRuoloDelegato); - } - String codiceFiscaleDelegatoCommittente = (String)attributes.get( "codiceFiscaleDelegatoCommittente"); @@ -808,47 +741,6 @@ public class DettPraticaWrapper implements DettPratica, setSanatoriaEdilizia326(sanatoriaEdilizia326); } - Boolean lavoriInEconomiaCommittente = (Boolean)attributes.get( - "lavoriInEconomiaCommittente"); - - if (lavoriInEconomiaCommittente != null) { - setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); - } - - Boolean inizioLavoriContestualeOpera = (Boolean)attributes.get( - "inizioLavoriContestualeOpera"); - - if (inizioLavoriContestualeOpera != null) { - setInizioLavoriContestualeOpera(inizioLavoriContestualeOpera); - } - - Date dataInizioLavoriOpera = (Date)attributes.get( - "dataInizioLavoriOpera"); - - if (dataInizioLavoriOpera != null) { - setDataInizioLavoriOpera(dataInizioLavoriOpera); - } - - Date dataInizioEsecuzioneOpera = (Date)attributes.get( - "dataInizioEsecuzioneOpera"); - - if (dataInizioEsecuzioneOpera != null) { - setDataInizioEsecuzioneOpera(dataInizioEsecuzioneOpera); - } - - Date dataFineEsecuzioneOpera = (Date)attributes.get( - "dataFineEsecuzioneOpera"); - - if (dataFineEsecuzioneOpera != null) { - setDataFineEsecuzioneOpera(dataFineEsecuzioneOpera); - } - - String metratura = (String)attributes.get("metratura"); - - if (metratura != null) { - setMetratura(metratura); - } - Boolean lavoriPubblici = (Boolean)attributes.get("lavoriPubblici"); if (lavoriPubblici != null) { @@ -874,12 +766,6 @@ public class DettPraticaWrapper implements DettPratica, setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); } - String numeroCivico = (String)attributes.get("numeroCivico"); - - if (numeroCivico != null) { - setNumeroCivico(numeroCivico); - } - String dcParticelle = (String)attributes.get("dcParticelle"); if (dcParticelle != null) { @@ -1955,6 +1841,12 @@ public class DettPraticaWrapper implements DettPratica, setTcConDispositivi(tcConDispositivi); } + String interventoVoceP7 = (String)attributes.get("interventoVoceP7"); + + if (interventoVoceP7 != null) { + setInterventoVoceP7(interventoVoceP7); + } + Boolean normLavoriInProprio = (Boolean)attributes.get( "normLavoriInProprio"); @@ -2005,96 +1897,18 @@ public class DettPraticaWrapper implements DettPratica, setNormDpr02Aut(normDpr02Aut); } - Boolean normDpr03 = (Boolean)attributes.get("normDpr03"); - - if (normDpr03 != null) { - setNormDpr03(normDpr03); - } - - Boolean normDpr04 = (Boolean)attributes.get("normDpr04"); - - if (normDpr04 != null) { - setNormDpr04(normDpr04); - } - - Boolean normDpr05 = (Boolean)attributes.get("normDpr05"); - - if (normDpr05 != null) { - setNormDpr05(normDpr05); - } - - Boolean normDm01 = (Boolean)attributes.get("normDm01"); - - if (normDm01 != null) { - setNormDm01(normDm01); - } - - Boolean normDm02 = (Boolean)attributes.get("normDm02"); - - if (normDm02 != null) { - setNormDm02(normDm02); - } - - Boolean normDm03 = (Boolean)attributes.get("normDm03"); - - if (normDm03 != null) { - setNormDm03(normDm03); - } - Boolean normDm2018 = (Boolean)attributes.get("normDm2018"); if (normDm2018 != null) { setNormDm2018(normDm2018); } - Boolean normDm04 = (Boolean)attributes.get("normDm04"); - - if (normDm04 != null) { - setNormDm04(normDm04); - } - - Boolean normDm05 = (Boolean)attributes.get("normDm05"); - - if (normDm05 != null) { - setNormDm05(normDm05); - } - - Boolean normDprg01 = (Boolean)attributes.get("normDprg01"); - - if (normDprg01 != null) { - setNormDprg01(normDprg01); - } - - Boolean normDprg02 = (Boolean)attributes.get("normDprg02"); - - if (normDprg02 != null) { - setNormDprg02(normDprg02); - } - Boolean normAnr = (Boolean)attributes.get("normAnr"); if (normAnr != null) { setNormAnr(normAnr); } - Boolean normOrd01 = (Boolean)attributes.get("normOrd01"); - - if (normOrd01 != null) { - setNormOrd01(normOrd01); - } - - Boolean normCI01 = (Boolean)attributes.get("normCI01"); - - if (normCI01 != null) { - setNormCI01(normCI01); - } - - Boolean normLTC01 = (Boolean)attributes.get("normLTC01"); - - if (normLTC01 != null) { - setNormLTC01(normLTC01); - } - Boolean normArt3com3 = (Boolean)attributes.get("normArt3com3"); if (normArt3com3 != null) { @@ -2107,12 +1921,6 @@ public class DettPraticaWrapper implements DettPratica, setNormArt3com4(normArt3com4); } - Boolean dpdc = (Boolean)attributes.get("dpdc"); - - if (dpdc != null) { - setDpdc(dpdc); - } - Boolean normSismaBonus = (Boolean)attributes.get("normSismaBonus"); if (normSismaBonus != null) { @@ -2713,36 +2521,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setVersion(version); } - /** - * Returns the versionata of this dett pratica. - * - * @return the versionata of this dett pratica - */ - @Override - public boolean getVersionata() { - return _dettPratica.getVersionata(); - } - - /** - * Returns true if this dett pratica is versionata. - * - * @return true if this dett pratica is versionata; false otherwise - */ - @Override - public boolean isVersionata() { - return _dettPratica.isVersionata(); - } - - /** - * Sets whether this dett pratica is versionata. - * - * @param versionata the versionata of this dett pratica - */ - @Override - public void setVersionata(boolean versionata) { - _dettPratica.setVersionata(versionata); - } - /** * Returns the status of this dett pratica. * @@ -2865,36 +2643,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setStatusTask(statusTask); } - /** - * Returns the workflow forzato of this dett pratica. - * - * @return the workflow forzato of this dett pratica - */ - @Override - public boolean getWorkflowForzato() { - return _dettPratica.getWorkflowForzato(); - } - - /** - * Returns true if this dett pratica is workflow forzato. - * - * @return true if this dett pratica is workflow forzato; false otherwise - */ - @Override - public boolean isWorkflowForzato() { - return _dettPratica.isWorkflowForzato(); - } - - /** - * Sets whether this dett pratica is workflow forzato. - * - * @param workflowForzato the workflow forzato of this dett pratica - */ - @Override - public void setWorkflowForzato(boolean workflowForzato) { - _dettPratica.setWorkflowForzato(workflowForzato); - } - /** * Returns the soggetto sostituito ID of this dett pratica. * @@ -2935,26 +2683,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setDtInvioSignal(dtInvioSignal); } - /** - * Returns the old dett pratica ID of this dett pratica. - * - * @return the old dett pratica ID of this dett pratica - */ - @Override - public long getOldDettPraticaId() { - return _dettPratica.getOldDettPraticaId(); - } - - /** - * Sets the old dett pratica ID of this dett pratica. - * - * @param oldDettPraticaId the old dett pratica ID of this dett pratica - */ - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _dettPratica.setOldDettPraticaId(oldDettPraticaId); - } - /** * Returns the destinazione of this dett pratica. * @@ -3155,26 +2883,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setEstremiPratCom(estremiPratCom); } - /** - * Returns the variata da of this dett pratica. - * - * @return the variata da of this dett pratica - */ - @Override - public long getVariataDa() { - return _dettPratica.getVariataDa(); - } - - /** - * Sets the variata da of this dett pratica. - * - * @param variataDa the variata da of this dett pratica - */ - @Override - public void setVariataDa(long variataDa) { - _dettPratica.setVariataDa(variataDa); - } - /** * Returns the variante numero of this dett pratica. * @@ -3195,36 +2903,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setVarianteNumero(varianteNumero); } - /** - * Returns the variante sostanziale of this dett pratica. - * - * @return the variante sostanziale of this dett pratica - */ - @Override - public boolean getVarianteSostanziale() { - return _dettPratica.getVarianteSostanziale(); - } - - /** - * Returns true if this dett pratica is variante sostanziale. - * - * @return true if this dett pratica is variante sostanziale; false otherwise - */ - @Override - public boolean isVarianteSostanziale() { - return _dettPratica.isVarianteSostanziale(); - } - - /** - * Sets whether this dett pratica is variante sostanziale. - * - * @param varianteSostanziale the variante sostanziale of this dett pratica - */ - @Override - public void setVarianteSostanziale(boolean varianteSostanziale) { - _dettPratica.setVarianteSostanziale(varianteSostanziale); - } - /** * Returns the opera conforme of this dett pratica. * @@ -3335,26 +3013,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setCodiceFiscaleDelegato(codiceFiscaleDelegato); } - /** - * Returns the codice ruolo delegato of this dett pratica. - * - * @return the codice ruolo delegato of this dett pratica - */ - @Override - public java.lang.String getCodiceRuoloDelegato() { - return _dettPratica.getCodiceRuoloDelegato(); - } - - /** - * Sets the codice ruolo delegato of this dett pratica. - * - * @param codiceRuoloDelegato the codice ruolo delegato of this dett pratica - */ - @Override - public void setCodiceRuoloDelegato(java.lang.String codiceRuoloDelegato) { - _dettPratica.setCodiceRuoloDelegato(codiceRuoloDelegato); - } - /** * Returns the codice fiscale delegato committente of this dett pratica. * @@ -3656,341 +3314,177 @@ public class DettPraticaWrapper implements DettPratica, } /** - * Returns the lavori in economia committente of this dett pratica. + * Returns the lavori pubblici of this dett pratica. * - * @return the lavori in economia committente of this dett pratica + * @return the lavori pubblici of this dett pratica */ @Override - public boolean getLavoriInEconomiaCommittente() { - return _dettPratica.getLavoriInEconomiaCommittente(); + public boolean getLavoriPubblici() { + return _dettPratica.getLavoriPubblici(); } /** - * Returns true if this dett pratica is lavori in economia committente. + * Returns true if this dett pratica is lavori pubblici. * - * @return true if this dett pratica is lavori in economia committente; false otherwise + * @return true if this dett pratica is lavori pubblici; false otherwise */ @Override - public boolean isLavoriInEconomiaCommittente() { - return _dettPratica.isLavoriInEconomiaCommittente(); + public boolean isLavoriPubblici() { + return _dettPratica.isLavoriPubblici(); } /** - * Sets whether this dett pratica is lavori in economia committente. + * Sets whether this dett pratica is lavori pubblici. * - * @param lavoriInEconomiaCommittente the lavori in economia committente of this dett pratica + * @param lavoriPubblici the lavori pubblici of this dett pratica */ @Override - public void setLavoriInEconomiaCommittente( - boolean lavoriInEconomiaCommittente) { - _dettPratica.setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); + public void setLavoriPubblici(boolean lavoriPubblici) { + _dettPratica.setLavoriPubblici(lavoriPubblici); } /** - * Returns the inizio lavori contestuale opera of this dett pratica. + * Returns the pagamento ID oneri of this dett pratica. * - * @return the inizio lavori contestuale opera of this dett pratica + * @return the pagamento ID oneri of this dett pratica */ @Override - public boolean getInizioLavoriContestualeOpera() { - return _dettPratica.getInizioLavoriContestualeOpera(); + public long getPagamentoIdOneri() { + return _dettPratica.getPagamentoIdOneri(); } /** - * Returns true if this dett pratica is inizio lavori contestuale opera. + * Sets the pagamento ID oneri of this dett pratica. * - * @return true if this dett pratica is inizio lavori contestuale opera; false otherwise + * @param pagamentoIdOneri the pagamento ID oneri of this dett pratica */ @Override - public boolean isInizioLavoriContestualeOpera() { - return _dettPratica.isInizioLavoriContestualeOpera(); + public void setPagamentoIdOneri(long pagamentoIdOneri) { + _dettPratica.setPagamentoIdOneri(pagamentoIdOneri); } /** - * Sets whether this dett pratica is inizio lavori contestuale opera. + * Returns the pagamento ID bolli of this dett pratica. * - * @param inizioLavoriContestualeOpera the inizio lavori contestuale opera of this dett pratica + * @return the pagamento ID bolli of this dett pratica */ @Override - public void setInizioLavoriContestualeOpera( - boolean inizioLavoriContestualeOpera) { - _dettPratica.setInizioLavoriContestualeOpera(inizioLavoriContestualeOpera); + public long getPagamentoIdBolli() { + return _dettPratica.getPagamentoIdBolli(); } /** - * Returns the data inizio lavori opera of this dett pratica. + * Sets the pagamento ID bolli of this dett pratica. * - * @return the data inizio lavori opera of this dett pratica + * @param pagamentoIdBolli the pagamento ID bolli of this dett pratica */ @Override - public java.util.Date getDataInizioLavoriOpera() { - return _dettPratica.getDataInizioLavoriOpera(); + public void setPagamentoIdBolli(long pagamentoIdBolli) { + _dettPratica.setPagamentoIdBolli(pagamentoIdBolli); } /** - * Sets the data inizio lavori opera of this dett pratica. + * Returns the lavori pubblici percentuale of this dett pratica. * - * @param dataInizioLavoriOpera the data inizio lavori opera of this dett pratica + * @return the lavori pubblici percentuale of this dett pratica */ @Override - public void setDataInizioLavoriOpera(java.util.Date dataInizioLavoriOpera) { - _dettPratica.setDataInizioLavoriOpera(dataInizioLavoriOpera); + public int getLavoriPubbliciPercentuale() { + return _dettPratica.getLavoriPubbliciPercentuale(); } /** - * Returns the data inizio esecuzione opera of this dett pratica. + * Sets the lavori pubblici percentuale of this dett pratica. * - * @return the data inizio esecuzione opera of this dett pratica + * @param lavoriPubbliciPercentuale the lavori pubblici percentuale of this dett pratica */ @Override - public java.util.Date getDataInizioEsecuzioneOpera() { - return _dettPratica.getDataInizioEsecuzioneOpera(); + public void setLavoriPubbliciPercentuale(int lavoriPubbliciPercentuale) { + _dettPratica.setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); } /** - * Sets the data inizio esecuzione opera of this dett pratica. + * Returns the dc particelle of this dett pratica. * - * @param dataInizioEsecuzioneOpera the data inizio esecuzione opera of this dett pratica + * @return the dc particelle of this dett pratica */ @Override - public void setDataInizioEsecuzioneOpera( - java.util.Date dataInizioEsecuzioneOpera) { - _dettPratica.setDataInizioEsecuzioneOpera(dataInizioEsecuzioneOpera); + public java.lang.String getDcParticelle() { + return _dettPratica.getDcParticelle(); } /** - * Returns the data fine esecuzione opera of this dett pratica. + * Sets the dc particelle of this dett pratica. * - * @return the data fine esecuzione opera of this dett pratica + * @param dcParticelle the dc particelle of this dett pratica */ @Override - public java.util.Date getDataFineEsecuzioneOpera() { - return _dettPratica.getDataFineEsecuzioneOpera(); + public void setDcParticelle(java.lang.String dcParticelle) { + _dettPratica.setDcParticelle(dcParticelle); } /** - * Sets the data fine esecuzione opera of this dett pratica. + * Returns the dc foglio of this dett pratica. * - * @param dataFineEsecuzioneOpera the data fine esecuzione opera of this dett pratica + * @return the dc foglio of this dett pratica */ @Override - public void setDataFineEsecuzioneOpera( - java.util.Date dataFineEsecuzioneOpera) { - _dettPratica.setDataFineEsecuzioneOpera(dataFineEsecuzioneOpera); + public java.lang.String getDcFoglio() { + return _dettPratica.getDcFoglio(); } /** - * Returns the metratura of this dett pratica. + * Sets the dc foglio of this dett pratica. * - * @return the metratura of this dett pratica + * @param dcFoglio the dc foglio of this dett pratica */ @Override - public java.lang.String getMetratura() { - return _dettPratica.getMetratura(); + public void setDcFoglio(java.lang.String dcFoglio) { + _dettPratica.setDcFoglio(dcFoglio); } /** - * Sets the metratura of this dett pratica. + * Returns the dc allegato of this dett pratica. * - * @param metratura the metratura of this dett pratica + * @return the dc allegato of this dett pratica */ @Override - public void setMetratura(java.lang.String metratura) { - _dettPratica.setMetratura(metratura); + public java.lang.String getDcAllegato() { + return _dettPratica.getDcAllegato(); } /** - * Returns the lavori pubblici of this dett pratica. + * Sets the dc allegato of this dett pratica. * - * @return the lavori pubblici of this dett pratica + * @param dcAllegato the dc allegato of this dett pratica */ @Override - public boolean getLavoriPubblici() { - return _dettPratica.getLavoriPubblici(); + public void setDcAllegato(java.lang.String dcAllegato) { + _dettPratica.setDcAllegato(dcAllegato); } /** - * Returns true if this dett pratica is lavori pubblici. + * Returns the de piani of this dett pratica. * - * @return true if this dett pratica is lavori pubblici; false otherwise + * @return the de piani of this dett pratica */ @Override - public boolean isLavoriPubblici() { - return _dettPratica.isLavoriPubblici(); + public java.lang.String getDePiani() { + return _dettPratica.getDePiani(); } /** - * Sets whether this dett pratica is lavori pubblici. + * Sets the de piani of this dett pratica. * - * @param lavoriPubblici the lavori pubblici of this dett pratica + * @param dePiani the de piani of this dett pratica */ @Override - public void setLavoriPubblici(boolean lavoriPubblici) { - _dettPratica.setLavoriPubblici(lavoriPubblici); + public void setDePiani(java.lang.String dePiani) { + _dettPratica.setDePiani(dePiani); } /** - * Returns the pagamento ID oneri of this dett pratica. - * - * @return the pagamento ID oneri of this dett pratica - */ - @Override - public long getPagamentoIdOneri() { - return _dettPratica.getPagamentoIdOneri(); - } - - /** - * Sets the pagamento ID oneri of this dett pratica. - * - * @param pagamentoIdOneri the pagamento ID oneri of this dett pratica - */ - @Override - public void setPagamentoIdOneri(long pagamentoIdOneri) { - _dettPratica.setPagamentoIdOneri(pagamentoIdOneri); - } - - /** - * Returns the pagamento ID bolli of this dett pratica. - * - * @return the pagamento ID bolli of this dett pratica - */ - @Override - public long getPagamentoIdBolli() { - return _dettPratica.getPagamentoIdBolli(); - } - - /** - * Sets the pagamento ID bolli of this dett pratica. - * - * @param pagamentoIdBolli the pagamento ID bolli of this dett pratica - */ - @Override - public void setPagamentoIdBolli(long pagamentoIdBolli) { - _dettPratica.setPagamentoIdBolli(pagamentoIdBolli); - } - - /** - * Returns the lavori pubblici percentuale of this dett pratica. - * - * @return the lavori pubblici percentuale of this dett pratica - */ - @Override - public int getLavoriPubbliciPercentuale() { - return _dettPratica.getLavoriPubbliciPercentuale(); - } - - /** - * Sets the lavori pubblici percentuale of this dett pratica. - * - * @param lavoriPubbliciPercentuale the lavori pubblici percentuale of this dett pratica - */ - @Override - public void setLavoriPubbliciPercentuale(int lavoriPubbliciPercentuale) { - _dettPratica.setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); - } - - /** - * Returns the numero civico of this dett pratica. - * - * @return the numero civico of this dett pratica - */ - @Override - public java.lang.String getNumeroCivico() { - return _dettPratica.getNumeroCivico(); - } - - /** - * Sets the numero civico of this dett pratica. - * - * @param numeroCivico the numero civico of this dett pratica - */ - @Override - public void setNumeroCivico(java.lang.String numeroCivico) { - _dettPratica.setNumeroCivico(numeroCivico); - } - - /** - * Returns the dc particelle of this dett pratica. - * - * @return the dc particelle of this dett pratica - */ - @Override - public java.lang.String getDcParticelle() { - return _dettPratica.getDcParticelle(); - } - - /** - * Sets the dc particelle of this dett pratica. - * - * @param dcParticelle the dc particelle of this dett pratica - */ - @Override - public void setDcParticelle(java.lang.String dcParticelle) { - _dettPratica.setDcParticelle(dcParticelle); - } - - /** - * Returns the dc foglio of this dett pratica. - * - * @return the dc foglio of this dett pratica - */ - @Override - public java.lang.String getDcFoglio() { - return _dettPratica.getDcFoglio(); - } - - /** - * Sets the dc foglio of this dett pratica. - * - * @param dcFoglio the dc foglio of this dett pratica - */ - @Override - public void setDcFoglio(java.lang.String dcFoglio) { - _dettPratica.setDcFoglio(dcFoglio); - } - - /** - * Returns the dc allegato of this dett pratica. - * - * @return the dc allegato of this dett pratica - */ - @Override - public java.lang.String getDcAllegato() { - return _dettPratica.getDcAllegato(); - } - - /** - * Sets the dc allegato of this dett pratica. - * - * @param dcAllegato the dc allegato of this dett pratica - */ - @Override - public void setDcAllegato(java.lang.String dcAllegato) { - _dettPratica.setDcAllegato(dcAllegato); - } - - /** - * Returns the de piani of this dett pratica. - * - * @return the de piani of this dett pratica - */ - @Override - public java.lang.String getDePiani() { - return _dettPratica.getDePiani(); - } - - /** - * Sets the de piani of this dett pratica. - * - * @param dePiani the de piani of this dett pratica - */ - @Override - public void setDePiani(java.lang.String dePiani) { - _dettPratica.setDePiani(dePiani); - } - - /** - * Returns the de altezza of this dett pratica. + * Returns the de altezza of this dett pratica. * * @return the de altezza of this dett pratica */ @@ -7966,6 +7460,26 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setTcConDispositivi(tcConDispositivi); } + /** + * Returns the intervento voce p7 of this dett pratica. + * + * @return the intervento voce p7 of this dett pratica + */ + @Override + public java.lang.String getInterventoVoceP7() { + return _dettPratica.getInterventoVoceP7(); + } + + /** + * Sets the intervento voce p7 of this dett pratica. + * + * @param interventoVoceP7 the intervento voce p7 of this dett pratica + */ + @Override + public void setInterventoVoceP7(java.lang.String interventoVoceP7) { + _dettPratica.setInterventoVoceP7(interventoVoceP7); + } + /** * Returns the norm lavori in proprio of this dett pratica. * @@ -8206,186 +7720,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setNormDpr02Aut(normDpr02Aut); } - /** - * Returns the norm dpr03 of this dett pratica. - * - * @return the norm dpr03 of this dett pratica - */ - @Override - public boolean getNormDpr03() { - return _dettPratica.getNormDpr03(); - } - - /** - * Returns true if this dett pratica is norm dpr03. - * - * @return true if this dett pratica is norm dpr03; false otherwise - */ - @Override - public boolean isNormDpr03() { - return _dettPratica.isNormDpr03(); - } - - /** - * Sets whether this dett pratica is norm dpr03. - * - * @param normDpr03 the norm dpr03 of this dett pratica - */ - @Override - public void setNormDpr03(boolean normDpr03) { - _dettPratica.setNormDpr03(normDpr03); - } - - /** - * Returns the norm dpr04 of this dett pratica. - * - * @return the norm dpr04 of this dett pratica - */ - @Override - public boolean getNormDpr04() { - return _dettPratica.getNormDpr04(); - } - - /** - * Returns true if this dett pratica is norm dpr04. - * - * @return true if this dett pratica is norm dpr04; false otherwise - */ - @Override - public boolean isNormDpr04() { - return _dettPratica.isNormDpr04(); - } - - /** - * Sets whether this dett pratica is norm dpr04. - * - * @param normDpr04 the norm dpr04 of this dett pratica - */ - @Override - public void setNormDpr04(boolean normDpr04) { - _dettPratica.setNormDpr04(normDpr04); - } - - /** - * Returns the norm dpr05 of this dett pratica. - * - * @return the norm dpr05 of this dett pratica - */ - @Override - public boolean getNormDpr05() { - return _dettPratica.getNormDpr05(); - } - - /** - * Returns true if this dett pratica is norm dpr05. - * - * @return true if this dett pratica is norm dpr05; false otherwise - */ - @Override - public boolean isNormDpr05() { - return _dettPratica.isNormDpr05(); - } - - /** - * Sets whether this dett pratica is norm dpr05. - * - * @param normDpr05 the norm dpr05 of this dett pratica - */ - @Override - public void setNormDpr05(boolean normDpr05) { - _dettPratica.setNormDpr05(normDpr05); - } - - /** - * Returns the norm dm01 of this dett pratica. - * - * @return the norm dm01 of this dett pratica - */ - @Override - public boolean getNormDm01() { - return _dettPratica.getNormDm01(); - } - - /** - * Returns true if this dett pratica is norm dm01. - * - * @return true if this dett pratica is norm dm01; false otherwise - */ - @Override - public boolean isNormDm01() { - return _dettPratica.isNormDm01(); - } - - /** - * Sets whether this dett pratica is norm dm01. - * - * @param normDm01 the norm dm01 of this dett pratica - */ - @Override - public void setNormDm01(boolean normDm01) { - _dettPratica.setNormDm01(normDm01); - } - - /** - * Returns the norm dm02 of this dett pratica. - * - * @return the norm dm02 of this dett pratica - */ - @Override - public boolean getNormDm02() { - return _dettPratica.getNormDm02(); - } - - /** - * Returns true if this dett pratica is norm dm02. - * - * @return true if this dett pratica is norm dm02; false otherwise - */ - @Override - public boolean isNormDm02() { - return _dettPratica.isNormDm02(); - } - - /** - * Sets whether this dett pratica is norm dm02. - * - * @param normDm02 the norm dm02 of this dett pratica - */ - @Override - public void setNormDm02(boolean normDm02) { - _dettPratica.setNormDm02(normDm02); - } - - /** - * Returns the norm dm03 of this dett pratica. - * - * @return the norm dm03 of this dett pratica - */ - @Override - public boolean getNormDm03() { - return _dettPratica.getNormDm03(); - } - - /** - * Returns true if this dett pratica is norm dm03. - * - * @return true if this dett pratica is norm dm03; false otherwise - */ - @Override - public boolean isNormDm03() { - return _dettPratica.isNormDm03(); - } - - /** - * Sets whether this dett pratica is norm dm03. - * - * @param normDm03 the norm dm03 of this dett pratica - */ - @Override - public void setNormDm03(boolean normDm03) { - _dettPratica.setNormDm03(normDm03); - } - /** * Returns the norm dm2018 of this dett pratica. * @@ -8416,126 +7750,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setNormDm2018(normDm2018); } - /** - * Returns the norm dm04 of this dett pratica. - * - * @return the norm dm04 of this dett pratica - */ - @Override - public boolean getNormDm04() { - return _dettPratica.getNormDm04(); - } - - /** - * Returns true if this dett pratica is norm dm04. - * - * @return true if this dett pratica is norm dm04; false otherwise - */ - @Override - public boolean isNormDm04() { - return _dettPratica.isNormDm04(); - } - - /** - * Sets whether this dett pratica is norm dm04. - * - * @param normDm04 the norm dm04 of this dett pratica - */ - @Override - public void setNormDm04(boolean normDm04) { - _dettPratica.setNormDm04(normDm04); - } - - /** - * Returns the norm dm05 of this dett pratica. - * - * @return the norm dm05 of this dett pratica - */ - @Override - public boolean getNormDm05() { - return _dettPratica.getNormDm05(); - } - - /** - * Returns true if this dett pratica is norm dm05. - * - * @return true if this dett pratica is norm dm05; false otherwise - */ - @Override - public boolean isNormDm05() { - return _dettPratica.isNormDm05(); - } - - /** - * Sets whether this dett pratica is norm dm05. - * - * @param normDm05 the norm dm05 of this dett pratica - */ - @Override - public void setNormDm05(boolean normDm05) { - _dettPratica.setNormDm05(normDm05); - } - - /** - * Returns the norm dprg01 of this dett pratica. - * - * @return the norm dprg01 of this dett pratica - */ - @Override - public boolean getNormDprg01() { - return _dettPratica.getNormDprg01(); - } - - /** - * Returns true if this dett pratica is norm dprg01. - * - * @return true if this dett pratica is norm dprg01; false otherwise - */ - @Override - public boolean isNormDprg01() { - return _dettPratica.isNormDprg01(); - } - - /** - * Sets whether this dett pratica is norm dprg01. - * - * @param normDprg01 the norm dprg01 of this dett pratica - */ - @Override - public void setNormDprg01(boolean normDprg01) { - _dettPratica.setNormDprg01(normDprg01); - } - - /** - * Returns the norm dprg02 of this dett pratica. - * - * @return the norm dprg02 of this dett pratica - */ - @Override - public boolean getNormDprg02() { - return _dettPratica.getNormDprg02(); - } - - /** - * Returns true if this dett pratica is norm dprg02. - * - * @return true if this dett pratica is norm dprg02; false otherwise - */ - @Override - public boolean isNormDprg02() { - return _dettPratica.isNormDprg02(); - } - - /** - * Sets whether this dett pratica is norm dprg02. - * - * @param normDprg02 the norm dprg02 of this dett pratica - */ - @Override - public void setNormDprg02(boolean normDprg02) { - _dettPratica.setNormDprg02(normDprg02); - } - /** * Returns the norm anr of this dett pratica. * @@ -8566,96 +7780,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setNormAnr(normAnr); } - /** - * Returns the norm ord01 of this dett pratica. - * - * @return the norm ord01 of this dett pratica - */ - @Override - public boolean getNormOrd01() { - return _dettPratica.getNormOrd01(); - } - - /** - * Returns true if this dett pratica is norm ord01. - * - * @return true if this dett pratica is norm ord01; false otherwise - */ - @Override - public boolean isNormOrd01() { - return _dettPratica.isNormOrd01(); - } - - /** - * Sets whether this dett pratica is norm ord01. - * - * @param normOrd01 the norm ord01 of this dett pratica - */ - @Override - public void setNormOrd01(boolean normOrd01) { - _dettPratica.setNormOrd01(normOrd01); - } - - /** - * Returns the norm c i01 of this dett pratica. - * - * @return the norm c i01 of this dett pratica - */ - @Override - public boolean getNormCI01() { - return _dettPratica.getNormCI01(); - } - - /** - * Returns true if this dett pratica is norm c i01. - * - * @return true if this dett pratica is norm c i01; false otherwise - */ - @Override - public boolean isNormCI01() { - return _dettPratica.isNormCI01(); - } - - /** - * Sets whether this dett pratica is norm c i01. - * - * @param normCI01 the norm c i01 of this dett pratica - */ - @Override - public void setNormCI01(boolean normCI01) { - _dettPratica.setNormCI01(normCI01); - } - - /** - * Returns the norm l t c01 of this dett pratica. - * - * @return the norm l t c01 of this dett pratica - */ - @Override - public boolean getNormLTC01() { - return _dettPratica.getNormLTC01(); - } - - /** - * Returns true if this dett pratica is norm l t c01. - * - * @return true if this dett pratica is norm l t c01; false otherwise - */ - @Override - public boolean isNormLTC01() { - return _dettPratica.isNormLTC01(); - } - - /** - * Sets whether this dett pratica is norm l t c01. - * - * @param normLTC01 the norm l t c01 of this dett pratica - */ - @Override - public void setNormLTC01(boolean normLTC01) { - _dettPratica.setNormLTC01(normLTC01); - } - /** * Returns the norm art3com3 of this dett pratica. * @@ -8716,36 +7840,6 @@ public class DettPraticaWrapper implements DettPratica, _dettPratica.setNormArt3com4(normArt3com4); } - /** - * Returns the dpdc of this dett pratica. - * - * @return the dpdc of this dett pratica - */ - @Override - public boolean getDpdc() { - return _dettPratica.getDpdc(); - } - - /** - * Returns true if this dett pratica is dpdc. - * - * @return true if this dett pratica is dpdc; false otherwise - */ - @Override - public boolean isDpdc() { - return _dettPratica.isDpdc(); - } - - /** - * Sets whether this dett pratica is dpdc. - * - * @param dpdc the dpdc of this dett pratica - */ - @Override - public void setDpdc(boolean dpdc) { - _dettPratica.setDpdc(dpdc); - } - /** * Returns the norm sisma bonus of this dett pratica. * @@ -9109,18 +8203,6 @@ public class DettPraticaWrapper implements DettPratica, return _dettPratica.getMiddleDescription(); } - @Override - public java.lang.String serializeToVersioning() - throws java.lang.NoSuchFieldException, java.lang.SecurityException { - return _dettPratica.serializeToVersioning(); - } - - @Override - public java.lang.String serializeToVersioningPage() - throws java.lang.NoSuchFieldException, java.lang.SecurityException { - return _dettPratica.serializeToVersioningPage(); - } - @Override public boolean equals(Object obj) { if (this == obj) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaClp.java index a255b5d6..43e5a968 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaClp.java @@ -87,7 +87,6 @@ public class DocAggiuntivaClp extends BaseModelImpl attributes.put("intPraticaId", getIntPraticaId()); attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("descrizione", getDescrizione()); attributes.put("feVisible", getFeVisible()); @@ -162,12 +161,6 @@ public class DocAggiuntivaClp extends BaseModelImpl setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String descrizione = (String)attributes.get("descrizione"); if (descrizione != null) { @@ -444,29 +437,6 @@ public class DocAggiuntivaClp extends BaseModelImpl } } - @Override - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - - if (_docAggiuntivaRemoteModel != null) { - try { - Class clazz = _docAggiuntivaRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldFileEntryId", long.class); - - method.invoke(_docAggiuntivaRemoteModel, oldFileEntryId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getDescrizione() { return _descrizione; @@ -624,7 +594,6 @@ public class DocAggiuntivaClp extends BaseModelImpl clone.setIntPraticaId(getIntPraticaId()); clone.setDettPraticaId(getDettPraticaId()); clone.setFileEntryId(getFileEntryId()); - clone.setOldFileEntryId(getOldFileEntryId()); clone.setDescrizione(getDescrizione()); clone.setFeVisible(getFeVisible()); @@ -679,7 +648,7 @@ public class DocAggiuntivaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(29); + StringBundler sb = new StringBundler(27); sb.append("{uuid="); sb.append(getUuid()); @@ -703,8 +672,6 @@ public class DocAggiuntivaClp extends BaseModelImpl sb.append(getDettPraticaId()); sb.append(", fileEntryId="); sb.append(getFileEntryId()); - sb.append(", oldFileEntryId="); - sb.append(getOldFileEntryId()); sb.append(", descrizione="); sb.append(getDescrizione()); sb.append(", feVisible="); @@ -716,7 +683,7 @@ public class DocAggiuntivaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(46); + StringBundler sb = new StringBundler(43); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DocAggiuntiva"); @@ -766,10 +733,6 @@ public class DocAggiuntivaClp extends BaseModelImpl "fileEntryId"); - sb.append( - "oldFileEntryId"); sb.append( "descrizione private long _intPraticaId; private long _dettPraticaId; private long _fileEntryId; - private long _oldFileEntryId; private String _descrizione; private boolean _feVisible; private BaseModel _docAggiuntivaRemoteModel; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaModel.java index 0b2a3c22..4dd78688 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaModel.java @@ -249,20 +249,6 @@ public interface DocAggiuntivaModel extends BaseModel, */ public void setFileEntryId(long fileEntryId); - /** - * Returns the old file entry ID of this doc aggiuntiva. - * - * @return the old file entry ID of this doc aggiuntiva - */ - public long getOldFileEntryId(); - - /** - * Sets the old file entry ID of this doc aggiuntiva. - * - * @param oldFileEntryId the old file entry ID of this doc aggiuntiva - */ - public void setOldFileEntryId(long oldFileEntryId); - /** * Returns the descrizione of this doc aggiuntiva. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaSoap.java index 68a1992e..6df2e3b3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaSoap.java @@ -42,7 +42,6 @@ public class DocAggiuntivaSoap implements Serializable { soapModel.setIntPraticaId(model.getIntPraticaId()); soapModel.setDettPraticaId(model.getDettPraticaId()); soapModel.setFileEntryId(model.getFileEntryId()); - soapModel.setOldFileEntryId(model.getOldFileEntryId()); soapModel.setDescrizione(model.getDescrizione()); soapModel.setFeVisible(model.getFeVisible()); @@ -185,14 +184,6 @@ public class DocAggiuntivaSoap implements Serializable { _fileEntryId = fileEntryId; } - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - } - public String getDescrizione() { return _descrizione; } @@ -224,7 +215,6 @@ public class DocAggiuntivaSoap implements Serializable { private long _intPraticaId; private long _dettPraticaId; private long _fileEntryId; - private long _oldFileEntryId; private String _descrizione; private boolean _feVisible; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaWrapper.java index 5e85bdec..5a267fcf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocAggiuntivaWrapper.java @@ -62,7 +62,6 @@ public class DocAggiuntivaWrapper implements DocAggiuntiva, attributes.put("intPraticaId", getIntPraticaId()); attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("descrizione", getDescrizione()); attributes.put("feVisible", getFeVisible()); @@ -137,12 +136,6 @@ public class DocAggiuntivaWrapper implements DocAggiuntiva, setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String descrizione = (String)attributes.get("descrizione"); if (descrizione != null) { @@ -418,26 +411,6 @@ public class DocAggiuntivaWrapper implements DocAggiuntiva, _docAggiuntiva.setFileEntryId(fileEntryId); } - /** - * Returns the old file entry ID of this doc aggiuntiva. - * - * @return the old file entry ID of this doc aggiuntiva - */ - @Override - public long getOldFileEntryId() { - return _docAggiuntiva.getOldFileEntryId(); - } - - /** - * Sets the old file entry ID of this doc aggiuntiva. - * - * @param oldFileEntryId the old file entry ID of this doc aggiuntiva - */ - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _docAggiuntiva.setOldFileEntryId(oldFileEntryId); - } - /** * Returns the descrizione of this doc aggiuntiva. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaClp.java index 64d4a693..94999356 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaClp.java @@ -88,18 +88,15 @@ public class DocPraticaClp extends BaseModelImpl attributes.put("className", getClassName()); attributes.put("intPraticaId", getIntPraticaId()); attributes.put("dlFileEntryId", getDlFileEntryId()); - attributes.put("oldDlFileEntryId", getOldDlFileEntryId()); attributes.put("version", getVersion()); attributes.put("praticaValidata", getPraticaValidata()); attributes.put("descLong", getDescLong()); attributes.put("tipologia", getTipologia()); attributes.put("sha256", getSha256()); - attributes.put("md5", getMd5()); attributes.put("aggiornato", getAggiornato()); attributes.put("jsonFirmatari", getJsonFirmatari()); attributes.put("status", getStatus()); attributes.put("errorCode", getErrorCode()); - attributes.put("oldDocPraticaId", getOldDocPraticaId()); attributes.put("rimosso", getRimosso()); attributes.put("dettPraticaIdRimozione", getDettPraticaIdRimozione()); attributes.put("dtDataRimozione", getDtDataRimozione()); @@ -181,12 +178,6 @@ public class DocPraticaClp extends BaseModelImpl setDlFileEntryId(dlFileEntryId); } - Long oldDlFileEntryId = (Long)attributes.get("oldDlFileEntryId"); - - if (oldDlFileEntryId != null) { - setOldDlFileEntryId(oldDlFileEntryId); - } - String version = (String)attributes.get("version"); if (version != null) { @@ -217,12 +208,6 @@ public class DocPraticaClp extends BaseModelImpl setSha256(sha256); } - String md5 = (String)attributes.get("md5"); - - if (md5 != null) { - setMd5(md5); - } - Boolean aggiornato = (Boolean)attributes.get("aggiornato"); if (aggiornato != null) { @@ -247,12 +232,6 @@ public class DocPraticaClp extends BaseModelImpl setErrorCode(errorCode); } - Long oldDocPraticaId = (Long)attributes.get("oldDocPraticaId"); - - if (oldDocPraticaId != null) { - setOldDocPraticaId(oldDocPraticaId); - } - Boolean rimosso = (Boolean)attributes.get("rimosso"); if (rimosso != null) { @@ -559,30 +538,6 @@ public class DocPraticaClp extends BaseModelImpl } } - @Override - public long getOldDlFileEntryId() { - return _oldDlFileEntryId; - } - - @Override - public void setOldDlFileEntryId(long oldDlFileEntryId) { - _oldDlFileEntryId = oldDlFileEntryId; - - if (_docPraticaRemoteModel != null) { - try { - Class clazz = _docPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldDlFileEntryId", - long.class); - - method.invoke(_docPraticaRemoteModel, oldDlFileEntryId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getVersion() { return _version; @@ -704,29 +659,6 @@ public class DocPraticaClp extends BaseModelImpl } } - @Override - public String getMd5() { - return _md5; - } - - @Override - public void setMd5(String md5) { - _md5 = md5; - - if (_docPraticaRemoteModel != null) { - try { - Class clazz = _docPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setMd5", String.class); - - method.invoke(_docPraticaRemoteModel, md5); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public boolean getAggiornato() { return _aggiornato; @@ -824,29 +756,6 @@ public class DocPraticaClp extends BaseModelImpl } } - @Override - public long getOldDocPraticaId() { - return _oldDocPraticaId; - } - - @Override - public void setOldDocPraticaId(long oldDocPraticaId) { - _oldDocPraticaId = oldDocPraticaId; - - if (_docPraticaRemoteModel != null) { - try { - Class clazz = _docPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldDocPraticaId", long.class); - - method.invoke(_docPraticaRemoteModel, oldDocPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public boolean getRimosso() { return _rimosso; @@ -1050,18 +959,15 @@ public class DocPraticaClp extends BaseModelImpl clone.setClassName(getClassName()); clone.setIntPraticaId(getIntPraticaId()); clone.setDlFileEntryId(getDlFileEntryId()); - clone.setOldDlFileEntryId(getOldDlFileEntryId()); clone.setVersion(getVersion()); clone.setPraticaValidata(getPraticaValidata()); clone.setDescLong(getDescLong()); clone.setTipologia(getTipologia()); clone.setSha256(getSha256()); - clone.setMd5(getMd5()); clone.setAggiornato(getAggiornato()); clone.setJsonFirmatari(getJsonFirmatari()); clone.setStatus(getStatus()); clone.setErrorCode(getErrorCode()); - clone.setOldDocPraticaId(getOldDocPraticaId()); clone.setRimosso(getRimosso()); clone.setDettPraticaIdRimozione(getDettPraticaIdRimozione()); clone.setDtDataRimozione(getDtDataRimozione()); @@ -1117,7 +1023,7 @@ public class DocPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(49); sb.append("{uuid="); sb.append(getUuid()); @@ -1143,8 +1049,6 @@ public class DocPraticaClp extends BaseModelImpl sb.append(getIntPraticaId()); sb.append(", dlFileEntryId="); sb.append(getDlFileEntryId()); - sb.append(", oldDlFileEntryId="); - sb.append(getOldDlFileEntryId()); sb.append(", version="); sb.append(getVersion()); sb.append(", praticaValidata="); @@ -1155,8 +1059,6 @@ public class DocPraticaClp extends BaseModelImpl sb.append(getTipologia()); sb.append(", sha256="); sb.append(getSha256()); - sb.append(", md5="); - sb.append(getMd5()); sb.append(", aggiornato="); sb.append(getAggiornato()); sb.append(", jsonFirmatari="); @@ -1165,8 +1067,6 @@ public class DocPraticaClp extends BaseModelImpl sb.append(getStatus()); sb.append(", errorCode="); sb.append(getErrorCode()); - sb.append(", oldDocPraticaId="); - sb.append(getOldDocPraticaId()); sb.append(", rimosso="); sb.append(getRimosso()); sb.append(", dettPraticaIdRimozione="); @@ -1180,7 +1080,7 @@ public class DocPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(85); + StringBundler sb = new StringBundler(76); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DocPratica"); @@ -1234,10 +1134,6 @@ public class DocPraticaClp extends BaseModelImpl "dlFileEntryId"); - sb.append( - "oldDlFileEntryId"); sb.append( "version "sha256"); - sb.append( - "md5"); sb.append( "aggiornato "errorCode"); - sb.append( - "oldDocPraticaId"); sb.append( "rimosso private String _className; private long _intPraticaId; private long _dlFileEntryId; - private long _oldDlFileEntryId; private String _version; private boolean _praticaValidata; private String _descLong; private String _tipologia; private String _sha256; - private String _md5; private boolean _aggiornato; private String _jsonFirmatari; private long _status; private String _errorCode; - private long _oldDocPraticaId; private boolean _rimosso; private long _dettPraticaIdRimozione; private Date _dtDataRimozione; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaModel.java index df154541..be4f19bd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaModel.java @@ -264,20 +264,6 @@ public interface DocPraticaModel extends BaseModel, */ public void setDlFileEntryId(long dlFileEntryId); - /** - * Returns the old dl file entry ID of this doc pratica. - * - * @return the old dl file entry ID of this doc pratica - */ - public long getOldDlFileEntryId(); - - /** - * Sets the old dl file entry ID of this doc pratica. - * - * @param oldDlFileEntryId the old dl file entry ID of this doc pratica - */ - public void setOldDlFileEntryId(long oldDlFileEntryId); - /** * Returns the version of this doc pratica. * @@ -359,21 +345,6 @@ public interface DocPraticaModel extends BaseModel, */ public void setSha256(String sha256); - /** - * Returns the md5 of this doc pratica. - * - * @return the md5 of this doc pratica - */ - @AutoEscape - public String getMd5(); - - /** - * Sets the md5 of this doc pratica. - * - * @param md5 the md5 of this doc pratica - */ - public void setMd5(String md5); - /** * Returns the aggiornato of this doc pratica. * @@ -439,20 +410,6 @@ public interface DocPraticaModel extends BaseModel, */ public void setErrorCode(String errorCode); - /** - * Returns the old doc pratica ID of this doc pratica. - * - * @return the old doc pratica ID of this doc pratica - */ - public long getOldDocPraticaId(); - - /** - * Sets the old doc pratica ID of this doc pratica. - * - * @param oldDocPraticaId the old doc pratica ID of this doc pratica - */ - public void setOldDocPraticaId(long oldDocPraticaId); - /** * Returns the rimosso of this doc pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaSoap.java index ec9c56f4..b3b529ff 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaSoap.java @@ -43,18 +43,15 @@ public class DocPraticaSoap implements Serializable { soapModel.setClassName(model.getClassName()); soapModel.setIntPraticaId(model.getIntPraticaId()); soapModel.setDlFileEntryId(model.getDlFileEntryId()); - soapModel.setOldDlFileEntryId(model.getOldDlFileEntryId()); soapModel.setVersion(model.getVersion()); soapModel.setPraticaValidata(model.getPraticaValidata()); soapModel.setDescLong(model.getDescLong()); soapModel.setTipologia(model.getTipologia()); soapModel.setSha256(model.getSha256()); - soapModel.setMd5(model.getMd5()); soapModel.setAggiornato(model.getAggiornato()); soapModel.setJsonFirmatari(model.getJsonFirmatari()); soapModel.setStatus(model.getStatus()); soapModel.setErrorCode(model.getErrorCode()); - soapModel.setOldDocPraticaId(model.getOldDocPraticaId()); soapModel.setRimosso(model.getRimosso()); soapModel.setDettPraticaIdRimozione(model.getDettPraticaIdRimozione()); soapModel.setDtDataRimozione(model.getDtDataRimozione()); @@ -206,14 +203,6 @@ public class DocPraticaSoap implements Serializable { _dlFileEntryId = dlFileEntryId; } - public long getOldDlFileEntryId() { - return _oldDlFileEntryId; - } - - public void setOldDlFileEntryId(long oldDlFileEntryId) { - _oldDlFileEntryId = oldDlFileEntryId; - } - public String getVersion() { return _version; } @@ -258,14 +247,6 @@ public class DocPraticaSoap implements Serializable { _sha256 = sha256; } - public String getMd5() { - return _md5; - } - - public void setMd5(String md5) { - _md5 = md5; - } - public boolean getAggiornato() { return _aggiornato; } @@ -302,14 +283,6 @@ public class DocPraticaSoap implements Serializable { _errorCode = errorCode; } - public long getOldDocPraticaId() { - return _oldDocPraticaId; - } - - public void setOldDocPraticaId(long oldDocPraticaId) { - _oldDocPraticaId = oldDocPraticaId; - } - public boolean getRimosso() { return _rimosso; } @@ -350,18 +323,15 @@ public class DocPraticaSoap implements Serializable { private String _className; private long _intPraticaId; private long _dlFileEntryId; - private long _oldDlFileEntryId; private String _version; private boolean _praticaValidata; private String _descLong; private String _tipologia; private String _sha256; - private String _md5; private boolean _aggiornato; private String _jsonFirmatari; private long _status; private String _errorCode; - private long _oldDocPraticaId; private boolean _rimosso; private long _dettPraticaIdRimozione; private Date _dtDataRimozione; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaWrapper.java index 7c528ccc..b889ad09 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaWrapper.java @@ -62,18 +62,15 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper { attributes.put("className", getClassName()); attributes.put("intPraticaId", getIntPraticaId()); attributes.put("dlFileEntryId", getDlFileEntryId()); - attributes.put("oldDlFileEntryId", getOldDlFileEntryId()); attributes.put("version", getVersion()); attributes.put("praticaValidata", getPraticaValidata()); attributes.put("descLong", getDescLong()); attributes.put("tipologia", getTipologia()); attributes.put("sha256", getSha256()); - attributes.put("md5", getMd5()); attributes.put("aggiornato", getAggiornato()); attributes.put("jsonFirmatari", getJsonFirmatari()); attributes.put("status", getStatus()); attributes.put("errorCode", getErrorCode()); - attributes.put("oldDocPraticaId", getOldDocPraticaId()); attributes.put("rimosso", getRimosso()); attributes.put("dettPraticaIdRimozione", getDettPraticaIdRimozione()); attributes.put("dtDataRimozione", getDtDataRimozione()); @@ -155,12 +152,6 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper { setDlFileEntryId(dlFileEntryId); } - Long oldDlFileEntryId = (Long)attributes.get("oldDlFileEntryId"); - - if (oldDlFileEntryId != null) { - setOldDlFileEntryId(oldDlFileEntryId); - } - String version = (String)attributes.get("version"); if (version != null) { @@ -191,12 +182,6 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper { setSha256(sha256); } - String md5 = (String)attributes.get("md5"); - - if (md5 != null) { - setMd5(md5); - } - Boolean aggiornato = (Boolean)attributes.get("aggiornato"); if (aggiornato != null) { @@ -221,12 +206,6 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper { setErrorCode(errorCode); } - Long oldDocPraticaId = (Long)attributes.get("oldDocPraticaId"); - - if (oldDocPraticaId != null) { - setOldDocPraticaId(oldDocPraticaId); - } - Boolean rimosso = (Boolean)attributes.get("rimosso"); if (rimosso != null) { @@ -529,26 +508,6 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper { _docPratica.setDlFileEntryId(dlFileEntryId); } - /** - * Returns the old dl file entry ID of this doc pratica. - * - * @return the old dl file entry ID of this doc pratica - */ - @Override - public long getOldDlFileEntryId() { - return _docPratica.getOldDlFileEntryId(); - } - - /** - * Sets the old dl file entry ID of this doc pratica. - * - * @param oldDlFileEntryId the old dl file entry ID of this doc pratica - */ - @Override - public void setOldDlFileEntryId(long oldDlFileEntryId) { - _docPratica.setOldDlFileEntryId(oldDlFileEntryId); - } - /** * Returns the version of this doc pratica. * @@ -659,26 +618,6 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper { _docPratica.setSha256(sha256); } - /** - * Returns the md5 of this doc pratica. - * - * @return the md5 of this doc pratica - */ - @Override - public java.lang.String getMd5() { - return _docPratica.getMd5(); - } - - /** - * Sets the md5 of this doc pratica. - * - * @param md5 the md5 of this doc pratica - */ - @Override - public void setMd5(java.lang.String md5) { - _docPratica.setMd5(md5); - } - /** * Returns the aggiornato of this doc pratica. * @@ -769,26 +708,6 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper { _docPratica.setErrorCode(errorCode); } - /** - * Returns the old doc pratica ID of this doc pratica. - * - * @return the old doc pratica ID of this doc pratica - */ - @Override - public long getOldDocPraticaId() { - return _docPratica.getOldDocPraticaId(); - } - - /** - * Sets the old doc pratica ID of this doc pratica. - * - * @param oldDocPraticaId the old doc pratica ID of this doc pratica - */ - @Override - public void setOldDocPraticaId(long oldDocPraticaId) { - _docPratica.setOldDocPraticaId(oldDocPraticaId); - } - /** * Returns the rimosso of this doc pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java index 5914a942..7b1699ce 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java @@ -103,7 +103,6 @@ public class FineLavoriClp extends BaseModelImpl attributes.put("causalePagamento", getCausalePagamento()); attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("importoBolli", getImportoBolli()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); return attributes; } @@ -268,12 +267,6 @@ public class FineLavoriClp extends BaseModelImpl if (importoBolli != null) { setImportoBolli(importoBolli); } - - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } } @Override @@ -919,30 +912,6 @@ public class FineLavoriClp extends BaseModelImpl } } - @Override - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _oldDettPraticaId = oldDettPraticaId; - - if (_fineLavoriRemoteModel != null) { - try { - Class clazz = _fineLavoriRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldDettPraticaId", - long.class); - - method.invoke(_fineLavoriRemoteModel, oldDettPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public java.lang.String getTitle(java.util.Locale locale) { try { @@ -1101,7 +1070,6 @@ public class FineLavoriClp extends BaseModelImpl clone.setCausalePagamento(getCausalePagamento()); clone.setMezzoPagamento(getMezzoPagamento()); clone.setImportoBolli(getImportoBolli()); - clone.setOldDettPraticaId(getOldDettPraticaId()); return clone; } @@ -1154,7 +1122,7 @@ public class FineLavoriClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(53); sb.append("{uuid="); sb.append(getUuid()); @@ -1208,8 +1176,6 @@ public class FineLavoriClp extends BaseModelImpl sb.append(getMezzoPagamento()); sb.append(", importoBolli="); sb.append(getImportoBolli()); - sb.append(", oldDettPraticaId="); - sb.append(getOldDettPraticaId()); sb.append("}"); return sb.toString(); @@ -1217,7 +1183,7 @@ public class FineLavoriClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(85); + StringBundler sb = new StringBundler(82); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.FineLavori"); @@ -1327,10 +1293,6 @@ public class FineLavoriClp extends BaseModelImpl "importoBolli"); - sb.append( - "oldDettPraticaId"); sb.append(""); @@ -1364,7 +1326,6 @@ public class FineLavoriClp extends BaseModelImpl private String _causalePagamento; private String _mezzoPagamento; private String _importoBolli; - private long _oldDettPraticaId; private BaseModel _fineLavoriRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriModel.java index 5e39541f..af48c702 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriModel.java @@ -502,20 +502,6 @@ public interface FineLavoriModel extends BaseModel, */ public void setImportoBolli(String importoBolli); - /** - * Returns the old dett pratica ID of this fine lavori. - * - * @return the old dett pratica ID of this fine lavori - */ - public long getOldDettPraticaId(); - - /** - * Sets the old dett pratica ID of this fine lavori. - * - * @param oldDettPraticaId the old dett pratica ID of this fine lavori - */ - public void setOldDettPraticaId(long oldDettPraticaId); - @Override public boolean isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriSoap.java index 9c2f4256..9eb254fd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriSoap.java @@ -57,7 +57,6 @@ public class FineLavoriSoap implements Serializable { soapModel.setCausalePagamento(model.getCausalePagamento()); soapModel.setMezzoPagamento(model.getMezzoPagamento()); soapModel.setImportoBolli(model.getImportoBolli()); - soapModel.setOldDettPraticaId(model.getOldDettPraticaId()); return soapModel; } @@ -339,14 +338,6 @@ public class FineLavoriSoap implements Serializable { _importoBolli = importoBolli; } - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - public void setOldDettPraticaId(long oldDettPraticaId) { - _oldDettPraticaId = oldDettPraticaId; - } - private String _uuid; private long _fineLavoriId; private long _companyId; @@ -373,5 +364,4 @@ public class FineLavoriSoap implements Serializable { private String _causalePagamento; private String _mezzoPagamento; private String _importoBolli; - private long _oldDettPraticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java index 93490ba2..23a1b864 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java @@ -77,7 +77,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper { attributes.put("causalePagamento", getCausalePagamento()); attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("importoBolli", getImportoBolli()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); return attributes; } @@ -242,12 +241,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper { if (importoBolli != null) { setImportoBolli(importoBolli); } - - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } } /** @@ -863,26 +856,6 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper { _fineLavori.setImportoBolli(importoBolli); } - /** - * Returns the old dett pratica ID of this fine lavori. - * - * @return the old dett pratica ID of this fine lavori - */ - @Override - public long getOldDettPraticaId() { - return _fineLavori.getOldDettPraticaId(); - } - - /** - * Sets the old dett pratica ID of this fine lavori. - * - * @param oldDettPraticaId the old dett pratica ID of this fine lavori - */ - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _fineLavori.setOldDettPraticaId(oldDettPraticaId); - } - @Override public boolean isNew() { return _fineLavori.isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVModel.java deleted file mode 100644 index ad5f363b..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVModel.java +++ /dev/null @@ -1,309 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.bean.AutoEscape; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.BaseModel; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.StagedGroupedModel; -import com.liferay.portal.service.ServiceContext; - -import com.liferay.portlet.expando.model.ExpandoBridge; - -import java.io.Serializable; - -import java.util.Date; - -/** - * The base model interface for the IUV service. Represents a row in the "portos_bo_IUV" database table, with each column mapped to a property of this class. - * - *

- * This interface and its corresponding implementation {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.bo.model.impl.IUVImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see IUV - * @see it.tref.liferay.portos.bo.model.impl.IUVImpl - * @see it.tref.liferay.portos.bo.model.impl.IUVModelImpl - * @generated - */ -public interface IUVModel extends BaseModel, StagedGroupedModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. All methods that expect a i u v model instance should use the {@link IUV} interface instead. - */ - - /** - * Returns the primary key of this i u v. - * - * @return the primary key of this i u v - */ - public long getPrimaryKey(); - - /** - * Sets the primary key of this i u v. - * - * @param primaryKey the primary key of this i u v - */ - public void setPrimaryKey(long primaryKey); - - /** - * Returns the uuid of this i u v. - * - * @return the uuid of this i u v - */ - @AutoEscape - @Override - public String getUuid(); - - /** - * Sets the uuid of this i u v. - * - * @param uuid the uuid of this i u v - */ - @Override - public void setUuid(String uuid); - - /** - * Returns the iuv ID of this i u v. - * - * @return the iuv ID of this i u v - */ - public long getIuvId(); - - /** - * Sets the iuv ID of this i u v. - * - * @param iuvId the iuv ID of this i u v - */ - public void setIuvId(long iuvId); - - /** - * Returns the company ID of this i u v. - * - * @return the company ID of this i u v - */ - @Override - public long getCompanyId(); - - /** - * Sets the company ID of this i u v. - * - * @param companyId the company ID of this i u v - */ - @Override - public void setCompanyId(long companyId); - - /** - * Returns the user ID of this i u v. - * - * @return the user ID of this i u v - */ - @Override - public long getUserId(); - - /** - * Sets the user ID of this i u v. - * - * @param userId the user ID of this i u v - */ - @Override - public void setUserId(long userId); - - /** - * Returns the user uuid of this i u v. - * - * @return the user uuid of this i u v - * @throws SystemException if a system exception occurred - */ - @Override - public String getUserUuid() throws SystemException; - - /** - * Sets the user uuid of this i u v. - * - * @param userUuid the user uuid of this i u v - */ - @Override - public void setUserUuid(String userUuid); - - /** - * Returns the user name of this i u v. - * - * @return the user name of this i u v - */ - @AutoEscape - @Override - public String getUserName(); - - /** - * Sets the user name of this i u v. - * - * @param userName the user name of this i u v - */ - @Override - public void setUserName(String userName); - - /** - * Returns the create date of this i u v. - * - * @return the create date of this i u v - */ - @Override - public Date getCreateDate(); - - /** - * Sets the create date of this i u v. - * - * @param createDate the create date of this i u v - */ - @Override - public void setCreateDate(Date createDate); - - /** - * Returns the modified date of this i u v. - * - * @return the modified date of this i u v - */ - @Override - public Date getModifiedDate(); - - /** - * Sets the modified date of this i u v. - * - * @param modifiedDate the modified date of this i u v - */ - @Override - public void setModifiedDate(Date modifiedDate); - - /** - * Returns the group ID of this i u v. - * - * @return the group ID of this i u v - */ - @Override - public long getGroupId(); - - /** - * Sets the group ID of this i u v. - * - * @param groupId the group ID of this i u v - */ - @Override - public void setGroupId(long groupId); - - /** - * Returns the pagamento ID of this i u v. - * - * @return the pagamento ID of this i u v - */ - public long getPagamentoId(); - - /** - * Sets the pagamento ID of this i u v. - * - * @param pagamentoId the pagamento ID of this i u v - */ - public void setPagamentoId(long pagamentoId); - - /** - * Returns the codice of this i u v. - * - * @return the codice of this i u v - */ - @AutoEscape - public String getCodice(); - - /** - * Sets the codice of this i u v. - * - * @param codice the codice of this i u v - */ - public void setCodice(String codice); - - /** - * Returns the tipo pagamento of this i u v. - * - * @return the tipo pagamento of this i u v - */ - @AutoEscape - public String getTipoPagamento(); - - /** - * Sets the tipo pagamento of this i u v. - * - * @param tipoPagamento the tipo pagamento of this i u v - */ - public void setTipoPagamento(String tipoPagamento); - - @Override - public boolean isNew(); - - @Override - public void setNew(boolean n); - - @Override - public boolean isCachedModel(); - - @Override - public void setCachedModel(boolean cachedModel); - - @Override - public boolean isEscapedModel(); - - @Override - public Serializable getPrimaryKeyObj(); - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj); - - @Override - public ExpandoBridge getExpandoBridge(); - - @Override - public void setExpandoBridgeAttributes(BaseModel baseModel); - - @Override - public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); - - @Override - public void setExpandoBridgeAttributes(ServiceContext serviceContext); - - @Override - public Object clone(); - - @Override - public int compareTo(it.tref.liferay.portos.bo.model.IUV iuv); - - @Override - public int hashCode(); - - @Override - public CacheModel toCacheModel(); - - @Override - public it.tref.liferay.portos.bo.model.IUV toEscapedModel(); - - @Override - public it.tref.liferay.portos.bo.model.IUV toUnescapedModel(); - - @Override - public String toString(); - - @Override - public String toXmlString(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVWrapper.java deleted file mode 100644 index 155b89e6..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IUVWrapper.java +++ /dev/null @@ -1,545 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.ModelWrapper; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -/** - *

- * This class is a wrapper for {@link IUV}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see IUV - * @generated - */ -public class IUVWrapper implements IUV, ModelWrapper { - public IUVWrapper(IUV iuv) { - _iuv = iuv; - } - - @Override - public Class getModelClass() { - return IUV.class; - } - - @Override - public String getModelClassName() { - return IUV.class.getName(); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("iuvId", getIuvId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("pagamentoId", getPagamentoId()); - attributes.put("codice", getCodice()); - attributes.put("tipoPagamento", getTipoPagamento()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long iuvId = (Long)attributes.get("iuvId"); - - if (iuvId != null) { - setIuvId(iuvId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Long pagamentoId = (Long)attributes.get("pagamentoId"); - - if (pagamentoId != null) { - setPagamentoId(pagamentoId); - } - - String codice = (String)attributes.get("codice"); - - if (codice != null) { - setCodice(codice); - } - - String tipoPagamento = (String)attributes.get("tipoPagamento"); - - if (tipoPagamento != null) { - setTipoPagamento(tipoPagamento); - } - } - - /** - * Returns the primary key of this i u v. - * - * @return the primary key of this i u v - */ - @Override - public long getPrimaryKey() { - return _iuv.getPrimaryKey(); - } - - /** - * Sets the primary key of this i u v. - * - * @param primaryKey the primary key of this i u v - */ - @Override - public void setPrimaryKey(long primaryKey) { - _iuv.setPrimaryKey(primaryKey); - } - - /** - * Returns the uuid of this i u v. - * - * @return the uuid of this i u v - */ - @Override - public java.lang.String getUuid() { - return _iuv.getUuid(); - } - - /** - * Sets the uuid of this i u v. - * - * @param uuid the uuid of this i u v - */ - @Override - public void setUuid(java.lang.String uuid) { - _iuv.setUuid(uuid); - } - - /** - * Returns the iuv ID of this i u v. - * - * @return the iuv ID of this i u v - */ - @Override - public long getIuvId() { - return _iuv.getIuvId(); - } - - /** - * Sets the iuv ID of this i u v. - * - * @param iuvId the iuv ID of this i u v - */ - @Override - public void setIuvId(long iuvId) { - _iuv.setIuvId(iuvId); - } - - /** - * Returns the company ID of this i u v. - * - * @return the company ID of this i u v - */ - @Override - public long getCompanyId() { - return _iuv.getCompanyId(); - } - - /** - * Sets the company ID of this i u v. - * - * @param companyId the company ID of this i u v - */ - @Override - public void setCompanyId(long companyId) { - _iuv.setCompanyId(companyId); - } - - /** - * Returns the user ID of this i u v. - * - * @return the user ID of this i u v - */ - @Override - public long getUserId() { - return _iuv.getUserId(); - } - - /** - * Sets the user ID of this i u v. - * - * @param userId the user ID of this i u v - */ - @Override - public void setUserId(long userId) { - _iuv.setUserId(userId); - } - - /** - * Returns the user uuid of this i u v. - * - * @return the user uuid of this i u v - * @throws SystemException if a system exception occurred - */ - @Override - public java.lang.String getUserUuid() - throws com.liferay.portal.kernel.exception.SystemException { - return _iuv.getUserUuid(); - } - - /** - * Sets the user uuid of this i u v. - * - * @param userUuid the user uuid of this i u v - */ - @Override - public void setUserUuid(java.lang.String userUuid) { - _iuv.setUserUuid(userUuid); - } - - /** - * Returns the user name of this i u v. - * - * @return the user name of this i u v - */ - @Override - public java.lang.String getUserName() { - return _iuv.getUserName(); - } - - /** - * Sets the user name of this i u v. - * - * @param userName the user name of this i u v - */ - @Override - public void setUserName(java.lang.String userName) { - _iuv.setUserName(userName); - } - - /** - * Returns the create date of this i u v. - * - * @return the create date of this i u v - */ - @Override - public java.util.Date getCreateDate() { - return _iuv.getCreateDate(); - } - - /** - * Sets the create date of this i u v. - * - * @param createDate the create date of this i u v - */ - @Override - public void setCreateDate(java.util.Date createDate) { - _iuv.setCreateDate(createDate); - } - - /** - * Returns the modified date of this i u v. - * - * @return the modified date of this i u v - */ - @Override - public java.util.Date getModifiedDate() { - return _iuv.getModifiedDate(); - } - - /** - * Sets the modified date of this i u v. - * - * @param modifiedDate the modified date of this i u v - */ - @Override - public void setModifiedDate(java.util.Date modifiedDate) { - _iuv.setModifiedDate(modifiedDate); - } - - /** - * Returns the group ID of this i u v. - * - * @return the group ID of this i u v - */ - @Override - public long getGroupId() { - return _iuv.getGroupId(); - } - - /** - * Sets the group ID of this i u v. - * - * @param groupId the group ID of this i u v - */ - @Override - public void setGroupId(long groupId) { - _iuv.setGroupId(groupId); - } - - /** - * Returns the pagamento ID of this i u v. - * - * @return the pagamento ID of this i u v - */ - @Override - public long getPagamentoId() { - return _iuv.getPagamentoId(); - } - - /** - * Sets the pagamento ID of this i u v. - * - * @param pagamentoId the pagamento ID of this i u v - */ - @Override - public void setPagamentoId(long pagamentoId) { - _iuv.setPagamentoId(pagamentoId); - } - - /** - * Returns the codice of this i u v. - * - * @return the codice of this i u v - */ - @Override - public java.lang.String getCodice() { - return _iuv.getCodice(); - } - - /** - * Sets the codice of this i u v. - * - * @param codice the codice of this i u v - */ - @Override - public void setCodice(java.lang.String codice) { - _iuv.setCodice(codice); - } - - /** - * Returns the tipo pagamento of this i u v. - * - * @return the tipo pagamento of this i u v - */ - @Override - public java.lang.String getTipoPagamento() { - return _iuv.getTipoPagamento(); - } - - /** - * Sets the tipo pagamento of this i u v. - * - * @param tipoPagamento the tipo pagamento of this i u v - */ - @Override - public void setTipoPagamento(java.lang.String tipoPagamento) { - _iuv.setTipoPagamento(tipoPagamento); - } - - @Override - public boolean isNew() { - return _iuv.isNew(); - } - - @Override - public void setNew(boolean n) { - _iuv.setNew(n); - } - - @Override - public boolean isCachedModel() { - return _iuv.isCachedModel(); - } - - @Override - public void setCachedModel(boolean cachedModel) { - _iuv.setCachedModel(cachedModel); - } - - @Override - public boolean isEscapedModel() { - return _iuv.isEscapedModel(); - } - - @Override - public java.io.Serializable getPrimaryKeyObj() { - return _iuv.getPrimaryKeyObj(); - } - - @Override - public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { - _iuv.setPrimaryKeyObj(primaryKeyObj); - } - - @Override - public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { - return _iuv.getExpandoBridge(); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portal.model.BaseModel baseModel) { - _iuv.setExpandoBridgeAttributes(baseModel); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { - _iuv.setExpandoBridgeAttributes(expandoBridge); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portal.service.ServiceContext serviceContext) { - _iuv.setExpandoBridgeAttributes(serviceContext); - } - - @Override - public java.lang.Object clone() { - return new IUVWrapper((IUV)_iuv.clone()); - } - - @Override - public int compareTo(it.tref.liferay.portos.bo.model.IUV iuv) { - return _iuv.compareTo(iuv); - } - - @Override - public int hashCode() { - return _iuv.hashCode(); - } - - @Override - public com.liferay.portal.model.CacheModel toCacheModel() { - return _iuv.toCacheModel(); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV toEscapedModel() { - return new IUVWrapper(_iuv.toEscapedModel()); - } - - @Override - public it.tref.liferay.portos.bo.model.IUV toUnescapedModel() { - return new IUVWrapper(_iuv.toUnescapedModel()); - } - - @Override - public java.lang.String toString() { - return _iuv.toString(); - } - - @Override - public java.lang.String toXmlString() { - return _iuv.toXmlString(); - } - - @Override - public void persist() - throws com.liferay.portal.kernel.exception.SystemException { - _iuv.persist(); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof IUVWrapper)) { - return false; - } - - IUVWrapper iuvWrapper = (IUVWrapper)obj; - - if (Validator.equals(_iuv, iuvWrapper._iuv)) { - return true; - } - - return false; - } - - @Override - public StagedModelType getStagedModelType() { - return _iuv.getStagedModelType(); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} - */ - public IUV getWrappedIUV() { - return _iuv; - } - - @Override - public IUV getWrappedModel() { - return _iuv; - } - - @Override - public void resetOriginalValues() { - _iuv.resetOriginalValues(); - } - - private IUV _iuv; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicolo.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicolo.java deleted file mode 100644 index b3996769..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicolo.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.model.PersistedModel; - -/** - * The extended model interface for the InfoFascicolo service. Represents a row in the "portos_bo_InfoFascicolo" database table, with each column mapped to a property of this class. - * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloModel - * @see it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl - * @see it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl - * @generated - */ -public interface InfoFascicolo extends InfoFascicoloModel, PersistedModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. - */ -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloClp.java deleted file mode 100644 index ccff97bd..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloClp.java +++ /dev/null @@ -1,673 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.ProxyUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.model.BaseModel; -import com.liferay.portal.model.impl.BaseModelImpl; -import com.liferay.portal.util.PortalUtil; - -import it.tref.liferay.portos.bo.service.ClpSerializer; -import it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil; - -import java.io.Serializable; - -import java.lang.reflect.Method; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -/** - * @author Davide Barbagallo, 3F Consulting - */ -public class InfoFascicoloClp extends BaseModelImpl - implements InfoFascicolo { - public InfoFascicoloClp() { - } - - @Override - public Class getModelClass() { - return InfoFascicolo.class; - } - - @Override - public String getModelClassName() { - return InfoFascicolo.class.getName(); - } - - @Override - public long getPrimaryKey() { - return _infoFascicoloId; - } - - @Override - public void setPrimaryKey(long primaryKey) { - setInfoFascicoloId(primaryKey); - } - - @Override - public Serializable getPrimaryKeyObj() { - return _infoFascicoloId; - } - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj) { - setPrimaryKey(((Long)primaryKeyObj).longValue()); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("infoFascicoloId", getInfoFascicoloId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("intPraticaId", getIntPraticaId()); - attributes.put("numeroProgetto", getNumeroProgetto()); - attributes.put("alreadyImported", getAlreadyImported()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long infoFascicoloId = (Long)attributes.get("infoFascicoloId"); - - if (infoFascicoloId != null) { - setInfoFascicoloId(infoFascicoloId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Long intPraticaId = (Long)attributes.get("intPraticaId"); - - if (intPraticaId != null) { - setIntPraticaId(intPraticaId); - } - - String numeroProgetto = (String)attributes.get("numeroProgetto"); - - if (numeroProgetto != null) { - setNumeroProgetto(numeroProgetto); - } - - Boolean alreadyImported = (Boolean)attributes.get("alreadyImported"); - - if (alreadyImported != null) { - setAlreadyImported(alreadyImported); - } - } - - @Override - public String getUuid() { - return _uuid; - } - - @Override - public void setUuid(String uuid) { - _uuid = uuid; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setUuid", String.class); - - method.invoke(_infoFascicoloRemoteModel, uuid); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getInfoFascicoloId() { - return _infoFascicoloId; - } - - @Override - public void setInfoFascicoloId(long infoFascicoloId) { - _infoFascicoloId = infoFascicoloId; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setInfoFascicoloId", long.class); - - method.invoke(_infoFascicoloRemoteModel, infoFascicoloId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getCompanyId() { - return _companyId; - } - - @Override - public void setCompanyId(long companyId) { - _companyId = companyId; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setCompanyId", long.class); - - method.invoke(_infoFascicoloRemoteModel, companyId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getUserId() { - return _userId; - } - - @Override - public void setUserId(long userId) { - _userId = userId; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setUserId", long.class); - - method.invoke(_infoFascicoloRemoteModel, userId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getUserUuid() throws SystemException { - return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); - } - - @Override - public void setUserUuid(String userUuid) { - _userUuid = userUuid; - } - - @Override - public String getUserName() { - return _userName; - } - - @Override - public void setUserName(String userName) { - _userName = userName; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setUserName", String.class); - - method.invoke(_infoFascicoloRemoteModel, userName); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getCreateDate() { - return _createDate; - } - - @Override - public void setCreateDate(Date createDate) { - _createDate = createDate; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setCreateDate", Date.class); - - method.invoke(_infoFascicoloRemoteModel, createDate); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getModifiedDate() { - return _modifiedDate; - } - - @Override - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setModifiedDate", Date.class); - - method.invoke(_infoFascicoloRemoteModel, modifiedDate); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getGroupId() { - return _groupId; - } - - @Override - public void setGroupId(long groupId) { - _groupId = groupId; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setGroupId", long.class); - - method.invoke(_infoFascicoloRemoteModel, groupId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getIntPraticaId() { - return _intPraticaId; - } - - @Override - public void setIntPraticaId(long intPraticaId) { - _intPraticaId = intPraticaId; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setIntPraticaId", long.class); - - method.invoke(_infoFascicoloRemoteModel, intPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getNumeroProgetto() { - return _numeroProgetto; - } - - @Override - public void setNumeroProgetto(String numeroProgetto) { - _numeroProgetto = numeroProgetto; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setNumeroProgetto", - String.class); - - method.invoke(_infoFascicoloRemoteModel, numeroProgetto); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getAlreadyImported() { - return _alreadyImported; - } - - @Override - public boolean isAlreadyImported() { - return _alreadyImported; - } - - @Override - public void setAlreadyImported(boolean alreadyImported) { - _alreadyImported = alreadyImported; - - if (_infoFascicoloRemoteModel != null) { - try { - Class clazz = _infoFascicoloRemoteModel.getClass(); - - Method method = clazz.getMethod("setAlreadyImported", - boolean.class); - - method.invoke(_infoFascicoloRemoteModel, alreadyImported); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - InfoFascicolo.class.getName())); - } - - public BaseModel getInfoFascicoloRemoteModel() { - return _infoFascicoloRemoteModel; - } - - public void setInfoFascicoloRemoteModel( - BaseModel infoFascicoloRemoteModel) { - _infoFascicoloRemoteModel = infoFascicoloRemoteModel; - } - - public Object invokeOnRemoteModel(String methodName, - Class[] parameterTypes, Object[] parameterValues) - throws Exception { - Object[] remoteParameterValues = new Object[parameterValues.length]; - - for (int i = 0; i < parameterValues.length; i++) { - if (parameterValues[i] != null) { - remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]); - } - } - - Class remoteModelClass = _infoFascicoloRemoteModel.getClass(); - - ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader(); - - Class[] remoteParameterTypes = new Class[parameterTypes.length]; - - for (int i = 0; i < parameterTypes.length; i++) { - if (parameterTypes[i].isPrimitive()) { - remoteParameterTypes[i] = parameterTypes[i]; - } - else { - String parameterTypeName = parameterTypes[i].getName(); - - remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName); - } - } - - Method method = remoteModelClass.getMethod(methodName, - remoteParameterTypes); - - Object returnValue = method.invoke(_infoFascicoloRemoteModel, - remoteParameterValues); - - if (returnValue != null) { - returnValue = ClpSerializer.translateOutput(returnValue); - } - - return returnValue; - } - - @Override - public void persist() throws SystemException { - if (this.isNew()) { - InfoFascicoloLocalServiceUtil.addInfoFascicolo(this); - } - else { - InfoFascicoloLocalServiceUtil.updateInfoFascicolo(this); - } - } - - @Override - public InfoFascicolo toEscapedModel() { - return (InfoFascicolo)ProxyUtil.newProxyInstance(InfoFascicolo.class.getClassLoader(), - new Class[] { InfoFascicolo.class }, new AutoEscapeBeanHandler(this)); - } - - @Override - public Object clone() { - InfoFascicoloClp clone = new InfoFascicoloClp(); - - clone.setUuid(getUuid()); - clone.setInfoFascicoloId(getInfoFascicoloId()); - clone.setCompanyId(getCompanyId()); - clone.setUserId(getUserId()); - clone.setUserName(getUserName()); - clone.setCreateDate(getCreateDate()); - clone.setModifiedDate(getModifiedDate()); - clone.setGroupId(getGroupId()); - clone.setIntPraticaId(getIntPraticaId()); - clone.setNumeroProgetto(getNumeroProgetto()); - clone.setAlreadyImported(getAlreadyImported()); - - return clone; - } - - @Override - public int compareTo(InfoFascicolo infoFascicolo) { - long primaryKey = infoFascicolo.getPrimaryKey(); - - if (getPrimaryKey() < primaryKey) { - return -1; - } - else if (getPrimaryKey() > primaryKey) { - return 1; - } - else { - return 0; - } - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof InfoFascicoloClp)) { - return false; - } - - InfoFascicoloClp infoFascicolo = (InfoFascicoloClp)obj; - - long primaryKey = infoFascicolo.getPrimaryKey(); - - if (getPrimaryKey() == primaryKey) { - return true; - } - else { - return false; - } - } - - public Class getClpSerializerClass() { - return _clpSerializerClass; - } - - @Override - public int hashCode() { - return (int)getPrimaryKey(); - } - - @Override - public String toString() { - StringBundler sb = new StringBundler(23); - - sb.append("{uuid="); - sb.append(getUuid()); - sb.append(", infoFascicoloId="); - sb.append(getInfoFascicoloId()); - sb.append(", companyId="); - sb.append(getCompanyId()); - sb.append(", userId="); - sb.append(getUserId()); - sb.append(", userName="); - sb.append(getUserName()); - sb.append(", createDate="); - sb.append(getCreateDate()); - sb.append(", modifiedDate="); - sb.append(getModifiedDate()); - sb.append(", groupId="); - sb.append(getGroupId()); - sb.append(", intPraticaId="); - sb.append(getIntPraticaId()); - sb.append(", numeroProgetto="); - sb.append(getNumeroProgetto()); - sb.append(", alreadyImported="); - sb.append(getAlreadyImported()); - sb.append("}"); - - return sb.toString(); - } - - @Override - public String toXmlString() { - StringBundler sb = new StringBundler(37); - - sb.append(""); - sb.append("it.tref.liferay.portos.bo.model.InfoFascicolo"); - sb.append(""); - - sb.append( - "uuid"); - sb.append( - "infoFascicoloId"); - sb.append( - "companyId"); - sb.append( - "userId"); - sb.append( - "userName"); - sb.append( - "createDate"); - sb.append( - "modifiedDate"); - sb.append( - "groupId"); - sb.append( - "intPraticaId"); - sb.append( - "numeroProgetto"); - sb.append( - "alreadyImported"); - - sb.append(""); - - return sb.toString(); - } - - private String _uuid; - private long _infoFascicoloId; - private long _companyId; - private long _userId; - private String _userUuid; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private long _intPraticaId; - private String _numeroProgetto; - private boolean _alreadyImported; - private BaseModel _infoFascicoloRemoteModel; - private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloModel.java deleted file mode 100644 index fb7ccc85..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloModel.java +++ /dev/null @@ -1,317 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.bean.AutoEscape; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.BaseModel; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.StagedGroupedModel; -import com.liferay.portal.service.ServiceContext; - -import com.liferay.portlet.expando.model.ExpandoBridge; - -import java.io.Serializable; - -import java.util.Date; - -/** - * The base model interface for the InfoFascicolo service. Represents a row in the "portos_bo_InfoFascicolo" database table, with each column mapped to a property of this class. - * - *

- * This interface and its corresponding implementation {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicolo - * @see it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl - * @see it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl - * @generated - */ -public interface InfoFascicoloModel extends BaseModel, - StagedGroupedModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. All methods that expect a info fascicolo model instance should use the {@link InfoFascicolo} interface instead. - */ - - /** - * Returns the primary key of this info fascicolo. - * - * @return the primary key of this info fascicolo - */ - public long getPrimaryKey(); - - /** - * Sets the primary key of this info fascicolo. - * - * @param primaryKey the primary key of this info fascicolo - */ - public void setPrimaryKey(long primaryKey); - - /** - * Returns the uuid of this info fascicolo. - * - * @return the uuid of this info fascicolo - */ - @AutoEscape - @Override - public String getUuid(); - - /** - * Sets the uuid of this info fascicolo. - * - * @param uuid the uuid of this info fascicolo - */ - @Override - public void setUuid(String uuid); - - /** - * Returns the info fascicolo ID of this info fascicolo. - * - * @return the info fascicolo ID of this info fascicolo - */ - public long getInfoFascicoloId(); - - /** - * Sets the info fascicolo ID of this info fascicolo. - * - * @param infoFascicoloId the info fascicolo ID of this info fascicolo - */ - public void setInfoFascicoloId(long infoFascicoloId); - - /** - * Returns the company ID of this info fascicolo. - * - * @return the company ID of this info fascicolo - */ - @Override - public long getCompanyId(); - - /** - * Sets the company ID of this info fascicolo. - * - * @param companyId the company ID of this info fascicolo - */ - @Override - public void setCompanyId(long companyId); - - /** - * Returns the user ID of this info fascicolo. - * - * @return the user ID of this info fascicolo - */ - @Override - public long getUserId(); - - /** - * Sets the user ID of this info fascicolo. - * - * @param userId the user ID of this info fascicolo - */ - @Override - public void setUserId(long userId); - - /** - * Returns the user uuid of this info fascicolo. - * - * @return the user uuid of this info fascicolo - * @throws SystemException if a system exception occurred - */ - @Override - public String getUserUuid() throws SystemException; - - /** - * Sets the user uuid of this info fascicolo. - * - * @param userUuid the user uuid of this info fascicolo - */ - @Override - public void setUserUuid(String userUuid); - - /** - * Returns the user name of this info fascicolo. - * - * @return the user name of this info fascicolo - */ - @AutoEscape - @Override - public String getUserName(); - - /** - * Sets the user name of this info fascicolo. - * - * @param userName the user name of this info fascicolo - */ - @Override - public void setUserName(String userName); - - /** - * Returns the create date of this info fascicolo. - * - * @return the create date of this info fascicolo - */ - @Override - public Date getCreateDate(); - - /** - * Sets the create date of this info fascicolo. - * - * @param createDate the create date of this info fascicolo - */ - @Override - public void setCreateDate(Date createDate); - - /** - * Returns the modified date of this info fascicolo. - * - * @return the modified date of this info fascicolo - */ - @Override - public Date getModifiedDate(); - - /** - * Sets the modified date of this info fascicolo. - * - * @param modifiedDate the modified date of this info fascicolo - */ - @Override - public void setModifiedDate(Date modifiedDate); - - /** - * Returns the group ID of this info fascicolo. - * - * @return the group ID of this info fascicolo - */ - @Override - public long getGroupId(); - - /** - * Sets the group ID of this info fascicolo. - * - * @param groupId the group ID of this info fascicolo - */ - @Override - public void setGroupId(long groupId); - - /** - * Returns the int pratica ID of this info fascicolo. - * - * @return the int pratica ID of this info fascicolo - */ - public long getIntPraticaId(); - - /** - * Sets the int pratica ID of this info fascicolo. - * - * @param intPraticaId the int pratica ID of this info fascicolo - */ - public void setIntPraticaId(long intPraticaId); - - /** - * Returns the numero progetto of this info fascicolo. - * - * @return the numero progetto of this info fascicolo - */ - @AutoEscape - public String getNumeroProgetto(); - - /** - * Sets the numero progetto of this info fascicolo. - * - * @param numeroProgetto the numero progetto of this info fascicolo - */ - public void setNumeroProgetto(String numeroProgetto); - - /** - * Returns the already imported of this info fascicolo. - * - * @return the already imported of this info fascicolo - */ - public boolean getAlreadyImported(); - - /** - * Returns true if this info fascicolo is already imported. - * - * @return true if this info fascicolo is already imported; false otherwise - */ - public boolean isAlreadyImported(); - - /** - * Sets whether this info fascicolo is already imported. - * - * @param alreadyImported the already imported of this info fascicolo - */ - public void setAlreadyImported(boolean alreadyImported); - - @Override - public boolean isNew(); - - @Override - public void setNew(boolean n); - - @Override - public boolean isCachedModel(); - - @Override - public void setCachedModel(boolean cachedModel); - - @Override - public boolean isEscapedModel(); - - @Override - public Serializable getPrimaryKeyObj(); - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj); - - @Override - public ExpandoBridge getExpandoBridge(); - - @Override - public void setExpandoBridgeAttributes(BaseModel baseModel); - - @Override - public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); - - @Override - public void setExpandoBridgeAttributes(ServiceContext serviceContext); - - @Override - public Object clone(); - - @Override - public int compareTo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo); - - @Override - public int hashCode(); - - @Override - public CacheModel toCacheModel(); - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo toEscapedModel(); - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo toUnescapedModel(); - - @Override - public String toString(); - - @Override - public String toXmlString(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloSoap.java deleted file mode 100644 index d31e966a..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloSoap.java +++ /dev/null @@ -1,200 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * This class is used by SOAP remote services, specifically {@link it.tref.liferay.portos.bo.service.http.InfoFascicoloServiceSoap}. - * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.http.InfoFascicoloServiceSoap - * @generated - */ -public class InfoFascicoloSoap implements Serializable { - public static InfoFascicoloSoap toSoapModel(InfoFascicolo model) { - InfoFascicoloSoap soapModel = new InfoFascicoloSoap(); - - soapModel.setUuid(model.getUuid()); - soapModel.setInfoFascicoloId(model.getInfoFascicoloId()); - soapModel.setCompanyId(model.getCompanyId()); - soapModel.setUserId(model.getUserId()); - soapModel.setUserName(model.getUserName()); - soapModel.setCreateDate(model.getCreateDate()); - soapModel.setModifiedDate(model.getModifiedDate()); - soapModel.setGroupId(model.getGroupId()); - soapModel.setIntPraticaId(model.getIntPraticaId()); - soapModel.setNumeroProgetto(model.getNumeroProgetto()); - soapModel.setAlreadyImported(model.getAlreadyImported()); - - return soapModel; - } - - public static InfoFascicoloSoap[] toSoapModels(InfoFascicolo[] models) { - InfoFascicoloSoap[] soapModels = new InfoFascicoloSoap[models.length]; - - for (int i = 0; i < models.length; i++) { - soapModels[i] = toSoapModel(models[i]); - } - - return soapModels; - } - - public static InfoFascicoloSoap[][] toSoapModels(InfoFascicolo[][] models) { - InfoFascicoloSoap[][] soapModels = null; - - if (models.length > 0) { - soapModels = new InfoFascicoloSoap[models.length][models[0].length]; - } - else { - soapModels = new InfoFascicoloSoap[0][0]; - } - - for (int i = 0; i < models.length; i++) { - soapModels[i] = toSoapModels(models[i]); - } - - return soapModels; - } - - public static InfoFascicoloSoap[] toSoapModels(List models) { - List soapModels = new ArrayList(models.size()); - - for (InfoFascicolo model : models) { - soapModels.add(toSoapModel(model)); - } - - return soapModels.toArray(new InfoFascicoloSoap[soapModels.size()]); - } - - public InfoFascicoloSoap() { - } - - public long getPrimaryKey() { - return _infoFascicoloId; - } - - public void setPrimaryKey(long pk) { - setInfoFascicoloId(pk); - } - - public String getUuid() { - return _uuid; - } - - public void setUuid(String uuid) { - _uuid = uuid; - } - - public long getInfoFascicoloId() { - return _infoFascicoloId; - } - - public void setInfoFascicoloId(long infoFascicoloId) { - _infoFascicoloId = infoFascicoloId; - } - - public long getCompanyId() { - return _companyId; - } - - public void setCompanyId(long companyId) { - _companyId = companyId; - } - - public long getUserId() { - return _userId; - } - - public void setUserId(long userId) { - _userId = userId; - } - - public String getUserName() { - return _userName; - } - - public void setUserName(String userName) { - _userName = userName; - } - - public Date getCreateDate() { - return _createDate; - } - - public void setCreateDate(Date createDate) { - _createDate = createDate; - } - - public Date getModifiedDate() { - return _modifiedDate; - } - - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - } - - public long getGroupId() { - return _groupId; - } - - public void setGroupId(long groupId) { - _groupId = groupId; - } - - public long getIntPraticaId() { - return _intPraticaId; - } - - public void setIntPraticaId(long intPraticaId) { - _intPraticaId = intPraticaId; - } - - public String getNumeroProgetto() { - return _numeroProgetto; - } - - public void setNumeroProgetto(String numeroProgetto) { - _numeroProgetto = numeroProgetto; - } - - public boolean getAlreadyImported() { - return _alreadyImported; - } - - public boolean isAlreadyImported() { - return _alreadyImported; - } - - public void setAlreadyImported(boolean alreadyImported) { - _alreadyImported = alreadyImported; - } - - private String _uuid; - private long _infoFascicoloId; - private long _companyId; - private long _userId; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private long _intPraticaId; - private String _numeroProgetto; - private boolean _alreadyImported; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloWrapper.java deleted file mode 100644 index fd3df0ba..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/InfoFascicoloWrapper.java +++ /dev/null @@ -1,557 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.ModelWrapper; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -/** - *

- * This class is a wrapper for {@link InfoFascicolo}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicolo - * @generated - */ -public class InfoFascicoloWrapper implements InfoFascicolo, - ModelWrapper { - public InfoFascicoloWrapper(InfoFascicolo infoFascicolo) { - _infoFascicolo = infoFascicolo; - } - - @Override - public Class getModelClass() { - return InfoFascicolo.class; - } - - @Override - public String getModelClassName() { - return InfoFascicolo.class.getName(); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("infoFascicoloId", getInfoFascicoloId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("intPraticaId", getIntPraticaId()); - attributes.put("numeroProgetto", getNumeroProgetto()); - attributes.put("alreadyImported", getAlreadyImported()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long infoFascicoloId = (Long)attributes.get("infoFascicoloId"); - - if (infoFascicoloId != null) { - setInfoFascicoloId(infoFascicoloId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Long intPraticaId = (Long)attributes.get("intPraticaId"); - - if (intPraticaId != null) { - setIntPraticaId(intPraticaId); - } - - String numeroProgetto = (String)attributes.get("numeroProgetto"); - - if (numeroProgetto != null) { - setNumeroProgetto(numeroProgetto); - } - - Boolean alreadyImported = (Boolean)attributes.get("alreadyImported"); - - if (alreadyImported != null) { - setAlreadyImported(alreadyImported); - } - } - - /** - * Returns the primary key of this info fascicolo. - * - * @return the primary key of this info fascicolo - */ - @Override - public long getPrimaryKey() { - return _infoFascicolo.getPrimaryKey(); - } - - /** - * Sets the primary key of this info fascicolo. - * - * @param primaryKey the primary key of this info fascicolo - */ - @Override - public void setPrimaryKey(long primaryKey) { - _infoFascicolo.setPrimaryKey(primaryKey); - } - - /** - * Returns the uuid of this info fascicolo. - * - * @return the uuid of this info fascicolo - */ - @Override - public java.lang.String getUuid() { - return _infoFascicolo.getUuid(); - } - - /** - * Sets the uuid of this info fascicolo. - * - * @param uuid the uuid of this info fascicolo - */ - @Override - public void setUuid(java.lang.String uuid) { - _infoFascicolo.setUuid(uuid); - } - - /** - * Returns the info fascicolo ID of this info fascicolo. - * - * @return the info fascicolo ID of this info fascicolo - */ - @Override - public long getInfoFascicoloId() { - return _infoFascicolo.getInfoFascicoloId(); - } - - /** - * Sets the info fascicolo ID of this info fascicolo. - * - * @param infoFascicoloId the info fascicolo ID of this info fascicolo - */ - @Override - public void setInfoFascicoloId(long infoFascicoloId) { - _infoFascicolo.setInfoFascicoloId(infoFascicoloId); - } - - /** - * Returns the company ID of this info fascicolo. - * - * @return the company ID of this info fascicolo - */ - @Override - public long getCompanyId() { - return _infoFascicolo.getCompanyId(); - } - - /** - * Sets the company ID of this info fascicolo. - * - * @param companyId the company ID of this info fascicolo - */ - @Override - public void setCompanyId(long companyId) { - _infoFascicolo.setCompanyId(companyId); - } - - /** - * Returns the user ID of this info fascicolo. - * - * @return the user ID of this info fascicolo - */ - @Override - public long getUserId() { - return _infoFascicolo.getUserId(); - } - - /** - * Sets the user ID of this info fascicolo. - * - * @param userId the user ID of this info fascicolo - */ - @Override - public void setUserId(long userId) { - _infoFascicolo.setUserId(userId); - } - - /** - * Returns the user uuid of this info fascicolo. - * - * @return the user uuid of this info fascicolo - * @throws SystemException if a system exception occurred - */ - @Override - public java.lang.String getUserUuid() - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicolo.getUserUuid(); - } - - /** - * Sets the user uuid of this info fascicolo. - * - * @param userUuid the user uuid of this info fascicolo - */ - @Override - public void setUserUuid(java.lang.String userUuid) { - _infoFascicolo.setUserUuid(userUuid); - } - - /** - * Returns the user name of this info fascicolo. - * - * @return the user name of this info fascicolo - */ - @Override - public java.lang.String getUserName() { - return _infoFascicolo.getUserName(); - } - - /** - * Sets the user name of this info fascicolo. - * - * @param userName the user name of this info fascicolo - */ - @Override - public void setUserName(java.lang.String userName) { - _infoFascicolo.setUserName(userName); - } - - /** - * Returns the create date of this info fascicolo. - * - * @return the create date of this info fascicolo - */ - @Override - public java.util.Date getCreateDate() { - return _infoFascicolo.getCreateDate(); - } - - /** - * Sets the create date of this info fascicolo. - * - * @param createDate the create date of this info fascicolo - */ - @Override - public void setCreateDate(java.util.Date createDate) { - _infoFascicolo.setCreateDate(createDate); - } - - /** - * Returns the modified date of this info fascicolo. - * - * @return the modified date of this info fascicolo - */ - @Override - public java.util.Date getModifiedDate() { - return _infoFascicolo.getModifiedDate(); - } - - /** - * Sets the modified date of this info fascicolo. - * - * @param modifiedDate the modified date of this info fascicolo - */ - @Override - public void setModifiedDate(java.util.Date modifiedDate) { - _infoFascicolo.setModifiedDate(modifiedDate); - } - - /** - * Returns the group ID of this info fascicolo. - * - * @return the group ID of this info fascicolo - */ - @Override - public long getGroupId() { - return _infoFascicolo.getGroupId(); - } - - /** - * Sets the group ID of this info fascicolo. - * - * @param groupId the group ID of this info fascicolo - */ - @Override - public void setGroupId(long groupId) { - _infoFascicolo.setGroupId(groupId); - } - - /** - * Returns the int pratica ID of this info fascicolo. - * - * @return the int pratica ID of this info fascicolo - */ - @Override - public long getIntPraticaId() { - return _infoFascicolo.getIntPraticaId(); - } - - /** - * Sets the int pratica ID of this info fascicolo. - * - * @param intPraticaId the int pratica ID of this info fascicolo - */ - @Override - public void setIntPraticaId(long intPraticaId) { - _infoFascicolo.setIntPraticaId(intPraticaId); - } - - /** - * Returns the numero progetto of this info fascicolo. - * - * @return the numero progetto of this info fascicolo - */ - @Override - public java.lang.String getNumeroProgetto() { - return _infoFascicolo.getNumeroProgetto(); - } - - /** - * Sets the numero progetto of this info fascicolo. - * - * @param numeroProgetto the numero progetto of this info fascicolo - */ - @Override - public void setNumeroProgetto(java.lang.String numeroProgetto) { - _infoFascicolo.setNumeroProgetto(numeroProgetto); - } - - /** - * Returns the already imported of this info fascicolo. - * - * @return the already imported of this info fascicolo - */ - @Override - public boolean getAlreadyImported() { - return _infoFascicolo.getAlreadyImported(); - } - - /** - * Returns true if this info fascicolo is already imported. - * - * @return true if this info fascicolo is already imported; false otherwise - */ - @Override - public boolean isAlreadyImported() { - return _infoFascicolo.isAlreadyImported(); - } - - /** - * Sets whether this info fascicolo is already imported. - * - * @param alreadyImported the already imported of this info fascicolo - */ - @Override - public void setAlreadyImported(boolean alreadyImported) { - _infoFascicolo.setAlreadyImported(alreadyImported); - } - - @Override - public boolean isNew() { - return _infoFascicolo.isNew(); - } - - @Override - public void setNew(boolean n) { - _infoFascicolo.setNew(n); - } - - @Override - public boolean isCachedModel() { - return _infoFascicolo.isCachedModel(); - } - - @Override - public void setCachedModel(boolean cachedModel) { - _infoFascicolo.setCachedModel(cachedModel); - } - - @Override - public boolean isEscapedModel() { - return _infoFascicolo.isEscapedModel(); - } - - @Override - public java.io.Serializable getPrimaryKeyObj() { - return _infoFascicolo.getPrimaryKeyObj(); - } - - @Override - public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { - _infoFascicolo.setPrimaryKeyObj(primaryKeyObj); - } - - @Override - public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { - return _infoFascicolo.getExpandoBridge(); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portal.model.BaseModel baseModel) { - _infoFascicolo.setExpandoBridgeAttributes(baseModel); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { - _infoFascicolo.setExpandoBridgeAttributes(expandoBridge); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portal.service.ServiceContext serviceContext) { - _infoFascicolo.setExpandoBridgeAttributes(serviceContext); - } - - @Override - public java.lang.Object clone() { - return new InfoFascicoloWrapper((InfoFascicolo)_infoFascicolo.clone()); - } - - @Override - public int compareTo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) { - return _infoFascicolo.compareTo(infoFascicolo); - } - - @Override - public int hashCode() { - return _infoFascicolo.hashCode(); - } - - @Override - public com.liferay.portal.model.CacheModel toCacheModel() { - return _infoFascicolo.toCacheModel(); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo toEscapedModel() { - return new InfoFascicoloWrapper(_infoFascicolo.toEscapedModel()); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo toUnescapedModel() { - return new InfoFascicoloWrapper(_infoFascicolo.toUnescapedModel()); - } - - @Override - public java.lang.String toString() { - return _infoFascicolo.toString(); - } - - @Override - public java.lang.String toXmlString() { - return _infoFascicolo.toXmlString(); - } - - @Override - public void persist() - throws com.liferay.portal.kernel.exception.SystemException { - _infoFascicolo.persist(); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof InfoFascicoloWrapper)) { - return false; - } - - InfoFascicoloWrapper infoFascicoloWrapper = (InfoFascicoloWrapper)obj; - - if (Validator.equals(_infoFascicolo, infoFascicoloWrapper._infoFascicolo)) { - return true; - } - - return false; - } - - @Override - public StagedModelType getStagedModelType() { - return _infoFascicolo.getStagedModelType(); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} - */ - public InfoFascicolo getWrappedInfoFascicolo() { - return _infoFascicolo; - } - - @Override - public InfoFascicolo getWrappedModel() { - return _infoFascicolo; - } - - @Override - public void resetOriginalValues() { - _infoFascicolo.resetOriginalValues(); - } - - private InfoFascicolo _infoFascicolo; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java index a25cfead..a5ecf404 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java @@ -47,4 +47,6 @@ public interface IntPratica extends IntPraticaModel, PersistedModel { throws com.liferay.portal.kernel.exception.SystemException; public java.lang.Integer getDistanzaOrtodromica(); + + public boolean isSanatoria(); } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java index aac5cd95..e67ee77b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java @@ -92,7 +92,6 @@ public class IntPraticaClp extends BaseModelImpl attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("docPraticaAnnullamentoId", getDocPraticaAnnullamentoId()); attributes.put("unitaOperativa", getUnitaOperativa()); - attributes.put("dtSorteggio", getDtSorteggio()); attributes.put("statoPratica", getStatoPratica()); attributes.put("numeroProgetto", getNumeroProgetto()); attributes.put("validata", getValidata()); @@ -101,7 +100,6 @@ public class IntPraticaClp extends BaseModelImpl attributes.put("statusDate", getStatusDate()); attributes.put("esitoControllo", getEsitoControllo()); attributes.put("dtPratica", getDtPratica()); - attributes.put("oldIntPraticaId", getOldIntPraticaId()); attributes.put("sospesa", getSospesa()); attributes.put("dtSospensione", getDtSospensione()); attributes.put("codiceFiscaleDelegatoFineLavori", @@ -216,12 +214,6 @@ public class IntPraticaClp extends BaseModelImpl setUnitaOperativa(unitaOperativa); } - Date dtSorteggio = (Date)attributes.get("dtSorteggio"); - - if (dtSorteggio != null) { - setDtSorteggio(dtSorteggio); - } - String statoPratica = (String)attributes.get("statoPratica"); if (statoPratica != null) { @@ -270,12 +262,6 @@ public class IntPraticaClp extends BaseModelImpl setDtPratica(dtPratica); } - Long oldIntPraticaId = (Long)attributes.get("oldIntPraticaId"); - - if (oldIntPraticaId != null) { - setOldIntPraticaId(oldIntPraticaId); - } - Boolean sospesa = (Boolean)attributes.get("sospesa"); if (sospesa != null) { @@ -714,29 +700,6 @@ public class IntPraticaClp extends BaseModelImpl } } - @Override - public Date getDtSorteggio() { - return _dtSorteggio; - } - - @Override - public void setDtSorteggio(Date dtSorteggio) { - _dtSorteggio = dtSorteggio; - - if (_intPraticaRemoteModel != null) { - try { - Class clazz = _intPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setDtSorteggio", Date.class); - - method.invoke(_intPraticaRemoteModel, dtSorteggio); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getStatoPratica() { return _statoPratica; @@ -938,29 +901,6 @@ public class IntPraticaClp extends BaseModelImpl } } - @Override - public long getOldIntPraticaId() { - return _oldIntPraticaId; - } - - @Override - public void setOldIntPraticaId(long oldIntPraticaId) { - _oldIntPraticaId = oldIntPraticaId; - - if (_intPraticaRemoteModel != null) { - try { - Class clazz = _intPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldIntPraticaId", long.class); - - method.invoke(_intPraticaRemoteModel, oldIntPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public boolean getSospesa() { return _sospesa; @@ -1346,6 +1286,25 @@ public class IntPraticaClp extends BaseModelImpl } } + @Override + public boolean isSanatoria() { + try { + String methodName = "isSanatoria"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -1437,7 +1396,6 @@ public class IntPraticaClp extends BaseModelImpl clone.setDtAnnullamento(getDtAnnullamento()); clone.setDocPraticaAnnullamentoId(getDocPraticaAnnullamentoId()); clone.setUnitaOperativa(getUnitaOperativa()); - clone.setDtSorteggio(getDtSorteggio()); clone.setStatoPratica(getStatoPratica()); clone.setNumeroProgetto(getNumeroProgetto()); clone.setValidata(getValidata()); @@ -1446,7 +1404,6 @@ public class IntPraticaClp extends BaseModelImpl clone.setStatusDate(getStatusDate()); clone.setEsitoControllo(getEsitoControllo()); clone.setDtPratica(getDtPratica()); - clone.setOldIntPraticaId(getOldIntPraticaId()); clone.setSospesa(getSospesa()); clone.setDtSospensione(getDtSospensione()); clone.setCodiceFiscaleDelegatoFineLavori(getCodiceFiscaleDelegatoFineLavori()); @@ -1508,7 +1465,7 @@ public class IntPraticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(71); + StringBundler sb = new StringBundler(67); sb.append("{uuid="); sb.append(getUuid()); @@ -1542,8 +1499,6 @@ public class IntPraticaClp extends BaseModelImpl sb.append(getDocPraticaAnnullamentoId()); sb.append(", unitaOperativa="); sb.append(getUnitaOperativa()); - sb.append(", dtSorteggio="); - sb.append(getDtSorteggio()); sb.append(", statoPratica="); sb.append(getStatoPratica()); sb.append(", numeroProgetto="); @@ -1560,8 +1515,6 @@ public class IntPraticaClp extends BaseModelImpl sb.append(getEsitoControllo()); sb.append(", dtPratica="); sb.append(getDtPratica()); - sb.append(", oldIntPraticaId="); - sb.append(getOldIntPraticaId()); sb.append(", sospesa="); sb.append(getSospesa()); sb.append(", dtSospensione="); @@ -1587,7 +1540,7 @@ public class IntPraticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(109); + StringBundler sb = new StringBundler(103); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.IntPratica"); @@ -1657,10 +1610,6 @@ public class IntPraticaClp extends BaseModelImpl "unitaOperativa"); - sb.append( - "dtSorteggio"); sb.append( "statoPratica "dtPratica"); - sb.append( - "oldIntPraticaId"); sb.append( "sospesa private Date _dtAnnullamento; private long _docPraticaAnnullamentoId; private int _unitaOperativa; - private Date _dtSorteggio; private String _statoPratica; private String _numeroProgetto; private boolean _validata; @@ -1766,7 +1710,6 @@ public class IntPraticaClp extends BaseModelImpl private Date _statusDate; private int _esitoControllo; private Date _dtPratica; - private long _oldIntPraticaId; private boolean _sospesa; private Date _dtSospensione; private String _codiceFiscaleDelegatoFineLavori; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java index 7f9bfda8..bfd5d90a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaModel.java @@ -321,20 +321,6 @@ public interface IntPraticaModel extends BaseModel, */ public void setUnitaOperativa(int unitaOperativa); - /** - * Returns the dt sorteggio of this int pratica. - * - * @return the dt sorteggio of this int pratica - */ - public Date getDtSorteggio(); - - /** - * Sets the dt sorteggio of this int pratica. - * - * @param dtSorteggio the dt sorteggio of this int pratica - */ - public void setDtSorteggio(Date dtSorteggio); - /** * Returns the stato pratica of this int pratica. * @@ -471,20 +457,6 @@ public interface IntPraticaModel extends BaseModel, */ public void setDtPratica(Date dtPratica); - /** - * Returns the old int pratica ID of this int pratica. - * - * @return the old int pratica ID of this int pratica - */ - public long getOldIntPraticaId(); - - /** - * Sets the old int pratica ID of this int pratica. - * - * @param oldIntPraticaId the old int pratica ID of this int pratica - */ - public void setOldIntPraticaId(long oldIntPraticaId); - /** * Returns the sospesa of this int pratica. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java index f4142729..a8807f67 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaSoap.java @@ -47,7 +47,6 @@ public class IntPraticaSoap implements Serializable { soapModel.setDtAnnullamento(model.getDtAnnullamento()); soapModel.setDocPraticaAnnullamentoId(model.getDocPraticaAnnullamentoId()); soapModel.setUnitaOperativa(model.getUnitaOperativa()); - soapModel.setDtSorteggio(model.getDtSorteggio()); soapModel.setStatoPratica(model.getStatoPratica()); soapModel.setNumeroProgetto(model.getNumeroProgetto()); soapModel.setValidata(model.getValidata()); @@ -56,7 +55,6 @@ public class IntPraticaSoap implements Serializable { soapModel.setStatusDate(model.getStatusDate()); soapModel.setEsitoControllo(model.getEsitoControllo()); soapModel.setDtPratica(model.getDtPratica()); - soapModel.setOldIntPraticaId(model.getOldIntPraticaId()); soapModel.setSospesa(model.getSospesa()); soapModel.setDtSospensione(model.getDtSospensione()); soapModel.setCodiceFiscaleDelegatoFineLavori(model.getCodiceFiscaleDelegatoFineLavori()); @@ -246,14 +244,6 @@ public class IntPraticaSoap implements Serializable { _unitaOperativa = unitaOperativa; } - public Date getDtSorteggio() { - return _dtSorteggio; - } - - public void setDtSorteggio(Date dtSorteggio) { - _dtSorteggio = dtSorteggio; - } - public String getStatoPratica() { return _statoPratica; } @@ -322,14 +312,6 @@ public class IntPraticaSoap implements Serializable { _dtPratica = dtPratica; } - public long getOldIntPraticaId() { - return _oldIntPraticaId; - } - - public void setOldIntPraticaId(long oldIntPraticaId) { - _oldIntPraticaId = oldIntPraticaId; - } - public boolean getSospesa() { return _sospesa; } @@ -444,7 +426,6 @@ public class IntPraticaSoap implements Serializable { private Date _dtAnnullamento; private long _docPraticaAnnullamentoId; private int _unitaOperativa; - private Date _dtSorteggio; private String _statoPratica; private String _numeroProgetto; private boolean _validata; @@ -453,7 +434,6 @@ public class IntPraticaSoap implements Serializable { private Date _statusDate; private int _esitoControllo; private Date _dtPratica; - private long _oldIntPraticaId; private boolean _sospesa; private Date _dtSospensione; private String _codiceFiscaleDelegatoFineLavori; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java index fec22c58..d533d544 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java @@ -66,7 +66,6 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("docPraticaAnnullamentoId", getDocPraticaAnnullamentoId()); attributes.put("unitaOperativa", getUnitaOperativa()); - attributes.put("dtSorteggio", getDtSorteggio()); attributes.put("statoPratica", getStatoPratica()); attributes.put("numeroProgetto", getNumeroProgetto()); attributes.put("validata", getValidata()); @@ -75,7 +74,6 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { attributes.put("statusDate", getStatusDate()); attributes.put("esitoControllo", getEsitoControllo()); attributes.put("dtPratica", getDtPratica()); - attributes.put("oldIntPraticaId", getOldIntPraticaId()); attributes.put("sospesa", getSospesa()); attributes.put("dtSospensione", getDtSospensione()); attributes.put("codiceFiscaleDelegatoFineLavori", @@ -190,12 +188,6 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { setUnitaOperativa(unitaOperativa); } - Date dtSorteggio = (Date)attributes.get("dtSorteggio"); - - if (dtSorteggio != null) { - setDtSorteggio(dtSorteggio); - } - String statoPratica = (String)attributes.get("statoPratica"); if (statoPratica != null) { @@ -244,12 +236,6 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { setDtPratica(dtPratica); } - Long oldIntPraticaId = (Long)attributes.get("oldIntPraticaId"); - - if (oldIntPraticaId != null) { - setOldIntPraticaId(oldIntPraticaId); - } - Boolean sospesa = (Boolean)attributes.get("sospesa"); if (sospesa != null) { @@ -671,26 +657,6 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { _intPratica.setUnitaOperativa(unitaOperativa); } - /** - * Returns the dt sorteggio of this int pratica. - * - * @return the dt sorteggio of this int pratica - */ - @Override - public java.util.Date getDtSorteggio() { - return _intPratica.getDtSorteggio(); - } - - /** - * Sets the dt sorteggio of this int pratica. - * - * @param dtSorteggio the dt sorteggio of this int pratica - */ - @Override - public void setDtSorteggio(java.util.Date dtSorteggio) { - _intPratica.setDtSorteggio(dtSorteggio); - } - /** * Returns the stato pratica of this int pratica. * @@ -883,26 +849,6 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { _intPratica.setDtPratica(dtPratica); } - /** - * Returns the old int pratica ID of this int pratica. - * - * @return the old int pratica ID of this int pratica - */ - @Override - public long getOldIntPraticaId() { - return _intPratica.getOldIntPraticaId(); - } - - /** - * Sets the old int pratica ID of this int pratica. - * - * @param oldIntPraticaId the old int pratica ID of this int pratica - */ - @Override - public void setOldIntPraticaId(long oldIntPraticaId) { - _intPratica.setOldIntPraticaId(oldIntPraticaId); - } - /** * Returns the sospesa of this int pratica. * @@ -1287,6 +1233,11 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { return _intPratica.getDistanzaOrtodromica(); } + @Override + public boolean isSanatoria() { + return _intPratica.isSanatoria(); + } + @Override public boolean equals(Object obj) { if (this == obj) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java index ab8d7cf9..01e13bcb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java @@ -87,7 +87,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento attributes.put("classPk", getClassPk()); attributes.put("className", getClassName()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("tipoPagamento", getTipoPagamento()); attributes.put("url", getUrl()); attributes.put("codice", getCodice()); @@ -101,7 +100,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("emailPending", getEmailPending()); attributes.put("numeroBollettino", getNumeroBollettino()); - attributes.put("oldPagamentoId", getOldPagamentoId()); return attributes; } @@ -180,12 +178,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String tipoPagamento = (String)attributes.get("tipoPagamento"); if (tipoPagamento != null) { @@ -265,12 +257,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento if (numeroBollettino != null) { setNumeroBollettino(numeroBollettino); } - - Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); - - if (oldPagamentoId != null) { - setOldPagamentoId(oldPagamentoId); - } } @Override @@ -559,29 +545,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento } } - @Override - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - - if (_pagamentoRemoteModel != null) { - try { - Class clazz = _pagamentoRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldFileEntryId", long.class); - - method.invoke(_pagamentoRemoteModel, oldFileEntryId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getTipoPagamento() { return _tipoPagamento; @@ -894,29 +857,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento } } - @Override - public long getOldPagamentoId() { - return _oldPagamentoId; - } - - @Override - public void setOldPagamentoId(long oldPagamentoId) { - _oldPagamentoId = oldPagamentoId; - - if (_pagamentoRemoteModel != null) { - try { - Class clazz = _pagamentoRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldPagamentoId", long.class); - - method.invoke(_pagamentoRemoteModel, oldPagamentoId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public java.lang.String getDownloadUrl( com.liferay.portal.theme.ThemeDisplay themeDisplay) { @@ -1045,7 +985,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento clone.setClassPk(getClassPk()); clone.setClassName(getClassName()); clone.setFileEntryId(getFileEntryId()); - clone.setOldFileEntryId(getOldFileEntryId()); clone.setTipoPagamento(getTipoPagamento()); clone.setUrl(getUrl()); clone.setCodice(getCodice()); @@ -1059,7 +998,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento clone.setOtfCreateDate(getOtfCreateDate()); clone.setEmailPending(getEmailPending()); clone.setNumeroBollettino(getNumeroBollettino()); - clone.setOldPagamentoId(getOldPagamentoId()); return clone; } @@ -1112,7 +1050,7 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(51); sb.append("{uuid="); sb.append(getUuid()); @@ -1138,8 +1076,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento sb.append(getClassName()); sb.append(", fileEntryId="); sb.append(getFileEntryId()); - sb.append(", oldFileEntryId="); - sb.append(getOldFileEntryId()); sb.append(", tipoPagamento="); sb.append(getTipoPagamento()); sb.append(", url="); @@ -1166,8 +1102,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento sb.append(getEmailPending()); sb.append(", numeroBollettino="); sb.append(getNumeroBollettino()); - sb.append(", oldPagamentoId="); - sb.append(getOldPagamentoId()); sb.append("}"); return sb.toString(); @@ -1175,7 +1109,7 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento @Override public String toXmlString() { - StringBundler sb = new StringBundler(85); + StringBundler sb = new StringBundler(79); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Pagamento"); @@ -1229,10 +1163,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento "fileEntryId"); - sb.append( - "oldFileEntryId"); sb.append( "tipoPagamento implements Pagamento "numeroBollettino"); - sb.append( - "oldPagamentoId"); sb.append(""); @@ -1308,7 +1234,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento private long _classPk; private String _className; private long _fileEntryId; - private long _oldFileEntryId; private String _tipoPagamento; private String _url; private String _codice; @@ -1322,7 +1247,6 @@ public class PagamentoClp extends BaseModelImpl implements Pagamento private Date _otfCreateDate; private boolean _emailPending; private String _numeroBollettino; - private long _oldPagamentoId; private BaseModel _pagamentoRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java index 35263bcd..0173950f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java @@ -263,20 +263,6 @@ public interface PagamentoModel extends BaseModel, StagedGroupedModel */ public void setFileEntryId(long fileEntryId); - /** - * Returns the old file entry ID of this pagamento. - * - * @return the old file entry ID of this pagamento - */ - public long getOldFileEntryId(); - - /** - * Sets the old file entry ID of this pagamento. - * - * @param oldFileEntryId the old file entry ID of this pagamento - */ - public void setOldFileEntryId(long oldFileEntryId); - /** * Returns the tipo pagamento of this pagamento. * @@ -483,20 +469,6 @@ public interface PagamentoModel extends BaseModel, StagedGroupedModel */ public void setNumeroBollettino(String numeroBollettino); - /** - * Returns the old pagamento ID of this pagamento. - * - * @return the old pagamento ID of this pagamento - */ - public long getOldPagamentoId(); - - /** - * Sets the old pagamento ID of this pagamento. - * - * @param oldPagamentoId the old pagamento ID of this pagamento - */ - public void setOldPagamentoId(long oldPagamentoId); - @Override public boolean isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java index 3e43d5d4..710836be 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java @@ -43,7 +43,6 @@ public class PagamentoSoap implements Serializable { soapModel.setClassPk(model.getClassPk()); soapModel.setClassName(model.getClassName()); soapModel.setFileEntryId(model.getFileEntryId()); - soapModel.setOldFileEntryId(model.getOldFileEntryId()); soapModel.setTipoPagamento(model.getTipoPagamento()); soapModel.setUrl(model.getUrl()); soapModel.setCodice(model.getCodice()); @@ -57,7 +56,6 @@ public class PagamentoSoap implements Serializable { soapModel.setOtfCreateDate(model.getOtfCreateDate()); soapModel.setEmailPending(model.getEmailPending()); soapModel.setNumeroBollettino(model.getNumeroBollettino()); - soapModel.setOldPagamentoId(model.getOldPagamentoId()); return soapModel; } @@ -206,14 +204,6 @@ public class PagamentoSoap implements Serializable { _fileEntryId = fileEntryId; } - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - } - public String getTipoPagamento() { return _tipoPagamento; } @@ -326,14 +316,6 @@ public class PagamentoSoap implements Serializable { _numeroBollettino = numeroBollettino; } - public long getOldPagamentoId() { - return _oldPagamentoId; - } - - public void setOldPagamentoId(long oldPagamentoId) { - _oldPagamentoId = oldPagamentoId; - } - private String _uuid; private long _pagamentoId; private long _companyId; @@ -346,7 +328,6 @@ public class PagamentoSoap implements Serializable { private long _classPk; private String _className; private long _fileEntryId; - private long _oldFileEntryId; private String _tipoPagamento; private String _url; private String _codice; @@ -360,5 +341,4 @@ public class PagamentoSoap implements Serializable { private Date _otfCreateDate; private boolean _emailPending; private String _numeroBollettino; - private long _oldPagamentoId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java index 716ea90b..56a53bb1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java @@ -62,7 +62,6 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { attributes.put("classPk", getClassPk()); attributes.put("className", getClassName()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("tipoPagamento", getTipoPagamento()); attributes.put("url", getUrl()); attributes.put("codice", getCodice()); @@ -76,7 +75,6 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("emailPending", getEmailPending()); attributes.put("numeroBollettino", getNumeroBollettino()); - attributes.put("oldPagamentoId", getOldPagamentoId()); return attributes; } @@ -155,12 +153,6 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String tipoPagamento = (String)attributes.get("tipoPagamento"); if (tipoPagamento != null) { @@ -240,12 +232,6 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { if (numeroBollettino != null) { setNumeroBollettino(numeroBollettino); } - - Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); - - if (oldPagamentoId != null) { - setOldPagamentoId(oldPagamentoId); - } } /** @@ -530,26 +516,6 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { _pagamento.setFileEntryId(fileEntryId); } - /** - * Returns the old file entry ID of this pagamento. - * - * @return the old file entry ID of this pagamento - */ - @Override - public long getOldFileEntryId() { - return _pagamento.getOldFileEntryId(); - } - - /** - * Sets the old file entry ID of this pagamento. - * - * @param oldFileEntryId the old file entry ID of this pagamento - */ - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _pagamento.setOldFileEntryId(oldFileEntryId); - } - /** * Returns the tipo pagamento of this pagamento. * @@ -831,26 +797,6 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper { _pagamento.setNumeroBollettino(numeroBollettino); } - /** - * Returns the old pagamento ID of this pagamento. - * - * @return the old pagamento ID of this pagamento - */ - @Override - public long getOldPagamentoId() { - return _pagamento.getOldPagamentoId(); - } - - /** - * Sets the old pagamento ID of this pagamento. - * - * @param oldPagamentoId the old pagamento ID of this pagamento - */ - @Override - public void setOldPagamentoId(long oldPagamentoId) { - _pagamento.setOldPagamentoId(oldPagamentoId); - } - @Override public boolean isNew() { return _pagamento.isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoClp.java index defa4981..13998e13 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoClp.java @@ -137,7 +137,6 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { attributes.put("dtDataRimozione", getDtDataRimozione()); attributes.put("sostituitoDa", getSostituitoDa()); attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); - attributes.put("oldSoggettoId", getOldSoggettoId()); attributes.put("fileVariazioneId", getFileVariazioneId()); return attributes; @@ -523,12 +522,6 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { setSoggettoSostituitoId(soggettoSostituitoId); } - Long oldSoggettoId = (Long)attributes.get("oldSoggettoId"); - - if (oldSoggettoId != null) { - setOldSoggettoId(oldSoggettoId); - } - Long fileVariazioneId = (Long)attributes.get("fileVariazioneId"); if (fileVariazioneId != null) { @@ -2005,29 +1998,6 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { } } - @Override - public long getOldSoggettoId() { - return _oldSoggettoId; - } - - @Override - public void setOldSoggettoId(long oldSoggettoId) { - _oldSoggettoId = oldSoggettoId; - - if (_soggettoRemoteModel != null) { - try { - Class clazz = _soggettoRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldSoggettoId", long.class); - - method.invoke(_soggettoRemoteModel, oldSoggettoId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public long getFileVariazioneId() { return _fileVariazioneId; @@ -2284,7 +2254,6 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { clone.setDtDataRimozione(getDtDataRimozione()); clone.setSostituitoDa(getSostituitoDa()); clone.setSoggettoSostituitoId(getSoggettoSostituitoId()); - clone.setOldSoggettoId(getOldSoggettoId()); clone.setFileVariazioneId(getFileVariazioneId()); return clone; @@ -2338,7 +2307,7 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { @Override public String toString() { - StringBundler sb = new StringBundler(129); + StringBundler sb = new StringBundler(127); sb.append("{uuid="); sb.append(getUuid()); @@ -2464,8 +2433,6 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { sb.append(getSostituitoDa()); sb.append(", soggettoSostituitoId="); sb.append(getSoggettoSostituitoId()); - sb.append(", oldSoggettoId="); - sb.append(getOldSoggettoId()); sb.append(", fileVariazioneId="); sb.append(getFileVariazioneId()); sb.append("}"); @@ -2475,7 +2442,7 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { @Override public String toXmlString() { - StringBundler sb = new StringBundler(196); + StringBundler sb = new StringBundler(193); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Soggetto"); @@ -2729,10 +2696,6 @@ public class SoggettoClp extends BaseModelImpl implements Soggetto { "soggettoSostituitoId"); - sb.append( - "oldSoggettoId"); sb.append( "fileVariazioneId implements Soggetto { private Date _dtDataRimozione; private long _sostituitoDa; private long _soggettoSostituitoId; - private long _oldSoggettoId; private long _fileVariazioneId; private BaseModel _soggettoRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoModel.java index 0d7a05d7..e58c6295 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoModel.java @@ -1025,20 +1025,6 @@ public interface SoggettoModel extends BaseModel, StagedGroupedModel { */ public void setSoggettoSostituitoId(long soggettoSostituitoId); - /** - * Returns the old soggetto ID of this soggetto. - * - * @return the old soggetto ID of this soggetto - */ - public long getOldSoggettoId(); - - /** - * Sets the old soggetto ID of this soggetto. - * - * @param oldSoggettoId the old soggetto ID of this soggetto - */ - public void setOldSoggettoId(long oldSoggettoId); - /** * Returns the file variazione ID of this soggetto. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoSoap.java index 6b5d73f2..d5b301bd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoSoap.java @@ -93,7 +93,6 @@ public class SoggettoSoap implements Serializable { soapModel.setDtDataRimozione(model.getDtDataRimozione()); soapModel.setSostituitoDa(model.getSostituitoDa()); soapModel.setSoggettoSostituitoId(model.getSoggettoSostituitoId()); - soapModel.setOldSoggettoId(model.getOldSoggettoId()); soapModel.setFileVariazioneId(model.getFileVariazioneId()); return soapModel; @@ -655,14 +654,6 @@ public class SoggettoSoap implements Serializable { _soggettoSostituitoId = soggettoSostituitoId; } - public long getOldSoggettoId() { - return _oldSoggettoId; - } - - public void setOldSoggettoId(long oldSoggettoId) { - _oldSoggettoId = oldSoggettoId; - } - public long getFileVariazioneId() { return _fileVariazioneId; } @@ -733,6 +724,5 @@ public class SoggettoSoap implements Serializable { private Date _dtDataRimozione; private long _sostituitoDa; private long _soggettoSostituitoId; - private long _oldSoggettoId; private long _fileVariazioneId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoWrapper.java index abc2495c..4bc0a373 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SoggettoWrapper.java @@ -112,7 +112,6 @@ public class SoggettoWrapper implements Soggetto, ModelWrapper { attributes.put("dtDataRimozione", getDtDataRimozione()); attributes.put("sostituitoDa", getSostituitoDa()); attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); - attributes.put("oldSoggettoId", getOldSoggettoId()); attributes.put("fileVariazioneId", getFileVariazioneId()); return attributes; @@ -498,12 +497,6 @@ public class SoggettoWrapper implements Soggetto, ModelWrapper { setSoggettoSostituitoId(soggettoSostituitoId); } - Long oldSoggettoId = (Long)attributes.get("oldSoggettoId"); - - if (oldSoggettoId != null) { - setOldSoggettoId(oldSoggettoId); - } - Long fileVariazioneId = (Long)attributes.get("fileVariazioneId"); if (fileVariazioneId != null) { @@ -1823,26 +1816,6 @@ public class SoggettoWrapper implements Soggetto, ModelWrapper { _soggetto.setSoggettoSostituitoId(soggettoSostituitoId); } - /** - * Returns the old soggetto ID of this soggetto. - * - * @return the old soggetto ID of this soggetto - */ - @Override - public long getOldSoggettoId() { - return _soggetto.getOldSoggettoId(); - } - - /** - * Sets the old soggetto ID of this soggetto. - * - * @param oldSoggettoId the old soggetto ID of this soggetto - */ - @Override - public void setOldSoggettoId(long oldSoggettoId) { - _soggetto.setOldSoggettoId(oldSoggettoId); - } - /** * Returns the file variazione ID of this soggetto. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Sorteggio.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Sorteggio.java deleted file mode 100644 index 238388c0..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Sorteggio.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.model.PersistedModel; - -/** - * The extended model interface for the Sorteggio service. Represents a row in the "portos_bo_Sorteggio" database table, with each column mapped to a property of this class. - * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioModel - * @see it.tref.liferay.portos.bo.model.impl.SorteggioImpl - * @see it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl - * @generated - */ -public interface Sorteggio extends SorteggioModel, PersistedModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.SorteggioImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. - */ - public boolean mesePrecedenteToBoolean(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioClp.java deleted file mode 100644 index dd88f8a0..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioClp.java +++ /dev/null @@ -1,1553 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.ProxyUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.BaseModel; -import com.liferay.portal.model.impl.BaseModelImpl; -import com.liferay.portal.util.PortalUtil; - -import it.tref.liferay.portos.bo.service.ClpSerializer; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; - -import java.io.Serializable; - -import java.lang.reflect.Method; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -/** - * @author Davide Barbagallo, 3F Consulting - */ -public class SorteggioClp extends BaseModelImpl implements Sorteggio { - public SorteggioClp() { - } - - @Override - public Class getModelClass() { - return Sorteggio.class; - } - - @Override - public String getModelClassName() { - return Sorteggio.class.getName(); - } - - @Override - public long getPrimaryKey() { - return _sorteggioId; - } - - @Override - public void setPrimaryKey(long primaryKey) { - setSorteggioId(primaryKey); - } - - @Override - public Serializable getPrimaryKeyObj() { - return _sorteggioId; - } - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj) { - setPrimaryKey(((Long)primaryKeyObj).longValue()); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("sorteggioId", getSorteggioId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("status", getStatus()); - attributes.put("statusByUserId", getStatusByUserId()); - attributes.put("statusByUserName", getStatusByUserName()); - attributes.put("statusDate", getStatusDate()); - attributes.put("intPraticaId", getIntPraticaId()); - attributes.put("dettPraticaId", getDettPraticaId()); - attributes.put("note", getNote()); - attributes.put("anno", getAnno()); - attributes.put("mese", getMese()); - attributes.put("settimana", getSettimana()); - attributes.put("dtSorteggio", getDtSorteggio()); - attributes.put("stato", getStato()); - attributes.put("dettagli", getDettagli()); - attributes.put("numeroEstrazione", getNumeroEstrazione()); - attributes.put("pratica", getPratica()); - attributes.put("committente", getCommittente()); - attributes.put("comune", getComune()); - attributes.put("provincia", getProvincia()); - attributes.put("tecnico", getTecnico()); - attributes.put("mesePrecedente", getMesePrecedente()); - attributes.put("esterna", getEsterna()); - attributes.put("praticaEsternaId", getPraticaEsternaId()); - attributes.put("oldSorteggioId", getOldSorteggioId()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long sorteggioId = (Long)attributes.get("sorteggioId"); - - if (sorteggioId != null) { - setSorteggioId(sorteggioId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Integer status = (Integer)attributes.get("status"); - - if (status != null) { - setStatus(status); - } - - Long statusByUserId = (Long)attributes.get("statusByUserId"); - - if (statusByUserId != null) { - setStatusByUserId(statusByUserId); - } - - String statusByUserName = (String)attributes.get("statusByUserName"); - - if (statusByUserName != null) { - setStatusByUserName(statusByUserName); - } - - Date statusDate = (Date)attributes.get("statusDate"); - - if (statusDate != null) { - setStatusDate(statusDate); - } - - Long intPraticaId = (Long)attributes.get("intPraticaId"); - - if (intPraticaId != null) { - setIntPraticaId(intPraticaId); - } - - Long dettPraticaId = (Long)attributes.get("dettPraticaId"); - - if (dettPraticaId != null) { - setDettPraticaId(dettPraticaId); - } - - String note = (String)attributes.get("note"); - - if (note != null) { - setNote(note); - } - - String anno = (String)attributes.get("anno"); - - if (anno != null) { - setAnno(anno); - } - - String mese = (String)attributes.get("mese"); - - if (mese != null) { - setMese(mese); - } - - Integer settimana = (Integer)attributes.get("settimana"); - - if (settimana != null) { - setSettimana(settimana); - } - - Date dtSorteggio = (Date)attributes.get("dtSorteggio"); - - if (dtSorteggio != null) { - setDtSorteggio(dtSorteggio); - } - - String stato = (String)attributes.get("stato"); - - if (stato != null) { - setStato(stato); - } - - String dettagli = (String)attributes.get("dettagli"); - - if (dettagli != null) { - setDettagli(dettagli); - } - - Long numeroEstrazione = (Long)attributes.get("numeroEstrazione"); - - if (numeroEstrazione != null) { - setNumeroEstrazione(numeroEstrazione); - } - - String pratica = (String)attributes.get("pratica"); - - if (pratica != null) { - setPratica(pratica); - } - - String committente = (String)attributes.get("committente"); - - if (committente != null) { - setCommittente(committente); - } - - String comune = (String)attributes.get("comune"); - - if (comune != null) { - setComune(comune); - } - - String provincia = (String)attributes.get("provincia"); - - if (provincia != null) { - setProvincia(provincia); - } - - String tecnico = (String)attributes.get("tecnico"); - - if (tecnico != null) { - setTecnico(tecnico); - } - - String mesePrecedente = (String)attributes.get("mesePrecedente"); - - if (mesePrecedente != null) { - setMesePrecedente(mesePrecedente); - } - - Boolean esterna = (Boolean)attributes.get("esterna"); - - if (esterna != null) { - setEsterna(esterna); - } - - Long praticaEsternaId = (Long)attributes.get("praticaEsternaId"); - - if (praticaEsternaId != null) { - setPraticaEsternaId(praticaEsternaId); - } - - Long oldSorteggioId = (Long)attributes.get("oldSorteggioId"); - - if (oldSorteggioId != null) { - setOldSorteggioId(oldSorteggioId); - } - } - - @Override - public String getUuid() { - return _uuid; - } - - @Override - public void setUuid(String uuid) { - _uuid = uuid; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setUuid", String.class); - - method.invoke(_sorteggioRemoteModel, uuid); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getSorteggioId() { - return _sorteggioId; - } - - @Override - public void setSorteggioId(long sorteggioId) { - _sorteggioId = sorteggioId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setSorteggioId", long.class); - - method.invoke(_sorteggioRemoteModel, sorteggioId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getCompanyId() { - return _companyId; - } - - @Override - public void setCompanyId(long companyId) { - _companyId = companyId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setCompanyId", long.class); - - method.invoke(_sorteggioRemoteModel, companyId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getUserId() { - return _userId; - } - - @Override - public void setUserId(long userId) { - _userId = userId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setUserId", long.class); - - method.invoke(_sorteggioRemoteModel, userId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getUserUuid() throws SystemException { - return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); - } - - @Override - public void setUserUuid(String userUuid) { - _userUuid = userUuid; - } - - @Override - public String getUserName() { - return _userName; - } - - @Override - public void setUserName(String userName) { - _userName = userName; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setUserName", String.class); - - method.invoke(_sorteggioRemoteModel, userName); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getCreateDate() { - return _createDate; - } - - @Override - public void setCreateDate(Date createDate) { - _createDate = createDate; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setCreateDate", Date.class); - - method.invoke(_sorteggioRemoteModel, createDate); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getModifiedDate() { - return _modifiedDate; - } - - @Override - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setModifiedDate", Date.class); - - method.invoke(_sorteggioRemoteModel, modifiedDate); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getGroupId() { - return _groupId; - } - - @Override - public void setGroupId(long groupId) { - _groupId = groupId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setGroupId", long.class); - - method.invoke(_sorteggioRemoteModel, groupId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public int getStatus() { - return _status; - } - - @Override - public void setStatus(int status) { - _status = status; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setStatus", int.class); - - method.invoke(_sorteggioRemoteModel, status); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getStatusByUserId() { - return _statusByUserId; - } - - @Override - public void setStatusByUserId(long statusByUserId) { - _statusByUserId = statusByUserId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setStatusByUserId", long.class); - - method.invoke(_sorteggioRemoteModel, statusByUserId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getStatusByUserUuid() throws SystemException { - return PortalUtil.getUserValue(getStatusByUserId(), "uuid", - _statusByUserUuid); - } - - @Override - public void setStatusByUserUuid(String statusByUserUuid) { - _statusByUserUuid = statusByUserUuid; - } - - @Override - public String getStatusByUserName() { - return _statusByUserName; - } - - @Override - public void setStatusByUserName(String statusByUserName) { - _statusByUserName = statusByUserName; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setStatusByUserName", - String.class); - - method.invoke(_sorteggioRemoteModel, statusByUserName); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getStatusDate() { - return _statusDate; - } - - @Override - public void setStatusDate(Date statusDate) { - _statusDate = statusDate; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setStatusDate", Date.class); - - method.invoke(_sorteggioRemoteModel, statusDate); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getIntPraticaId() { - return _intPraticaId; - } - - @Override - public void setIntPraticaId(long intPraticaId) { - _intPraticaId = intPraticaId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setIntPraticaId", long.class); - - method.invoke(_sorteggioRemoteModel, intPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getDettPraticaId() { - return _dettPraticaId; - } - - @Override - public void setDettPraticaId(long dettPraticaId) { - _dettPraticaId = dettPraticaId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setDettPraticaId", long.class); - - method.invoke(_sorteggioRemoteModel, dettPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getNote() { - return _note; - } - - @Override - public void setNote(String note) { - _note = note; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setNote", String.class); - - method.invoke(_sorteggioRemoteModel, note); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getAnno() { - return _anno; - } - - @Override - public void setAnno(String anno) { - _anno = anno; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setAnno", String.class); - - method.invoke(_sorteggioRemoteModel, anno); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getMese() { - return _mese; - } - - @Override - public void setMese(String mese) { - _mese = mese; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setMese", String.class); - - method.invoke(_sorteggioRemoteModel, mese); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public int getSettimana() { - return _settimana; - } - - @Override - public void setSettimana(int settimana) { - _settimana = settimana; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setSettimana", int.class); - - method.invoke(_sorteggioRemoteModel, settimana); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public Date getDtSorteggio() { - return _dtSorteggio; - } - - @Override - public void setDtSorteggio(Date dtSorteggio) { - _dtSorteggio = dtSorteggio; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setDtSorteggio", Date.class); - - method.invoke(_sorteggioRemoteModel, dtSorteggio); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getStato() { - return _stato; - } - - @Override - public void setStato(String stato) { - _stato = stato; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setStato", String.class); - - method.invoke(_sorteggioRemoteModel, stato); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getDettagli() { - return _dettagli; - } - - @Override - public void setDettagli(String dettagli) { - _dettagli = dettagli; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setDettagli", String.class); - - method.invoke(_sorteggioRemoteModel, dettagli); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getNumeroEstrazione() { - return _numeroEstrazione; - } - - @Override - public void setNumeroEstrazione(long numeroEstrazione) { - _numeroEstrazione = numeroEstrazione; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setNumeroEstrazione", - long.class); - - method.invoke(_sorteggioRemoteModel, numeroEstrazione); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getPratica() { - return _pratica; - } - - @Override - public void setPratica(String pratica) { - _pratica = pratica; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setPratica", String.class); - - method.invoke(_sorteggioRemoteModel, pratica); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getCommittente() { - return _committente; - } - - @Override - public void setCommittente(String committente) { - _committente = committente; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setCommittente", String.class); - - method.invoke(_sorteggioRemoteModel, committente); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getComune() { - return _comune; - } - - @Override - public void setComune(String comune) { - _comune = comune; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setComune", String.class); - - method.invoke(_sorteggioRemoteModel, comune); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getProvincia() { - return _provincia; - } - - @Override - public void setProvincia(String provincia) { - _provincia = provincia; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setProvincia", String.class); - - method.invoke(_sorteggioRemoteModel, provincia); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getTecnico() { - return _tecnico; - } - - @Override - public void setTecnico(String tecnico) { - _tecnico = tecnico; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setTecnico", String.class); - - method.invoke(_sorteggioRemoteModel, tecnico); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public String getMesePrecedente() { - return _mesePrecedente; - } - - @Override - public void setMesePrecedente(String mesePrecedente) { - _mesePrecedente = mesePrecedente; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setMesePrecedente", - String.class); - - method.invoke(_sorteggioRemoteModel, mesePrecedente); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean getEsterna() { - return _esterna; - } - - @Override - public boolean isEsterna() { - return _esterna; - } - - @Override - public void setEsterna(boolean esterna) { - _esterna = esterna; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setEsterna", boolean.class); - - method.invoke(_sorteggioRemoteModel, esterna); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getPraticaEsternaId() { - return _praticaEsternaId; - } - - @Override - public void setPraticaEsternaId(long praticaEsternaId) { - _praticaEsternaId = praticaEsternaId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setPraticaEsternaId", - long.class); - - method.invoke(_sorteggioRemoteModel, praticaEsternaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public long getOldSorteggioId() { - return _oldSorteggioId; - } - - @Override - public void setOldSorteggioId(long oldSorteggioId) { - _oldSorteggioId = oldSorteggioId; - - if (_sorteggioRemoteModel != null) { - try { - Class clazz = _sorteggioRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldSorteggioId", long.class); - - method.invoke(_sorteggioRemoteModel, oldSorteggioId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - - @Override - public boolean mesePrecedenteToBoolean() { - try { - String methodName = "mesePrecedenteToBoolean"; - - Class[] parameterTypes = new Class[] { }; - - Object[] parameterValues = new Object[] { }; - - Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, - parameterTypes, parameterValues); - - return returnObj; - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - - @Override - public StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - Sorteggio.class.getName())); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #isApproved} - */ - @Override - public boolean getApproved() { - return isApproved(); - } - - @Override - public boolean isApproved() { - if (getStatus() == WorkflowConstants.STATUS_APPROVED) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isDenied() { - if (getStatus() == WorkflowConstants.STATUS_DENIED) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isDraft() { - if (getStatus() == WorkflowConstants.STATUS_DRAFT) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isExpired() { - if (getStatus() == WorkflowConstants.STATUS_EXPIRED) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isInactive() { - if (getStatus() == WorkflowConstants.STATUS_INACTIVE) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isIncomplete() { - if (getStatus() == WorkflowConstants.STATUS_INCOMPLETE) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isPending() { - if (getStatus() == WorkflowConstants.STATUS_PENDING) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isScheduled() { - if (getStatus() == WorkflowConstants.STATUS_SCHEDULED) { - return true; - } - else { - return false; - } - } - - public BaseModel getSorteggioRemoteModel() { - return _sorteggioRemoteModel; - } - - public void setSorteggioRemoteModel(BaseModel sorteggioRemoteModel) { - _sorteggioRemoteModel = sorteggioRemoteModel; - } - - public Object invokeOnRemoteModel(String methodName, - Class[] parameterTypes, Object[] parameterValues) - throws Exception { - Object[] remoteParameterValues = new Object[parameterValues.length]; - - for (int i = 0; i < parameterValues.length; i++) { - if (parameterValues[i] != null) { - remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]); - } - } - - Class remoteModelClass = _sorteggioRemoteModel.getClass(); - - ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader(); - - Class[] remoteParameterTypes = new Class[parameterTypes.length]; - - for (int i = 0; i < parameterTypes.length; i++) { - if (parameterTypes[i].isPrimitive()) { - remoteParameterTypes[i] = parameterTypes[i]; - } - else { - String parameterTypeName = parameterTypes[i].getName(); - - remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName); - } - } - - Method method = remoteModelClass.getMethod(methodName, - remoteParameterTypes); - - Object returnValue = method.invoke(_sorteggioRemoteModel, - remoteParameterValues); - - if (returnValue != null) { - returnValue = ClpSerializer.translateOutput(returnValue); - } - - return returnValue; - } - - @Override - public void persist() throws SystemException { - if (this.isNew()) { - SorteggioLocalServiceUtil.addSorteggio(this); - } - else { - SorteggioLocalServiceUtil.updateSorteggio(this); - } - } - - @Override - public Sorteggio toEscapedModel() { - return (Sorteggio)ProxyUtil.newProxyInstance(Sorteggio.class.getClassLoader(), - new Class[] { Sorteggio.class }, new AutoEscapeBeanHandler(this)); - } - - @Override - public Object clone() { - SorteggioClp clone = new SorteggioClp(); - - clone.setUuid(getUuid()); - clone.setSorteggioId(getSorteggioId()); - clone.setCompanyId(getCompanyId()); - clone.setUserId(getUserId()); - clone.setUserName(getUserName()); - clone.setCreateDate(getCreateDate()); - clone.setModifiedDate(getModifiedDate()); - clone.setGroupId(getGroupId()); - clone.setStatus(getStatus()); - clone.setStatusByUserId(getStatusByUserId()); - clone.setStatusByUserName(getStatusByUserName()); - clone.setStatusDate(getStatusDate()); - clone.setIntPraticaId(getIntPraticaId()); - clone.setDettPraticaId(getDettPraticaId()); - clone.setNote(getNote()); - clone.setAnno(getAnno()); - clone.setMese(getMese()); - clone.setSettimana(getSettimana()); - clone.setDtSorteggio(getDtSorteggio()); - clone.setStato(getStato()); - clone.setDettagli(getDettagli()); - clone.setNumeroEstrazione(getNumeroEstrazione()); - clone.setPratica(getPratica()); - clone.setCommittente(getCommittente()); - clone.setComune(getComune()); - clone.setProvincia(getProvincia()); - clone.setTecnico(getTecnico()); - clone.setMesePrecedente(getMesePrecedente()); - clone.setEsterna(getEsterna()); - clone.setPraticaEsternaId(getPraticaEsternaId()); - clone.setOldSorteggioId(getOldSorteggioId()); - - return clone; - } - - @Override - public int compareTo(Sorteggio sorteggio) { - long primaryKey = sorteggio.getPrimaryKey(); - - if (getPrimaryKey() < primaryKey) { - return -1; - } - else if (getPrimaryKey() > primaryKey) { - return 1; - } - else { - return 0; - } - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof SorteggioClp)) { - return false; - } - - SorteggioClp sorteggio = (SorteggioClp)obj; - - long primaryKey = sorteggio.getPrimaryKey(); - - if (getPrimaryKey() == primaryKey) { - return true; - } - else { - return false; - } - } - - public Class getClpSerializerClass() { - return _clpSerializerClass; - } - - @Override - public int hashCode() { - return (int)getPrimaryKey(); - } - - @Override - public String toString() { - StringBundler sb = new StringBundler(63); - - sb.append("{uuid="); - sb.append(getUuid()); - sb.append(", sorteggioId="); - sb.append(getSorteggioId()); - sb.append(", companyId="); - sb.append(getCompanyId()); - sb.append(", userId="); - sb.append(getUserId()); - sb.append(", userName="); - sb.append(getUserName()); - sb.append(", createDate="); - sb.append(getCreateDate()); - sb.append(", modifiedDate="); - sb.append(getModifiedDate()); - sb.append(", groupId="); - sb.append(getGroupId()); - sb.append(", status="); - sb.append(getStatus()); - sb.append(", statusByUserId="); - sb.append(getStatusByUserId()); - sb.append(", statusByUserName="); - sb.append(getStatusByUserName()); - sb.append(", statusDate="); - sb.append(getStatusDate()); - sb.append(", intPraticaId="); - sb.append(getIntPraticaId()); - sb.append(", dettPraticaId="); - sb.append(getDettPraticaId()); - sb.append(", note="); - sb.append(getNote()); - sb.append(", anno="); - sb.append(getAnno()); - sb.append(", mese="); - sb.append(getMese()); - sb.append(", settimana="); - sb.append(getSettimana()); - sb.append(", dtSorteggio="); - sb.append(getDtSorteggio()); - sb.append(", stato="); - sb.append(getStato()); - sb.append(", dettagli="); - sb.append(getDettagli()); - sb.append(", numeroEstrazione="); - sb.append(getNumeroEstrazione()); - sb.append(", pratica="); - sb.append(getPratica()); - sb.append(", committente="); - sb.append(getCommittente()); - sb.append(", comune="); - sb.append(getComune()); - sb.append(", provincia="); - sb.append(getProvincia()); - sb.append(", tecnico="); - sb.append(getTecnico()); - sb.append(", mesePrecedente="); - sb.append(getMesePrecedente()); - sb.append(", esterna="); - sb.append(getEsterna()); - sb.append(", praticaEsternaId="); - sb.append(getPraticaEsternaId()); - sb.append(", oldSorteggioId="); - sb.append(getOldSorteggioId()); - sb.append("}"); - - return sb.toString(); - } - - @Override - public String toXmlString() { - StringBundler sb = new StringBundler(97); - - sb.append(""); - sb.append("it.tref.liferay.portos.bo.model.Sorteggio"); - sb.append(""); - - sb.append( - "uuid"); - sb.append( - "sorteggioId"); - sb.append( - "companyId"); - sb.append( - "userId"); - sb.append( - "userName"); - sb.append( - "createDate"); - sb.append( - "modifiedDate"); - sb.append( - "groupId"); - sb.append( - "status"); - sb.append( - "statusByUserId"); - sb.append( - "statusByUserName"); - sb.append( - "statusDate"); - sb.append( - "intPraticaId"); - sb.append( - "dettPraticaId"); - sb.append( - "note"); - sb.append( - "anno"); - sb.append( - "mese"); - sb.append( - "settimana"); - sb.append( - "dtSorteggio"); - sb.append( - "stato"); - sb.append( - "dettagli"); - sb.append( - "numeroEstrazione"); - sb.append( - "pratica"); - sb.append( - "committente"); - sb.append( - "comune"); - sb.append( - "provincia"); - sb.append( - "tecnico"); - sb.append( - "mesePrecedente"); - sb.append( - "esterna"); - sb.append( - "praticaEsternaId"); - sb.append( - "oldSorteggioId"); - - sb.append(""); - - return sb.toString(); - } - - private String _uuid; - private long _sorteggioId; - private long _companyId; - private long _userId; - private String _userUuid; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private int _status; - private long _statusByUserId; - private String _statusByUserUuid; - private String _statusByUserName; - private Date _statusDate; - private long _intPraticaId; - private long _dettPraticaId; - private String _note; - private String _anno; - private String _mese; - private int _settimana; - private Date _dtSorteggio; - private String _stato; - private String _dettagli; - private long _numeroEstrazione; - private String _pratica; - private String _committente; - private String _comune; - private String _provincia; - private String _tecnico; - private String _mesePrecedente; - private boolean _esterna; - private long _praticaEsternaId; - private long _oldSorteggioId; - private BaseModel _sorteggioRemoteModel; - private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioModel.java deleted file mode 100644 index d1d890d3..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioModel.java +++ /dev/null @@ -1,703 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.bean.AutoEscape; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.BaseModel; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.StagedGroupedModel; -import com.liferay.portal.model.WorkflowedModel; -import com.liferay.portal.service.ServiceContext; - -import com.liferay.portlet.expando.model.ExpandoBridge; - -import java.io.Serializable; - -import java.util.Date; - -/** - * The base model interface for the Sorteggio service. Represents a row in the "portos_bo_Sorteggio" database table, with each column mapped to a property of this class. - * - *

- * This interface and its corresponding implementation {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.bo.model.impl.SorteggioImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see Sorteggio - * @see it.tref.liferay.portos.bo.model.impl.SorteggioImpl - * @see it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl - * @generated - */ -public interface SorteggioModel extends BaseModel, StagedGroupedModel, - WorkflowedModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. All methods that expect a sorteggio model instance should use the {@link Sorteggio} interface instead. - */ - - /** - * Returns the primary key of this sorteggio. - * - * @return the primary key of this sorteggio - */ - public long getPrimaryKey(); - - /** - * Sets the primary key of this sorteggio. - * - * @param primaryKey the primary key of this sorteggio - */ - public void setPrimaryKey(long primaryKey); - - /** - * Returns the uuid of this sorteggio. - * - * @return the uuid of this sorteggio - */ - @AutoEscape - @Override - public String getUuid(); - - /** - * Sets the uuid of this sorteggio. - * - * @param uuid the uuid of this sorteggio - */ - @Override - public void setUuid(String uuid); - - /** - * Returns the sorteggio ID of this sorteggio. - * - * @return the sorteggio ID of this sorteggio - */ - public long getSorteggioId(); - - /** - * Sets the sorteggio ID of this sorteggio. - * - * @param sorteggioId the sorteggio ID of this sorteggio - */ - public void setSorteggioId(long sorteggioId); - - /** - * Returns the company ID of this sorteggio. - * - * @return the company ID of this sorteggio - */ - @Override - public long getCompanyId(); - - /** - * Sets the company ID of this sorteggio. - * - * @param companyId the company ID of this sorteggio - */ - @Override - public void setCompanyId(long companyId); - - /** - * Returns the user ID of this sorteggio. - * - * @return the user ID of this sorteggio - */ - @Override - public long getUserId(); - - /** - * Sets the user ID of this sorteggio. - * - * @param userId the user ID of this sorteggio - */ - @Override - public void setUserId(long userId); - - /** - * Returns the user uuid of this sorteggio. - * - * @return the user uuid of this sorteggio - * @throws SystemException if a system exception occurred - */ - @Override - public String getUserUuid() throws SystemException; - - /** - * Sets the user uuid of this sorteggio. - * - * @param userUuid the user uuid of this sorteggio - */ - @Override - public void setUserUuid(String userUuid); - - /** - * Returns the user name of this sorteggio. - * - * @return the user name of this sorteggio - */ - @AutoEscape - @Override - public String getUserName(); - - /** - * Sets the user name of this sorteggio. - * - * @param userName the user name of this sorteggio - */ - @Override - public void setUserName(String userName); - - /** - * Returns the create date of this sorteggio. - * - * @return the create date of this sorteggio - */ - @Override - public Date getCreateDate(); - - /** - * Sets the create date of this sorteggio. - * - * @param createDate the create date of this sorteggio - */ - @Override - public void setCreateDate(Date createDate); - - /** - * Returns the modified date of this sorteggio. - * - * @return the modified date of this sorteggio - */ - @Override - public Date getModifiedDate(); - - /** - * Sets the modified date of this sorteggio. - * - * @param modifiedDate the modified date of this sorteggio - */ - @Override - public void setModifiedDate(Date modifiedDate); - - /** - * Returns the group ID of this sorteggio. - * - * @return the group ID of this sorteggio - */ - @Override - public long getGroupId(); - - /** - * Sets the group ID of this sorteggio. - * - * @param groupId the group ID of this sorteggio - */ - @Override - public void setGroupId(long groupId); - - /** - * Returns the status of this sorteggio. - * - * @return the status of this sorteggio - */ - @Override - public int getStatus(); - - /** - * Sets the status of this sorteggio. - * - * @param status the status of this sorteggio - */ - @Override - public void setStatus(int status); - - /** - * Returns the status by user ID of this sorteggio. - * - * @return the status by user ID of this sorteggio - */ - @Override - public long getStatusByUserId(); - - /** - * Sets the status by user ID of this sorteggio. - * - * @param statusByUserId the status by user ID of this sorteggio - */ - @Override - public void setStatusByUserId(long statusByUserId); - - /** - * Returns the status by user uuid of this sorteggio. - * - * @return the status by user uuid of this sorteggio - * @throws SystemException if a system exception occurred - */ - @Override - public String getStatusByUserUuid() throws SystemException; - - /** - * Sets the status by user uuid of this sorteggio. - * - * @param statusByUserUuid the status by user uuid of this sorteggio - */ - @Override - public void setStatusByUserUuid(String statusByUserUuid); - - /** - * Returns the status by user name of this sorteggio. - * - * @return the status by user name of this sorteggio - */ - @AutoEscape - @Override - public String getStatusByUserName(); - - /** - * Sets the status by user name of this sorteggio. - * - * @param statusByUserName the status by user name of this sorteggio - */ - @Override - public void setStatusByUserName(String statusByUserName); - - /** - * Returns the status date of this sorteggio. - * - * @return the status date of this sorteggio - */ - @Override - public Date getStatusDate(); - - /** - * Sets the status date of this sorteggio. - * - * @param statusDate the status date of this sorteggio - */ - @Override - public void setStatusDate(Date statusDate); - - /** - * Returns the int pratica ID of this sorteggio. - * - * @return the int pratica ID of this sorteggio - */ - public long getIntPraticaId(); - - /** - * Sets the int pratica ID of this sorteggio. - * - * @param intPraticaId the int pratica ID of this sorteggio - */ - public void setIntPraticaId(long intPraticaId); - - /** - * Returns the dett pratica ID of this sorteggio. - * - * @return the dett pratica ID of this sorteggio - */ - public long getDettPraticaId(); - - /** - * Sets the dett pratica ID of this sorteggio. - * - * @param dettPraticaId the dett pratica ID of this sorteggio - */ - public void setDettPraticaId(long dettPraticaId); - - /** - * Returns the note of this sorteggio. - * - * @return the note of this sorteggio - */ - @AutoEscape - public String getNote(); - - /** - * Sets the note of this sorteggio. - * - * @param note the note of this sorteggio - */ - public void setNote(String note); - - /** - * Returns the anno of this sorteggio. - * - * @return the anno of this sorteggio - */ - @AutoEscape - public String getAnno(); - - /** - * Sets the anno of this sorteggio. - * - * @param anno the anno of this sorteggio - */ - public void setAnno(String anno); - - /** - * Returns the mese of this sorteggio. - * - * @return the mese of this sorteggio - */ - @AutoEscape - public String getMese(); - - /** - * Sets the mese of this sorteggio. - * - * @param mese the mese of this sorteggio - */ - public void setMese(String mese); - - /** - * Returns the settimana of this sorteggio. - * - * @return the settimana of this sorteggio - */ - public int getSettimana(); - - /** - * Sets the settimana of this sorteggio. - * - * @param settimana the settimana of this sorteggio - */ - public void setSettimana(int settimana); - - /** - * Returns the dt sorteggio of this sorteggio. - * - * @return the dt sorteggio of this sorteggio - */ - public Date getDtSorteggio(); - - /** - * Sets the dt sorteggio of this sorteggio. - * - * @param dtSorteggio the dt sorteggio of this sorteggio - */ - public void setDtSorteggio(Date dtSorteggio); - - /** - * Returns the stato of this sorteggio. - * - * @return the stato of this sorteggio - */ - @AutoEscape - public String getStato(); - - /** - * Sets the stato of this sorteggio. - * - * @param stato the stato of this sorteggio - */ - public void setStato(String stato); - - /** - * Returns the dettagli of this sorteggio. - * - * @return the dettagli of this sorteggio - */ - @AutoEscape - public String getDettagli(); - - /** - * Sets the dettagli of this sorteggio. - * - * @param dettagli the dettagli of this sorteggio - */ - public void setDettagli(String dettagli); - - /** - * Returns the numero estrazione of this sorteggio. - * - * @return the numero estrazione of this sorteggio - */ - public long getNumeroEstrazione(); - - /** - * Sets the numero estrazione of this sorteggio. - * - * @param numeroEstrazione the numero estrazione of this sorteggio - */ - public void setNumeroEstrazione(long numeroEstrazione); - - /** - * Returns the pratica of this sorteggio. - * - * @return the pratica of this sorteggio - */ - @AutoEscape - public String getPratica(); - - /** - * Sets the pratica of this sorteggio. - * - * @param pratica the pratica of this sorteggio - */ - public void setPratica(String pratica); - - /** - * Returns the committente of this sorteggio. - * - * @return the committente of this sorteggio - */ - @AutoEscape - public String getCommittente(); - - /** - * Sets the committente of this sorteggio. - * - * @param committente the committente of this sorteggio - */ - public void setCommittente(String committente); - - /** - * Returns the comune of this sorteggio. - * - * @return the comune of this sorteggio - */ - @AutoEscape - public String getComune(); - - /** - * Sets the comune of this sorteggio. - * - * @param comune the comune of this sorteggio - */ - public void setComune(String comune); - - /** - * Returns the provincia of this sorteggio. - * - * @return the provincia of this sorteggio - */ - @AutoEscape - public String getProvincia(); - - /** - * Sets the provincia of this sorteggio. - * - * @param provincia the provincia of this sorteggio - */ - public void setProvincia(String provincia); - - /** - * Returns the tecnico of this sorteggio. - * - * @return the tecnico of this sorteggio - */ - @AutoEscape - public String getTecnico(); - - /** - * Sets the tecnico of this sorteggio. - * - * @param tecnico the tecnico of this sorteggio - */ - public void setTecnico(String tecnico); - - /** - * Returns the mese precedente of this sorteggio. - * - * @return the mese precedente of this sorteggio - */ - @AutoEscape - public String getMesePrecedente(); - - /** - * Sets the mese precedente of this sorteggio. - * - * @param mesePrecedente the mese precedente of this sorteggio - */ - public void setMesePrecedente(String mesePrecedente); - - /** - * Returns the esterna of this sorteggio. - * - * @return the esterna of this sorteggio - */ - public boolean getEsterna(); - - /** - * Returns true if this sorteggio is esterna. - * - * @return true if this sorteggio is esterna; false otherwise - */ - public boolean isEsterna(); - - /** - * Sets whether this sorteggio is esterna. - * - * @param esterna the esterna of this sorteggio - */ - public void setEsterna(boolean esterna); - - /** - * Returns the pratica esterna ID of this sorteggio. - * - * @return the pratica esterna ID of this sorteggio - */ - public long getPraticaEsternaId(); - - /** - * Sets the pratica esterna ID of this sorteggio. - * - * @param praticaEsternaId the pratica esterna ID of this sorteggio - */ - public void setPraticaEsternaId(long praticaEsternaId); - - /** - * Returns the old sorteggio ID of this sorteggio. - * - * @return the old sorteggio ID of this sorteggio - */ - public long getOldSorteggioId(); - - /** - * Sets the old sorteggio ID of this sorteggio. - * - * @param oldSorteggioId the old sorteggio ID of this sorteggio - */ - public void setOldSorteggioId(long oldSorteggioId); - - /** - * @deprecated As of 6.1.0, replaced by {@link #isApproved()} - */ - @Override - public boolean getApproved(); - - /** - * Returns true if this sorteggio is approved. - * - * @return true if this sorteggio is approved; false otherwise - */ - @Override - public boolean isApproved(); - - /** - * Returns true if this sorteggio is denied. - * - * @return true if this sorteggio is denied; false otherwise - */ - @Override - public boolean isDenied(); - - /** - * Returns true if this sorteggio is a draft. - * - * @return true if this sorteggio is a draft; false otherwise - */ - @Override - public boolean isDraft(); - - /** - * Returns true if this sorteggio is expired. - * - * @return true if this sorteggio is expired; false otherwise - */ - @Override - public boolean isExpired(); - - /** - * Returns true if this sorteggio is inactive. - * - * @return true if this sorteggio is inactive; false otherwise - */ - @Override - public boolean isInactive(); - - /** - * Returns true if this sorteggio is incomplete. - * - * @return true if this sorteggio is incomplete; false otherwise - */ - @Override - public boolean isIncomplete(); - - /** - * Returns true if this sorteggio is pending. - * - * @return true if this sorteggio is pending; false otherwise - */ - @Override - public boolean isPending(); - - /** - * Returns true if this sorteggio is scheduled. - * - * @return true if this sorteggio is scheduled; false otherwise - */ - @Override - public boolean isScheduled(); - - @Override - public boolean isNew(); - - @Override - public void setNew(boolean n); - - @Override - public boolean isCachedModel(); - - @Override - public void setCachedModel(boolean cachedModel); - - @Override - public boolean isEscapedModel(); - - @Override - public Serializable getPrimaryKeyObj(); - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj); - - @Override - public ExpandoBridge getExpandoBridge(); - - @Override - public void setExpandoBridgeAttributes(BaseModel baseModel); - - @Override - public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); - - @Override - public void setExpandoBridgeAttributes(ServiceContext serviceContext); - - @Override - public Object clone(); - - @Override - public int compareTo(it.tref.liferay.portos.bo.model.Sorteggio sorteggio); - - @Override - public int hashCode(); - - @Override - public CacheModel toCacheModel(); - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio toEscapedModel(); - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio toUnescapedModel(); - - @Override - public String toString(); - - @Override - public String toXmlString(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioSoap.java deleted file mode 100644 index e1d17aa8..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioSoap.java +++ /dev/null @@ -1,400 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -/** - * This class is used by SOAP remote services, specifically {@link it.tref.liferay.portos.bo.service.http.SorteggioServiceSoap}. - * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.http.SorteggioServiceSoap - * @generated - */ -public class SorteggioSoap implements Serializable { - public static SorteggioSoap toSoapModel(Sorteggio model) { - SorteggioSoap soapModel = new SorteggioSoap(); - - soapModel.setUuid(model.getUuid()); - soapModel.setSorteggioId(model.getSorteggioId()); - soapModel.setCompanyId(model.getCompanyId()); - soapModel.setUserId(model.getUserId()); - soapModel.setUserName(model.getUserName()); - soapModel.setCreateDate(model.getCreateDate()); - soapModel.setModifiedDate(model.getModifiedDate()); - soapModel.setGroupId(model.getGroupId()); - soapModel.setStatus(model.getStatus()); - soapModel.setStatusByUserId(model.getStatusByUserId()); - soapModel.setStatusByUserName(model.getStatusByUserName()); - soapModel.setStatusDate(model.getStatusDate()); - soapModel.setIntPraticaId(model.getIntPraticaId()); - soapModel.setDettPraticaId(model.getDettPraticaId()); - soapModel.setNote(model.getNote()); - soapModel.setAnno(model.getAnno()); - soapModel.setMese(model.getMese()); - soapModel.setSettimana(model.getSettimana()); - soapModel.setDtSorteggio(model.getDtSorteggio()); - soapModel.setStato(model.getStato()); - soapModel.setDettagli(model.getDettagli()); - soapModel.setNumeroEstrazione(model.getNumeroEstrazione()); - soapModel.setPratica(model.getPratica()); - soapModel.setCommittente(model.getCommittente()); - soapModel.setComune(model.getComune()); - soapModel.setProvincia(model.getProvincia()); - soapModel.setTecnico(model.getTecnico()); - soapModel.setMesePrecedente(model.getMesePrecedente()); - soapModel.setEsterna(model.getEsterna()); - soapModel.setPraticaEsternaId(model.getPraticaEsternaId()); - soapModel.setOldSorteggioId(model.getOldSorteggioId()); - - return soapModel; - } - - public static SorteggioSoap[] toSoapModels(Sorteggio[] models) { - SorteggioSoap[] soapModels = new SorteggioSoap[models.length]; - - for (int i = 0; i < models.length; i++) { - soapModels[i] = toSoapModel(models[i]); - } - - return soapModels; - } - - public static SorteggioSoap[][] toSoapModels(Sorteggio[][] models) { - SorteggioSoap[][] soapModels = null; - - if (models.length > 0) { - soapModels = new SorteggioSoap[models.length][models[0].length]; - } - else { - soapModels = new SorteggioSoap[0][0]; - } - - for (int i = 0; i < models.length; i++) { - soapModels[i] = toSoapModels(models[i]); - } - - return soapModels; - } - - public static SorteggioSoap[] toSoapModels(List models) { - List soapModels = new ArrayList(models.size()); - - for (Sorteggio model : models) { - soapModels.add(toSoapModel(model)); - } - - return soapModels.toArray(new SorteggioSoap[soapModels.size()]); - } - - public SorteggioSoap() { - } - - public long getPrimaryKey() { - return _sorteggioId; - } - - public void setPrimaryKey(long pk) { - setSorteggioId(pk); - } - - public String getUuid() { - return _uuid; - } - - public void setUuid(String uuid) { - _uuid = uuid; - } - - public long getSorteggioId() { - return _sorteggioId; - } - - public void setSorteggioId(long sorteggioId) { - _sorteggioId = sorteggioId; - } - - public long getCompanyId() { - return _companyId; - } - - public void setCompanyId(long companyId) { - _companyId = companyId; - } - - public long getUserId() { - return _userId; - } - - public void setUserId(long userId) { - _userId = userId; - } - - public String getUserName() { - return _userName; - } - - public void setUserName(String userName) { - _userName = userName; - } - - public Date getCreateDate() { - return _createDate; - } - - public void setCreateDate(Date createDate) { - _createDate = createDate; - } - - public Date getModifiedDate() { - return _modifiedDate; - } - - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - } - - public long getGroupId() { - return _groupId; - } - - public void setGroupId(long groupId) { - _groupId = groupId; - } - - public int getStatus() { - return _status; - } - - public void setStatus(int status) { - _status = status; - } - - public long getStatusByUserId() { - return _statusByUserId; - } - - public void setStatusByUserId(long statusByUserId) { - _statusByUserId = statusByUserId; - } - - public String getStatusByUserName() { - return _statusByUserName; - } - - public void setStatusByUserName(String statusByUserName) { - _statusByUserName = statusByUserName; - } - - public Date getStatusDate() { - return _statusDate; - } - - public void setStatusDate(Date statusDate) { - _statusDate = statusDate; - } - - public long getIntPraticaId() { - return _intPraticaId; - } - - public void setIntPraticaId(long intPraticaId) { - _intPraticaId = intPraticaId; - } - - public long getDettPraticaId() { - return _dettPraticaId; - } - - public void setDettPraticaId(long dettPraticaId) { - _dettPraticaId = dettPraticaId; - } - - public String getNote() { - return _note; - } - - public void setNote(String note) { - _note = note; - } - - public String getAnno() { - return _anno; - } - - public void setAnno(String anno) { - _anno = anno; - } - - public String getMese() { - return _mese; - } - - public void setMese(String mese) { - _mese = mese; - } - - public int getSettimana() { - return _settimana; - } - - public void setSettimana(int settimana) { - _settimana = settimana; - } - - public Date getDtSorteggio() { - return _dtSorteggio; - } - - public void setDtSorteggio(Date dtSorteggio) { - _dtSorteggio = dtSorteggio; - } - - public String getStato() { - return _stato; - } - - public void setStato(String stato) { - _stato = stato; - } - - public String getDettagli() { - return _dettagli; - } - - public void setDettagli(String dettagli) { - _dettagli = dettagli; - } - - public long getNumeroEstrazione() { - return _numeroEstrazione; - } - - public void setNumeroEstrazione(long numeroEstrazione) { - _numeroEstrazione = numeroEstrazione; - } - - public String getPratica() { - return _pratica; - } - - public void setPratica(String pratica) { - _pratica = pratica; - } - - public String getCommittente() { - return _committente; - } - - public void setCommittente(String committente) { - _committente = committente; - } - - public String getComune() { - return _comune; - } - - public void setComune(String comune) { - _comune = comune; - } - - public String getProvincia() { - return _provincia; - } - - public void setProvincia(String provincia) { - _provincia = provincia; - } - - public String getTecnico() { - return _tecnico; - } - - public void setTecnico(String tecnico) { - _tecnico = tecnico; - } - - public String getMesePrecedente() { - return _mesePrecedente; - } - - public void setMesePrecedente(String mesePrecedente) { - _mesePrecedente = mesePrecedente; - } - - public boolean getEsterna() { - return _esterna; - } - - public boolean isEsterna() { - return _esterna; - } - - public void setEsterna(boolean esterna) { - _esterna = esterna; - } - - public long getPraticaEsternaId() { - return _praticaEsternaId; - } - - public void setPraticaEsternaId(long praticaEsternaId) { - _praticaEsternaId = praticaEsternaId; - } - - public long getOldSorteggioId() { - return _oldSorteggioId; - } - - public void setOldSorteggioId(long oldSorteggioId) { - _oldSorteggioId = oldSorteggioId; - } - - private String _uuid; - private long _sorteggioId; - private long _companyId; - private long _userId; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private int _status; - private long _statusByUserId; - private String _statusByUserName; - private Date _statusDate; - private long _intPraticaId; - private long _dettPraticaId; - private String _note; - private String _anno; - private String _mese; - private int _settimana; - private Date _dtSorteggio; - private String _stato; - private String _dettagli; - private long _numeroEstrazione; - private String _pratica; - private String _committente; - private String _comune; - private String _provincia; - private String _tecnico; - private String _mesePrecedente; - private boolean _esterna; - private long _praticaEsternaId; - private long _oldSorteggioId; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioWrapper.java deleted file mode 100644 index 63f543d3..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/SorteggioWrapper.java +++ /dev/null @@ -1,1210 +0,0 @@ -/** - * 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.liferay.portos.bo.model; - -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.ModelWrapper; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; - -/** - *

- * This class is a wrapper for {@link Sorteggio}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see Sorteggio - * @generated - */ -public class SorteggioWrapper implements Sorteggio, ModelWrapper { - public SorteggioWrapper(Sorteggio sorteggio) { - _sorteggio = sorteggio; - } - - @Override - public Class getModelClass() { - return Sorteggio.class; - } - - @Override - public String getModelClassName() { - return Sorteggio.class.getName(); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("sorteggioId", getSorteggioId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("status", getStatus()); - attributes.put("statusByUserId", getStatusByUserId()); - attributes.put("statusByUserName", getStatusByUserName()); - attributes.put("statusDate", getStatusDate()); - attributes.put("intPraticaId", getIntPraticaId()); - attributes.put("dettPraticaId", getDettPraticaId()); - attributes.put("note", getNote()); - attributes.put("anno", getAnno()); - attributes.put("mese", getMese()); - attributes.put("settimana", getSettimana()); - attributes.put("dtSorteggio", getDtSorteggio()); - attributes.put("stato", getStato()); - attributes.put("dettagli", getDettagli()); - attributes.put("numeroEstrazione", getNumeroEstrazione()); - attributes.put("pratica", getPratica()); - attributes.put("committente", getCommittente()); - attributes.put("comune", getComune()); - attributes.put("provincia", getProvincia()); - attributes.put("tecnico", getTecnico()); - attributes.put("mesePrecedente", getMesePrecedente()); - attributes.put("esterna", getEsterna()); - attributes.put("praticaEsternaId", getPraticaEsternaId()); - attributes.put("oldSorteggioId", getOldSorteggioId()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long sorteggioId = (Long)attributes.get("sorteggioId"); - - if (sorteggioId != null) { - setSorteggioId(sorteggioId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Integer status = (Integer)attributes.get("status"); - - if (status != null) { - setStatus(status); - } - - Long statusByUserId = (Long)attributes.get("statusByUserId"); - - if (statusByUserId != null) { - setStatusByUserId(statusByUserId); - } - - String statusByUserName = (String)attributes.get("statusByUserName"); - - if (statusByUserName != null) { - setStatusByUserName(statusByUserName); - } - - Date statusDate = (Date)attributes.get("statusDate"); - - if (statusDate != null) { - setStatusDate(statusDate); - } - - Long intPraticaId = (Long)attributes.get("intPraticaId"); - - if (intPraticaId != null) { - setIntPraticaId(intPraticaId); - } - - Long dettPraticaId = (Long)attributes.get("dettPraticaId"); - - if (dettPraticaId != null) { - setDettPraticaId(dettPraticaId); - } - - String note = (String)attributes.get("note"); - - if (note != null) { - setNote(note); - } - - String anno = (String)attributes.get("anno"); - - if (anno != null) { - setAnno(anno); - } - - String mese = (String)attributes.get("mese"); - - if (mese != null) { - setMese(mese); - } - - Integer settimana = (Integer)attributes.get("settimana"); - - if (settimana != null) { - setSettimana(settimana); - } - - Date dtSorteggio = (Date)attributes.get("dtSorteggio"); - - if (dtSorteggio != null) { - setDtSorteggio(dtSorteggio); - } - - String stato = (String)attributes.get("stato"); - - if (stato != null) { - setStato(stato); - } - - String dettagli = (String)attributes.get("dettagli"); - - if (dettagli != null) { - setDettagli(dettagli); - } - - Long numeroEstrazione = (Long)attributes.get("numeroEstrazione"); - - if (numeroEstrazione != null) { - setNumeroEstrazione(numeroEstrazione); - } - - String pratica = (String)attributes.get("pratica"); - - if (pratica != null) { - setPratica(pratica); - } - - String committente = (String)attributes.get("committente"); - - if (committente != null) { - setCommittente(committente); - } - - String comune = (String)attributes.get("comune"); - - if (comune != null) { - setComune(comune); - } - - String provincia = (String)attributes.get("provincia"); - - if (provincia != null) { - setProvincia(provincia); - } - - String tecnico = (String)attributes.get("tecnico"); - - if (tecnico != null) { - setTecnico(tecnico); - } - - String mesePrecedente = (String)attributes.get("mesePrecedente"); - - if (mesePrecedente != null) { - setMesePrecedente(mesePrecedente); - } - - Boolean esterna = (Boolean)attributes.get("esterna"); - - if (esterna != null) { - setEsterna(esterna); - } - - Long praticaEsternaId = (Long)attributes.get("praticaEsternaId"); - - if (praticaEsternaId != null) { - setPraticaEsternaId(praticaEsternaId); - } - - Long oldSorteggioId = (Long)attributes.get("oldSorteggioId"); - - if (oldSorteggioId != null) { - setOldSorteggioId(oldSorteggioId); - } - } - - /** - * Returns the primary key of this sorteggio. - * - * @return the primary key of this sorteggio - */ - @Override - public long getPrimaryKey() { - return _sorteggio.getPrimaryKey(); - } - - /** - * Sets the primary key of this sorteggio. - * - * @param primaryKey the primary key of this sorteggio - */ - @Override - public void setPrimaryKey(long primaryKey) { - _sorteggio.setPrimaryKey(primaryKey); - } - - /** - * Returns the uuid of this sorteggio. - * - * @return the uuid of this sorteggio - */ - @Override - public java.lang.String getUuid() { - return _sorteggio.getUuid(); - } - - /** - * Sets the uuid of this sorteggio. - * - * @param uuid the uuid of this sorteggio - */ - @Override - public void setUuid(java.lang.String uuid) { - _sorteggio.setUuid(uuid); - } - - /** - * Returns the sorteggio ID of this sorteggio. - * - * @return the sorteggio ID of this sorteggio - */ - @Override - public long getSorteggioId() { - return _sorteggio.getSorteggioId(); - } - - /** - * Sets the sorteggio ID of this sorteggio. - * - * @param sorteggioId the sorteggio ID of this sorteggio - */ - @Override - public void setSorteggioId(long sorteggioId) { - _sorteggio.setSorteggioId(sorteggioId); - } - - /** - * Returns the company ID of this sorteggio. - * - * @return the company ID of this sorteggio - */ - @Override - public long getCompanyId() { - return _sorteggio.getCompanyId(); - } - - /** - * Sets the company ID of this sorteggio. - * - * @param companyId the company ID of this sorteggio - */ - @Override - public void setCompanyId(long companyId) { - _sorteggio.setCompanyId(companyId); - } - - /** - * Returns the user ID of this sorteggio. - * - * @return the user ID of this sorteggio - */ - @Override - public long getUserId() { - return _sorteggio.getUserId(); - } - - /** - * Sets the user ID of this sorteggio. - * - * @param userId the user ID of this sorteggio - */ - @Override - public void setUserId(long userId) { - _sorteggio.setUserId(userId); - } - - /** - * Returns the user uuid of this sorteggio. - * - * @return the user uuid of this sorteggio - * @throws SystemException if a system exception occurred - */ - @Override - public java.lang.String getUserUuid() - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggio.getUserUuid(); - } - - /** - * Sets the user uuid of this sorteggio. - * - * @param userUuid the user uuid of this sorteggio - */ - @Override - public void setUserUuid(java.lang.String userUuid) { - _sorteggio.setUserUuid(userUuid); - } - - /** - * Returns the user name of this sorteggio. - * - * @return the user name of this sorteggio - */ - @Override - public java.lang.String getUserName() { - return _sorteggio.getUserName(); - } - - /** - * Sets the user name of this sorteggio. - * - * @param userName the user name of this sorteggio - */ - @Override - public void setUserName(java.lang.String userName) { - _sorteggio.setUserName(userName); - } - - /** - * Returns the create date of this sorteggio. - * - * @return the create date of this sorteggio - */ - @Override - public java.util.Date getCreateDate() { - return _sorteggio.getCreateDate(); - } - - /** - * Sets the create date of this sorteggio. - * - * @param createDate the create date of this sorteggio - */ - @Override - public void setCreateDate(java.util.Date createDate) { - _sorteggio.setCreateDate(createDate); - } - - /** - * Returns the modified date of this sorteggio. - * - * @return the modified date of this sorteggio - */ - @Override - public java.util.Date getModifiedDate() { - return _sorteggio.getModifiedDate(); - } - - /** - * Sets the modified date of this sorteggio. - * - * @param modifiedDate the modified date of this sorteggio - */ - @Override - public void setModifiedDate(java.util.Date modifiedDate) { - _sorteggio.setModifiedDate(modifiedDate); - } - - /** - * Returns the group ID of this sorteggio. - * - * @return the group ID of this sorteggio - */ - @Override - public long getGroupId() { - return _sorteggio.getGroupId(); - } - - /** - * Sets the group ID of this sorteggio. - * - * @param groupId the group ID of this sorteggio - */ - @Override - public void setGroupId(long groupId) { - _sorteggio.setGroupId(groupId); - } - - /** - * Returns the status of this sorteggio. - * - * @return the status of this sorteggio - */ - @Override - public int getStatus() { - return _sorteggio.getStatus(); - } - - /** - * Sets the status of this sorteggio. - * - * @param status the status of this sorteggio - */ - @Override - public void setStatus(int status) { - _sorteggio.setStatus(status); - } - - /** - * Returns the status by user ID of this sorteggio. - * - * @return the status by user ID of this sorteggio - */ - @Override - public long getStatusByUserId() { - return _sorteggio.getStatusByUserId(); - } - - /** - * Sets the status by user ID of this sorteggio. - * - * @param statusByUserId the status by user ID of this sorteggio - */ - @Override - public void setStatusByUserId(long statusByUserId) { - _sorteggio.setStatusByUserId(statusByUserId); - } - - /** - * Returns the status by user uuid of this sorteggio. - * - * @return the status by user uuid of this sorteggio - * @throws SystemException if a system exception occurred - */ - @Override - public java.lang.String getStatusByUserUuid() - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggio.getStatusByUserUuid(); - } - - /** - * Sets the status by user uuid of this sorteggio. - * - * @param statusByUserUuid the status by user uuid of this sorteggio - */ - @Override - public void setStatusByUserUuid(java.lang.String statusByUserUuid) { - _sorteggio.setStatusByUserUuid(statusByUserUuid); - } - - /** - * Returns the status by user name of this sorteggio. - * - * @return the status by user name of this sorteggio - */ - @Override - public java.lang.String getStatusByUserName() { - return _sorteggio.getStatusByUserName(); - } - - /** - * Sets the status by user name of this sorteggio. - * - * @param statusByUserName the status by user name of this sorteggio - */ - @Override - public void setStatusByUserName(java.lang.String statusByUserName) { - _sorteggio.setStatusByUserName(statusByUserName); - } - - /** - * Returns the status date of this sorteggio. - * - * @return the status date of this sorteggio - */ - @Override - public java.util.Date getStatusDate() { - return _sorteggio.getStatusDate(); - } - - /** - * Sets the status date of this sorteggio. - * - * @param statusDate the status date of this sorteggio - */ - @Override - public void setStatusDate(java.util.Date statusDate) { - _sorteggio.setStatusDate(statusDate); - } - - /** - * Returns the int pratica ID of this sorteggio. - * - * @return the int pratica ID of this sorteggio - */ - @Override - public long getIntPraticaId() { - return _sorteggio.getIntPraticaId(); - } - - /** - * Sets the int pratica ID of this sorteggio. - * - * @param intPraticaId the int pratica ID of this sorteggio - */ - @Override - public void setIntPraticaId(long intPraticaId) { - _sorteggio.setIntPraticaId(intPraticaId); - } - - /** - * Returns the dett pratica ID of this sorteggio. - * - * @return the dett pratica ID of this sorteggio - */ - @Override - public long getDettPraticaId() { - return _sorteggio.getDettPraticaId(); - } - - /** - * Sets the dett pratica ID of this sorteggio. - * - * @param dettPraticaId the dett pratica ID of this sorteggio - */ - @Override - public void setDettPraticaId(long dettPraticaId) { - _sorteggio.setDettPraticaId(dettPraticaId); - } - - /** - * Returns the note of this sorteggio. - * - * @return the note of this sorteggio - */ - @Override - public java.lang.String getNote() { - return _sorteggio.getNote(); - } - - /** - * Sets the note of this sorteggio. - * - * @param note the note of this sorteggio - */ - @Override - public void setNote(java.lang.String note) { - _sorteggio.setNote(note); - } - - /** - * Returns the anno of this sorteggio. - * - * @return the anno of this sorteggio - */ - @Override - public java.lang.String getAnno() { - return _sorteggio.getAnno(); - } - - /** - * Sets the anno of this sorteggio. - * - * @param anno the anno of this sorteggio - */ - @Override - public void setAnno(java.lang.String anno) { - _sorteggio.setAnno(anno); - } - - /** - * Returns the mese of this sorteggio. - * - * @return the mese of this sorteggio - */ - @Override - public java.lang.String getMese() { - return _sorteggio.getMese(); - } - - /** - * Sets the mese of this sorteggio. - * - * @param mese the mese of this sorteggio - */ - @Override - public void setMese(java.lang.String mese) { - _sorteggio.setMese(mese); - } - - /** - * Returns the settimana of this sorteggio. - * - * @return the settimana of this sorteggio - */ - @Override - public int getSettimana() { - return _sorteggio.getSettimana(); - } - - /** - * Sets the settimana of this sorteggio. - * - * @param settimana the settimana of this sorteggio - */ - @Override - public void setSettimana(int settimana) { - _sorteggio.setSettimana(settimana); - } - - /** - * Returns the dt sorteggio of this sorteggio. - * - * @return the dt sorteggio of this sorteggio - */ - @Override - public java.util.Date getDtSorteggio() { - return _sorteggio.getDtSorteggio(); - } - - /** - * Sets the dt sorteggio of this sorteggio. - * - * @param dtSorteggio the dt sorteggio of this sorteggio - */ - @Override - public void setDtSorteggio(java.util.Date dtSorteggio) { - _sorteggio.setDtSorteggio(dtSorteggio); - } - - /** - * Returns the stato of this sorteggio. - * - * @return the stato of this sorteggio - */ - @Override - public java.lang.String getStato() { - return _sorteggio.getStato(); - } - - /** - * Sets the stato of this sorteggio. - * - * @param stato the stato of this sorteggio - */ - @Override - public void setStato(java.lang.String stato) { - _sorteggio.setStato(stato); - } - - /** - * Returns the dettagli of this sorteggio. - * - * @return the dettagli of this sorteggio - */ - @Override - public java.lang.String getDettagli() { - return _sorteggio.getDettagli(); - } - - /** - * Sets the dettagli of this sorteggio. - * - * @param dettagli the dettagli of this sorteggio - */ - @Override - public void setDettagli(java.lang.String dettagli) { - _sorteggio.setDettagli(dettagli); - } - - /** - * Returns the numero estrazione of this sorteggio. - * - * @return the numero estrazione of this sorteggio - */ - @Override - public long getNumeroEstrazione() { - return _sorteggio.getNumeroEstrazione(); - } - - /** - * Sets the numero estrazione of this sorteggio. - * - * @param numeroEstrazione the numero estrazione of this sorteggio - */ - @Override - public void setNumeroEstrazione(long numeroEstrazione) { - _sorteggio.setNumeroEstrazione(numeroEstrazione); - } - - /** - * Returns the pratica of this sorteggio. - * - * @return the pratica of this sorteggio - */ - @Override - public java.lang.String getPratica() { - return _sorteggio.getPratica(); - } - - /** - * Sets the pratica of this sorteggio. - * - * @param pratica the pratica of this sorteggio - */ - @Override - public void setPratica(java.lang.String pratica) { - _sorteggio.setPratica(pratica); - } - - /** - * Returns the committente of this sorteggio. - * - * @return the committente of this sorteggio - */ - @Override - public java.lang.String getCommittente() { - return _sorteggio.getCommittente(); - } - - /** - * Sets the committente of this sorteggio. - * - * @param committente the committente of this sorteggio - */ - @Override - public void setCommittente(java.lang.String committente) { - _sorteggio.setCommittente(committente); - } - - /** - * Returns the comune of this sorteggio. - * - * @return the comune of this sorteggio - */ - @Override - public java.lang.String getComune() { - return _sorteggio.getComune(); - } - - /** - * Sets the comune of this sorteggio. - * - * @param comune the comune of this sorteggio - */ - @Override - public void setComune(java.lang.String comune) { - _sorteggio.setComune(comune); - } - - /** - * Returns the provincia of this sorteggio. - * - * @return the provincia of this sorteggio - */ - @Override - public java.lang.String getProvincia() { - return _sorteggio.getProvincia(); - } - - /** - * Sets the provincia of this sorteggio. - * - * @param provincia the provincia of this sorteggio - */ - @Override - public void setProvincia(java.lang.String provincia) { - _sorteggio.setProvincia(provincia); - } - - /** - * Returns the tecnico of this sorteggio. - * - * @return the tecnico of this sorteggio - */ - @Override - public java.lang.String getTecnico() { - return _sorteggio.getTecnico(); - } - - /** - * Sets the tecnico of this sorteggio. - * - * @param tecnico the tecnico of this sorteggio - */ - @Override - public void setTecnico(java.lang.String tecnico) { - _sorteggio.setTecnico(tecnico); - } - - /** - * Returns the mese precedente of this sorteggio. - * - * @return the mese precedente of this sorteggio - */ - @Override - public java.lang.String getMesePrecedente() { - return _sorteggio.getMesePrecedente(); - } - - /** - * Sets the mese precedente of this sorteggio. - * - * @param mesePrecedente the mese precedente of this sorteggio - */ - @Override - public void setMesePrecedente(java.lang.String mesePrecedente) { - _sorteggio.setMesePrecedente(mesePrecedente); - } - - /** - * Returns the esterna of this sorteggio. - * - * @return the esterna of this sorteggio - */ - @Override - public boolean getEsterna() { - return _sorteggio.getEsterna(); - } - - /** - * Returns true if this sorteggio is esterna. - * - * @return true if this sorteggio is esterna; false otherwise - */ - @Override - public boolean isEsterna() { - return _sorteggio.isEsterna(); - } - - /** - * Sets whether this sorteggio is esterna. - * - * @param esterna the esterna of this sorteggio - */ - @Override - public void setEsterna(boolean esterna) { - _sorteggio.setEsterna(esterna); - } - - /** - * Returns the pratica esterna ID of this sorteggio. - * - * @return the pratica esterna ID of this sorteggio - */ - @Override - public long getPraticaEsternaId() { - return _sorteggio.getPraticaEsternaId(); - } - - /** - * Sets the pratica esterna ID of this sorteggio. - * - * @param praticaEsternaId the pratica esterna ID of this sorteggio - */ - @Override - public void setPraticaEsternaId(long praticaEsternaId) { - _sorteggio.setPraticaEsternaId(praticaEsternaId); - } - - /** - * Returns the old sorteggio ID of this sorteggio. - * - * @return the old sorteggio ID of this sorteggio - */ - @Override - public long getOldSorteggioId() { - return _sorteggio.getOldSorteggioId(); - } - - /** - * Sets the old sorteggio ID of this sorteggio. - * - * @param oldSorteggioId the old sorteggio ID of this sorteggio - */ - @Override - public void setOldSorteggioId(long oldSorteggioId) { - _sorteggio.setOldSorteggioId(oldSorteggioId); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #isApproved()} - */ - @Override - public boolean getApproved() { - return _sorteggio.getApproved(); - } - - /** - * Returns true if this sorteggio is approved. - * - * @return true if this sorteggio is approved; false otherwise - */ - @Override - public boolean isApproved() { - return _sorteggio.isApproved(); - } - - /** - * Returns true if this sorteggio is denied. - * - * @return true if this sorteggio is denied; false otherwise - */ - @Override - public boolean isDenied() { - return _sorteggio.isDenied(); - } - - /** - * Returns true if this sorteggio is a draft. - * - * @return true if this sorteggio is a draft; false otherwise - */ - @Override - public boolean isDraft() { - return _sorteggio.isDraft(); - } - - /** - * Returns true if this sorteggio is expired. - * - * @return true if this sorteggio is expired; false otherwise - */ - @Override - public boolean isExpired() { - return _sorteggio.isExpired(); - } - - /** - * Returns true if this sorteggio is inactive. - * - * @return true if this sorteggio is inactive; false otherwise - */ - @Override - public boolean isInactive() { - return _sorteggio.isInactive(); - } - - /** - * Returns true if this sorteggio is incomplete. - * - * @return true if this sorteggio is incomplete; false otherwise - */ - @Override - public boolean isIncomplete() { - return _sorteggio.isIncomplete(); - } - - /** - * Returns true if this sorteggio is pending. - * - * @return true if this sorteggio is pending; false otherwise - */ - @Override - public boolean isPending() { - return _sorteggio.isPending(); - } - - /** - * Returns true if this sorteggio is scheduled. - * - * @return true if this sorteggio is scheduled; false otherwise - */ - @Override - public boolean isScheduled() { - return _sorteggio.isScheduled(); - } - - @Override - public boolean isNew() { - return _sorteggio.isNew(); - } - - @Override - public void setNew(boolean n) { - _sorteggio.setNew(n); - } - - @Override - public boolean isCachedModel() { - return _sorteggio.isCachedModel(); - } - - @Override - public void setCachedModel(boolean cachedModel) { - _sorteggio.setCachedModel(cachedModel); - } - - @Override - public boolean isEscapedModel() { - return _sorteggio.isEscapedModel(); - } - - @Override - public java.io.Serializable getPrimaryKeyObj() { - return _sorteggio.getPrimaryKeyObj(); - } - - @Override - public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { - _sorteggio.setPrimaryKeyObj(primaryKeyObj); - } - - @Override - public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { - return _sorteggio.getExpandoBridge(); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portal.model.BaseModel baseModel) { - _sorteggio.setExpandoBridgeAttributes(baseModel); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { - _sorteggio.setExpandoBridgeAttributes(expandoBridge); - } - - @Override - public void setExpandoBridgeAttributes( - com.liferay.portal.service.ServiceContext serviceContext) { - _sorteggio.setExpandoBridgeAttributes(serviceContext); - } - - @Override - public java.lang.Object clone() { - return new SorteggioWrapper((Sorteggio)_sorteggio.clone()); - } - - @Override - public int compareTo(it.tref.liferay.portos.bo.model.Sorteggio sorteggio) { - return _sorteggio.compareTo(sorteggio); - } - - @Override - public int hashCode() { - return _sorteggio.hashCode(); - } - - @Override - public com.liferay.portal.model.CacheModel toCacheModel() { - return _sorteggio.toCacheModel(); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio toEscapedModel() { - return new SorteggioWrapper(_sorteggio.toEscapedModel()); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio toUnescapedModel() { - return new SorteggioWrapper(_sorteggio.toUnescapedModel()); - } - - @Override - public java.lang.String toString() { - return _sorteggio.toString(); - } - - @Override - public java.lang.String toXmlString() { - return _sorteggio.toXmlString(); - } - - @Override - public void persist() - throws com.liferay.portal.kernel.exception.SystemException { - _sorteggio.persist(); - } - - @Override - public boolean mesePrecedenteToBoolean() { - return _sorteggio.mesePrecedenteToBoolean(); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof SorteggioWrapper)) { - return false; - } - - SorteggioWrapper sorteggioWrapper = (SorteggioWrapper)obj; - - if (Validator.equals(_sorteggio, sorteggioWrapper._sorteggio)) { - return true; - } - - return false; - } - - @Override - public StagedModelType getStagedModelType() { - return _sorteggio.getStagedModelType(); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} - */ - public Sorteggio getWrappedSorteggio() { - return _sorteggio; - } - - @Override - public Sorteggio getWrappedModel() { - return _sorteggio; - } - - @Override - public void resetOriginalValues() { - _sorteggio.resetOriginalValues(); - } - - private Sorteggio _sorteggio; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaClp.java index dd0513dc..b73c9a34 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaClp.java @@ -87,8 +87,6 @@ public class StoricoSoggettoPraticaClp extends BaseModelImpl clazz = _storicoSoggettoPraticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldStoricoSoggettoPraticaId", - long.class); - - method.invoke(_storicoSoggettoPraticaRemoteModel, - oldStoricoSoggettoPraticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - public BaseModel getStoricoSoggettoPraticaRemoteModel() { return _storicoSoggettoPraticaRemoteModel; } @@ -542,7 +508,6 @@ public class StoricoSoggettoPraticaClp extends BaseModelImpl"); sb.append("it.tref.liferay.portos.bo.model.StoricoSoggettoPratica"); @@ -677,10 +640,6 @@ public class StoricoSoggettoPraticaClp extends BaseModelImplcodiceFiscale
"); - sb.append( - "oldStoricoSoggettoPraticaId"); sb.append("
"); @@ -699,7 +658,6 @@ public class StoricoSoggettoPraticaClp extends BaseModelImpl _storicoSoggettoPraticaRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaModel.java index 39cee054..d9fef6aa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/StoricoSoggettoPraticaModel.java @@ -249,20 +249,6 @@ public interface StoricoSoggettoPraticaModel extends BaseModel attributes.put("stop", getStop()); attributes.put("wait", getWait()); attributes.put("completo", getCompleto()); - attributes.put("oldTempisticaId", getOldTempisticaId()); return attributes; } @@ -187,12 +186,6 @@ public class TempisticaClp extends BaseModelImpl if (completo != null) { setCompleto(completo); } - - Long oldTempisticaId = (Long)attributes.get("oldTempisticaId"); - - if (oldTempisticaId != null) { - setOldTempisticaId(oldTempisticaId); - } } @Override @@ -555,29 +548,6 @@ public class TempisticaClp extends BaseModelImpl } } - @Override - public long getOldTempisticaId() { - return _oldTempisticaId; - } - - @Override - public void setOldTempisticaId(long oldTempisticaId) { - _oldTempisticaId = oldTempisticaId; - - if (_tempisticaRemoteModel != null) { - try { - Class clazz = _tempisticaRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldTempisticaId", long.class); - - method.invoke(_tempisticaRemoteModel, oldTempisticaId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -668,7 +638,6 @@ public class TempisticaClp extends BaseModelImpl clone.setStop(getStop()); clone.setWait(getWait()); clone.setCompleto(getCompleto()); - clone.setOldTempisticaId(getOldTempisticaId()); return clone; } @@ -721,7 +690,7 @@ public class TempisticaClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(33); + StringBundler sb = new StringBundler(31); sb.append("{uuid="); sb.append(getUuid()); @@ -753,8 +722,6 @@ public class TempisticaClp extends BaseModelImpl sb.append(getWait()); sb.append(", completo="); sb.append(getCompleto()); - sb.append(", oldTempisticaId="); - sb.append(getOldTempisticaId()); sb.append("}"); return sb.toString(); @@ -762,7 +729,7 @@ public class TempisticaClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(52); + StringBundler sb = new StringBundler(49); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Tempistica"); @@ -828,10 +795,6 @@ public class TempisticaClp extends BaseModelImpl "completo"); - sb.append( - "oldTempisticaId"); sb.append(""); @@ -854,7 +817,6 @@ public class TempisticaClp extends BaseModelImpl private long _stop; private long _wait; private boolean _completo; - private long _oldTempisticaId; private BaseModel _tempisticaRemoteModel; private Class _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaModel.java index 91947abc..250186bd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaModel.java @@ -313,20 +313,6 @@ public interface TempisticaModel extends BaseModel, */ public void setCompleto(boolean completo); - /** - * Returns the old tempistica ID of this tempistica. - * - * @return the old tempistica ID of this tempistica - */ - public long getOldTempisticaId(); - - /** - * Sets the old tempistica ID of this tempistica. - * - * @param oldTempisticaId the old tempistica ID of this tempistica - */ - public void setOldTempisticaId(long oldTempisticaId); - @Override public boolean isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaSoap.java index 0c049d92..11aa339d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaSoap.java @@ -46,7 +46,6 @@ public class TempisticaSoap implements Serializable { soapModel.setStop(model.getStop()); soapModel.setWait(model.getWait()); soapModel.setCompleto(model.getCompleto()); - soapModel.setOldTempisticaId(model.getOldTempisticaId()); return soapModel; } @@ -223,14 +222,6 @@ public class TempisticaSoap implements Serializable { _completo = completo; } - public long getOldTempisticaId() { - return _oldTempisticaId; - } - - public void setOldTempisticaId(long oldTempisticaId) { - _oldTempisticaId = oldTempisticaId; - } - private String _uuid; private long _tempisticaId; private long _companyId; @@ -246,5 +237,4 @@ public class TempisticaSoap implements Serializable { private long _stop; private long _wait; private boolean _completo; - private long _oldTempisticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaWrapper.java index 15c520d6..ce917e8e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TempisticaWrapper.java @@ -65,7 +65,6 @@ public class TempisticaWrapper implements Tempistica, ModelWrapper { attributes.put("stop", getStop()); attributes.put("wait", getWait()); attributes.put("completo", getCompleto()); - attributes.put("oldTempisticaId", getOldTempisticaId()); return attributes; } @@ -161,12 +160,6 @@ public class TempisticaWrapper implements Tempistica, ModelWrapper { if (completo != null) { setCompleto(completo); } - - Long oldTempisticaId = (Long)attributes.get("oldTempisticaId"); - - if (oldTempisticaId != null) { - setOldTempisticaId(oldTempisticaId); - } } /** @@ -521,26 +514,6 @@ public class TempisticaWrapper implements Tempistica, ModelWrapper { _tempistica.setCompleto(completo); } - /** - * Returns the old tempistica ID of this tempistica. - * - * @return the old tempistica ID of this tempistica - */ - @Override - public long getOldTempisticaId() { - return _tempistica.getOldTempisticaId(); - } - - /** - * Sets the old tempistica ID of this tempistica. - * - * @param oldTempisticaId the old tempistica ID of this tempistica - */ - @Override - public void setOldTempisticaId(long oldTempisticaId) { - _tempistica.setOldTempisticaId(oldTempisticaId); - } - @Override public boolean isNew() { return _tempistica.isNew(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioClp.java index 6f863a3c..42ef45d5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioClp.java @@ -89,7 +89,6 @@ public class TerritorioClp extends BaseModelImpl attributes.put("articolo61", getArticolo61()); attributes.put("dtIni", getDtIni()); attributes.put("dtFin", getDtFin()); - attributes.put("oldTerritorioId", getOldTerritorioId()); attributes.put("agMin", getAgMin()); attributes.put("agMax", getAgMax()); @@ -182,12 +181,6 @@ public class TerritorioClp extends BaseModelImpl setDtFin(dtFin); } - Long oldTerritorioId = (Long)attributes.get("oldTerritorioId"); - - if (oldTerritorioId != null) { - setOldTerritorioId(oldTerritorioId); - } - String agMin = (String)attributes.get("agMin"); if (agMin != null) { @@ -539,29 +532,6 @@ public class TerritorioClp extends BaseModelImpl } } - @Override - public long getOldTerritorioId() { - return _oldTerritorioId; - } - - @Override - public void setOldTerritorioId(long oldTerritorioId) { - _oldTerritorioId = oldTerritorioId; - - if (_territorioRemoteModel != null) { - try { - Class clazz = _territorioRemoteModel.getClass(); - - Method method = clazz.getMethod("setOldTerritorioId", long.class); - - method.invoke(_territorioRemoteModel, oldTerritorioId); - } - catch (Exception e) { - throw new UnsupportedOperationException(e); - } - } - } - @Override public String getAgMin() { return _agMin; @@ -710,7 +680,6 @@ public class TerritorioClp extends BaseModelImpl clone.setArticolo61(getArticolo61()); clone.setDtIni(getDtIni()); clone.setDtFin(getDtFin()); - clone.setOldTerritorioId(getOldTerritorioId()); clone.setAgMin(getAgMin()); clone.setAgMax(getAgMax()); @@ -765,7 +734,7 @@ public class TerritorioClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(35); + StringBundler sb = new StringBundler(33); sb.append("{territorioId="); sb.append(getTerritorioId()); @@ -795,8 +764,6 @@ public class TerritorioClp extends BaseModelImpl sb.append(getDtIni()); sb.append(", dtFin="); sb.append(getDtFin()); - sb.append(", oldTerritorioId="); - sb.append(getOldTerritorioId()); sb.append(", agMin="); sb.append(getAgMin()); sb.append(", agMax="); @@ -808,7 +775,7 @@ public class TerritorioClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(52); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Territorio"); @@ -870,10 +837,6 @@ public class TerritorioClp extends BaseModelImpl "dtFin"); - sb.append( - "oldTerritorioId"); sb.append( "agMin private boolean _articolo61; private Date _dtIni; private Date _dtFin; - private long _oldTerritorioId; private String _agMin; private String _agMax; private BaseModel _territorioRemoteModel; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioModel.java index b540170c..f7d24d68 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioModel.java @@ -297,20 +297,6 @@ public interface TerritorioModel extends BaseModel, GroupedModel { */ public void setDtFin(Date dtFin); - /** - * Returns the old territorio ID of this territorio. - * - * @return the old territorio ID of this territorio - */ - public long getOldTerritorioId(); - - /** - * Sets the old territorio ID of this territorio. - * - * @param oldTerritorioId the old territorio ID of this territorio - */ - public void setOldTerritorioId(long oldTerritorioId); - /** * Returns the ag min of this territorio. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioSoap.java index cce2abad..16ba75ee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioSoap.java @@ -45,7 +45,6 @@ public class TerritorioSoap implements Serializable { soapModel.setArticolo61(model.getArticolo61()); soapModel.setDtIni(model.getDtIni()); soapModel.setDtFin(model.getDtFin()); - soapModel.setOldTerritorioId(model.getOldTerritorioId()); soapModel.setAgMin(model.getAgMin()); soapModel.setAgMax(model.getAgMax()); @@ -216,14 +215,6 @@ public class TerritorioSoap implements Serializable { _dtFin = dtFin; } - public long getOldTerritorioId() { - return _oldTerritorioId; - } - - public void setOldTerritorioId(long oldTerritorioId) { - _oldTerritorioId = oldTerritorioId; - } - public String getAgMin() { return _agMin; } @@ -254,7 +245,6 @@ public class TerritorioSoap implements Serializable { private boolean _articolo61; private Date _dtIni; private Date _dtFin; - private long _oldTerritorioId; private String _agMin; private String _agMax; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioWrapper.java index 83db0b9e..c6d1ff69 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/TerritorioWrapper.java @@ -63,7 +63,6 @@ public class TerritorioWrapper implements Territorio, ModelWrapper { attributes.put("articolo61", getArticolo61()); attributes.put("dtIni", getDtIni()); attributes.put("dtFin", getDtFin()); - attributes.put("oldTerritorioId", getOldTerritorioId()); attributes.put("agMin", getAgMin()); attributes.put("agMax", getAgMax()); @@ -156,12 +155,6 @@ public class TerritorioWrapper implements Territorio, ModelWrapper { setDtFin(dtFin); } - Long oldTerritorioId = (Long)attributes.get("oldTerritorioId"); - - if (oldTerritorioId != null) { - setOldTerritorioId(oldTerritorioId); - } - String agMin = (String)attributes.get("agMin"); if (agMin != null) { @@ -507,26 +500,6 @@ public class TerritorioWrapper implements Territorio, ModelWrapper { _territorio.setDtFin(dtFin); } - /** - * Returns the old territorio ID of this territorio. - * - * @return the old territorio ID of this territorio - */ - @Override - public long getOldTerritorioId() { - return _territorio.getOldTerritorioId(); - } - - /** - * Sets the old territorio ID of this territorio. - * - * @param oldTerritorioId the old territorio ID of this territorio - */ - @Override - public void setOldTerritorioId(long oldTerritorioId) { - _territorio.setOldTerritorioId(oldTerritorioId); - } - /** * Returns the ag min of this territorio. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/ControlloPraticaAdvancedSearch.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/ControlloPraticaAdvancedSearch.java index 216a1dc0..77b9bd15 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/ControlloPraticaAdvancedSearch.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/ControlloPraticaAdvancedSearch.java @@ -40,6 +40,7 @@ import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.PropsKeys; import com.liferay.portal.kernel.util.PropsUtil; +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; @@ -52,8 +53,8 @@ public class ControlloPraticaAdvancedSearch { private static final Log _log = LogFactoryUtil.getLog(ControlloPraticaAdvancedSearch.class); public static final String[] OVERRIDE_KEYWORDS = { "controlloPraticaId", "numeroProgetto", "tipoPratica", - "statoPratica", "dataRichiesta", "committente", "soggettiInteressati", "status", - "entryClassName", "userId", "descIntervento" }; + "statoPratica", "dataRichiesta", "committente", "soggettiInteressati", "status", "entryClassName", + "userId", "descIntervento" }; public static final Format DATE_FORMAT_LUCENE = FastDateFormatFactoryUtil.getSimpleDateFormat("yyyyMMdd"); @@ -62,7 +63,7 @@ public class ControlloPraticaAdvancedSearch { public static Hits searchMieiTask(HttpServletRequest request, User user, int start, int end) { SearchContext searchContext = SearchContextFactory.getInstance(request); searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); - + if (ParamUtil.getBoolean(request, "searchForExport", false)) { int maxEnd = GetterUtil.getInteger(PropsUtil.get(PropsKeys.INDEX_FILTER_SEARCH_LIMIT)); searchContext.setStart(0); @@ -73,13 +74,11 @@ public class ControlloPraticaAdvancedSearch { searchContext.setStart(start); searchContext.setEnd(end); } - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); Hits hits = null; try { - // Condizioni necessarie per questa ricerca : - // entryClassName=ControlloPratica & userId=taskAssigneeUserId + // Condizioni necessarie per questa ricerca : entryClassName=ControlloPratica & userId=taskAssigneeUserId TermQuery entryClassNameTermQuery = TermQueryFactoryUtil.create(searchContext, "entryClassName", ControlloPratica.class.getName()); TermQuery userIdTermQuery = TermQueryFactoryUtil.create(searchContext, "taskAssigneeUserId", @@ -91,9 +90,7 @@ public class ControlloPraticaAdvancedSearch { booleanQuery.add(entryClassNameTermQuery, BooleanClauseOccur.MUST); booleanQuery.add(userIdTermQuery, BooleanClauseOccur.MUST); booleanQuery.add(statusTermQuery, BooleanClauseOccur.MUST); - - // Ricavo i groupId relativi all utente che effettua la ricerca per - // filtrare + // Ricavo i groupId relativi all utente che effettua la ricerca per filtrare long ufficio = ParamUtil.getLong(request, "ufficio"); if (ufficio != 0 && ufficio != -1) { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "groupId", ufficio); @@ -114,7 +111,6 @@ public class ControlloPraticaAdvancedSearch { booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } } - // Condizioni aggiuntive retrieveQuery(request, user, booleanQuery, searchContext); if (_log.isDebugEnabled()) { @@ -127,7 +123,6 @@ public class ControlloPraticaAdvancedSearch { } catch (ParseException | SearchException | SystemException e) { _log.error(e, e); } - return hits; } @@ -144,14 +139,11 @@ public class ControlloPraticaAdvancedSearch { searchContext.setStart(start); searchContext.setEnd(end); } - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); - Hits hits = null; try { - // Condizioni necessarie per questa ricerca : - // entryClassName=ControlloPratica & roleIds tra i taskAssigneeIds + // Condizioni necessarie per questa ricerca: entryClassName=ControlloPratica & roleIds tra i taskAssigneeIds TermQuery entryClassNameTermQuery = TermQueryFactoryUtil.create(searchContext, "entryClassName", ControlloPratica.class.getName()); TermQuery statusTermQuery = TermQueryFactoryUtil.create(searchContext, "status", @@ -161,32 +153,26 @@ public class ControlloPraticaAdvancedSearch { .getUserId()); List organizationRoleList = null; for (Organization org : organizationUserList) { - organizationRoleList = RoleLocalServiceUtil.getUserGroupRoles(user.getUserId(), - org.getGroupId()); + organizationRoleList = RoleLocalServiceUtil.getUserGroupRoles(user.getUserId(), org.getGroupId()); for (Role role : organizationRoleList) { - TermQuery roleIdTerm = TermQueryFactoryUtil.create(searchContext, "taskAssigneeRoleIds", - ("R" + role.getRoleId() + "G" + org.getGroupId())); + TermQuery roleIdTerm = TermQueryFactoryUtil.create(searchContext, "taskAssigneeRoleIds", ("R" + + role.getRoleId() + "G" + org.getGroupId())); booleanQueryRoleIds.add(roleIdTerm, BooleanClauseOccur.SHOULD); } } - BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); booleanQuery.add(entryClassNameTermQuery, BooleanClauseOccur.MUST); - if (organizationUserList != null && !organizationUserList.isEmpty() - && organizationRoleList != null && !organizationRoleList.isEmpty()) { + if (organizationUserList != null && !organizationUserList.isEmpty() && organizationRoleList != null + && !organizationRoleList.isEmpty()) { booleanQuery.add(booleanQueryRoleIds, BooleanClauseOccur.MUST); } else { - TermQuery roleIdTerm = TermQueryFactoryUtil.create(searchContext, "taskAssigneeRoleIds", ("R" - + 0 + "G" + 0)); + TermQuery roleIdTerm = TermQueryFactoryUtil.create(searchContext, "taskAssigneeRoleIds", "R0G0"); booleanQueryRoleIds.add(roleIdTerm, BooleanClauseOccur.SHOULD); booleanQuery.add(booleanQueryRoleIds, BooleanClauseOccur.MUST); } - booleanQuery.add(statusTermQuery, BooleanClauseOccur.MUST); - - // Ricavo i groupId relativi all utente che effettua la ricerca per - // filtrare + // Ricavo i groupId relativi all utente che effettua la ricerca per filtrare long ufficio = ParamUtil.getLong(request, "ufficio"); if (ufficio != 0 && ufficio != -1) { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "groupId", ufficio); @@ -207,33 +193,24 @@ public class ControlloPraticaAdvancedSearch { booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } } - List uos = UnitaOperativeUtil.getUnitaOperative(user); if ((uos.size() > 0) && !uos.contains(0)) { BooleanQuery uoQuery = BooleanQueryFactoryUtil.create(searchContext); for (int uo : uos) { - TermQuery tq = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.UNITA_OPERATIVA, uo); + TermQuery tq = TermQueryFactoryUtil.create(searchContext, PortosIndexField.UNITA_OPERATIVA, uo); uoQuery.add(tq, BooleanClauseOccur.SHOULD); } booleanQuery.add(uoQuery, BooleanClauseOccur.MUST); } - // Condizioni aggiuntive retrieveQuery(request, user, booleanQuery, searchContext); - - - if (_log.isDebugEnabled()) { _log.debug("User " + user.getScreenName() + " Request query : " + booleanQuery.toString()); } - hits = SearchEngineUtil.search(searchContext, booleanQuery); - if (_log.isDebugEnabled()) { _log.debug("Number of hint find : " + hits.getLength()); } - } catch (ParseException | SearchException | SystemException e) { _log.error(e, e); } @@ -254,51 +231,39 @@ public class ControlloPraticaAdvancedSearch { searchContext.setStart(start); searchContext.setEnd(end); } - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); Hits hits = null; try { - // Condizioni necessarie per questa ricerca : - // entryClassName=ControlloPratica & - // roleIds non e tra i taskAssigneeIds - // userId non e tra taskAssigneeId + // Condizioni necessarie per questa ricerca: entryClassName=ControlloPratica & roleIds non e tra i + // taskAssigneeIds userId non e tra taskAssigneeId TermQuery entryClassNameTermQuery = TermQueryFactoryUtil.create(searchContext, "entryClassName", ControlloPratica.class.getName()); TermQuery userIdTermQuery = TermQueryFactoryUtil.create(searchContext, "taskAssigneeUserId", user.getUserId()); - BooleanQuery booleanQueryRoleIds = BooleanQueryFactoryUtil.create(searchContext); List organizationUserList = OrganizationLocalServiceUtil.getUserOrganizations(user .getUserId()); List organizationRoleList = null; for (Organization org : organizationUserList) { - organizationRoleList = RoleLocalServiceUtil.getUserGroupRoles(user.getUserId(), - org.getGroupId()); + organizationRoleList = RoleLocalServiceUtil.getUserGroupRoles(user.getUserId(), org.getGroupId()); for (Role role : organizationRoleList) { TermQuery roleIdTerm = TermQueryFactoryUtil.create(searchContext, "taskAssigneeRoleIds", - (role.getRoleId() + "-" + org.getGroupId())); + (role.getRoleId() + StringPool.DASH + org.getGroupId())); booleanQueryRoleIds.add(roleIdTerm, BooleanClauseOccur.SHOULD); } - } - TermQuery statusTermQuery = TermQueryFactoryUtil.create(searchContext, "status", WorkflowConstants.STATUS_PENDING); - BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); booleanQuery.add(entryClassNameTermQuery, BooleanClauseOccur.MUST); - - if (organizationUserList != null && !organizationUserList.isEmpty() - && organizationRoleList != null && !organizationRoleList.isEmpty()) { + if (organizationUserList != null && !organizationUserList.isEmpty() && organizationRoleList != null + && !organizationRoleList.isEmpty()) { booleanQuery.add(booleanQueryRoleIds, BooleanClauseOccur.MUST_NOT); } - booleanQuery.add(userIdTermQuery, BooleanClauseOccur.MUST_NOT); booleanQuery.add(statusTermQuery, BooleanClauseOccur.MUST); - - // Ricavo i groupId relativi all utente che effettua la ricerca per - // filtrare + // Ricavo i groupId relativi all utente che effettua la ricerca per filtrare long ufficio = ParamUtil.getLong(request, "ufficio"); if (ufficio != 0 && ufficio != -1) { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "groupId", ufficio); @@ -321,7 +286,6 @@ public class ControlloPraticaAdvancedSearch { } // Condizioni aggiuntive retrieveQuery(request, user, booleanQuery, searchContext); - if (_log.isDebugEnabled()) { _log.debug("User " + user.getScreenName() + " Request query : " + booleanQuery.toString()); } @@ -335,8 +299,8 @@ public class ControlloPraticaAdvancedSearch { return hits; } - public static List searchTaskPerEsportazioneDirigente(HttpServletRequest request, - User user, int start, int end) { + public static List searchTaskPerEsportazioneDirigente(HttpServletRequest request, User user, + int start, int end) { List lista = new ArrayList(); SearchContext searchContext = SearchContextFactory.getInstance(request); @@ -345,7 +309,6 @@ public class ControlloPraticaAdvancedSearch { searchContext.setStart(0); searchContext.setEnd(maxEnd); searchContext.setAttribute("paginationType", "none"); - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); Hits hits = null; @@ -357,7 +320,6 @@ public class ControlloPraticaAdvancedSearch { BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); booleanQuery.add(entryClassNameTermQuery, BooleanClauseOccur.MUST); booleanQuery.add(statusTermQuery, BooleanClauseOccur.MUST); - String dataDa = ParamUtil.getString(request, "dataRichiestaInizio"); String dataAl = ParamUtil.getString(request, "dataRichiestaFine"); if (Validator.isNotNull(dataDa) || Validator.isNotNull(dataAl)) { @@ -382,7 +344,6 @@ public class ControlloPraticaAdvancedSearch { if (_log.isDebugEnabled()) { _log.debug("Number of hints found : " + hits.getLength()); } - for (Document doc : hits.toList()) { String controlloPraticaId = doc.get("controlloPraticaId"); if (Validator.isNotNull(controlloPraticaId)) { @@ -393,16 +354,15 @@ public class ControlloPraticaAdvancedSearch { } } } - } catch (ParseException | SearchException | SystemException | java.text.ParseException e) { _log.error(e, e); } - return lista; } - public static List searchTaskPerEsportazionePO(HttpServletRequest request, User user, - int start, int end) { + public static List searchTaskPerEsportazionePO(HttpServletRequest request, User user, int start, + int end) { + List lista = new ArrayList(); SearchContext searchContext = SearchContextFactory.getInstance(request); searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); @@ -414,7 +374,6 @@ public class ControlloPraticaAdvancedSearch { searchContext.setSorts(getOrderedQuery(request)); Hits hits = null; try { - TermQuery entryClassNameTermQuery = TermQueryFactoryUtil.create(searchContext, "entryClassName", ControlloPratica.class.getName()); TermQuery userIdTermQuery = TermQueryFactoryUtil.create(searchContext, "taskAssigneeUserId", @@ -425,7 +384,6 @@ public class ControlloPraticaAdvancedSearch { booleanQuery.add(entryClassNameTermQuery, BooleanClauseOccur.MUST); booleanQuery.add(userIdTermQuery, BooleanClauseOccur.MUST); booleanQuery.add(statusTermQuery, BooleanClauseOccur.MUST); - String dataDa = ParamUtil.getString(request, "dataRichiestaInizio"); String dataAl = ParamUtil.getString(request, "dataRichiestaFine"); if (Validator.isNotNull(dataDa) || Validator.isNotNull(dataAl)) { @@ -467,6 +425,7 @@ public class ControlloPraticaAdvancedSearch { } public static Hits searchTaskConclusi(HttpServletRequest request, User user, int start, int end) { + SearchContext searchContext = SearchContextFactory.getInstance(request); searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); if (ParamUtil.getBoolean(request, "searchForExport", false)) { @@ -479,29 +438,23 @@ public class ControlloPraticaAdvancedSearch { searchContext.setStart(start); searchContext.setEnd(end); } - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); Hits hits = null; try { - - // Condizioni necessarie per questa ricerca : - // entryClassName=ControlloPratica & - // roleIds non e tra i taskAssigneeIds - // userId non e tra taskAssigneeId + // Condizioni necessarie per questa ricerca: entryClassName=ControlloPratica & roleIds non e tra i + // taskAssigneeIds userId non e tra taskAssigneeId TermQuery entryClassNameTermQuery = TermQueryFactoryUtil.create(searchContext, "entryClassName", ControlloPratica.class.getName()); - BooleanQuery booleanQueryRoleIds = BooleanQueryFactoryUtil.create(searchContext); List organizationUserList = OrganizationLocalServiceUtil.getUserOrganizations(user .getUserId()); List organizationRoleList = null; for (Organization org : organizationUserList) { - organizationRoleList = RoleLocalServiceUtil.getUserGroupRoles(user.getUserId(), - org.getGroupId()); + organizationRoleList = RoleLocalServiceUtil.getUserGroupRoles(user.getUserId(), org.getGroupId()); for (Role role : organizationRoleList) { TermQuery roleIdTerm = TermQueryFactoryUtil.create(searchContext, "taskAssigneeRoleIds", - (role.getRoleId() + "-" + org.getGroupId())); + (role.getRoleId() + StringPool.DASH + org.getGroupId())); booleanQueryRoleIds.add(roleIdTerm, BooleanClauseOccur.SHOULD); } } @@ -517,17 +470,13 @@ public class ControlloPraticaAdvancedSearch { booleanQueryStatus.add(statusIncomplete, BooleanClauseOccur.SHOULD); BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); booleanQuery.add(entryClassNameTermQuery, BooleanClauseOccur.MUST); - if (organizationUserList != null && !organizationUserList.isEmpty() - && organizationRoleList != null && !organizationRoleList.isEmpty()) { + if (organizationUserList != null && !organizationUserList.isEmpty() && organizationRoleList != null + && !organizationRoleList.isEmpty()) { booleanQuery.add(booleanQueryRoleIds, BooleanClauseOccur.MUST_NOT); } - booleanQuery.add(booleanQueryStatus, BooleanClauseOccur.MUST); - - // Ricavo i groupId relativi all utente che effettua la ricerca per - // filtrare - List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user - .getUserId()); + // Ricavo i groupId relativi all utente che effettua la ricerca per filtrare + List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); BooleanQuery groupIdsQuery = BooleanQueryFactoryUtil.create(searchContext); if (Validator.isNotNull(organizationList) && !organizationList.isEmpty()) { for (Organization org : organizationList) { @@ -540,10 +489,8 @@ public class ControlloPraticaAdvancedSearch { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "groupId", 0L); booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } - // Condizioni aggiuntive retrieveQuery(request, user, booleanQuery, searchContext); - if (_log.isDebugEnabled()) { _log.debug("User " + user.getScreenName() + " Request query : " + booleanQuery.toString()); } @@ -554,7 +501,6 @@ public class ControlloPraticaAdvancedSearch { } catch (ParseException | SearchException | SystemException e) { _log.error(e, e); } - return hits; } @@ -568,144 +514,119 @@ public class ControlloPraticaAdvancedSearch { String statoPraticaSearch = ParamUtil.getString(request, "statoPratica"); String committenteSearch = ParamUtil.getString(request, "committente"); String soggettiInterconnessiSearch = ParamUtil.getString(request, "soggettiInterconnessi"); - // ADT ADT BUG BO ID = 8 String istruttoreId = ParamUtil.getString(request, "istruttore"); - String dataDa = ParamUtil.getString(request, "dataRichiestaInizio"); String dataAl = ParamUtil.getString(request, "dataRichiestaFine"); String comune = ParamUtil.getString(request, "comune"); String tipoProcedura = ParamUtil.getString(request, "tipoProcedura"); String tipoAttivita = ParamUtil.getString(request, "tipoAttivita"); - // ADT - BUG-11 Aggiunta filtro ricerca String controlloObbligatorioSearch = ParamUtil.getString(request, "controlloObbligatorio"); - String sorteggiataSearch = ParamUtil.getString(request, "sorteggiata"); try { - if (tipoAttivita != null && !tipoAttivita.equals("") && !tipoAttivita.equals("-1")) { + if (Validator.isNotNull(tipoAttivita) && !tipoAttivita.equals("-1")) { TermQuery tipoAttivitaTermQuery = TermQueryFactoryUtil.create(searchContext, "workflowState", tipoAttivita); booleanQuery.add(tipoAttivitaTermQuery, BooleanClauseOccur.MUST); } - if (numeroProgettoSearch != null && !numeroProgettoSearch.equals("")) { - TermQuery numeroProgettoTermQuery = TermQueryFactoryUtil.create(searchContext, - "numeroProgetto", numeroProgettoSearch); + if (Validator.isNotNull(numeroProgettoSearch)) { + TermQuery numeroProgettoTermQuery = TermQueryFactoryUtil.create(searchContext, "numeroProgetto", + numeroProgettoSearch); booleanQuery.add(numeroProgettoTermQuery, BooleanClauseOccur.MUST); } - if (protocolloSearch != null && !protocolloSearch.equals("")) { - TermQuery protocolloSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "protocollo", protocolloSearch); + if (Validator.isNotNull(protocolloSearch)) { + TermQuery protocolloSearchTermQuery = TermQueryFactoryUtil.create(searchContext, "protocollo", + protocolloSearch); booleanQuery.add(protocolloSearchTermQuery, BooleanClauseOccur.MUST); } - if (tipoPraticaSearch != null && !tipoPraticaSearch.equals("") && !tipoPraticaSearch.equals("-1")) { - TermQuery tipoPraticaSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "tipoPratica", tipoPraticaSearch); + if (Validator.isNotNull(tipoPraticaSearch) && !tipoPraticaSearch.equals("-1")) { + TermQuery tipoPraticaSearchTermQuery = TermQueryFactoryUtil.create(searchContext, "tipoPratica", + tipoPraticaSearch); booleanQuery.add(tipoPraticaSearchTermQuery, BooleanClauseOccur.MUST); } - // Gestione StatoPratica - if (statoPraticaSearch != null && !statoPraticaSearch.equals("") - && !statoPraticaSearch.equals("-1")) { + if (Validator.isNotNull(statoPraticaSearch) && !statoPraticaSearch.equals("-1")) { if (statoPraticaSearch.equals(StatoPraticaConstants.COLLAUDO_PARZIALE)) { TermQuery collaudoParzialeSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "collaudoParziale", "true"); + "collaudoParziale", StringPool.TRUE); booleanQuery.add(collaudoParzialeSearchTermQuery, BooleanClauseOccur.MUST); } else if (statoPraticaSearch.equals(StatoPraticaConstants.COLLAUDO)) { TermQuery collaudoSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "collaudoCompletato", "true"); + "collaudoCompletato", StringPool.TRUE); booleanQuery.add(collaudoSearchTermQuery, BooleanClauseOccur.MUST); } else if (statoPraticaSearch.equals(StatoPraticaConstants.FINE_LAVORI)) { TermQuery fineLavoriSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "fineLavoriCompletati", "true"); + "fineLavoriCompletati", StringPool.TRUE); booleanQuery.add(fineLavoriSearchTermQuery, BooleanClauseOccur.MUST); } else if (statoPraticaSearch.equals(StatoPraticaConstants.FINE_LAVORI_PARZIALE)) { TermQuery fineLavoriParzialiSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "fineLavoriParziali", "true"); + "fineLavoriParziali", StringPool.TRUE); booleanQuery.add(fineLavoriParzialiSearchTermQuery, BooleanClauseOccur.MUST); - } else if (statoPraticaSearch.equals(StatoPraticaConstants.SORTEGGIATA)) { - TermQuery sorteggiataSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "lavorazioneSorteggiata", "true"); - booleanQuery.add(sorteggiataSearchTermQuery, BooleanClauseOccur.MUST); } else if (statoPraticaSearch.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) { TermQuery sottopostaParereSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "sottopostoAParere", "true"); + "sottopostoAParere", StringPool.TRUE); booleanQuery.add(sottopostaParereSearchTermQuery, BooleanClauseOccur.MUST); } else if (statoPraticaSearch.equals(StatoPraticaConstants.VARIATA)) { - TermQuery sottopostaParereSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "variata", "true"); + TermQuery sottopostaParereSearchTermQuery = TermQueryFactoryUtil.create(searchContext, "variata", + StringPool.TRUE); booleanQuery.add(sottopostaParereSearchTermQuery, BooleanClauseOccur.MUST); } else { - TermQuery statoPraticaSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "statoPratica", statoPraticaSearch); + TermQuery statoPraticaSearchTermQuery = TermQueryFactoryUtil.create(searchContext, "statoPratica", + statoPraticaSearch); booleanQuery.add(statoPraticaSearchTermQuery, BooleanClauseOccur.MUST); } } - if (committenteSearch != null && !committenteSearch.equals("")) { - TermQuery committenteSearchTermQuery = TermQueryFactoryUtil.create(searchContext, - "committenti", committenteSearch.toUpperCase()); + if (Validator.isNotNull(committenteSearch)) { + TermQuery committenteSearchTermQuery = TermQueryFactoryUtil.create(searchContext, "committenti", + committenteSearch.toUpperCase()); booleanQuery.add(committenteSearchTermQuery, BooleanClauseOccur.MUST); } - if (soggettiInterconnessiSearch != null && !soggettiInterconnessiSearch.equals("")) { + if (Validator.isNotNull(soggettiInterconnessiSearch)) { TermQuery soggettiInterconnessiSearchTermQuery = TermQueryFactoryUtil.create(searchContext, "soggettiInterconnessi", soggettiInterconnessiSearch.toUpperCase()); booleanQuery.add(soggettiInterconnessiSearchTermQuery, BooleanClauseOccur.MUST); } - if (istruttoreId != null && !istruttoreId.equals("") && !istruttoreId.equals("-1")) { + if (Validator.isNotNull(istruttoreId) && !istruttoreId.equals("-1")) { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "istruttoreUserId", istruttoreId); booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } - if ((dataDa != null && !dataDa.equals("")) && (dataAl != null && !dataAl.equals(""))) { - + if (Validator.isNotNull(dataDa) && Validator.isNotNull(dataAl)) { Date dataDaApp = DATE_FORMAT_STRING.parse(dataDa); Date dataAlApp = DATE_FORMAT_STRING.parse(dataAl); - TermRangeQuery dateSearchTermRangeQuery = TermRangeQueryFactoryUtil.create(searchContext, "dataInizioProcedimento", DATE_FORMAT_LUCENE.format(dataDaApp), DATE_FORMAT_LUCENE.format(dataAlApp), true, true); booleanQuery.add(dateSearchTermRangeQuery, BooleanClauseOccur.MUST); - } - if ((dataDa == null || dataDa.equals("")) && (dataAl != null && !dataDa.equals(""))) { + } else if (Validator.isNull(dataDa) && Validator.isNotNull(dataAl)) { Date dataAlApp = DATE_FORMAT_STRING.parse(dataAl); TermRangeQuery dateSearchTermRangeQuery = TermRangeQueryFactoryUtil.create(searchContext, - "dataInizioProcedimento", "00000000", DATE_FORMAT_LUCENE.format(dataAlApp), true, - true); + "dataInizioProcedimento", "00000000", DATE_FORMAT_LUCENE.format(dataAlApp), true, true); booleanQuery.add(dateSearchTermRangeQuery, BooleanClauseOccur.MUST); - } - if ((dataDa != null && !dataDa.equals("")) && (dataAl == null || dataAl.equals(""))) { + } else if (Validator.isNotNull(dataDa) && Validator.isNull(dataAl)) { Date dataDaApp = DATE_FORMAT_STRING.parse(dataDa); TermRangeQuery dateSearchTermRangeQuery = TermRangeQueryFactoryUtil.create(searchContext, "dataInizioProcedimento", DATE_FORMAT_LUCENE.format(dataDaApp), DATE_FORMAT_LUCENE.format(new Date()), true, true); booleanQuery.add(dateSearchTermRangeQuery, BooleanClauseOccur.MUST); } - if (comune != null && !comune.equals("") && !comune.equals("-1")) { + if (Validator.isNotNull(comune) && !comune.equals("-1")) { TermQuery comuneTermQuery = TermQueryFactoryUtil.create(searchContext, "comuneId", comune); booleanQuery.add(comuneTermQuery, BooleanClauseOccur.MUST); } if (Validator.isNotNull(tipoProcedura)) { - TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, "tipoProcedura", - tipoProcedura); + TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, "tipoProcedura", tipoProcedura); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } - // ADT - BUG-11 Aggiunta filtro ricerca if (Validator.isNotNull(controlloObbligatorioSearch)) { TermQuery controlloObbligatorioTermQuery = TermQueryFactoryUtil.create(searchContext, "controlloObbligatorio", controlloObbligatorioSearch); booleanQuery.add(controlloObbligatorioTermQuery, BooleanClauseOccur.MUST); } - - // ADT - BUG-11 Aggiunta filtro ricerca - if (Validator.isNotNull(sorteggiataSearch)) { - TermQuery sorteggiataTermQuery = TermQueryFactoryUtil.create(searchContext, "sorteggiata", - sorteggiataSearch); - booleanQuery.add(sorteggiataTermQuery, BooleanClauseOccur.MUST); - } } catch (ParseException | java.text.ParseException e) { _log.error(e, e); } - } private static Sort[] getOrderedQuery(HttpServletRequest request) { @@ -714,7 +635,7 @@ public class ControlloPraticaAdvancedSearch { String orderType = ParamUtil.getString(request, "ordinaTipo", "desc"); List sortes = new ArrayList(); Sort sort = new Sort(); - if (orderField != null && !orderField.equals("") && !orderField.equals("-1")) { + if (Validator.isNotNull(orderField) && !orderField.equals("-1")) { if (properties.size() > 0) { sort.setFieldName(orderField + "_sortable"); } else { @@ -728,7 +649,7 @@ public class ControlloPraticaAdvancedSearch { sort.setType(Sort.LONG_TYPE); } } - if (orderType != null && !orderType.equals("") && !orderType.equals("-1")) { + if (Validator.isNotNull(orderType) && !orderType.equals("-1")) { if (orderType.equals("asc")) { sort.setReverse(false); } else { @@ -738,4 +659,4 @@ public class ControlloPraticaAdvancedSearch { sortes.add(sort); return sortes.toArray(new Sort[0]); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java index aa40d107..6bd0968e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java @@ -10,14 +10,10 @@ import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; -import java.util.Map; -import java.util.Map.Entry; import java.util.Properties; import javax.servlet.http.HttpServletRequest; -import org.apache.commons.lang.StringUtils; - import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; @@ -41,6 +37,7 @@ import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.PropsKeys; import com.liferay.portal.kernel.util.PropsUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringUtil; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.Organization; @@ -53,9 +50,8 @@ public class IntPraticaAdvancedSearch { public static final String[] OVERRIDE_KEYWORDS = { PortosIndexField.INT_PRATICA_ID, PortosIndexField.NUMERO_PROGETTO, PortosIndexField.TIPO_PRATICA, PortosIndexField.STATO_PRATICA, - PortosIndexField.DATA_RICHIESTA, PortosIndexField.COMMITTENTE, - PortosIndexField.SOGGETTI_INTERESSATI, PortosIndexField.STATUS, Field.ENTRY_CLASS_NAME, - Field.USER_ID, PortosIndexField.DESC_INTERVENTO }; + PortosIndexField.DATA_RICHIESTA, PortosIndexField.COMMITTENTE, PortosIndexField.SOGGETTI_INTERESSATI, + PortosIndexField.STATUS, Field.ENTRY_CLASS_NAME, Field.USER_ID, PortosIndexField.DESC_INTERVENTO }; public static final Format DATE_FORMAT_LUCENE = FastDateFormatFactoryUtil.getSimpleDateFormat("yyyyMMdd"); @@ -64,42 +60,31 @@ public class IntPraticaAdvancedSearch { public static Hits searchMieiProgetti(HttpServletRequest request, User user, int start, int end) { SearchContext searchContext = SearchContextFactory.getInstance(request); - searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); searchContext.setAttribute("paginationType", "more"); searchContext.setStart(start); searchContext.setEnd(end); - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); - Hits hits = null; try { BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); - // Condizioni necessarie per questa ricerca : - // entryClassName=IntPratica & userId=userId e stato!=chiuso ?? + // Condizioni necessarie per questa ricerca: entryClassName=IntPratica & userId=userId e stato!=chiuso ?? TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, Field.ENTRY_CLASS_NAME, IntPratica.class.getName()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - termQuery = TermQueryFactoryUtil.create(searchContext, Field.USER_ID, user.getUserId()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - // Condizioni aggiuntive query(request, user, booleanQuery, searchContext); - hits = SearchEngineUtil.search(searchContext, booleanQuery); - logResults(user, booleanQuery, hits); - } catch (SearchException | ParseException e) { _log.error(e, e); } return hits; - } public static Hits searchAltriProgetti(HttpServletRequest request, User user, int start, int end) { @@ -109,35 +94,25 @@ public class IntPraticaAdvancedSearch { searchContext.setAttribute("paginationType", "more"); searchContext.setStart(start); searchContext.setEnd(end); - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); - Hits hits = null; try { BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); - - // Condizioni necessarie per questa ricerca : - // entryClassName=IntPratica & soggettiInteressati=userScreenName e - // userId!=myUserId e stato!=chiuso ?? + // Condizioni necessarie per questa ricerca: entryClassName=IntPratica & soggettiInteressati=userScreenName + // e userId!=myUserId e stato!=chiuso ?? TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, Field.ENTRY_CLASS_NAME, IntPratica.class.getName()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.SOGGETTI_INTERESSATI, - user.getScreenName().toUpperCase()); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.SOGGETTI_INTERESSATI, user + .getScreenName().toUpperCase()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - // Condizioni aggiuntive query(request, user, booleanQuery, searchContext); - hits = SearchEngineUtil.search(searchContext, booleanQuery); - logResults(user, booleanQuery, hits); - } catch (ParseException | SearchException e) { _log.error(e, e); } @@ -145,49 +120,34 @@ public class IntPraticaAdvancedSearch { } public static Hits searchArchivioProgetti(HttpServletRequest request, User user, int start, int end) { - SearchContext searchContext = SearchContextFactory.getInstance(request); + SearchContext searchContext = SearchContextFactory.getInstance(request); searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); searchContext.setAttribute("paginationType", "more"); searchContext.setStart(start); searchContext.setEnd(end); - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); Hits hits = null; - try { - - // Condizioni necessarie per questa ricerca : - // entryClassName=IntPratica & soggettiInteressati=userScreenName e - // stato==chiuso - + // Condizioni necessarie per questa ricerca: entryClassName=IntPratica & soggettiInteressati=userScreenName + // e stato==chiuso BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); BooleanQuery altriProgettiBooleanQuery = BooleanQueryFactoryUtil.create(searchContext); - - TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.SOGGETTI_INTERESSATI, user.getScreenName().toUpperCase()); + TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.SOGGETTI_INTERESSATI, + user.getScreenName().toUpperCase()); altriProgettiBooleanQuery.add(termQuery, BooleanClauseOccur.SHOULD); - termQuery = TermQueryFactoryUtil.create(searchContext, Field.USER_ID, user.getUserId()); altriProgettiBooleanQuery.add(termQuery, BooleanClauseOccur.SHOULD); - - termQuery = TermQueryFactoryUtil.create(searchContext, Field.ENTRY_CLASS_NAME, - IntPratica.class.getName()); + termQuery = TermQueryFactoryUtil.create(searchContext, Field.ENTRY_CLASS_NAME, IntPratica.class.getName()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, "false"); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, StringPool.FALSE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - booleanQuery.add(altriProgettiBooleanQuery, BooleanClauseOccur.MUST); - // Condizioni aggiuntive query(request, user, booleanQuery, searchContext); - hits = SearchEngineUtil.search(searchContext, booleanQuery); - logResults(user, booleanQuery, hits); - } catch (ParseException | SearchException e) { _log.error(e, e); } @@ -197,41 +157,30 @@ public class IntPraticaAdvancedSearch { public static Hits searchProgettiBO(HttpServletRequest request, User user, int start, int end) { SearchContext searchContext = SearchContextFactory.getInstance(request); - searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); - boolean searchForExport = ParamUtil.getBoolean(request, "searchForExport", false); - if (searchForExport) { - int maxEnd = GetterUtil.getInteger(PropsUtil.get(PropsKeys.INDEX_FILTER_SEARCH_LIMIT)); - searchContext.setStart(0); searchContext.setEnd(maxEnd); searchContext.setAttribute("paginationType", "none"); - } else { searchContext.setAttribute("paginationType", "more"); searchContext.setStart(start); searchContext.setEnd(end); } - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); - Hits hits = null; try { BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); - // Condizioni necessarie per questa ricerca : - // entryClassName=IntPratica & dtPratica valorizzato & GroupId + // Condizioni necessarie per questa ricerca: entryClassName=IntPratica & dtPratica valorizzato & GroupId // facente parte dei miei gruopId delle mie organizzazioni TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, Field.ENTRY_CLASS_NAME, IntPratica.class.getName()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - termQuery = TermQueryFactoryUtil.create(searchContext, "dtPratica", 0); booleanQuery.add(termQuery, BooleanClauseOccur.MUST_NOT); - // Ricavo i groupId legati all utente che effettua la ricerca int ufficio = ParamUtil.getInteger(request, "ufficio"); if (ufficio != 0 && ufficio != -1) { @@ -241,11 +190,9 @@ public class IntPraticaAdvancedSearch { List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user .getUserId()); BooleanQuery groupIdsQuery = BooleanQueryFactoryUtil.create(searchContext); - if (Validator.isNotNull(organizationList)) { for (Organization org : organizationList) { - termQuery = TermQueryFactoryUtil.create(searchContext, Field.GROUP_ID, - org.getGroupId()); + termQuery = TermQueryFactoryUtil.create(searchContext, Field.GROUP_ID, org.getGroupId()); groupIdsQuery.add(termQuery, BooleanClauseOccur.SHOULD); } booleanQuery.add(groupIdsQuery, BooleanClauseOccur.MUST); @@ -254,125 +201,95 @@ public class IntPraticaAdvancedSearch { booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } } - // Condizioni aggiuntive query(request, user, booleanQuery, searchContext); - hits = SearchEngineUtil.search(searchContext, booleanQuery); - logResults(user, booleanQuery, hits); - } catch (ParseException | SearchException | SystemException e) { _log.error(e, e); } return hits; } - // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione - // tutte i record + // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione tutte i record public static Hits searchAttivitaIstruttore(HttpServletRequest request, User user, int start, int end) { + return searchAttivitaIstruttore(request, user, start, end, false); } - // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione - // tutte i record + // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione tutte i record public static Hits searchAttivitaIstruttore(HttpServletRequest request, User user, int start, int end, boolean isExport) { SearchContext searchContext = SearchContextFactory.getInstance(request); - searchContext.setKeywords(OVERRIDE_KEYWORDS.toString()); - // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione - // tutte i record - // Bug 33248 - if (!isExport) + // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione tutte i record + if (!isExport) { searchContext.setAttribute("paginationType", "more"); - else + } else { searchContext.setAttribute("paginationType", "none"); - + } searchContext.setStart(start); searchContext.setEnd(end); - // Gestione Ordinamento searchContext.setSorts(getOrderedQuery(request)); - Hits hits = null; try { BooleanQuery booleanQuery = BooleanQueryFactoryUtil.create(searchContext); - - // Condizioni necessarie per questa ricerca : - // entryClassName=IntPratica & - // statusByUserId = myUserId + // Condizioni necessarie per questa ricerca: entryClassName=IntPratica & statusByUserId = myUserId TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, Field.ENTRY_CLASS_NAME, IntPratica.class.getName()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - termQuery = TermQueryFactoryUtil.create(searchContext, "istruttoreUserId", user.getUserId()); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); - // Condizioni aggiuntive queryForIstruttore(request, user, booleanQuery, searchContext); - hits = SearchEngineUtil.search(searchContext, booleanQuery); - logResults(user, booleanQuery, hits); - } catch (ParseException | SearchException e) { _log.error(e, e); } - return hits; } /* - * Manifattura Web Group per Regione Siciliana - * - * Modifiche per rendere i campi di testo ricercabili per parole contenute e - * non per corrispondenza esatta. + * Manifattura Web Group per Regione Siciliana Modifiche per rendere i campi di testo ricercabili per parole + * contenute e non per corrispondenza esatta. */ private static void query(HttpServletRequest request, User user, BooleanQuery booleanQuery, SearchContext searchContext) { try { - TermQuery termQuery; - queryPraticaAperta(request, booleanQuery, searchContext); queryNumeroProgetto(request, booleanQuery, searchContext); - String protocollo = ParamUtil.getString(request, PortosIndexField.PROTOCOLLO); if (Validator.isNotNull(protocollo)) { - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PROTOCOLLO, - protocollo); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PROTOCOLLO, protocollo); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } - queryTipoPratica(request, booleanQuery, searchContext); - String tipoIntervento = ParamUtil.getString(request, "tipoIntervento"); if (Validator.isNotNull(tipoIntervento)) { if (tipoIntervento.equals("interventoLocale")) { - termQuery = TermQueryFactoryUtil.create(searchContext, "interventoLocale", "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, "interventoLocale", StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } else if (tipoIntervento.equals("miglioramento")) { - termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.MIGLIORAMENTO_SISMICO, "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.MIGLIORAMENTO_SISMICO, + StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } else if (tipoIntervento.equals("adeguamento")) { - termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.ADEGUAMENTO_SISMICO, "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.ADEGUAMENTO_SISMICO, + StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } else if (tipoIntervento.equals(PortosIndexField.NUOVA_COSTRUZIONE)) { - termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.NUOVA_COSTRUZIONE, "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.NUOVA_COSTRUZIONE, + StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } } - queryStatoPratica(request, booleanQuery, searchContext); - - addRequiredTerms(booleanQuery, PortosIndexField.COMMITTENTI, - ParamUtil.getString(request, "committente")); + addRequiredTerms(booleanQuery, PortosIndexField.COMMITTENTI, ParamUtil.getString(request, "committente")); addRequiredTerms(booleanQuery, PortosIndexField.ISTRUTTORE_FULL_NAME, ParamUtil.getString(request, "tecnicoIstruttore")); addRequiredTerms(booleanQuery, PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, @@ -380,17 +297,13 @@ public class IntPraticaAdvancedSearch { for (String field : new String[] { PortosIndexField.SOGGETTI_INTERCONNESSI, PortosIndexField.DESC_INTERVENTO, PortosIndexField.INDIRIZZO }) addRequiredTerms(booleanQuery, field, ParamUtil.getString(request, field)); - String provincia = ParamUtil.getString(request, PortosIndexField.PROVINCIA); if (Validator.isNotNull(provincia) && !provincia.equals("000")) { - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PROVINCIA_CODICE, - provincia); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PROVINCIA_CODICE, provincia); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } - queryComune(request, booleanQuery, searchContext); queryDate(request, booleanQuery, searchContext); - } catch (ParseException | java.text.ParseException e) { _log.error(e, e); } @@ -401,37 +314,34 @@ public class IntPraticaAdvancedSearch { SearchContext searchContext) { try { - queryNumeroProgetto(request, booleanQuery, searchContext); queryPraticaAperta(request, booleanQuery, searchContext); queryTipoPratica(request, booleanQuery, searchContext); - if (!ParamUtil.getBoolean(request, "interventoTutti")) { if (ParamUtil.getBoolean(request, "interventoNuovaCostruzione")) { TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.NUOVA_COSTRUZIONE, "true"); + PortosIndexField.NUOVA_COSTRUZIONE, StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } if (ParamUtil.getBoolean(request, "interventoAdeguamentoSismico")) { TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.ADEGUAMENTO_SISMICO, "true"); + PortosIndexField.ADEGUAMENTO_SISMICO, StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } if (ParamUtil.getBoolean(request, "interventoMiglioramentoSismico")) { TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.MIGLIORAMENTO_SISMICO, "true"); + PortosIndexField.MIGLIORAMENTO_SISMICO, StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } if (ParamUtil.getBoolean(request, "interventoRiparazioneInterventoLocale")) { TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.RIPARAZIONE_INTERVENTO_LOCALE, "true"); + PortosIndexField.RIPARAZIONE_INTERVENTO_LOCALE, StringPool.TRUE); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } } - queryStatoPratica(request, booleanQuery, searchContext); - for (String field : new String[] { PortosIndexField.COMMITTENTI, - PortosIndexField.SOGGETTI_INTERCONNESSI, PortosIndexField.DIRETTORE_LAVORI }) + for (String field : new String[] { PortosIndexField.COMMITTENTI, PortosIndexField.SOGGETTI_INTERCONNESSI, + PortosIndexField.DIRETTORE_LAVORI }) addRequiredTerms(booleanQuery, field, ParamUtil.getString(request, field)); queryDate(request, booleanQuery, searchContext); queryComune(request, booleanQuery, searchContext); @@ -448,7 +358,7 @@ public class IntPraticaAdvancedSearch { private static void addRequiredTerms(BooleanQuery booleanQuery, String field, String terms) { if (Validator.isNotNull(terms)) - for (String term : StringUtil.split(terms, " ")) + for (String term : StringUtil.split(terms, StringPool.SPACE)) if (Validator.isNotNull(term)) booleanQuery.addRequiredTerm(field, term); } @@ -456,21 +366,16 @@ public class IntPraticaAdvancedSearch { private static Sort[] getOrderedQuery(HttpServletRequest request) { Properties properties = PropsUtil.getProperties("elasticsearch.", true); - String orderField = ParamUtil.getString(request, "ordinaPer"); String orderType = ParamUtil.getString(request, "ordinaTipo"); - List sortes = new ArrayList(); Sort sort = new Sort(); - - if (orderField != null && !orderField.equals("") && !orderField.equals("-1")) { - + if (Validator.isNotNull(orderField) && !orderField.equals("-1")) { if (properties.size() > 0) { sort.setFieldName(orderField + "_sortable"); } else { sort.setFieldName(orderField); } - if (orderField.equals(PortosIndexField.NUMERO_PROGETTO)) { sort.setType(Sort.INT_TYPE); } else if (orderField.equals(PortosIndexField.PROTOCOLLO)) { @@ -479,39 +384,35 @@ public class IntPraticaAdvancedSearch { sort.setType(Sort.LONG_TYPE); } } - - if (orderType != null && !orderType.equals("") && !orderType.equals("-1")) { + if (Validator.isNotNull(orderType) && !orderType.equals("-1")) { if (orderType.equals("asc")) { sort.setReverse(false); } else { sort.setReverse(true); } } - sortes.add(sort); - return sortes.toArray(new Sort[0]); } /* * Manifattura Web Group per Regione Siciliana - * - * Rimosse numerose righe di codice che trattavano separatamente i 3 casi: - * entrambe le date inserite, inserita solo la data iniziale, inserita solo - * la data finale. Le funzioni seguenti sono state create per ridurre la + * + * Rimosse numerose righe di codice che trattavano separatamente i 3 casi: entrambe le date inserite, inserita solo + * la data iniziale, inserita solo la data finale. Le funzioni seguenti sono state create per ridurre la * duplicazione di codice. */ - private static void queryDate(HttpServletRequest request, BooleanQuery booleanQuery, - SearchContext searchContext) throws ParseException, java.text.ParseException { + private static void queryDate(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) + throws ParseException, java.text.ParseException { String dataDaSearch = ParamUtil.getString(request, "dataRichiestaInizio"); String dataASearch = ParamUtil.getString(request, "dataRichiestaFine"); if (Validator.isNotNull(dataDaSearch) || Validator.isNotNull(dataASearch)) { - String dataDa = Validator.isNull(dataDaSearch) ? "00000000" : DATE_FORMAT_LUCENE - .format(DATE_FORMAT_STRING.parse(dataDaSearch)); - String dataA = DATE_FORMAT_LUCENE.format(Validator.isNull(dataASearch) ? new Date() - : DATE_FORMAT_STRING.parse(dataASearch)); + String dataDa = Validator.isNull(dataDaSearch) ? "00000000" : DATE_FORMAT_LUCENE.format(DATE_FORMAT_STRING + .parse(dataDaSearch)); + String dataA = DATE_FORMAT_LUCENE.format(Validator.isNull(dataASearch) ? new Date() : DATE_FORMAT_STRING + .parse(dataASearch)); TermRangeQuery termRangeQuery = TermRangeQueryFactoryUtil.create(searchContext, PortosIndexField.DATA_RICHIESTA, dataDa, dataA, true, true); @@ -519,59 +420,57 @@ public class IntPraticaAdvancedSearch { } } - private static void queryComune(HttpServletRequest request, BooleanQuery booleanQuery, - SearchContext searchContext) throws ParseException { + private static void queryComune(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) + throws ParseException { + String comune = ParamUtil.getString(request, PortosIndexField.COMUNE); if (Validator.isNotNull(comune) && !comune.equals("000")) { - TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.COMUNE_ID, - comune); + TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.COMUNE_ID, comune); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } } private static void queryNumeroProgetto(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) throws ParseException { + String numeroProgetto = ParamUtil.getString(request, PortosIndexField.NUMERO_PROGETTO); if (Validator.isNotNull(numeroProgetto)) { - TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.NUMERO_PROGETTO, numeroProgetto); + TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.NUMERO_PROGETTO, + numeroProgetto); booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } } private static void queryStatoPratica(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) throws ParseException { + String statoPratica = ParamUtil.getString(request, PortosIndexField.STATO_PRATICA); if (Validator.isNotNull(statoPratica)) { TermQuery termQuery = null; if (statoPratica.equals(StatoPraticaConstants.COLLAUDO_PARZIALE)) termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.COLLAUDO_PARZIALE, - "true"); + StringPool.TRUE); else if (statoPratica.equals(StatoPraticaConstants.COLLAUDO)) termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.COLLAUDO_COMPLETATO, - "true"); + StringPool.TRUE); else if (statoPratica.equals(StatoPraticaConstants.FINE_LAVORI)) - termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.FINE_LAVORI_COMPLETATI, "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.FINE_LAVORI_COMPLETATI, + StringPool.TRUE); else if (statoPratica.equals(StatoPraticaConstants.FINE_LAVORI_PARZIALE)) termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.FINE_LAVORI_PARZIALI, - "true"); - else if (statoPratica.equals(StatoPraticaConstants.SORTEGGIATA)) - termQuery = TermQueryFactoryUtil.create(searchContext, - PortosIndexField.LAVORAZIONE_SORTEGGIATA, "true"); + StringPool.TRUE); else if (statoPratica.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.SOTTOPOSTO_A_PARERE, - "true"); + StringPool.TRUE); else if (statoPratica.equals(PortosIndexField.STATUS_SOSPESA)) - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.STATUS_SOSPESA, - "true"); + termQuery = TermQueryFactoryUtil + .create(searchContext, PortosIndexField.STATUS_SOSPESA, StringPool.TRUE); else if (statoPratica.equals("IC")) termQuery = TermQueryFactoryUtil.create(searchContext, "dtPratica", "0"); else if (statoPratica.equals(StatoPraticaConstants.VARIATA)) - termQuery = TermQueryFactoryUtil.create(searchContext, "variata", "true"); + termQuery = TermQueryFactoryUtil.create(searchContext, "variata", StringPool.TRUE); else if (!statoPratica.equals("-1")) - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.STATO_PRATICA, - statoPratica); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.STATO_PRATICA, statoPratica); if (Validator.isNotNull(termQuery)) booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } @@ -579,15 +478,16 @@ public class IntPraticaAdvancedSearch { private static void queryPraticaAperta(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) throws ParseException { + String praticaAperta = ParamUtil.getString(request, PortosIndexField.PRATICA_APERTA); if (Validator.isNotNull(praticaAperta)) { TermQuery termQuery = null; if (praticaAperta.equals("aperta")) - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, - "true"); + termQuery = TermQueryFactoryUtil + .create(searchContext, PortosIndexField.PRATICA_APERTA, StringPool.TRUE); else if (praticaAperta.equals("chiusa")) termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.PRATICA_APERTA, - "false"); + StringPool.FALSE); if (Validator.isNotNull(termQuery)) booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } @@ -595,22 +495,21 @@ public class IntPraticaAdvancedSearch { private static void queryTipoPratica(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) throws ParseException { + String tipoPratica = ParamUtil.getString(request, PortosIndexField.TIPO_PRATICA); if (Validator.isNotNull(tipoPratica)) { TermQuery termQuery = null; - if (tipoPratica.equals("sorteggio")) - termQuery = TermQueryFactoryUtil.create(searchContext, "sorteggiata", "true"); - else if (tipoPratica.equals("co")) - termQuery = TermQueryFactoryUtil.create(searchContext, "controlloObbligatorio", "true"); + if (tipoPratica.equals("co")) + termQuery = TermQueryFactoryUtil.create(searchContext, "controlloObbligatorio", StringPool.TRUE); else if (!tipoPratica.equals("-1")) - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.TIPO_PRATICA, - tipoPratica); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.TIPO_PRATICA, tipoPratica); if (Validator.isNotNull(termQuery)) booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } } private static void logResults(User user, BooleanQuery booleanQuery, Hits hits) { + if (_log.isDebugEnabled()) { _log.debug("Utente " + user.getScreenName() + " query : " + booleanQuery.toString()); _log.debug("Number of hint find : " + hits.getLength()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java index 8049b11c..8efc873d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalService.java @@ -326,9 +326,8 @@ public interface AvvisoLocalService extends BaseLocalService, com.liferay.portal.kernel.exception.SystemException; public it.tref.liferay.portos.bo.model.Avviso createStandardAvvisoPratica( - long intPraticaId, java.lang.String stato, - java.lang.String jsonParameters, long classPk, - java.lang.String className, + long intPraticaId, java.lang.String stato, java.lang.String base64File, + long classPk, java.lang.String className, com.liferay.portal.service.ServiceContext serviceContext, java.lang.String tipoAvviso, java.lang.String userCodiceFiscalePrimaFirma, long controlloPraticaId) @@ -379,7 +378,7 @@ public interface AvvisoLocalService extends BaseLocalService, java.lang.String tipoAvviso, java.lang.String tipoDocumento, long fileEntryIdTemplate, long classPk, java.lang.String className, java.lang.String userCodiceFiscalePrimaFirma, long fileEntryIdBase, - java.lang.String jsonParameters, long intPraticaId, long oldAvvisoId, + java.lang.String jsonParameters, long intPraticaId, java.lang.String inviato, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -571,11 +570,6 @@ public interface AvvisoLocalService extends BaseLocalService, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Avviso fetchAvvisoByOldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.Avviso updateAvvisoInviatoTecnico( long avvisoId, boolean inviatoTecnico) throws com.liferay.portal.kernel.exception.SystemException; @@ -666,16 +660,6 @@ public interface AvvisoLocalService extends BaseLocalService, java.lang.String cf) throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getAvvisiWithOldFileEntryIdInvio( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getAvvisiWithOldFileEntryIdBase( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.List getAvvisiRifiutatiByControlloPraticaId( long controlloPraticaId) @@ -709,38 +693,19 @@ public interface AvvisoLocalService extends BaseLocalService, long classPk) throws com.liferay.portal.kernel.exception.SystemException; - /** - * ADT - */ public int countAvvisiInvioTecnicoNew() throws com.liferay.portal.kernel.exception.SystemException; - /** - * ADT - */ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.List getAvvisiInvioTecnicoNew( int start, int end) throws com.liferay.portal.kernel.exception.SystemException; - /** - * ADT - * - * @param intPraticaId - * @param dettPraticaID - * @return - * @throws SystemException - */ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public it.tref.liferay.portos.bo.model.Avviso getAvvisoVidimazione( long intPraticaId, long dettPraticaID) throws com.liferay.portal.kernel.exception.SystemException; - /** - * @param intPraticaId - * @return - * @throws SystemException - */ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java index 9fd160cb..1f6c2537 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceClp.java @@ -194,7 +194,7 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { _methodParameterTypes30 = new String[] { "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", - "java.lang.String", "long", "java.lang.String", "long", "long", + "java.lang.String", "long", "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -390,171 +390,159 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { _methodParameterTypes75 = new String[] { "int", "int" }; - _methodName76 = "fetchAvvisoByOldAvvisoId"; + _methodName76 = "updateAvvisoInviatoTecnico"; - _methodParameterTypes76 = new String[] { "long" }; + _methodParameterTypes76 = new String[] { "long", "boolean" }; - _methodName77 = "updateAvvisoInviatoTecnico"; + _methodName77 = "findByClassPk_tipoDocumento"; - _methodParameterTypes77 = new String[] { "long", "boolean" }; - - _methodName78 = "findByClassPk_tipoDocumento"; - - _methodParameterTypes78 = new String[] { + _methodParameterTypes77 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName79 = "findByIntPraticaId_tipoDocumento"; + _methodName78 = "findByIntPraticaId_tipoDocumento"; - _methodParameterTypes79 = new String[] { + _methodParameterTypes78 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName80 = "findByIntPraticaIds_tipoDocumento"; + _methodName79 = "findByIntPraticaIds_tipoDocumento"; - _methodParameterTypes80 = new String[] { "long[][]", "java.lang.String" }; + _methodParameterTypes79 = new String[] { "long[][]", "java.lang.String" }; - _methodName81 = "findByClassPk_ExcludeTipoDocumento"; + _methodName80 = "findByClassPk_ExcludeTipoDocumento"; - _methodParameterTypes81 = new String[] { + _methodParameterTypes80 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName82 = "findByIntPratica"; + _methodName81 = "findByIntPratica"; - _methodParameterTypes82 = new String[] { + _methodParameterTypes81 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName83 = "findByIntPratica_Inviato"; + _methodName82 = "findByIntPratica_Inviato"; - _methodParameterTypes83 = new String[] { + _methodParameterTypes82 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName84 = "countByIntPratica"; + _methodName83 = "countByIntPratica"; - _methodParameterTypes84 = new String[] { "long" }; + _methodParameterTypes83 = new String[] { "long" }; - _methodName85 = "containsFileEntry"; + _methodName84 = "containsFileEntry"; - _methodParameterTypes85 = new String[] { "long", "long[][]", "long" }; + _methodParameterTypes84 = new String[] { "long", "long[][]", "long" }; - _methodName86 = "findByUUID"; + _methodName85 = "findByUUID"; - _methodParameterTypes86 = new String[] { "java.lang.String", "int", "int" }; + _methodParameterTypes85 = new String[] { "java.lang.String", "int", "int" }; - _methodName87 = "countAvvisoByClassPk"; + _methodName86 = "countAvvisoByClassPk"; - _methodParameterTypes87 = new String[] { "long" }; + _methodParameterTypes86 = new String[] { "long" }; - _methodName88 = "countAvvisoByClassPk_ClassName"; + _methodName87 = "countAvvisoByClassPk_ClassName"; - _methodParameterTypes88 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes87 = new String[] { "long", "java.lang.String" }; - _methodName89 = "findByProtocollo"; + _methodName88 = "findByProtocollo"; - _methodParameterTypes89 = new String[] { + _methodParameterTypes88 = new String[] { "long", "long", "java.lang.String" }; - _methodName90 = "fetchByProtocollo"; + _methodName89 = "fetchByProtocollo"; - _methodParameterTypes90 = new String[] { + _methodParameterTypes89 = new String[] { "long", "long", "java.lang.String" }; - _methodName91 = "fetchByProtocollo"; + _methodName90 = "fetchByProtocollo"; - _methodParameterTypes91 = new String[] { "java.lang.String" }; + _methodParameterTypes90 = new String[] { "java.lang.String" }; - _methodName92 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; + _methodName91 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; - _methodParameterTypes92 = new String[] { "long" }; + _methodParameterTypes91 = new String[] { "long" }; - _methodName93 = "getListaAvvisiPerApplet"; + _methodName92 = "getListaAvvisiPerApplet"; - _methodParameterTypes93 = new String[] { "java.lang.String" }; + _methodParameterTypes92 = new String[] { "java.lang.String" }; - _methodName94 = "getAllTipoDocumentoFolderProps"; + _methodName93 = "getAllTipoDocumentoFolderProps"; - _methodParameterTypes94 = new String[] { }; + _methodParameterTypes93 = new String[] { }; - _methodName95 = "getFileNameAvviso"; + _methodName94 = "getFileNameAvviso"; - _methodParameterTypes95 = new String[] { + _methodParameterTypes94 = new String[] { "long", "java.lang.String", "java.lang.Long", "java.lang.String" }; - _methodName96 = "rilasciaFirma"; + _methodName95 = "rilasciaFirma"; - _methodParameterTypes96 = new String[] { "long" }; + _methodParameterTypes95 = new String[] { "long" }; - _methodName97 = "assegnaFirma"; + _methodName96 = "assegnaFirma"; - _methodParameterTypes97 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes96 = new String[] { "long", "java.lang.String" }; - _methodName98 = "getAvvisiWithOldFileEntryIdInvio"; + _methodName97 = "getAvvisiRifiutatiByControlloPraticaId"; - _methodParameterTypes98 = new String[] { "int", "int" }; + _methodParameterTypes97 = new String[] { "long" }; - _methodName99 = "getAvvisiWithOldFileEntryIdBase"; + _methodName98 = "addFileFirmato"; - _methodParameterTypes99 = new String[] { "int", "int" }; - - _methodName100 = "getAvvisiRifiutatiByControlloPraticaId"; - - _methodParameterTypes100 = new String[] { "long" }; - - _methodName101 = "addFileFirmato"; - - _methodParameterTypes101 = new String[] { + _methodParameterTypes98 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName102 = "protocolliSearch"; + _methodName99 = "protocolliSearch"; - _methodParameterTypes102 = new String[] { + _methodParameterTypes99 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "int", "int" }; - _methodName103 = "countProtocolliSearch"; + _methodName100 = "countProtocolliSearch"; - _methodParameterTypes103 = new String[] { + _methodParameterTypes100 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String" }; - _methodName104 = "getAvvisiPerAggiuntaProtocollo"; + _methodName101 = "getAvvisiPerAggiuntaProtocollo"; - _methodParameterTypes104 = new String[] { "int", "int" }; + _methodParameterTypes101 = new String[] { "int", "int" }; - _methodName105 = "dynamicQueryAggiuntaProtocollo"; + _methodName102 = "dynamicQueryAggiuntaProtocollo"; - _methodParameterTypes105 = new String[] { }; + _methodParameterTypes102 = new String[] { }; - _methodName106 = "findByClassPk"; + _methodName103 = "findByClassPk"; - _methodParameterTypes106 = new String[] { "long" }; + _methodParameterTypes103 = new String[] { "long" }; - _methodName107 = "countAvvisiInvioTecnicoNew"; + _methodName104 = "countAvvisiInvioTecnicoNew"; - _methodParameterTypes107 = new String[] { }; + _methodParameterTypes104 = new String[] { }; - _methodName108 = "getAvvisiInvioTecnicoNew"; + _methodName105 = "getAvvisiInvioTecnicoNew"; - _methodParameterTypes108 = new String[] { "int", "int" }; + _methodParameterTypes105 = new String[] { "int", "int" }; - _methodName109 = "getAvvisoVidimazione"; + _methodName106 = "getAvvisoVidimazione"; - _methodParameterTypes109 = new String[] { "long", "long" }; + _methodParameterTypes106 = new String[] { "long", "long" }; - _methodName110 = "getLastAvvisoIntegrazione"; + _methodName107 = "getLastAvvisoIntegrazione"; - _methodParameterTypes110 = new String[] { "long" }; + _methodParameterTypes107 = new String[] { "long" }; } @Override @@ -1344,9 +1332,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { @Override public it.tref.liferay.portos.bo.model.Avviso createStandardAvvisoPratica( - long intPraticaId, java.lang.String stato, - java.lang.String jsonParameters, long classPk, - java.lang.String className, + long intPraticaId, java.lang.String stato, java.lang.String base64File, + long classPk, java.lang.String className, com.liferay.portal.service.ServiceContext serviceContext, java.lang.String tipoAvviso, java.lang.String userCodiceFiscalePrimaFirma, long controlloPraticaId) @@ -1362,7 +1349,7 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { ClpSerializer.translateInput(stato), - ClpSerializer.translateInput(jsonParameters), + ClpSerializer.translateInput(base64File), classPk, @@ -1653,7 +1640,7 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { java.lang.String tipoAvviso, java.lang.String tipoDocumento, long fileEntryIdTemplate, long classPk, java.lang.String className, java.lang.String userCodiceFiscalePrimaFirma, long fileEntryIdBase, - java.lang.String jsonParameters, long intPraticaId, long oldAvvisoId, + java.lang.String jsonParameters, long intPraticaId, java.lang.String inviato, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -1686,8 +1673,6 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { intPraticaId, - oldAvvisoId, - ClpSerializer.translateInput(inviato), ClpSerializer.translateInput(serviceContext) @@ -3128,35 +3113,6 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.Avviso fetchAvvisoByOldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { oldAvvisoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Avviso)ClpSerializer.translateOutput(returnObj); - } - @Override public it.tref.liferay.portos.bo.model.Avviso updateAvvisoInviatoTecnico( long avvisoId, boolean inviatoTecnico) @@ -3164,8 +3120,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + returnObj = _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { avvisoId, inviatoTecnico }); } catch (Throwable t) { @@ -3194,8 +3150,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { ClpSerializer.translateInput(classPk), @@ -3228,8 +3184,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { ClpSerializer.translateInput(intPraticaId), @@ -3262,8 +3218,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { ClpSerializer.translateInput(intPraticaIds), @@ -3296,8 +3252,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { ClpSerializer.translateInput(classPk), @@ -3331,8 +3287,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, + returnObj = _invokableLocalService.invokeMethod(_methodName81, + _methodParameterTypes81, new Object[] { intPraticaId, @@ -3370,8 +3326,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName82, + _methodParameterTypes82, new Object[] { intPraticaId, @@ -3409,8 +3365,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName83, + _methodParameterTypes83, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3438,8 +3394,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, + returnObj = _invokableLocalService.invokeMethod(_methodName84, + _methodParameterTypes84, new Object[] { companyId, @@ -3474,8 +3430,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName86, - _methodParameterTypes86, + returnObj = _invokableLocalService.invokeMethod(_methodName85, + _methodParameterTypes85, new Object[] { ClpSerializer.translateInput(uuid), start, end }); } catch (Throwable t) { @@ -3503,8 +3459,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName87, - _methodParameterTypes87, new Object[] { classPk }); + returnObj = _invokableLocalService.invokeMethod(_methodName86, + _methodParameterTypes86, new Object[] { classPk }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3532,8 +3488,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName88, - _methodParameterTypes88, + returnObj = _invokableLocalService.invokeMethod(_methodName87, + _methodParameterTypes87, new Object[] { classPk, @@ -3567,8 +3523,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName89, - _methodParameterTypes89, + returnObj = _invokableLocalService.invokeMethod(_methodName88, + _methodParameterTypes88, new Object[] { companyId, @@ -3608,8 +3564,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName90, - _methodParameterTypes90, + returnObj = _invokableLocalService.invokeMethod(_methodName89, + _methodParameterTypes89, new Object[] { companyId, @@ -3649,8 +3605,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName91, - _methodParameterTypes91, + returnObj = _invokableLocalService.invokeMethod(_methodName90, + _methodParameterTypes90, new Object[] { ClpSerializer.translateInput(protocollo) }); } catch (Throwable t) { @@ -3683,8 +3639,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName92, - _methodParameterTypes92, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName91, + _methodParameterTypes91, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3712,8 +3668,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName93, - _methodParameterTypes93, + returnObj = _invokableLocalService.invokeMethod(_methodName92, + _methodParameterTypes92, new Object[] { ClpSerializer.translateInput(codFisc) }); } catch (Throwable t) { @@ -3740,8 +3696,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName94, - _methodParameterTypes94, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName93, + _methodParameterTypes93, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3765,8 +3721,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName95, - _methodParameterTypes95, + returnObj = _invokableLocalService.invokeMethod(_methodName94, + _methodParameterTypes94, new Object[] { classPk, @@ -3798,8 +3754,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName96, - _methodParameterTypes96, new Object[] { avvisoId }); + returnObj = _invokableLocalService.invokeMethod(_methodName95, + _methodParameterTypes95, new Object[] { avvisoId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3827,8 +3783,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName97, - _methodParameterTypes97, + returnObj = _invokableLocalService.invokeMethod(_methodName96, + _methodParameterTypes96, new Object[] { avvisoId, ClpSerializer.translateInput(cf) }); } catch (Throwable t) { @@ -3850,64 +3806,6 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { return (it.tref.liferay.portos.bo.model.Avviso)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.List getAvvisiWithOldFileEntryIdInvio( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName98, - _methodParameterTypes98, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List getAvvisiWithOldFileEntryIdBase( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName99, - _methodParameterTypes99, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List getAvvisiRifiutatiByControlloPraticaId( long controlloPraticaId) @@ -3915,9 +3813,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName100, - _methodParameterTypes100, - new Object[] { controlloPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName97, + _methodParameterTypes97, new Object[] { controlloPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3946,8 +3843,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName101, - _methodParameterTypes101, + returnObj = _invokableLocalService.invokeMethod(_methodName98, + _methodParameterTypes98, new Object[] { avvisoId, @@ -3986,8 +3883,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName102, - _methodParameterTypes102, + returnObj = _invokableLocalService.invokeMethod(_methodName99, + _methodParameterTypes99, new Object[] { ClpSerializer.translateInput(dataDa), @@ -4031,8 +3928,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName103, - _methodParameterTypes103, + returnObj = _invokableLocalService.invokeMethod(_methodName100, + _methodParameterTypes100, new Object[] { ClpSerializer.translateInput(dataDa), @@ -4071,8 +3968,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName104, - _methodParameterTypes104, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName101, + _methodParameterTypes101, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4099,8 +3996,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName105, - _methodParameterTypes105, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName102, + _methodParameterTypes102, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4128,8 +4025,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName106, - _methodParameterTypes106, new Object[] { classPk }); + returnObj = _invokableLocalService.invokeMethod(_methodName103, + _methodParameterTypes103, new Object[] { classPk }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4156,8 +4053,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName107, - _methodParameterTypes107, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName104, + _methodParameterTypes104, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4185,8 +4082,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName108, - _methodParameterTypes108, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName105, + _methodParameterTypes105, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4214,8 +4111,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName109, - _methodParameterTypes109, + returnObj = _invokableLocalService.invokeMethod(_methodName106, + _methodParameterTypes106, new Object[] { intPraticaId, dettPraticaID }); } catch (Throwable t) { @@ -4244,8 +4141,8 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName110, - _methodParameterTypes110, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName107, + _methodParameterTypes107, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4481,10 +4378,4 @@ public class AvvisoLocalServiceClp implements AvvisoLocalService { private String[] _methodParameterTypes106; private String _methodName107; private String[] _methodParameterTypes107; - private String _methodName108; - private String[] _methodParameterTypes108; - private String _methodName109; - private String[] _methodParameterTypes109; - private String _methodName110; - private String[] _methodParameterTypes110; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java index 5b102724..dc60b72f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceUtil.java @@ -365,9 +365,8 @@ public class AvvisoLocalServiceUtil { } public static it.tref.liferay.portos.bo.model.Avviso createStandardAvvisoPratica( - long intPraticaId, java.lang.String stato, - java.lang.String jsonParameters, long classPk, - java.lang.String className, + long intPraticaId, java.lang.String stato, java.lang.String base64File, + long classPk, java.lang.String className, com.liferay.portal.service.ServiceContext serviceContext, java.lang.String tipoAvviso, java.lang.String userCodiceFiscalePrimaFirma, long controlloPraticaId) @@ -375,7 +374,7 @@ public class AvvisoLocalServiceUtil { com.liferay.portal.kernel.exception.SystemException { return getService() .createStandardAvvisoPratica(intPraticaId, stato, - jsonParameters, classPk, className, serviceContext, tipoAvviso, + base64File, classPk, className, serviceContext, tipoAvviso, userCodiceFiscalePrimaFirma, controlloPraticaId); } @@ -445,7 +444,7 @@ public class AvvisoLocalServiceUtil { java.lang.String tipoAvviso, java.lang.String tipoDocumento, long fileEntryIdTemplate, long classPk, java.lang.String className, java.lang.String userCodiceFiscalePrimaFirma, long fileEntryIdBase, - java.lang.String jsonParameters, long intPraticaId, long oldAvvisoId, + java.lang.String jsonParameters, long intPraticaId, java.lang.String inviato, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -454,7 +453,7 @@ public class AvvisoLocalServiceUtil { .addAvvisoForImport(descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, fileEntryIdBase, jsonParameters, - intPraticaId, oldAvvisoId, inviato, serviceContext); + intPraticaId, inviato, serviceContext); } public static java.util.List search( @@ -734,12 +733,6 @@ public class AvvisoLocalServiceUtil { return getService().getAvvisiInvioTecnico(start, end); } - public static it.tref.liferay.portos.bo.model.Avviso fetchAvvisoByOldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchAvvisoByOldAvvisoId(oldAvvisoId); - } - public static it.tref.liferay.portos.bo.model.Avviso updateAvvisoInviatoTecnico( long avvisoId, boolean inviatoTecnico) throws com.liferay.portal.kernel.exception.SystemException { @@ -876,18 +869,6 @@ public class AvvisoLocalServiceUtil { return getService().assegnaFirma(avvisoId, cf); } - public static java.util.List getAvvisiWithOldFileEntryIdInvio( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getAvvisiWithOldFileEntryIdInvio(start, end); - } - - public static java.util.List getAvvisiWithOldFileEntryIdBase( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getAvvisiWithOldFileEntryIdBase(start, end); - } - public static java.util.List getAvvisiRifiutatiByControlloPraticaId( long controlloPraticaId) throws com.liferay.portal.kernel.exception.SystemException { @@ -937,42 +918,23 @@ public class AvvisoLocalServiceUtil { return getService().findByClassPk(classPk); } - /** - * ADT - */ public static int countAvvisiInvioTecnicoNew() throws com.liferay.portal.kernel.exception.SystemException { return getService().countAvvisiInvioTecnicoNew(); } - /** - * ADT - */ public static java.util.List getAvvisiInvioTecnicoNew( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getService().getAvvisiInvioTecnicoNew(start, end); } - /** - * ADT - * - * @param intPraticaId - * @param dettPraticaID - * @return - * @throws SystemException - */ public static it.tref.liferay.portos.bo.model.Avviso getAvvisoVidimazione( long intPraticaId, long dettPraticaID) throws com.liferay.portal.kernel.exception.SystemException { return getService().getAvvisoVidimazione(intPraticaId, dettPraticaID); } - /** - * @param intPraticaId - * @return - * @throws SystemException - */ public static it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java index b9fb6725..d3cae074 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AvvisoLocalServiceWrapper.java @@ -375,17 +375,16 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, @Override public it.tref.liferay.portos.bo.model.Avviso createStandardAvvisoPratica( - long intPraticaId, java.lang.String stato, - java.lang.String jsonParameters, long classPk, - java.lang.String className, + long intPraticaId, java.lang.String stato, java.lang.String base64File, + long classPk, java.lang.String className, com.liferay.portal.service.ServiceContext serviceContext, java.lang.String tipoAvviso, java.lang.String userCodiceFiscalePrimaFirma, long controlloPraticaId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _avvisoLocalService.createStandardAvvisoPratica(intPraticaId, - stato, jsonParameters, classPk, className, serviceContext, - tipoAvviso, userCodiceFiscalePrimaFirma, controlloPraticaId); + stato, base64File, classPk, className, serviceContext, tipoAvviso, + userCodiceFiscalePrimaFirma, controlloPraticaId); } @Override @@ -455,7 +454,7 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, java.lang.String tipoAvviso, java.lang.String tipoDocumento, long fileEntryIdTemplate, long classPk, java.lang.String className, java.lang.String userCodiceFiscalePrimaFirma, long fileEntryIdBase, - java.lang.String jsonParameters, long intPraticaId, long oldAvvisoId, + java.lang.String jsonParameters, long intPraticaId, java.lang.String inviato, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -463,7 +462,7 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, return _avvisoLocalService.addAvvisoForImport(descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, fileEntryIdBase, jsonParameters, - intPraticaId, oldAvvisoId, inviato, serviceContext); + intPraticaId, inviato, serviceContext); } @Override @@ -787,13 +786,6 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, return _avvisoLocalService.getAvvisiInvioTecnico(start, end); } - @Override - public it.tref.liferay.portos.bo.model.Avviso fetchAvvisoByOldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException { - return _avvisoLocalService.fetchAvvisoByOldAvvisoId(oldAvvisoId); - } - @Override public it.tref.liferay.portos.bo.model.Avviso updateAvvisoInviatoTecnico( long avvisoId, boolean inviatoTecnico) @@ -953,20 +945,6 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, return _avvisoLocalService.assegnaFirma(avvisoId, cf); } - @Override - public java.util.List getAvvisiWithOldFileEntryIdInvio( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _avvisoLocalService.getAvvisiWithOldFileEntryIdInvio(start, end); - } - - @Override - public java.util.List getAvvisiWithOldFileEntryIdBase( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _avvisoLocalService.getAvvisiWithOldFileEntryIdBase(start, end); - } - @Override public java.util.List getAvvisiRifiutatiByControlloPraticaId( long controlloPraticaId) @@ -1022,18 +1000,12 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, return _avvisoLocalService.findByClassPk(classPk); } - /** - * ADT - */ @Override public int countAvvisiInvioTecnicoNew() throws com.liferay.portal.kernel.exception.SystemException { return _avvisoLocalService.countAvvisiInvioTecnicoNew(); } - /** - * ADT - */ @Override public java.util.List getAvvisiInvioTecnicoNew( int start, int end) @@ -1041,14 +1013,6 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, return _avvisoLocalService.getAvvisiInvioTecnicoNew(start, end); } - /** - * ADT - * - * @param intPraticaId - * @param dettPraticaID - * @return - * @throws SystemException - */ @Override public it.tref.liferay.portos.bo.model.Avviso getAvvisoVidimazione( long intPraticaId, long dettPraticaID) @@ -1057,11 +1021,6 @@ public class AvvisoLocalServiceWrapper implements AvvisoLocalService, dettPraticaID); } - /** - * @param intPraticaId - * @return - * @throws SystemException - */ @Override public it.tref.liferay.portos.bo.model.Avviso getLastAvvisoIntegrazione( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java index 61ae9d4a..72ac00d3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ClpSerializer.java @@ -39,14 +39,11 @@ import it.tref.liferay.portos.bo.model.DocAggiuntivaClp; import it.tref.liferay.portos.bo.model.DocPraticaClp; import it.tref.liferay.portos.bo.model.FineLavoriClp; import it.tref.liferay.portos.bo.model.HistoryWorkflowActionClp; -import it.tref.liferay.portos.bo.model.IUVClp; -import it.tref.liferay.portos.bo.model.InfoFascicoloClp; import it.tref.liferay.portos.bo.model.IntPraticaClp; import it.tref.liferay.portos.bo.model.PagamentoClp; import it.tref.liferay.portos.bo.model.ParereGeologoClp; import it.tref.liferay.portos.bo.model.ProvinciaClp; import it.tref.liferay.portos.bo.model.SoggettoClp; -import it.tref.liferay.portos.bo.model.SorteggioClp; import it.tref.liferay.portos.bo.model.StoricoSoggettoPraticaClp; import it.tref.liferay.portos.bo.model.TempisticaClp; import it.tref.liferay.portos.bo.model.TerritorioClp; @@ -182,18 +179,10 @@ public class ClpSerializer { return translateInputHistoryWorkflowAction(oldModel); } - if (oldModelClassName.equals(InfoFascicoloClp.class.getName())) { - return translateInputInfoFascicolo(oldModel); - } - if (oldModelClassName.equals(IntPraticaClp.class.getName())) { return translateInputIntPratica(oldModel); } - if (oldModelClassName.equals(IUVClp.class.getName())) { - return translateInputIUV(oldModel); - } - if (oldModelClassName.equals(PagamentoClp.class.getName())) { return translateInputPagamento(oldModel); } @@ -210,10 +199,6 @@ public class ClpSerializer { return translateInputSoggetto(oldModel); } - if (oldModelClassName.equals(SorteggioClp.class.getName())) { - return translateInputSorteggio(oldModel); - } - if (oldModelClassName.equals(StoricoSoggettoPraticaClp.class.getName())) { return translateInputStoricoSoggettoPratica(oldModel); } @@ -382,16 +367,6 @@ public class ClpSerializer { return newModel; } - public static Object translateInputInfoFascicolo(BaseModel oldModel) { - InfoFascicoloClp oldClpModel = (InfoFascicoloClp)oldModel; - - BaseModel newModel = oldClpModel.getInfoFascicoloRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - public static Object translateInputIntPratica(BaseModel oldModel) { IntPraticaClp oldClpModel = (IntPraticaClp)oldModel; @@ -402,16 +377,6 @@ public class ClpSerializer { return newModel; } - public static Object translateInputIUV(BaseModel oldModel) { - IUVClp oldClpModel = (IUVClp)oldModel; - - BaseModel newModel = oldClpModel.getIUVRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - public static Object translateInputPagamento(BaseModel oldModel) { PagamentoClp oldClpModel = (PagamentoClp)oldModel; @@ -452,16 +417,6 @@ public class ClpSerializer { return newModel; } - public static Object translateInputSorteggio(BaseModel oldModel) { - SorteggioClp oldClpModel = (SorteggioClp)oldModel; - - BaseModel newModel = oldClpModel.getSorteggioRemoteModel(); - - newModel.setModelAttributes(oldClpModel.getModelAttributes()); - - return newModel; - } - public static Object translateInputStoricoSoggettoPratica( BaseModel oldModel) { StoricoSoggettoPraticaClp oldClpModel = (StoricoSoggettoPraticaClp)oldModel; @@ -1028,43 +983,6 @@ public class ClpSerializer { } } - if (oldModelClassName.equals( - "it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl")) { - return translateOutputInfoFascicolo(oldModel); - } - else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod( - "getClpSerializerClass"); - - Class oldClpSerializerClass = (Class)getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", - BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = oldModelClass.getMethod("get" + - oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel)translateOutputMethod.invoke(null, - oldRemoteModel); - - return newModel; - } - catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - if (oldModelClassName.equals( "it.tref.liferay.portos.bo.model.impl.IntPraticaImpl")) { return translateOutputIntPratica(oldModel); @@ -1102,43 +1020,6 @@ public class ClpSerializer { } } - if (oldModelClassName.equals( - "it.tref.liferay.portos.bo.model.impl.IUVImpl")) { - return translateOutputIUV(oldModel); - } - else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod( - "getClpSerializerClass"); - - Class oldClpSerializerClass = (Class)getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", - BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = oldModelClass.getMethod("get" + - oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel)translateOutputMethod.invoke(null, - oldRemoteModel); - - return newModel; - } - catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - if (oldModelClassName.equals( "it.tref.liferay.portos.bo.model.impl.PagamentoImpl")) { return translateOutputPagamento(oldModel); @@ -1287,43 +1168,6 @@ public class ClpSerializer { } } - if (oldModelClassName.equals( - "it.tref.liferay.portos.bo.model.impl.SorteggioImpl")) { - return translateOutputSorteggio(oldModel); - } - else if (oldModelClassName.endsWith("Clp")) { - try { - ClassLoader classLoader = ClpSerializer.class.getClassLoader(); - - Method getClpSerializerClassMethod = oldModelClass.getMethod( - "getClpSerializerClass"); - - Class oldClpSerializerClass = (Class)getClpSerializerClassMethod.invoke(oldModel); - - Class newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); - - Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", - BaseModel.class); - - Class oldModelModelClass = oldModel.getModelClass(); - - Method getRemoteModelMethod = oldModelClass.getMethod("get" + - oldModelModelClass.getSimpleName() + "RemoteModel"); - - Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); - - BaseModel newModel = (BaseModel)translateOutputMethod.invoke(null, - oldRemoteModel); - - return newModel; - } - catch (Throwable t) { - if (_log.isInfoEnabled()) { - _log.info("Unable to translate " + oldModelClassName, t); - } - } - } - if (oldModelClassName.equals( "it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaImpl")) { return translateOutputStoricoSoggettoPratica(oldModel); @@ -1636,20 +1480,11 @@ public class ClpSerializer { return new it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException(); } - if (className.equals( - "it.tref.liferay.portos.bo.NoSuchInfoFascicoloException")) { - return new it.tref.liferay.portos.bo.NoSuchInfoFascicoloException(); - } - if (className.equals( "it.tref.liferay.portos.bo.NoSuchIntPraticaException")) { return new it.tref.liferay.portos.bo.NoSuchIntPraticaException(); } - if (className.equals("it.tref.liferay.portos.bo.NoSuchIUVException")) { - return new it.tref.liferay.portos.bo.NoSuchIUVException(); - } - if (className.equals( "it.tref.liferay.portos.bo.NoSuchPagamentoException")) { return new it.tref.liferay.portos.bo.NoSuchPagamentoException(); @@ -1670,11 +1505,6 @@ public class ClpSerializer { return new it.tref.liferay.portos.bo.NoSuchSoggettoException(); } - if (className.equals( - "it.tref.liferay.portos.bo.NoSuchSorteggioException")) { - return new it.tref.liferay.portos.bo.NoSuchSorteggioException(); - } - if (className.equals( "it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException")) { return new it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException(); @@ -1834,16 +1664,6 @@ public class ClpSerializer { return newModel; } - public static Object translateOutputInfoFascicolo(BaseModel oldModel) { - InfoFascicoloClp newModel = new InfoFascicoloClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setInfoFascicoloRemoteModel(oldModel); - - return newModel; - } - public static Object translateOutputIntPratica(BaseModel oldModel) { IntPraticaClp newModel = new IntPraticaClp(); @@ -1854,16 +1674,6 @@ public class ClpSerializer { return newModel; } - public static Object translateOutputIUV(BaseModel oldModel) { - IUVClp newModel = new IUVClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setIUVRemoteModel(oldModel); - - return newModel; - } - public static Object translateOutputPagamento(BaseModel oldModel) { PagamentoClp newModel = new PagamentoClp(); @@ -1904,16 +1714,6 @@ public class ClpSerializer { return newModel; } - public static Object translateOutputSorteggio(BaseModel oldModel) { - SorteggioClp newModel = new SorteggioClp(); - - newModel.setModelAttributes(oldModel.getModelAttributes()); - - newModel.setSorteggioRemoteModel(oldModel); - - return newModel; - } - public static Object translateOutputStoricoSoggettoPratica( BaseModel oldModel) { StoricoSoggettoPraticaClp newModel = new StoricoSoggettoPraticaClp(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalService.java index bcf536de..bf139b57 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalService.java @@ -432,9 +432,4 @@ public interface CollaudoLocalService extends BaseLocalService, public int countCollaudiCompletiNotGestiti() throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceClp.java index bd1f292f..108efa5c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceClp.java @@ -258,10 +258,6 @@ public class CollaudoLocalServiceClp implements CollaudoLocalService { _methodName47 = "countCollaudiCompletiNotGestiti"; _methodParameterTypes47 = new String[] { }; - - _methodName48 = "fetchByOldDettPraticaId"; - - _methodParameterTypes48 = new String[] { "long" }; } @Override @@ -1843,35 +1839,6 @@ public class CollaudoLocalServiceClp implements CollaudoLocalService { return ((Integer)returnObj).intValue(); } - @Override - public it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, new Object[] { oldDettPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Collaudo)ClpSerializer.translateOutput(returnObj); - } - private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -1967,6 +1934,4 @@ public class CollaudoLocalServiceClp implements CollaudoLocalService { private String[] _methodParameterTypes46; private String _methodName47; private String[] _methodParameterTypes47; - private String _methodName48; - private String[] _methodParameterTypes48; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceUtil.java index 12dea105..45c5bed8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceUtil.java @@ -527,12 +527,6 @@ public class CollaudoLocalServiceUtil { return getService().countCollaudiCompletiNotGestiti(); } - public static it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldDettPraticaId(oldDettPraticaId); - } - public static void clearService() { _service = null; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceWrapper.java index cf820b85..3b698da1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/CollaudoLocalServiceWrapper.java @@ -562,13 +562,6 @@ public class CollaudoLocalServiceWrapper implements CollaudoLocalService, return _collaudoLocalService.countCollaudiCompletiNotGestiti(); } - @Override - public it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _collaudoLocalService.fetchByOldDettPraticaId(oldDettPraticaId); - } - /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java index 70c6a615..77e5d7a9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java @@ -312,6 +312,7 @@ public interface ControlloPraticaLocalService extends BaseLocalService, java.lang.String[] parameterTypes, java.lang.Object[] arguments) throws java.lang.Throwable; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.ControlloPratica addControlloPratica( long groupId, long userId, long intPraticaId, long dettPraticaId, boolean updateFlagControlloObbligatorio, @@ -338,6 +339,7 @@ public interface ControlloPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.ControlloPratica updateStatus( long userId, long resourcePrimKey, int status, com.liferay.portal.service.ServiceContext serviceContext, @@ -352,13 +354,6 @@ public interface ControlloPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - @java.lang.Deprecated - public boolean updateStatoPraticaGeneraDocumentoFinale( - long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - public boolean generaDocumentoFinale(long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, java.util.Map workflowContext) @@ -370,19 +365,6 @@ public interface ControlloPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - @java.lang.Deprecated - public java.lang.String valutazioneEsitoFinale(long controlloPraticaId, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * I valori di ritorno possibili sono: - * approvato,non_approvato,annullato,richiesta_integrazione - * - * @throws SystemException - * @throws PortalException - */ public java.lang.String valutazioneEsitoFinaleUpdateStatoPratica( long controlloPraticaId, java.util.Map workflowContext) @@ -406,6 +388,7 @@ public interface ControlloPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.ControlloPratica addPraticheAlControllo( long controlloPraticaId, long dettPraticaId) throws com.liferay.portal.kernel.exception.PortalException, @@ -413,13 +396,8 @@ public interface ControlloPraticaLocalService extends BaseLocalService, /** * ADT: BUG ID=5 - tracciamento operazione aggiungi varianti al controllo - * - * @param controlloPraticaId - * @param dettPraticaId - * @return - * @throws PortalException - * @throws SystemException */ + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.ControlloPratica addPraticheAlControlloVarianti( long controlloPraticaId, long dettPraticaId, com.liferay.portal.service.ServiceContext serviceContext) @@ -446,12 +424,15 @@ public interface ControlloPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - /** - * ADT: gestione workflow varianti - * - * @param dettPraticaId - * @throws Exception - */ - public void gestioneWFVarianti( - it.tref.liferay.portos.bo.model.ControlloPratica cp); + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public com.liferay.portal.model.Organization getOrganizationByControlloPraticaId( + long controlloPraticaId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java index 9b4eac2b..fd98569f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java @@ -174,73 +174,65 @@ public class ControlloPraticaLocalServiceClp "java.util.Map" }; - _methodName30 = "updateStatoPraticaGeneraDocumentoFinale"; + _methodName30 = "generaDocumentoFinale"; _methodParameterTypes30 = new String[] { "long", "java.lang.String", "long", "java.util.Map" }; - _methodName31 = "generaDocumentoFinale"; + _methodName31 = "updateIstruttore"; - _methodParameterTypes31 = new String[] { - "long", "java.lang.String", "long", "java.util.Map" - }; + _methodParameterTypes31 = new String[] { "long", "java.util.Map" }; - _methodName32 = "updateIstruttore"; + _methodName32 = "valutazioneEsitoFinaleUpdateStatoPratica"; _methodParameterTypes32 = new String[] { "long", "java.util.Map" }; - _methodName33 = "valutazioneEsitoFinale"; + _methodName33 = "aggiornaStatoPerRichiestaIntegrazione"; _methodParameterTypes33 = new String[] { "long", "java.util.Map" }; - _methodName34 = "valutazioneEsitoFinaleUpdateStatoPratica"; + _methodName34 = "getJsonListaIstruttori"; _methodParameterTypes34 = new String[] { "long", "java.util.Map" }; - _methodName35 = "aggiornaStatoPerRichiestaIntegrazione"; + _methodName35 = "getJsonEsitoPratica"; _methodParameterTypes35 = new String[] { "long", "java.util.Map" }; - _methodName36 = "getJsonListaIstruttori"; + _methodName36 = "addPraticheAlControllo"; - _methodParameterTypes36 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes36 = new String[] { "long", "long" }; - _methodName37 = "getJsonEsitoPratica"; + _methodName37 = "addPraticheAlControlloVarianti"; - _methodParameterTypes37 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes37 = new String[] { + "long", "long", "com.liferay.portal.service.ServiceContext" + }; - _methodName38 = "addPraticheAlControllo"; + _methodName38 = "getReturnValueScriptIniziale"; - _methodParameterTypes38 = new String[] { "long", "long" }; + _methodParameterTypes38 = new String[] { "long" }; - _methodName39 = "addPraticheAlControlloVarianti"; + _methodName39 = "getTipoEsito"; - _methodParameterTypes39 = new String[] { - "long", "long", "com.liferay.portal.service.ServiceContext" - }; + _methodParameterTypes39 = new String[] { "long" }; - _methodName40 = "getReturnValueScriptIniziale"; + _methodName40 = "findByIntPratica"; _methodParameterTypes40 = new String[] { "long" }; - _methodName41 = "getTipoEsito"; + _methodName41 = "calculateDateAvvioProcedimento"; _methodParameterTypes41 = new String[] { "long" }; - _methodName42 = "findByIntPratica"; + _methodName42 = "getOrganizationByControlloPraticaId"; _methodParameterTypes42 = new String[] { "long" }; - _methodName43 = "calculateDateAvvioProcedimento"; - - _methodParameterTypes43 = new String[] { "long" }; - - _methodName44 = "gestioneWFVarianti"; + _methodName43 = "getCarichiLavoro"; - _methodParameterTypes44 = new String[] { - "it.tref.liferay.portos.bo.model.ControlloPratica" - }; + _methodParameterTypes43 = new String[] { "long", "int" }; } @Override @@ -1209,50 +1201,6 @@ public class ControlloPraticaLocalServiceClp return ((Boolean)returnObj).booleanValue(); } - @Override - public boolean updateStatoPraticaGeneraDocumentoFinale( - long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, - new Object[] { - controlloPraticaId, - - ClpSerializer.translateInput(jsonParams), - - userIdFirma, - - ClpSerializer.translateInput(workflowContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Boolean)returnObj).booleanValue(); - } - @Override public boolean generaDocumentoFinale(long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, @@ -1262,8 +1210,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { controlloPraticaId, @@ -1303,8 +1251,8 @@ public class ControlloPraticaLocalServiceClp throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, + _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { controlloPraticaId, @@ -1332,45 +1280,6 @@ public class ControlloPraticaLocalServiceClp } } - @Override - public java.lang.String valutazioneEsitoFinale(long controlloPraticaId, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, - new Object[] { - controlloPraticaId, - - ClpSerializer.translateInput(workflowContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.lang.String)ClpSerializer.translateOutput(returnObj); - } - @Override public java.lang.String valutazioneEsitoFinaleUpdateStatoPratica( long controlloPraticaId, @@ -1380,8 +1289,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { controlloPraticaId, @@ -1417,8 +1326,8 @@ public class ControlloPraticaLocalServiceClp throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { controlloPraticaId, @@ -1454,8 +1363,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { controlloPraticaId, @@ -1493,8 +1402,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { controlloPraticaId, @@ -1532,8 +1441,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { controlloPraticaId, dettPraticaId }); } catch (Throwable t) { @@ -1568,8 +1477,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { controlloPraticaId, @@ -1609,8 +1518,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { controlloPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { controlloPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1642,8 +1551,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, new Object[] { controlloPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { controlloPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1675,8 +1584,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1705,8 +1614,8 @@ public class ControlloPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, new Object[] { controlloPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { controlloPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1732,16 +1641,27 @@ public class ControlloPraticaLocalServiceClp } @Override - public void gestioneWFVarianti( - it.tref.liferay.portos.bo.model.ControlloPratica cp) { + public com.liferay.portal.model.Organization getOrganizationByControlloPraticaId( + long controlloPraticaId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + try { - _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, - new Object[] { ClpSerializer.translateInput(cp) }); + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { controlloPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + if (t instanceof RuntimeException) { throw (RuntimeException)t; } @@ -1750,6 +1670,43 @@ public class ControlloPraticaLocalServiceClp " is not a valid exception"); } } + + return (com.liferay.portal.model.Organization)ClpSerializer.translateOutput(returnObj); + } + + @Override + public java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, + new Object[] { controlloPraticaId, giorni }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.Map)ClpSerializer.translateOutput(returnObj); } private InvokableLocalService _invokableLocalService; @@ -1839,6 +1796,4 @@ public class ControlloPraticaLocalServiceClp private String[] _methodParameterTypes42; private String _methodName43; private String[] _methodParameterTypes43; - private String _methodName44; - private String[] _methodParameterTypes44; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java index 4916f826..2af5d001 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java @@ -401,16 +401,6 @@ public class ControlloPraticaLocalServiceUtil { tipoAvviso, userIdFirma, workflowContext); } - public static boolean updateStatoPraticaGeneraDocumentoFinale( - long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .updateStatoPraticaGeneraDocumentoFinale(controlloPraticaId, - jsonParams, userIdFirma, workflowContext); - } - public static boolean generaDocumentoFinale(long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, java.util.Map workflowContext) @@ -428,22 +418,6 @@ public class ControlloPraticaLocalServiceUtil { getService().updateIstruttore(controlloPraticaId, workflowContext); } - public static java.lang.String valutazioneEsitoFinale( - long controlloPraticaId, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .valutazioneEsitoFinale(controlloPraticaId, workflowContext); - } - - /** - * I valori di ritorno possibili sono: - * approvato,non_approvato,annullato,richiesta_integrazione - * - * @throws SystemException - * @throws PortalException - */ public static java.lang.String valutazioneEsitoFinaleUpdateStatoPratica( long controlloPraticaId, java.util.Map workflowContext) @@ -492,12 +466,6 @@ public class ControlloPraticaLocalServiceUtil { /** * ADT: BUG ID=5 - tracciamento operazione aggiungi varianti al controllo - * - * @param controlloPraticaId - * @param dettPraticaId - * @return - * @throws PortalException - * @throws SystemException */ public static it.tref.liferay.portos.bo.model.ControlloPratica addPraticheAlControlloVarianti( long controlloPraticaId, long dettPraticaId, @@ -535,15 +503,19 @@ public class ControlloPraticaLocalServiceUtil { return getService().calculateDateAvvioProcedimento(controlloPraticaId); } - /** - * ADT: gestione workflow varianti - * - * @param dettPraticaId - * @throws Exception - */ - public static void gestioneWFVarianti( - it.tref.liferay.portos.bo.model.ControlloPratica cp) { - getService().gestioneWFVarianti(cp); + public static com.liferay.portal.model.Organization getOrganizationByControlloPraticaId( + long controlloPraticaId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .getOrganizationByControlloPraticaId(controlloPraticaId); + } + + public static java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getCarichiLavoro(controlloPraticaId, giorni); } public static void clearService() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java index c17541f4..a7f2604d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java @@ -427,16 +427,6 @@ public class ControlloPraticaLocalServiceWrapper jsonParams, tipoAvviso, userIdFirma, workflowContext); } - @Override - public boolean updateStatoPraticaGeneraDocumentoFinale( - long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _controlloPraticaLocalService.updateStatoPraticaGeneraDocumentoFinale(controlloPraticaId, - jsonParams, userIdFirma, workflowContext); - } - @Override public boolean generaDocumentoFinale(long controlloPraticaId, java.lang.String jsonParams, long userIdFirma, @@ -456,22 +446,6 @@ public class ControlloPraticaLocalServiceWrapper workflowContext); } - @Override - public java.lang.String valutazioneEsitoFinale(long controlloPraticaId, - java.util.Map workflowContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _controlloPraticaLocalService.valutazioneEsitoFinale(controlloPraticaId, - workflowContext); - } - - /** - * I valori di ritorno possibili sono: - * approvato,non_approvato,annullato,richiesta_integrazione - * - * @throws SystemException - * @throws PortalException - */ @Override public java.lang.String valutazioneEsitoFinaleUpdateStatoPratica( long controlloPraticaId, @@ -520,12 +494,6 @@ public class ControlloPraticaLocalServiceWrapper /** * ADT: BUG ID=5 - tracciamento operazione aggiungi varianti al controllo - * - * @param controlloPraticaId - * @param dettPraticaId - * @return - * @throws PortalException - * @throws SystemException */ @Override public it.tref.liferay.portos.bo.model.ControlloPratica addPraticheAlControlloVarianti( @@ -567,16 +535,21 @@ public class ControlloPraticaLocalServiceWrapper return _controlloPraticaLocalService.calculateDateAvvioProcedimento(controlloPraticaId); } - /** - * ADT: gestione workflow varianti - * - * @param dettPraticaId - * @throws Exception - */ @Override - public void gestioneWFVarianti( - it.tref.liferay.portos.bo.model.ControlloPratica cp) { - _controlloPraticaLocalService.gestioneWFVarianti(cp); + public com.liferay.portal.model.Organization getOrganizationByControlloPraticaId( + long controlloPraticaId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _controlloPraticaLocalService.getOrganizationByControlloPraticaId(controlloPraticaId); + } + + @Override + public java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _controlloPraticaLocalService.getCarichiLavoro(controlloPraticaId, + giorni); } /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalService.java index fce4e3c7..3240daad 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalService.java @@ -334,8 +334,9 @@ public interface DettPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica cloneDettagliSoggetti( - long dettPraticaId, long dettPraticaToCloneId) + long dettPraticaId, long sourceId) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchDettPraticaException; @@ -387,12 +388,6 @@ public interface DettPraticaLocalService extends BaseLocalService, long intPraticaId, long dettPraticaId) throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.DettPratica getByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.List search( com.liferay.portal.kernel.search.SearchContext searchContext) @@ -424,24 +419,15 @@ public interface DettPraticaLocalService extends BaseLocalService, java.lang.String mezzoPagamentoOneri, java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -538,14 +524,11 @@ public interface DettPraticaLocalService extends BaseLocalService, java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -558,7 +541,8 @@ public interface DettPraticaLocalService extends BaseLocalService, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -569,13 +553,11 @@ public interface DettPraticaLocalService extends BaseLocalService, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - boolean varianteSostanziale, boolean collaudoStatico, + boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -637,14 +619,11 @@ public interface DettPraticaLocalService extends BaseLocalService, java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -657,7 +636,7 @@ public interface DettPraticaLocalService extends BaseLocalService, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -668,8 +647,7 @@ public interface DettPraticaLocalService extends BaseLocalService, java.lang.String descLongIntervento, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, boolean lavoriPubblici, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, boolean deInfStradalePonte, boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, @@ -726,7 +704,7 @@ public interface DettPraticaLocalService extends BaseLocalService, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -758,6 +736,7 @@ public interface DettPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaPagamento( long dettPraticaId, java.lang.String importoSpeseIstruttoria, java.lang.String importoBolli, @@ -779,19 +758,23 @@ public interface DettPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updateCheckPagamenti( long dettPraticaId, boolean normEsenteSpese, boolean normEsenteBollo) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, - java.lang.String stato) + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException; - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, - long fileEntryId, java.lang.String stato) + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, long fileEntryId, + java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException; @@ -800,12 +783,14 @@ public interface DettPraticaLocalService extends BaseLocalService, public boolean isControlloObbligatorio( it.tref.liferay.portos.bo.model.DettPratica dettPratica); + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updateEsito( long dettPraticaId, int stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updateEsitoIntegrazione( long dettPraticaId, int stato) throws com.liferay.portal.kernel.exception.PortalException, @@ -841,6 +826,7 @@ public interface DettPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaProtocollo( long dettPraticaId, java.lang.String protocollo) throws com.liferay.portal.kernel.exception.PortalException, @@ -893,27 +879,18 @@ public interface DettPraticaLocalService extends BaseLocalService, long intPraticaId, java.lang.String tipoIntegrazione, boolean completa) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findPraticheCompletateNonVersionate( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countPraticheCompletateNonversionate() - throws com.liferay.portal.kernel.exception.SystemException; - + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaGestita( long dettPraticaId, boolean gestita) throws com.liferay.portal.kernel.exception.SystemException; - public void updateAsset( - it.tref.liferay.portos.bo.model.DettPratica dettPratica, - long[] categoryIds, boolean visible) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public void updateStatus(long dettPraticaId, int status) + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) + public it.tref.liferay.portos.bo.model.DettPratica updateStatus( + long dettPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updateSignal( long dettPraticaId, java.util.Date dtInvioSignal) throws com.liferay.portal.kernel.exception.SystemException; @@ -939,41 +916,34 @@ public interface DettPraticaLocalService extends BaseLocalService, long pagamentoId) throws com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.DettPratica updatePrincipale( long dettPraticaId, java.lang.String codiceFiscale, java.lang.String tipologiaSoggetto) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public void sendToVersioning(long dettPraticaId, java.lang.String url) - throws java.lang.Exception; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public int getNumeroDiVersioni(java.lang.String url) - throws java.lang.Exception, java.lang.NumberFormatException; + public java.util.List getDettPraticaFields(); @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.lang.String getVersionNumber(java.lang.String url, int version) - throws java.lang.Exception; + public java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; - public com.liferay.portal.kernel.json.JSONArray callForChanges( - java.lang.String url) throws java.lang.Exception; + public java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; + public boolean isNumber(java.lang.String field); + + public java.lang.String format(java.lang.String field, + java.io.Serializable value); public int countVariateByIntPratica(long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * ADT: nuovo metodo per stampa fascicolo - * - * @param intPraticaId - * @return - * @throws SystemException - */ @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public it.tref.liferay.portos.bo.model.DettPratica getFirstCompletedByIntPratica( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceClp.java index c5b13543..cc9e46b4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceClp.java @@ -197,44 +197,37 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { _methodParameterTypes36 = new String[] { "long", "long" }; - _methodName37 = "getByOldDettPraticaId"; + _methodName37 = "search"; - _methodParameterTypes37 = new String[] { "long" }; - - _methodName38 = "search"; - - _methodParameterTypes38 = new String[] { + _methodParameterTypes37 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName39 = "searchCount"; + _methodName38 = "searchCount"; - _methodParameterTypes39 = new String[] { + _methodParameterTypes38 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName40 = "updateDettPraticaSoggetti"; + _methodName39 = "updateDettPraticaSoggetti"; - _methodParameterTypes40 = new String[] { + _methodParameterTypes39 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName41 = "updateDettPratica"; + _methodName40 = "updateDettPratica"; - _methodParameterTypes41 = new String[] { + _methodParameterTypes40 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.util.Date", "int", "boolean", "long", - "long", "java.lang.String", "java.lang.String", + "java.lang.String", "java.util.Date", "int", "long", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.String", "long", "long", - "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "boolean", "java.util.Date", "java.util.Date", - "java.util.Date", "java.lang.String", "boolean", "long", "int", + "java.lang.String", "long", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "long", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -270,26 +263,23 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", - "java.lang.String", "java.lang.String", "boolean", + "boolean", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "com.liferay.portal.service.ServiceContext", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", "java.lang.Boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "double" + "boolean", "boolean", "boolean", "double", "java.lang.String" }; - _methodName42 = "updateDettPraticaDatiDomanda"; + _methodName41 = "updateDettPraticaDatiDomanda"; - _methodParameterTypes42 = new String[] { + _methodParameterTypes41 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "boolean", "java.lang.String", "java.lang.String", - "java.lang.String", "boolean", "java.lang.String", "boolean", - "long", "int", "java.lang.String", "java.lang.String", + "boolean", "java.lang.String", "java.lang.String", + "java.lang.String", "boolean", "long", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -311,47 +301,44 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "boolean", "boolean", "boolean", + "java.lang.String", "java.lang.String", "boolean", + "java.lang.String", "com.liferay.portal.service.ServiceContext", + "boolean", "java.lang.String", "java.lang.String", + "java.lang.String", "java.lang.String", "java.lang.Boolean", + "java.lang.Boolean", "java.lang.Boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "java.lang.String", - "java.lang.String", "boolean", "java.lang.String", - "com.liferay.portal.service.ServiceContext", "boolean", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", - "java.lang.Boolean", "java.lang.String", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean" + "boolean", "boolean", "boolean", "java.lang.String" }; - _methodName43 = "updateDettPraticaDatiIntegrazione"; + _methodName42 = "updateDettPraticaDatiIntegrazione"; - _methodParameterTypes43 = new String[] { + _methodParameterTypes42 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", - "java.lang.String", "java.lang.String", "boolean", "boolean", - "boolean", "boolean", "java.lang.String", "java.lang.String", - "java.lang.String", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "java.lang.String", - "boolean", "boolean", "boolean", "boolean", "boolean", - "java.lang.String", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", + "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "java.lang.String", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", + "boolean", "boolean", "java.lang.String", "boolean", "boolean", + "boolean", "boolean", "boolean", "java.lang.String", "boolean", + "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "java.lang.String", "boolean", "boolean", + "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "boolean", "boolean", "boolean", "com.liferay.portal.service.ServiceContext", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean" + "boolean", "boolean", "boolean", "java.lang.String" }; - _methodName44 = "updateDettPraticaGeologo"; + _methodName43 = "updateDettPraticaGeologo"; - _methodParameterTypes44 = new String[] { + _methodParameterTypes43 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -363,9 +350,9 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { "com.liferay.portal.service.ServiceContext", "boolean" }; - _methodName45 = "updateDettPraticaPagamento"; + _methodName44 = "updateDettPraticaPagamento"; - _methodParameterTypes45 = new String[] { + _methodParameterTypes44 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", @@ -375,39 +362,39 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { "java.lang.Double", "com.liferay.portal.service.ServiceContext" }; - _methodName46 = "updateCheckPagamenti"; + _methodName45 = "updateCheckPagamenti"; - _methodParameterTypes46 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes45 = new String[] { "long", "boolean", "boolean" }; - _methodName47 = "updateEsitoPagamento"; + _methodName46 = "updateEsitoPagamento"; - _methodParameterTypes47 = new String[] { + _methodParameterTypes46 = new String[] { "long", "long", "java.lang.String" }; - _methodName48 = "updateEsitoPagamento"; + _methodName47 = "updateEsitoPagamento"; - _methodParameterTypes48 = new String[] { + _methodParameterTypes47 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName49 = "isControlloObbligatorio"; + _methodName48 = "isControlloObbligatorio"; - _methodParameterTypes49 = new String[] { + _methodParameterTypes48 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName50 = "updateEsito"; + _methodName49 = "updateEsito"; - _methodParameterTypes50 = new String[] { "long", "int" }; + _methodParameterTypes49 = new String[] { "long", "int" }; - _methodName51 = "updateEsitoIntegrazione"; + _methodName50 = "updateEsitoIntegrazione"; - _methodParameterTypes51 = new String[] { "long", "int" }; + _methodParameterTypes50 = new String[] { "long", "int" }; - _methodName52 = "pagaInvia"; + _methodName51 = "pagaInvia"; - _methodParameterTypes52 = new String[] { + _methodParameterTypes51 = new String[] { "long", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", @@ -418,149 +405,136 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { "com.liferay.portal.service.ServiceContext" }; - _methodName53 = "updateStatus"; + _methodName52 = "updateStatus"; - _methodParameterTypes53 = new String[] { + _methodParameterTypes52 = new String[] { "long", "long", "int", "com.liferay.portal.service.ServiceContext" }; - _methodName54 = "updateDettPraticaProtocollo"; + _methodName53 = "updateDettPraticaProtocollo"; - _methodParameterTypes54 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes53 = new String[] { "long", "java.lang.String" }; - _methodName55 = "findByProtocollo"; + _methodName54 = "findByProtocollo"; - _methodParameterTypes55 = new String[] { + _methodParameterTypes54 = new String[] { "long", "long", "java.lang.String" }; - _methodName56 = "fetchByProtocollo"; + _methodName55 = "fetchByProtocollo"; - _methodParameterTypes56 = new String[] { + _methodParameterTypes55 = new String[] { "long", "long", "java.lang.String" }; - _methodName57 = "fetchByProtocollo"; + _methodName56 = "fetchByProtocollo"; - _methodParameterTypes57 = new String[] { "java.lang.String" }; + _methodParameterTypes56 = new String[] { "java.lang.String" }; - _methodName58 = "findByIntPraticaId"; + _methodName57 = "findByIntPraticaId"; - _methodParameterTypes58 = new String[] { "long" }; + _methodParameterTypes57 = new String[] { "long" }; - _methodName59 = "findByIntPraticaIdInviate"; + _methodName58 = "findByIntPraticaIdInviate"; - _methodParameterTypes59 = new String[] { "long", "int", "int" }; + _methodParameterTypes58 = new String[] { "long", "int", "int" }; - _methodName60 = "findPraticheCompleteNotProtocollo"; + _methodName59 = "findPraticheCompleteNotProtocollo"; - _methodParameterTypes60 = new String[] { "int", "int" }; + _methodParameterTypes59 = new String[] { "int", "int" }; - _methodName61 = "countPraticheCompleteNotProtocollo"; + _methodName60 = "countPraticheCompleteNotProtocollo"; - _methodParameterTypes61 = new String[] { }; + _methodParameterTypes60 = new String[] { }; - _methodName62 = "findPraticheCompleteNotGestite"; + _methodName61 = "findPraticheCompleteNotGestite"; - _methodParameterTypes62 = new String[] { "int", "int" }; + _methodParameterTypes61 = new String[] { "int", "int" }; - _methodName63 = "countPraticheCompleteNotGestite"; + _methodName62 = "countPraticheCompleteNotGestite"; - _methodParameterTypes63 = new String[] { }; + _methodParameterTypes62 = new String[] { }; - _methodName64 = "findByIntPraticaId_TipoIntegrazione_Completa"; + _methodName63 = "findByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes64 = new String[] { + _methodParameterTypes63 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName65 = "countByIntPraticaId_TipoIntegrazione_Completa"; + _methodName64 = "countByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes65 = new String[] { + _methodParameterTypes64 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName66 = "findPraticheCompletateNonVersionate"; + _methodName65 = "updateDettPraticaGestita"; - _methodParameterTypes66 = new String[] { "int", "int" }; + _methodParameterTypes65 = new String[] { "long", "boolean" }; - _methodName67 = "countPraticheCompletateNonversionate"; + _methodName66 = "updateStatus"; - _methodParameterTypes67 = new String[] { }; + _methodParameterTypes66 = new String[] { "long", "int" }; - _methodName68 = "updateDettPraticaGestita"; + _methodName67 = "updateSignal"; - _methodParameterTypes68 = new String[] { "long", "boolean" }; + _methodParameterTypes67 = new String[] { "long", "java.util.Date" }; - _methodName69 = "updateAsset"; + _methodName68 = "countInvioSignal"; - _methodParameterTypes69 = new String[] { - "it.tref.liferay.portos.bo.model.DettPratica", "long[][]", - "boolean" - }; + _methodParameterTypes68 = new String[] { }; - _methodName70 = "updateStatus"; + _methodName69 = "getInvioSignal"; - _methodParameterTypes70 = new String[] { "long", "int" }; + _methodParameterTypes69 = new String[] { "long" }; - _methodName71 = "updateSignal"; + _methodName70 = "getInviiSignal"; - _methodParameterTypes71 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes70 = new String[] { "int", "int" }; - _methodName72 = "countInvioSignal"; + _methodName71 = "dynamicQueryInvioSignal"; - _methodParameterTypes72 = new String[] { }; + _methodParameterTypes71 = new String[] { "java.lang.Long" }; - _methodName73 = "getInvioSignal"; + _methodName72 = "findByPagamentoId"; - _methodParameterTypes73 = new String[] { "long" }; + _methodParameterTypes72 = new String[] { "long" }; - _methodName74 = "getInviiSignal"; - - _methodParameterTypes74 = new String[] { "int", "int" }; - - _methodName75 = "dynamicQueryInvioSignal"; - - _methodParameterTypes75 = new String[] { "java.lang.Long" }; - - _methodName76 = "findByPagamentoId"; - - _methodParameterTypes76 = new String[] { "long" }; + _methodName73 = "updatePrincipale"; - _methodName77 = "updatePrincipale"; - - _methodParameterTypes77 = new String[] { + _methodParameterTypes73 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName78 = "sendToVersioning"; + _methodName74 = "getDettPraticaFields"; - _methodParameterTypes78 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes74 = new String[] { }; - _methodName79 = "getNumeroDiVersioni"; + _methodName75 = "getVersioni"; - _methodParameterTypes79 = new String[] { "java.lang.String" }; + _methodParameterTypes75 = new String[] { "long" }; - _methodName80 = "getVersionNumber"; + _methodName76 = "callForChanges"; - _methodParameterTypes80 = new String[] { "java.lang.String", "int" }; + _methodParameterTypes76 = new String[] { "long" }; - _methodName81 = "callForChanges"; + _methodName77 = "isNumber"; - _methodParameterTypes81 = new String[] { "java.lang.String" }; + _methodParameterTypes77 = new String[] { "java.lang.String" }; - _methodName82 = "fetchByOldDettPraticaId"; + _methodName78 = "format"; - _methodParameterTypes82 = new String[] { "long" }; + _methodParameterTypes78 = new String[] { + "java.lang.String", "java.io.Serializable" + }; - _methodName83 = "countVariateByIntPratica"; + _methodName79 = "countVariateByIntPratica"; - _methodParameterTypes83 = new String[] { "long" }; + _methodParameterTypes79 = new String[] { "long" }; - _methodName84 = "getFirstCompletedByIntPratica"; + _methodName80 = "getFirstCompletedByIntPratica"; - _methodParameterTypes84 = new String[] { "long" }; + _methodParameterTypes80 = new String[] { "long" }; } @Override @@ -1377,7 +1351,7 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { @Override public it.tref.liferay.portos.bo.model.DettPratica cloneDettagliSoggetti( - long dettPraticaId, long dettPraticaToCloneId) + long dettPraticaId, long sourceId) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchDettPraticaException { Object returnObj = null; @@ -1385,7 +1359,7 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { try { returnObj = _invokableLocalService.invokeMethod(_methodName26, _methodParameterTypes26, - new Object[] { dettPraticaId, dettPraticaToCloneId }); + new Object[] { dettPraticaId, sourceId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1728,40 +1702,6 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.DettPratica getByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, new Object[] { oldDettPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.DettPratica)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List search( com.liferay.portal.kernel.search.SearchContext searchContext) @@ -1770,8 +1710,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { ClpSerializer.translateInput(searchContext) }); } catch (Throwable t) { @@ -1804,8 +1744,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { ClpSerializer.translateInput(searchContext) }); } catch (Throwable t) { @@ -1839,8 +1779,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { userId, @@ -1892,24 +1832,15 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { java.lang.String mezzoPagamentoOneri, java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -2006,14 +1937,11 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -2026,14 +1954,15 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { userId, @@ -2065,12 +1994,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { statusTask, - workflowForzato, - soggettoSostituitoId, - oldDettPraticaId, - ClpSerializer.translateInput(destinazione), ClpSerializer.translateInput(ag), @@ -2085,12 +2010,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { ClpSerializer.translateInput(estremiPratCom), - variataDa, - varianteNumero, - varianteSostanziale, - operaConforme, collaudoStatico, @@ -2103,28 +2024,12 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { ClpSerializer.translateInput(codiceFiscaleDelegatoCollaudo), - ClpSerializer.translateInput(codiceRuoloDelegato), - - lavoriInEconomiaCommittente, - - inizioLavoriContestualeOpera, - - ClpSerializer.translateInput(dataInizioLavoriOpera), - - ClpSerializer.translateInput(dataInizioEsecuzioneOpera), - - ClpSerializer.translateInput(dataFineEsecuzioneOpera), - - ClpSerializer.translateInput(metratura), - lavoriPubblici, pagamentoIdOneri, lavoriPubbliciPercentuale, - ClpSerializer.translateInput(numeroCivico), - ClpSerializer.translateInput(dcParticelle), ClpSerializer.translateInput(dcFoglio), @@ -2407,34 +2312,14 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { normDpr02Aut, - normDm01, - - normDm02, - - normDm03, - normDm2018, - normDprg01, - - normDprg02, - normAnr, normArt3com3, normArt3com4, - normOrd01, - - normDm04, - - normDm05, - - normCI01, - - normLTC01, - suap, normSismaBonus, @@ -2485,7 +2370,9 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { normLavoriNoDirettore, - pagSoggettiAdAutorizzazione + pagSoggettiAdAutorizzazione, + + ClpSerializer.translateInput(interventoVoceP7) }); } catch (Throwable t) { @@ -2518,13 +2405,11 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - boolean varianteSostanziale, boolean collaudoStatico, + boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -2586,14 +2471,11 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -2606,14 +2488,14 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { userId, @@ -2637,8 +2519,6 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { ClpSerializer.translateInput(estremiPratCom), - varianteSostanziale, - collaudoStatico, ClpSerializer.translateInput( @@ -2649,18 +2529,12 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { ClpSerializer.translateInput(codiceFiscaleDelegatoCollaudo), - lavoriInEconomiaCommittente, - - ClpSerializer.translateInput(metratura), - lavoriPubblici, pagamentoIdOneri, lavoriPubbliciPercentuale, - ClpSerializer.translateInput(numeroCivico), - ClpSerializer.translateInput(dcParticelle), ClpSerializer.translateInput(dcFoglio), @@ -2863,34 +2737,14 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { normDpr02Aut, - normDm01, - - normDm02, - - normDm03, - normDm2018, - normDprg01, - - normDprg02, - normAnr, normArt3com3, normArt3com4, - normOrd01, - - normDm04, - - normDm05, - - normCI01, - - normLTC01, - suap, normSismaBonus, @@ -2939,7 +2793,9 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { sanatoriaEdilizia326, - normLavoriNoDirettore + normLavoriNoDirettore, + + ClpSerializer.translateInput(interventoVoceP7) }); } catch (Throwable t) { @@ -2972,8 +2828,7 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { java.lang.String descLongIntervento, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, boolean lavoriPubblici, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, boolean deInfStradalePonte, boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, @@ -3030,14 +2885,14 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { userId, @@ -3061,8 +2916,6 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { ClpSerializer.translateInput(codiceFiscaleDelegatoCollaudo), - lavoriInEconomiaCommittente, - lavoriPubblici, deInfStradalePonte, @@ -3235,7 +3088,9 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { sanatoriaEdilizia326, - normLavoriNoDirettore + normLavoriNoDirettore, + + ClpSerializer.translateInput(interventoVoceP7) }); } catch (Throwable t) { @@ -3291,8 +3146,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { userId, @@ -3398,8 +3253,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { dettPraticaId, @@ -3473,8 +3328,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { dettPraticaId, normEsenteSpese, normEsenteBollo }); } catch (Throwable t) { @@ -3501,21 +3356,23 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { } @Override - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, - java.lang.String stato) + public it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { + Object returnObj = null; + try { - _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, - new Object[] { - pagamentoId, - - dettPraticaId, - - ClpSerializer.translateInput(stato) - }); + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, + new Object[] { + pagamentoId, + + dettPraticaId, + + ClpSerializer.translateInput(stato) + }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3540,26 +3397,31 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { " is not a valid exception"); } } + + return (it.tref.liferay.portos.bo.model.DettPratica)ClpSerializer.translateOutput(returnObj); } @Override - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, - long fileEntryId, java.lang.String stato) + public it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, long fileEntryId, + java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { + Object returnObj = null; + try { - _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, - new Object[] { - pagamentoId, - - dettPraticaId, - - fileEntryId, - - ClpSerializer.translateInput(stato) - }); + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, + new Object[] { + pagamentoId, + + dettPraticaId, + + fileEntryId, + + ClpSerializer.translateInput(stato) + }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3584,6 +3446,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { " is not a valid exception"); } } + + return (it.tref.liferay.portos.bo.model.DettPratica)ClpSerializer.translateOutput(returnObj); } @Override @@ -3592,8 +3456,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { ClpSerializer.translateInput(dettPratica) }); } catch (Throwable t) { @@ -3620,8 +3484,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { dettPraticaId, stato }); } catch (Throwable t) { @@ -3660,8 +3524,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { dettPraticaId, stato }); } catch (Throwable t) { @@ -3716,8 +3580,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { dettPraticaId, @@ -3794,8 +3658,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { userId, @@ -3837,8 +3701,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { dettPraticaId, @@ -3876,8 +3740,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { companyId, @@ -3917,8 +3781,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { companyId, @@ -3958,8 +3822,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ClpSerializer.translateInput(protocollo) }); } catch (Throwable t) { @@ -3992,8 +3856,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4021,8 +3885,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { intPraticaId, start, end }); } catch (Throwable t) { @@ -4051,8 +3915,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4079,8 +3943,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4108,8 +3972,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4136,8 +4000,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4165,8 +4029,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { intPraticaId, @@ -4201,8 +4065,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { intPraticaId, @@ -4230,63 +4094,6 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { return ((Integer)returnObj).intValue(); } - @Override - public java.util.List findPraticheCompletateNonVersionate( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countPraticheCompletateNonversionate() - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - @Override public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaGestita( long dettPraticaId, boolean gestita) @@ -4294,8 +4101,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { dettPraticaId, gestita }); } catch (Throwable t) { @@ -4318,50 +4125,16 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { } @Override - public void updateAsset( - it.tref.liferay.portos.bo.model.DettPratica dettPratica, - long[] categoryIds, boolean visible) + public it.tref.liferay.portos.bo.model.DettPratica updateStatus( + long dettPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { - try { - _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, - new Object[] { - ClpSerializer.translateInput(dettPratica), - - ClpSerializer.translateInput(categoryIds), - - visible - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - } + Object returnObj = null; - @Override - public void updateStatus(long dettPraticaId, int status) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, new Object[] { dettPraticaId, status }); + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, + new Object[] { dettPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4382,6 +4155,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { " is not a valid exception"); } } + + return (it.tref.liferay.portos.bo.model.DettPratica)ClpSerializer.translateOutput(returnObj); } @Override @@ -4391,8 +4166,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { dettPraticaId, @@ -4424,8 +4199,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4453,8 +4228,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4482,8 +4257,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4511,8 +4286,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName75, - _methodParameterTypes75, + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { ClpSerializer.translateInput(dettPraticaId) }); } catch (Throwable t) { @@ -4541,8 +4316,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { pagamentoId }); + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { pagamentoId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4572,8 +4347,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { dettPraticaId, @@ -4606,20 +4381,16 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { } @Override - public void sendToVersioning(long dettPraticaId, java.lang.String url) - throws java.lang.Exception { + public java.util.List getDettPraticaFields() { + Object returnObj = null; + try { - _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, - new Object[] { dettPraticaId, ClpSerializer.translateInput(url) }); + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } @@ -4628,27 +4399,25 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { " is not a valid exception"); } } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); } @Override - public int getNumeroDiVersioni(java.lang.String url) - throws java.lang.Exception, java.lang.NumberFormatException { + public java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, - new Object[] { ClpSerializer.translateInput(url) }); + returnObj = _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; - } - - if (t instanceof java.lang.NumberFormatException) { - throw (java.lang.NumberFormatException)t; + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { @@ -4660,24 +4429,24 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { } } - return ((Integer)returnObj).intValue(); + return (java.util.List)ClpSerializer.translateOutput(returnObj); } @Override - public java.lang.String getVersionNumber(java.lang.String url, int version) - throws java.lang.Exception { + public java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, - new Object[] { ClpSerializer.translateInput(url), version }); + returnObj = _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { @@ -4689,26 +4458,21 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { } } - return (java.lang.String)ClpSerializer.translateOutput(returnObj); + return (java.util.List>)ClpSerializer.translateOutput(returnObj); } @Override - public com.liferay.portal.kernel.json.JSONArray callForChanges( - java.lang.String url) throws java.lang.Exception { + public boolean isNumber(java.lang.String field) { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, - new Object[] { ClpSerializer.translateInput(url) }); + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, + new Object[] { ClpSerializer.translateInput(field) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } @@ -4718,26 +4482,26 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { } } - return (com.liferay.portal.kernel.json.JSONArray)ClpSerializer.translateOutput(returnObj); + return ((Boolean)returnObj).booleanValue(); } @Override - public it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { + public java.lang.String format(java.lang.String field, + java.io.Serializable value) { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, new Object[] { oldDettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, + new Object[] { + ClpSerializer.translateInput(field), + + ClpSerializer.translateInput(value) + }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } @@ -4747,7 +4511,7 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { } } - return (it.tref.liferay.portos.bo.model.DettPratica)ClpSerializer.translateOutput(returnObj); + return (java.lang.String)ClpSerializer.translateOutput(returnObj); } @Override @@ -4756,8 +4520,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4785,8 +4549,8 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4968,12 +4732,4 @@ public class DettPraticaLocalServiceClp implements DettPraticaLocalService { private String[] _methodParameterTypes79; private String _methodName80; private String[] _methodParameterTypes80; - private String _methodName81; - private String[] _methodParameterTypes81; - private String _methodName82; - private String[] _methodParameterTypes82; - private String _methodName83; - private String[] _methodParameterTypes83; - private String _methodName84; - private String[] _methodParameterTypes84; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceUtil.java index 2ce82e48..5fe027cf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceUtil.java @@ -367,11 +367,10 @@ public class DettPraticaLocalServiceUtil { } public static it.tref.liferay.portos.bo.model.DettPratica cloneDettagliSoggetti( - long dettPraticaId, long dettPraticaToCloneId) + long dettPraticaId, long sourceId) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchDettPraticaException { - return getService() - .cloneDettagliSoggetti(dettPraticaId, dettPraticaToCloneId); + return getService().cloneDettagliSoggetti(dettPraticaId, sourceId); } public static it.tref.liferay.portos.bo.model.DettPratica addDettPraticaForImport( @@ -448,13 +447,6 @@ public class DettPraticaLocalServiceUtil { dettPraticaId); } - public static it.tref.liferay.portos.bo.model.DettPratica getByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getByOldDettPraticaId(oldDettPraticaId); - } - public static java.util.List search( com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -492,24 +484,15 @@ public class DettPraticaLocalServiceUtil { java.lang.String mezzoPagamentoOneri, java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -606,14 +589,11 @@ public class DettPraticaLocalServiceUtil { java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -626,7 +606,8 @@ public class DettPraticaLocalServiceUtil { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() @@ -634,18 +615,13 @@ public class DettPraticaLocalServiceUtil { integrazione, protocollo, tipoIntegrazione, completa, gestita, codicePagamentoOneri, causalePagamentoOneri, mezzoPagamentoOneri, importoBolli, importoSpeseIstruttoria, dataEffettuazione, - statusTask, workflowForzato, soggettoSostituitoId, - oldDettPraticaId, destinazione, ag, descLongIntervento, via, - localita, estremiCatastali, estremiPratCom, variataDa, - varianteNumero, varianteSostanziale, operaConforme, - collaudoStatico, codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, - codiceRuoloDelegato, lavoriInEconomiaCommittente, - inizioLavoriContestualeOpera, dataInizioLavoriOpera, - dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, - lavoriPubblici, pagamentoIdOneri, lavoriPubbliciPercentuale, - numeroCivico, dcParticelle, dcFoglio, dcAllegato, dePiani, - deAltezza, deInterrati, deSuperficie, deCostruzione, + statusTask, soggettoSostituitoId, destinazione, ag, + descLongIntervento, via, localita, estremiCatastali, + estremiPratCom, varianteNumero, operaConforme, collaudoStatico, + codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, + codiceFiscaleDelegatoCollaudo, lavoriPubblici, pagamentoIdOneri, + lavoriPubbliciPercentuale, dcParticelle, dcFoglio, dcAllegato, + dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, @@ -696,18 +672,16 @@ public class DettPraticaLocalServiceUtil { tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, - normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, - normDm02, normDm03, normDm2018, normDprg01, normDprg02, normAnr, - normArt3com3, normArt3com4, normOrd01, normDm04, normDm05, - normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, - clRischioPostInt, intervFinPub, intervFinPubDesc, serviceContext, - bozza, paesaggioLocale, livelloDiTutela, vincoli, + normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm2018, + normAnr, normArt3com3, normArt3com4, suap, normSismaBonus, + clRischioPreInt, clRischioPostInt, intervFinPub, intervFinPubDesc, + serviceContext, bozza, paesaggioLocale, livelloDiTutela, vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore, pagSoggettiAdAutorizzazione); + normLavoriNoDirettore, pagSoggettiAdAutorizzazione, interventoVoceP7); } public static it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaDatiDomanda( @@ -716,13 +690,11 @@ public class DettPraticaLocalServiceUtil { java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - boolean varianteSostanziale, boolean collaudoStatico, + boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -784,14 +756,11 @@ public class DettPraticaLocalServiceUtil { java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -804,24 +773,22 @@ public class DettPraticaLocalServiceUtil { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .updateDettPraticaDatiDomanda(userId, dettPraticaId, intPraticaId, tipoIntegrazione, destinazione, ag, descLongIntervento, via, localita, estremiCatastali, - estremiPratCom, varianteSostanziale, collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, lavoriInEconomiaCommittente, - metratura, lavoriPubblici, pagamentoIdOneri, - lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, - dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, - deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, - deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, - deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, - deInfOperaAccIdraulica, deInfOperaAccAltro, + estremiPratCom, collaudoStatico, codiceFiscaleDelegatoCommittente, + codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, + lavoriPubblici, pagamentoIdOneri, lavoriPubbliciPercentuale, + dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, + deInterrati, deSuperficie, deCostruzione, deRistrutturazione, + deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, + deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, + deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, + deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, @@ -852,18 +819,16 @@ public class DettPraticaLocalServiceUtil { tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, normDpr01Dep, normDpr02Dep, - normDpr01Aut, normDpr02Aut, normDm01, normDm02, normDm03, - normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, - normArt3com4, normOrd01, normDm04, normDm05, normCI01, normLTC01, - suap, normSismaBonus, clRischioPreInt, clRischioPostInt, - intervFinPub, intervFinPubDesc, serviceContext, bozza, - paesaggioLocale, livelloDiTutela, vincoli, + normDpr01Aut, normDpr02Aut, normDm2018, normAnr, normArt3com3, + normArt3com4, suap, normSismaBonus, clRischioPreInt, + clRischioPostInt, intervFinPub, intervFinPubDesc, serviceContext, + bozza, paesaggioLocale, livelloDiTutela, vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore); + normLavoriNoDirettore, interventoVoceP7); } public static it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaDatiIntegrazione( @@ -872,8 +837,7 @@ public class DettPraticaLocalServiceUtil { java.lang.String descLongIntervento, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, boolean lavoriPubblici, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, boolean deInfStradalePonte, boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, @@ -930,7 +894,7 @@ public class DettPraticaLocalServiceUtil { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() @@ -938,12 +902,11 @@ public class DettPraticaLocalServiceUtil { intPraticaId, tipoIntegrazione, destinazione, descLongIntervento, collaudoStatico, codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, - lavoriInEconomiaCommittente, lavoriPubblici, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, - deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, - deInfOperaAccIdraulica, deInfOperaAccAltro, - deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, - dccFondazioni, dccStruttureEleMuraturePietrame, + lavoriPubblici, deInfStradalePonte, deInfStradaleStrada, + deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, + deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, + deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, + deInfAltroDesc, dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, @@ -973,7 +936,7 @@ public class DettPraticaLocalServiceUtil { serviceContext, bozza, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore); + normLavoriNoDirettore, interventoVoceP7); } public static it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaGeologo( @@ -1058,21 +1021,24 @@ public class DettPraticaLocalServiceUtil { normEsenteBollo); } - public static void updateEsitoPagamento(long pagamentoId, - long dettPraticaId, java.lang.String stato) + public static it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { - getService().updateEsitoPagamento(pagamentoId, dettPraticaId, stato); + return getService() + .updateEsitoPagamento(pagamentoId, dettPraticaId, stato); } - public static void updateEsitoPagamento(long pagamentoId, - long dettPraticaId, long fileEntryId, java.lang.String stato) + public static it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, long fileEntryId, + java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { - getService() - .updateEsitoPagamento(pagamentoId, dettPraticaId, fileEntryId, stato); + return getService() + .updateEsitoPagamento(pagamentoId, dettPraticaId, + fileEntryId, stato); } public static boolean isControlloObbligatorio( @@ -1217,35 +1183,17 @@ public class DettPraticaLocalServiceUtil { tipoIntegrazione, completa); } - public static java.util.List findPraticheCompletateNonVersionate( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findPraticheCompletateNonVersionate(start, end); - } - - public static int countPraticheCompletateNonversionate() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countPraticheCompletateNonversionate(); - } - public static it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaGestita( long dettPraticaId, boolean gestita) throws com.liferay.portal.kernel.exception.SystemException { return getService().updateDettPraticaGestita(dettPraticaId, gestita); } - public static void updateAsset( - it.tref.liferay.portos.bo.model.DettPratica dettPratica, - long[] categoryIds, boolean visible) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - getService().updateAsset(dettPratica, categoryIds, visible); - } - - public static void updateStatus(long dettPraticaId, int status) + public static it.tref.liferay.portos.bo.model.DettPratica updateStatus( + long dettPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { - getService().updateStatus(dettPraticaId, status); + return getService().updateStatus(dettPraticaId, status); } public static it.tref.liferay.portos.bo.model.DettPratica updateSignal( @@ -1293,30 +1241,29 @@ public class DettPraticaLocalServiceUtil { tipologiaSoggetto); } - public static void sendToVersioning(long dettPraticaId, java.lang.String url) - throws java.lang.Exception { - getService().sendToVersioning(dettPraticaId, url); + public static java.util.List getDettPraticaFields() { + return getService().getDettPraticaFields(); } - public static int getNumeroDiVersioni(java.lang.String url) - throws java.lang.Exception, java.lang.NumberFormatException { - return getService().getNumeroDiVersioni(url); + public static java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getVersioni(intPraticaId); } - public static java.lang.String getVersionNumber(java.lang.String url, - int version) throws java.lang.Exception { - return getService().getVersionNumber(url, version); + public static java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().callForChanges(intPraticaId); } - public static com.liferay.portal.kernel.json.JSONArray callForChanges( - java.lang.String url) throws java.lang.Exception { - return getService().callForChanges(url); + public static boolean isNumber(java.lang.String field) { + return getService().isNumber(field); } - public static it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldDettPraticaId(oldDettPraticaId); + public static java.lang.String format(java.lang.String field, + java.io.Serializable value) { + return getService().format(field, value); } public static int countVariateByIntPratica(long intPraticaId) @@ -1324,13 +1271,6 @@ public class DettPraticaLocalServiceUtil { return getService().countVariateByIntPratica(intPraticaId); } - /** - * ADT: nuovo metodo per stampa fascicolo - * - * @param intPraticaId - * @return - * @throws SystemException - */ public static it.tref.liferay.portos.bo.model.DettPratica getFirstCompletedByIntPratica( long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceWrapper.java index 8026c5e0..4e73517e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaLocalServiceWrapper.java @@ -390,11 +390,11 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, @Override public it.tref.liferay.portos.bo.model.DettPratica cloneDettagliSoggetti( - long dettPraticaId, long dettPraticaToCloneId) + long dettPraticaId, long sourceId) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchDettPraticaException { return _dettPraticaLocalService.cloneDettagliSoggetti(dettPraticaId, - dettPraticaToCloneId); + sourceId); } @Override @@ -474,14 +474,6 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, dettPraticaId); } - @Override - public it.tref.liferay.portos.bo.model.DettPratica getByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _dettPraticaLocalService.getByOldDettPraticaId(oldDettPraticaId); - } - @Override public java.util.List search( com.liferay.portal.kernel.search.SearchContext searchContext) @@ -522,24 +514,15 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, java.lang.String mezzoPagamentoOneri, java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -636,14 +619,11 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -656,7 +636,8 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dettPraticaLocalService.updateDettPratica(userId, @@ -664,16 +645,11 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, tipoIntegrazione, completa, gestita, codicePagamentoOneri, causalePagamentoOneri, mezzoPagamentoOneri, importoBolli, importoSpeseIstruttoria, dataEffettuazione, statusTask, - workflowForzato, soggettoSostituitoId, oldDettPraticaId, - destinazione, ag, descLongIntervento, via, localita, - estremiCatastali, estremiPratCom, variataDa, varianteNumero, - varianteSostanziale, operaConforme, collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, - lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, - dataInizioLavoriOpera, dataInizioEsecuzioneOpera, - dataFineEsecuzioneOpera, metratura, lavoriPubblici, - pagamentoIdOneri, lavoriPubbliciPercentuale, numeroCivico, + soggettoSostituitoId, destinazione, ag, descLongIntervento, via, + localita, estremiCatastali, estremiPratCom, varianteNumero, + operaConforme, collaudoStatico, codiceFiscaleDelegatoCommittente, + codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, + lavoriPubblici, pagamentoIdOneri, lavoriPubbliciPercentuale, dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, @@ -726,18 +702,16 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, - normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, - normDm02, normDm03, normDm2018, normDprg01, normDprg02, normAnr, - normArt3com3, normArt3com4, normOrd01, normDm04, normDm05, - normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, - clRischioPostInt, intervFinPub, intervFinPubDesc, serviceContext, - bozza, paesaggioLocale, livelloDiTutela, vincoli, + normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm2018, + normAnr, normArt3com3, normArt3com4, suap, normSismaBonus, + clRischioPreInt, clRischioPostInt, intervFinPub, intervFinPubDesc, + serviceContext, bozza, paesaggioLocale, livelloDiTutela, vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore, pagSoggettiAdAutorizzazione); + normLavoriNoDirettore, pagSoggettiAdAutorizzazione, interventoVoceP7); } @Override @@ -747,13 +721,11 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - boolean varianteSostanziale, boolean collaudoStatico, + boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoIdOneri, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -815,14 +787,11 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, java.lang.String vincoli, @@ -835,23 +804,21 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dettPraticaLocalService.updateDettPraticaDatiDomanda(userId, dettPraticaId, intPraticaId, tipoIntegrazione, destinazione, ag, descLongIntervento, via, localita, estremiCatastali, - estremiPratCom, varianteSostanziale, collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, lavoriInEconomiaCommittente, - metratura, lavoriPubblici, pagamentoIdOneri, - lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, - dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, - deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, - deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, - deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, - deInfOperaAccIdraulica, deInfOperaAccAltro, + estremiPratCom, collaudoStatico, codiceFiscaleDelegatoCommittente, + codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, + lavoriPubblici, pagamentoIdOneri, lavoriPubbliciPercentuale, + dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, + deInterrati, deSuperficie, deCostruzione, deRistrutturazione, + deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, + deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, + deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, + deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, @@ -882,18 +849,16 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, normDpr01Dep, normDpr02Dep, - normDpr01Aut, normDpr02Aut, normDm01, normDm02, normDm03, - normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, - normArt3com4, normOrd01, normDm04, normDm05, normCI01, normLTC01, - suap, normSismaBonus, clRischioPreInt, clRischioPostInt, - intervFinPub, intervFinPubDesc, serviceContext, bozza, - paesaggioLocale, livelloDiTutela, vincoli, + normDpr01Aut, normDpr02Aut, normDm2018, normAnr, normArt3com3, + normArt3com4, suap, normSismaBonus, clRischioPreInt, + clRischioPostInt, intervFinPub, intervFinPubDesc, serviceContext, + bozza, paesaggioLocale, livelloDiTutela, vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore); + normLavoriNoDirettore, interventoVoceP7); } @Override @@ -903,8 +868,7 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, java.lang.String descLongIntervento, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, boolean lavoriPubblici, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, boolean deInfStradalePonte, boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, @@ -961,19 +925,19 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) + boolean normLavoriNoDirettore, java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dettPraticaLocalService.updateDettPraticaDatiIntegrazione(userId, dettPraticaId, intPraticaId, tipoIntegrazione, destinazione, descLongIntervento, collaudoStatico, codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, lavoriInEconomiaCommittente, - lavoriPubblici, deInfStradalePonte, deInfStradaleStrada, - deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, - deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, - deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, - deInfAltroDesc, dccFondazioni, dccStruttureEleMuraturePietrame, + codiceFiscaleDelegatoCollaudo, lavoriPubblici, deInfStradalePonte, + deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, + deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, + deInfOperaAccIdraulica, deInfOperaAccAltro, + deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, + dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, @@ -1003,7 +967,7 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, serviceContext, bozza, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore); + normLavoriNoDirettore, interventoVoceP7); } @Override @@ -1089,22 +1053,23 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, } @Override - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, - java.lang.String stato) + public it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { - _dettPraticaLocalService.updateEsitoPagamento(pagamentoId, + return _dettPraticaLocalService.updateEsitoPagamento(pagamentoId, dettPraticaId, stato); } @Override - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, - long fileEntryId, java.lang.String stato) + public it.tref.liferay.portos.bo.model.DettPratica updateEsitoPagamento( + long pagamentoId, long dettPraticaId, long fileEntryId, + java.lang.String stato) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, java.io.IOException { - _dettPraticaLocalService.updateEsitoPagamento(pagamentoId, + return _dettPraticaLocalService.updateEsitoPagamento(pagamentoId, dettPraticaId, fileEntryId, stato); } @@ -1271,20 +1236,6 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, tipoIntegrazione, completa); } - @Override - public java.util.List findPraticheCompletateNonVersionate( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _dettPraticaLocalService.findPraticheCompletateNonVersionate(start, - end); - } - - @Override - public int countPraticheCompletateNonversionate() - throws com.liferay.portal.kernel.exception.SystemException { - return _dettPraticaLocalService.countPraticheCompletateNonversionate(); - } - @Override public it.tref.liferay.portos.bo.model.DettPratica updateDettPraticaGestita( long dettPraticaId, boolean gestita) @@ -1294,19 +1245,11 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, } @Override - public void updateAsset( - it.tref.liferay.portos.bo.model.DettPratica dettPratica, - long[] categoryIds, boolean visible) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - _dettPraticaLocalService.updateAsset(dettPratica, categoryIds, visible); - } - - @Override - public void updateStatus(long dettPraticaId, int status) + public it.tref.liferay.portos.bo.model.DettPratica updateStatus( + long dettPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { - _dettPraticaLocalService.updateStatus(dettPraticaId, status); + return _dettPraticaLocalService.updateStatus(dettPraticaId, status); } @Override @@ -1362,34 +1305,33 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, } @Override - public void sendToVersioning(long dettPraticaId, java.lang.String url) - throws java.lang.Exception { - _dettPraticaLocalService.sendToVersioning(dettPraticaId, url); + public java.util.List getDettPraticaFields() { + return _dettPraticaLocalService.getDettPraticaFields(); } @Override - public int getNumeroDiVersioni(java.lang.String url) - throws java.lang.Exception, java.lang.NumberFormatException { - return _dettPraticaLocalService.getNumeroDiVersioni(url); + public java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return _dettPraticaLocalService.getVersioni(intPraticaId); } @Override - public java.lang.String getVersionNumber(java.lang.String url, int version) - throws java.lang.Exception { - return _dettPraticaLocalService.getVersionNumber(url, version); + public java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return _dettPraticaLocalService.callForChanges(intPraticaId); } @Override - public com.liferay.portal.kernel.json.JSONArray callForChanges( - java.lang.String url) throws java.lang.Exception { - return _dettPraticaLocalService.callForChanges(url); + public boolean isNumber(java.lang.String field) { + return _dettPraticaLocalService.isNumber(field); } @Override - public it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _dettPraticaLocalService.fetchByOldDettPraticaId(oldDettPraticaId); + public java.lang.String format(java.lang.String field, + java.io.Serializable value) { + return _dettPraticaLocalService.format(field, value); } @Override @@ -1398,13 +1340,6 @@ public class DettPraticaLocalServiceWrapper implements DettPraticaLocalService, return _dettPraticaLocalService.countVariateByIntPratica(intPraticaId); } - /** - * ADT: nuovo metodo per stampa fascicolo - * - * @param intPraticaId - * @return - * @throws SystemException - */ @Override public it.tref.liferay.portos.bo.model.DettPratica getFirstCompletedByIntPratica( long intPraticaId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaService.java index 96f79f88..1f5f7713 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaService.java @@ -123,24 +123,15 @@ public interface DettPraticaService extends BaseService, InvokableService { java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoId, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoId, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -237,14 +228,11 @@ public interface DettPraticaService extends BaseService, InvokableService { java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, @@ -257,7 +245,8 @@ public interface DettPraticaService extends BaseService, InvokableService { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -335,16 +324,20 @@ public interface DettPraticaService extends BaseService, InvokableService { com.liferay.portal.kernel.exception.SystemException; @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public int getNumeroDiVersioni(long intPraticaId, long companyId) - throws java.lang.Exception; + public java.util.List getDettPraticaFields(); @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.lang.String getJsonVersion(long intPraticaId, long companyId, - int version) throws java.lang.Exception; + public java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; - public java.lang.String callForChanges(long intPraticaId, long companyId, - int version) throws java.lang.Exception; + public java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public boolean isNumber(java.lang.String field); - public void sendToVersioning(long dettPraticaId, long companyId) - throws java.lang.Exception; + public java.lang.String format(java.lang.String field, + java.io.Serializable value); } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceClp.java index f02454cb..ed29f711 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceClp.java @@ -83,15 +83,12 @@ public class DettPraticaServiceClp implements DettPraticaService { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.util.Date", "int", "boolean", "long", - "long", "java.lang.String", "java.lang.String", + "java.lang.String", "java.util.Date", "int", "long", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.String", "long", "long", - "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "boolean", "java.util.Date", "java.util.Date", - "java.util.Date", "java.lang.String", "boolean", "long", "int", + "java.lang.String", "long", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "long", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -127,15 +124,14 @@ public class DettPraticaServiceClp implements DettPraticaService { "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", - "java.lang.String", "java.lang.String", "boolean", + "boolean", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "com.liferay.portal.service.ServiceContext", "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", "java.lang.Boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "double" + "boolean", "boolean", "boolean", "boolean", "boolean", "double", + "java.lang.String" }; _methodName12 = "fetchDettPratica"; @@ -193,21 +189,27 @@ public class DettPraticaServiceClp implements DettPraticaService { "long", "java.lang.String", "java.lang.String" }; - _methodName23 = "getNumeroDiVersioni"; + _methodName23 = "getDettPraticaFields"; - _methodParameterTypes23 = new String[] { "long", "long" }; + _methodParameterTypes23 = new String[] { }; - _methodName24 = "getJsonVersion"; + _methodName24 = "getVersioni"; - _methodParameterTypes24 = new String[] { "long", "long", "int" }; + _methodParameterTypes24 = new String[] { "long" }; _methodName25 = "callForChanges"; - _methodParameterTypes25 = new String[] { "long", "long", "int" }; + _methodParameterTypes25 = new String[] { "long" }; + + _methodName26 = "isNumber"; + + _methodParameterTypes26 = new String[] { "java.lang.String" }; - _methodName26 = "sendToVersioning"; + _methodName27 = "format"; - _methodParameterTypes26 = new String[] { "long", "long" }; + _methodParameterTypes27 = new String[] { + "java.lang.String", "java.io.Serializable" + }; } @Override @@ -588,24 +590,15 @@ public class DettPraticaServiceClp implements DettPraticaService { java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoId, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoId, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -702,14 +695,11 @@ public class DettPraticaServiceClp implements DettPraticaService { java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, @@ -722,7 +712,8 @@ public class DettPraticaServiceClp implements DettPraticaService { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -761,12 +752,8 @@ public class DettPraticaServiceClp implements DettPraticaService { statusTask, - workflowForzato, - soggettoSostituitoId, - oldDettPraticaId, - ClpSerializer.translateInput(destinazione), ClpSerializer.translateInput(ag), @@ -781,12 +768,8 @@ public class DettPraticaServiceClp implements DettPraticaService { ClpSerializer.translateInput(estremiPratCom), - variataDa, - varianteNumero, - varianteSostanziale, - operaConforme, collaudoStatico, @@ -799,28 +782,12 @@ public class DettPraticaServiceClp implements DettPraticaService { ClpSerializer.translateInput(codiceFiscaleDelegatoCollaudo), - ClpSerializer.translateInput(codiceRuoloDelegato), - - lavoriInEconomiaCommittente, - - inizioLavoriContestualeOpera, - - ClpSerializer.translateInput(dataInizioLavoriOpera), - - ClpSerializer.translateInput(dataInizioEsecuzioneOpera), - - ClpSerializer.translateInput(dataFineEsecuzioneOpera), - - ClpSerializer.translateInput(metratura), - lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, - ClpSerializer.translateInput(numeroCivico), - ClpSerializer.translateInput(dcParticelle), ClpSerializer.translateInput(dcFoglio), @@ -1103,34 +1070,14 @@ public class DettPraticaServiceClp implements DettPraticaService { normDpr02Aut, - normDm01, - - normDm02, - - normDm03, - normDm2018, - normDprg01, - - normDprg02, - normAnr, normArt3com3, normArt3com4, - normOrd01, - - normDm04, - - normDm05, - - normCI01, - - normLTC01, - suap, normSismaBonus, @@ -1185,7 +1132,9 @@ public class DettPraticaServiceClp implements DettPraticaService { normLavoriNoDirettore, - pagSoggettiAdAutorizzazione + pagSoggettiAdAutorizzazione, + + ClpSerializer.translateInput(interventoVoceP7) }); } catch (Throwable t) { @@ -1657,22 +1606,16 @@ public class DettPraticaServiceClp implements DettPraticaService { } @Override - public int getNumeroDiVersioni(long intPraticaId, long companyId) - throws java.lang.Exception { + public java.util.List getDettPraticaFields() { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName23, - _methodParameterTypes23, - new Object[] { intPraticaId, companyId }); + _methodParameterTypes23, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } @@ -1682,24 +1625,24 @@ public class DettPraticaServiceClp implements DettPraticaService { } } - return ((Integer)returnObj).intValue(); + return (java.util.List)ClpSerializer.translateOutput(returnObj); } @Override - public java.lang.String getJsonVersion(long intPraticaId, long companyId, - int version) throws java.lang.Exception { + public java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName24, - _methodParameterTypes24, - new Object[] { intPraticaId, companyId, version }); + _methodParameterTypes24, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { @@ -1711,24 +1654,24 @@ public class DettPraticaServiceClp implements DettPraticaService { } } - return (java.lang.String)ClpSerializer.translateOutput(returnObj); + return (java.util.List)ClpSerializer.translateOutput(returnObj); } @Override - public java.lang.String callForChanges(long intPraticaId, long companyId, - int version) throws java.lang.Exception { + public java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName25, - _methodParameterTypes25, - new Object[] { intPraticaId, companyId, version }); + _methodParameterTypes25, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; } if (t instanceof RuntimeException) { @@ -1740,23 +1683,49 @@ public class DettPraticaServiceClp implements DettPraticaService { } } - return (java.lang.String)ClpSerializer.translateOutput(returnObj); + return (java.util.List>)ClpSerializer.translateOutput(returnObj); } @Override - public void sendToVersioning(long dettPraticaId, long companyId) - throws java.lang.Exception { + public boolean isNumber(java.lang.String field) { + Object returnObj = null; + try { - _invokableService.invokeMethod(_methodName26, - _methodParameterTypes26, - new Object[] { dettPraticaId, companyId }); + returnObj = _invokableService.invokeMethod(_methodName26, + _methodParameterTypes26, + new Object[] { ClpSerializer.translateInput(field) }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); } + } + + return ((Boolean)returnObj).booleanValue(); + } + + @Override + public java.lang.String format(java.lang.String field, + java.io.Serializable value) { + Object returnObj = null; + + try { + returnObj = _invokableService.invokeMethod(_methodName27, + _methodParameterTypes27, + new Object[] { + ClpSerializer.translateInput(field), + + ClpSerializer.translateInput(value) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); if (t instanceof RuntimeException) { throw (RuntimeException)t; @@ -1766,6 +1735,8 @@ public class DettPraticaServiceClp implements DettPraticaService { " is not a valid exception"); } } + + return (java.lang.String)ClpSerializer.translateOutput(returnObj); } private InvokableService _invokableService; @@ -1821,4 +1792,6 @@ public class DettPraticaServiceClp implements DettPraticaService { private String[] _methodParameterTypes25; private String _methodName26; private String[] _methodParameterTypes26; + private String _methodName27; + private String[] _methodParameterTypes27; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceUtil.java index 8583a4c3..c4e55667 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceUtil.java @@ -143,24 +143,15 @@ public class DettPraticaServiceUtil { java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoId, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoId, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -257,14 +248,11 @@ public class DettPraticaServiceUtil { java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, @@ -277,7 +265,8 @@ public class DettPraticaServiceUtil { boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() @@ -285,22 +274,17 @@ public class DettPraticaServiceUtil { integrazione, protocollo, tipoIntegrazione, completa, gestita, codicePagamento, causalePagamento, mezzoPagamento, importoBolli, importoSpeseIstruttoria, dataEffettuazione, statusTask, - workflowForzato, soggettoSostituitoId, oldDettPraticaId, - destinazione, ag, descLongIntervento, via, localita, - estremiCatastali, estremiPratCom, variataDa, varianteNumero, - varianteSostanziale, operaConforme, collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, - lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, - dataInizioLavoriOpera, dataInizioEsecuzioneOpera, - dataFineEsecuzioneOpera, metratura, lavoriPubblici, pagamentoId, - lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, - dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, - deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, - deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, - deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, - deInfOperaAccIdraulica, deInfOperaAccAltro, + soggettoSostituitoId, destinazione, ag, descLongIntervento, via, + localita, estremiCatastali, estremiPratCom, varianteNumero, + operaConforme, collaudoStatico, codiceFiscaleDelegatoCommittente, + codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, + lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, + dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, + deInterrati, deSuperficie, deCostruzione, deRistrutturazione, + deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, + deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, + deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, + deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, @@ -347,18 +331,17 @@ public class DettPraticaServiceUtil { tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, - normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, - normDm02, normDm03, normDm2018, normDprg01, normDprg02, normAnr, - normArt3com3, normArt3com4, normOrd01, normDm04, normDm05, - normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, - clRischioPostInt, intervFinPub, intervFinPubDesc, serviceContext, - bozza, disabledSubmit, geoDisabledSubmit, paesaggioLocale, - livelloDiTutela, vincoli, destinazioneAltroIntervento, - tcCostruzioniEsistenti, tcManutOrdStraord, tcAltriInterventi, - tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, + normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm2018, + normAnr, normArt3com3, normArt3com4, suap, normSismaBonus, + clRischioPreInt, clRischioPostInt, intervFinPub, intervFinPubDesc, + serviceContext, bozza, disabledSubmit, geoDisabledSubmit, + paesaggioLocale, livelloDiTutela, vincoli, + destinazioneAltroIntervento, tcCostruzioniEsistenti, + tcManutOrdStraord, tcAltriInterventi, tcAltriInterventiDesc, + noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore, pagSoggettiAdAutorizzazione); + normLavoriNoDirettore, pagSoggettiAdAutorizzazione, interventoVoceP7); } public static it.tref.liferay.portos.bo.model.DettPratica fetchDettPratica( @@ -473,24 +456,29 @@ public class DettPraticaServiceUtil { tipologiaSoggetto); } - public static int getNumeroDiVersioni(long intPraticaId, long companyId) - throws java.lang.Exception { - return getService().getNumeroDiVersioni(intPraticaId, companyId); + public static java.util.List getDettPraticaFields() { + return getService().getDettPraticaFields(); + } + + public static java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().getVersioni(intPraticaId); } - public static java.lang.String getJsonVersion(long intPraticaId, - long companyId, int version) throws java.lang.Exception { - return getService().getJsonVersion(intPraticaId, companyId, version); + public static java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().callForChanges(intPraticaId); } - public static java.lang.String callForChanges(long intPraticaId, - long companyId, int version) throws java.lang.Exception { - return getService().callForChanges(intPraticaId, companyId, version); + public static boolean isNumber(java.lang.String field) { + return getService().isNumber(field); } - public static void sendToVersioning(long dettPraticaId, long companyId) - throws java.lang.Exception { - getService().sendToVersioning(dettPraticaId, companyId); + public static java.lang.String format(java.lang.String field, + java.io.Serializable value) { + return getService().format(field, value); } public static void clearService() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceWrapper.java index f505d78b..78553dee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DettPraticaServiceWrapper.java @@ -143,24 +143,15 @@ public class DettPraticaServiceWrapper implements DettPraticaService, java.lang.String importoBolli, java.lang.String importoSpeseIstruttoria, java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, + long soggettoSostituitoId, java.lang.String destinazione, java.lang.String ag, java.lang.String descLongIntervento, java.lang.String via, java.lang.String localita, java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, java.lang.String codiceFiscaleDelegatoCommittente, java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoId, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, + java.lang.String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, + long pagamentoId, int lavoriPubbliciPercentuale, java.lang.String dcParticelle, java.lang.String dcFoglio, java.lang.String dcAllegato, java.lang.String dePiani, java.lang.String deAltezza, java.lang.String deInterrati, @@ -257,14 +248,11 @@ public class DettPraticaServiceWrapper implements DettPraticaService, java.lang.String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, + boolean normAnr, boolean normArt3com3, boolean normArt3com4, + boolean suap, boolean normSismaBonus, java.lang.String clRischioPreInt, + java.lang.String clRischioPostInt, boolean intervFinPub, + java.lang.String intervFinPubDesc, com.liferay.portal.service.ServiceContext serviceContext, boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, @@ -277,25 +265,21 @@ public class DettPraticaServiceWrapper implements DettPraticaService, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) + boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + java.lang.String interventoVoceP7) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _dettPraticaService.updateDettPratica(userId, dettPraticaId, intPraticaId, integrazione, protocollo, tipoIntegrazione, completa, gestita, codicePagamento, causalePagamento, mezzoPagamento, importoBolli, importoSpeseIstruttoria, dataEffettuazione, - statusTask, workflowForzato, soggettoSostituitoId, - oldDettPraticaId, destinazione, ag, descLongIntervento, via, - localita, estremiCatastali, estremiPratCom, variataDa, - varianteNumero, varianteSostanziale, operaConforme, - collaudoStatico, codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, - codiceRuoloDelegato, lavoriInEconomiaCommittente, - inizioLavoriContestualeOpera, dataInizioLavoriOpera, - dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, - lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, - numeroCivico, dcParticelle, dcFoglio, dcAllegato, dePiani, - deAltezza, deInterrati, deSuperficie, deCostruzione, + statusTask, soggettoSostituitoId, destinazione, ag, + descLongIntervento, via, localita, estremiCatastali, + estremiPratCom, varianteNumero, operaConforme, collaudoStatico, + codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, + codiceFiscaleDelegatoCollaudo, lavoriPubblici, pagamentoId, + lavoriPubbliciPercentuale, dcParticelle, dcFoglio, dcAllegato, + dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, @@ -346,18 +330,17 @@ public class DettPraticaServiceWrapper implements DettPraticaService, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, - normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, - normDm02, normDm03, normDm2018, normDprg01, normDprg02, normAnr, - normArt3com3, normArt3com4, normOrd01, normDm04, normDm05, - normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, - clRischioPostInt, intervFinPub, intervFinPubDesc, serviceContext, - bozza, disabledSubmit, geoDisabledSubmit, paesaggioLocale, - livelloDiTutela, vincoli, destinazioneAltroIntervento, - tcCostruzioniEsistenti, tcManutOrdStraord, tcAltriInterventi, - tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, + normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm2018, + normAnr, normArt3com3, normArt3com4, suap, normSismaBonus, + clRischioPreInt, clRischioPostInt, intervFinPub, intervFinPubDesc, + serviceContext, bozza, disabledSubmit, geoDisabledSubmit, + paesaggioLocale, livelloDiTutela, vincoli, + destinazioneAltroIntervento, tcCostruzioniEsistenti, + tcManutOrdStraord, tcAltriInterventi, tcAltriInterventiDesc, + noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore, pagSoggettiAdAutorizzazione); + normLavoriNoDirettore, pagSoggettiAdAutorizzazione, interventoVoceP7); } @Override @@ -478,29 +461,33 @@ public class DettPraticaServiceWrapper implements DettPraticaService, } @Override - public int getNumeroDiVersioni(long intPraticaId, long companyId) - throws java.lang.Exception { - return _dettPraticaService.getNumeroDiVersioni(intPraticaId, companyId); + public java.util.List getDettPraticaFields() { + return _dettPraticaService.getDettPraticaFields(); } @Override - public java.lang.String getJsonVersion(long intPraticaId, long companyId, - int version) throws java.lang.Exception { - return _dettPraticaService.getJsonVersion(intPraticaId, companyId, - version); + public java.util.List getVersioni( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return _dettPraticaService.getVersioni(intPraticaId); + } + + @Override + public java.util.List> callForChanges( + long intPraticaId) + throws com.liferay.portal.kernel.exception.SystemException { + return _dettPraticaService.callForChanges(intPraticaId); } @Override - public java.lang.String callForChanges(long intPraticaId, long companyId, - int version) throws java.lang.Exception { - return _dettPraticaService.callForChanges(intPraticaId, companyId, - version); + public boolean isNumber(java.lang.String field) { + return _dettPraticaService.isNumber(field); } @Override - public void sendToVersioning(long dettPraticaId, long companyId) - throws java.lang.Exception { - _dettPraticaService.sendToVersioning(dettPraticaId, companyId); + public java.lang.String format(java.lang.String field, + java.io.Serializable value) { + return _dettPraticaService.format(field, value); } /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalService.java index 61ce0a6f..6c15fbd8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalService.java @@ -353,9 +353,4 @@ public interface DocAggiuntivaLocalService extends BaseLocalService, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByOldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceClp.java index e83698b9..4da47f25 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceClp.java @@ -183,10 +183,6 @@ public class DocAggiuntivaLocalServiceClp implements DocAggiuntivaLocalService { "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - - _methodName33 = "fetchByOldFileEntryId"; - - _methodParameterTypes33 = new String[] { "long" }; } @Override @@ -1215,35 +1211,6 @@ public class DocAggiuntivaLocalServiceClp implements DocAggiuntivaLocalService { return (it.tref.liferay.portos.bo.model.DocAggiuntiva)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByOldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { oldFileEntryId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.DocAggiuntiva)ClpSerializer.translateOutput(returnObj); - } - private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -1309,6 +1276,4 @@ public class DocAggiuntivaLocalServiceClp implements DocAggiuntivaLocalService { private String[] _methodParameterTypes31; private String _methodName32; private String[] _methodParameterTypes32; - private String _methodName33; - private String[] _methodParameterTypes33; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceUtil.java index ffe40e52..0edc0ca5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceUtil.java @@ -407,12 +407,6 @@ public class DocAggiuntivaLocalServiceUtil { descrizione, feVisible, content, sourceFileName, serviceContext); } - public static it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByOldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldFileEntryId(oldFileEntryId); - } - public static void clearService() { _service = null; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceWrapper.java index 99f3945a..634ff56d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocAggiuntivaLocalServiceWrapper.java @@ -437,13 +437,6 @@ public class DocAggiuntivaLocalServiceWrapper sourceFileName, serviceContext); } - @Override - public it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByOldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException { - return _docAggiuntivaLocalService.fetchByOldFileEntryId(oldFileEntryId); - } - /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalService.java index 9f14d37b..b8e9cf9f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalService.java @@ -338,18 +338,6 @@ public interface DocPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.DocPratica addDocPraticaForImport( - long userId, java.lang.String className, long classPk, - long intPraticaId, byte[] dlFileEntry, java.lang.String fileName, - java.lang.String version, boolean praticaValidata, - java.lang.String descLong, java.lang.String tipologia, - java.lang.String sha256, boolean aggiornato, - java.lang.String jsonFirmatari, long dettPraticaIdRimozione, - java.util.Date dtDataRimozione, long oldDocPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - public com.liferay.portal.kernel.repository.model.FileEntry addAttachment( long classPk, long intPraticaId, long delegaUserId, java.lang.String sourceFileName, byte[] content, @@ -445,11 +433,6 @@ public interface DocPraticaLocalService extends BaseLocalService, long dlFileEntryId, java.lang.String version) throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPraticaId( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findDistinctDlFileEntryId( long classPk, java.lang.String tipologia, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; @@ -515,11 +498,6 @@ public interface DocPraticaLocalService extends BaseLocalService, public void completeInvalidation(long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getDocPraticaWithOldFileEntryId( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.DocPratica addDocPraticaAnnullamento( long userId, java.lang.String className, long classPk, long intPraticaId, long fileEntryId, java.lang.String fileName, @@ -529,17 +507,6 @@ public interface DocPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - /** - * Metodo nuovo ADT - * - * @param intPraticaId - * @param classPk - * @param tipologia - * @param start - * @param end - * @return - * @throws SystemException - */ public java.util.List findByIntPratica_ClassPk_TipologiaNew( long intPraticaId, long classPk, java.lang.String tipologia, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceClp.java index 05b015e9..50a58ab5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceClp.java @@ -157,205 +157,187 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { "com.liferay.portal.service.ServiceContext" }; - _methodName26 = "addDocPraticaForImport"; + _methodName26 = "addAttachment"; _methodParameterTypes26 = new String[] { - "long", "java.lang.String", "long", "long", "byte[][]", - "java.lang.String", "java.lang.String", "boolean", - "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "java.lang.String", "long", "java.util.Date", "long", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName27 = "addAttachment"; - - _methodParameterTypes27 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String" }; - _methodName28 = "getAttachment"; + _methodName27 = "getAttachment"; - _methodParameterTypes28 = new String[] { "long" }; + _methodParameterTypes27 = new String[] { "long" }; - _methodName29 = "addFirma"; + _methodName28 = "addFirma"; - _methodParameterTypes29 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes28 = new String[] { "long", "java.lang.String" }; - _methodName30 = "addFirmeAndApprova"; + _methodName29 = "addFirmeAndApprova"; - _methodParameterTypes30 = new String[] { "long", "java.util.List" }; + _methodParameterTypes29 = new String[] { "long", "java.util.List" }; - _methodName31 = "addErrorAndApprova"; + _methodName30 = "addErrorAndApprova"; - _methodParameterTypes31 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes30 = new String[] { "long", "java.lang.String" }; - _methodName32 = "removeFirma"; + _methodName31 = "removeFirma"; - _methodParameterTypes32 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes31 = new String[] { "long", "java.lang.String" }; - _methodName33 = "updateDocPraticaAggiornato"; + _methodName32 = "updateDocPraticaAggiornato"; - _methodParameterTypes33 = new String[] { "long", "boolean" }; + _methodParameterTypes32 = new String[] { "long", "boolean" }; - _methodName34 = "countDocPraticaDaInviareDax"; + _methodName33 = "countDocPraticaDaInviareDax"; - _methodParameterTypes34 = new String[] { }; + _methodParameterTypes33 = new String[] { }; - _methodName35 = "getDocPraticaDaInviareDax"; + _methodName34 = "getDocPraticaDaInviareDax"; - _methodParameterTypes35 = new String[] { "int", "int" }; + _methodParameterTypes34 = new String[] { "int", "int" }; - _methodName36 = "countByClassPk"; + _methodName35 = "countByClassPk"; - _methodParameterTypes36 = new String[] { "long" }; + _methodParameterTypes35 = new String[] { "long" }; - _methodName37 = "findByClassPk"; + _methodName36 = "findByClassPk"; - _methodParameterTypes37 = new String[] { "long", "int", "int" }; + _methodParameterTypes36 = new String[] { "long", "int", "int" }; - _methodName38 = "findByIntPratica"; + _methodName37 = "findByIntPratica"; - _methodParameterTypes38 = new String[] { "long" }; + _methodParameterTypes37 = new String[] { "long" }; - _methodName39 = "findByClassPk"; + _methodName38 = "findByClassPk"; - _methodParameterTypes39 = new String[] { "long" }; + _methodParameterTypes38 = new String[] { "long" }; - _methodName40 = "findByStaus"; + _methodName39 = "findByStaus"; - _methodParameterTypes40 = new String[] { + _methodParameterTypes39 = new String[] { "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName41 = "countByStatus"; + _methodName40 = "countByStatus"; - _methodParameterTypes41 = new String[] { "long" }; + _methodParameterTypes40 = new String[] { "long" }; - _methodName42 = "countByClassPk_Tipologia"; + _methodName41 = "countByClassPk_Tipologia"; - _methodParameterTypes42 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes41 = new String[] { "long", "java.lang.String" }; - _methodName43 = "findByClassPk_Tipologia"; + _methodName42 = "findByClassPk_Tipologia"; - _methodParameterTypes43 = new String[] { + _methodParameterTypes42 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName44 = "findByIntPratica_Tipologia"; + _methodName43 = "findByIntPratica_Tipologia"; - _methodParameterTypes44 = new String[] { + _methodParameterTypes43 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName45 = "findByIntPratica_ClassPk_Tipologia"; + _methodName44 = "findByIntPratica_ClassPk_Tipologia"; - _methodParameterTypes45 = new String[] { + _methodParameterTypes44 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName46 = "findByIntPratica_ClassPk_Tipologie"; - - _methodParameterTypes46 = new String[] { "long", "long", "java.util.List" }; - - _methodName47 = "findByIntPratica_ClassPkEqual_Tipologie"; + _methodName45 = "findByIntPratica_ClassPk_Tipologie"; - _methodParameterTypes47 = new String[] { "long", "long", "java.util.List" }; + _methodParameterTypes45 = new String[] { "long", "long", "java.util.List" }; - _methodName48 = "fetchByC_Group_DlFileEntry_Version"; + _methodName46 = "findByIntPratica_ClassPkEqual_Tipologie"; - _methodParameterTypes48 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes46 = new String[] { "long", "long", "java.util.List" }; - _methodName49 = "fetchByOldDocPraticaId"; + _methodName47 = "fetchByC_Group_DlFileEntry_Version"; - _methodParameterTypes49 = new String[] { "long" }; + _methodParameterTypes47 = new String[] { "long", "java.lang.String" }; - _methodName50 = "findDistinctDlFileEntryId"; + _methodName48 = "findDistinctDlFileEntryId"; - _methodParameterTypes50 = new String[] { + _methodParameterTypes48 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName51 = "findDistinctDlFileEntryId"; + _methodName49 = "findDistinctDlFileEntryId"; - _methodParameterTypes51 = new String[] { + _methodParameterTypes49 = new String[] { "long[][]", "java.lang.String", "int", "int" }; - _methodName52 = "getValidByIntPratica"; + _methodName50 = "getValidByIntPratica"; - _methodParameterTypes52 = new String[] { "long" }; + _methodParameterTypes50 = new String[] { "long" }; - _methodName53 = "getValidByIntPratica_Tipologia"; + _methodName51 = "getValidByIntPratica_Tipologia"; - _methodParameterTypes53 = new String[] { + _methodParameterTypes51 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName54 = "countValidTmpByIntPratica_Tipologia"; + _methodName52 = "countValidTmpByIntPratica_Tipologia"; - _methodParameterTypes54 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes52 = new String[] { "long", "java.lang.String" }; - _methodName55 = "getValidTmpByIntPratica"; + _methodName53 = "getValidTmpByIntPratica"; - _methodParameterTypes55 = new String[] { "long", "int", "int" }; + _methodParameterTypes53 = new String[] { "long", "int", "int" }; - _methodName56 = "getValidTmpByIntPratica_Tipologia"; + _methodName54 = "getValidTmpByIntPratica_Tipologia"; - _methodParameterTypes56 = new String[] { + _methodParameterTypes54 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName57 = "getValidTmpByIntPratica_DettPratica_Tipologia"; + _methodName55 = "getValidTmpByIntPratica_DettPratica_Tipologia"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes55 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName58 = "getValidTmpByIntPratica_Tipologie"; + _methodName56 = "getValidTmpByIntPratica_Tipologie"; - _methodParameterTypes58 = new String[] { + _methodParameterTypes56 = new String[] { "long", "java.lang.String[][]", "int", "int" }; - _methodName59 = "countValidTmpByIntPratica_Tipologie"; + _methodName57 = "countValidTmpByIntPratica_Tipologie"; - _methodParameterTypes59 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes57 = new String[] { "long", "java.lang.String[][]" }; - _methodName60 = "getInvalidByIntPratica"; + _methodName58 = "getInvalidByIntPratica"; - _methodParameterTypes60 = new String[] { "long" }; + _methodParameterTypes58 = new String[] { "long" }; - _methodName61 = "getInvalidTmpByIntPratica"; + _methodName59 = "getInvalidTmpByIntPratica"; - _methodParameterTypes61 = new String[] { "long" }; + _methodParameterTypes59 = new String[] { "long" }; - _methodName62 = "getValidUntilClassPkByIntPratica"; + _methodName60 = "getValidUntilClassPkByIntPratica"; - _methodParameterTypes62 = new String[] { + _methodParameterTypes60 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName63 = "completeInvalidation"; - - _methodParameterTypes63 = new String[] { "long" }; + _methodName61 = "completeInvalidation"; - _methodName64 = "getDocPraticaWithOldFileEntryId"; - - _methodParameterTypes64 = new String[] { "int", "int" }; + _methodParameterTypes61 = new String[] { "long" }; - _methodName65 = "addDocPraticaAnnullamento"; + _methodName62 = "addDocPraticaAnnullamento"; - _methodParameterTypes65 = new String[] { + _methodParameterTypes62 = new String[] { "long", "java.lang.String", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName66 = "findByIntPratica_ClassPk_TipologiaNew"; + _methodName63 = "findByIntPratica_ClassPk_TipologiaNew"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes63 = new String[] { "long", "long", "java.lang.String", "int", "int" }; } @@ -1226,82 +1208,6 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { return (it.tref.liferay.portos.bo.model.DocPratica)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.DocPratica addDocPraticaForImport( - long userId, java.lang.String className, long classPk, - long intPraticaId, byte[] dlFileEntry, java.lang.String fileName, - java.lang.String version, boolean praticaValidata, - java.lang.String descLong, java.lang.String tipologia, - java.lang.String sha256, boolean aggiornato, - java.lang.String jsonFirmatari, long dettPraticaIdRimozione, - java.util.Date dtDataRimozione, long oldDocPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, - new Object[] { - userId, - - ClpSerializer.translateInput(className), - - classPk, - - intPraticaId, - - ClpSerializer.translateInput(dlFileEntry), - - ClpSerializer.translateInput(fileName), - - ClpSerializer.translateInput(version), - - praticaValidata, - - ClpSerializer.translateInput(descLong), - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(sha256), - - aggiornato, - - ClpSerializer.translateInput(jsonFirmatari), - - dettPraticaIdRimozione, - - ClpSerializer.translateInput(dtDataRimozione), - - oldDocPraticaId, - - ClpSerializer.translateInput(serviceContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.DocPratica)ClpSerializer.translateOutput(returnObj); - } - @Override public com.liferay.portal.kernel.repository.model.FileEntry addAttachment( long classPk, long intPraticaId, long delegaUserId, @@ -1312,8 +1218,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { classPk, @@ -1359,8 +1265,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, new Object[] { classPk }); + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { classPk }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1390,8 +1296,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { docPraticaId, @@ -1425,8 +1331,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { docPraticaId, @@ -1459,8 +1365,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { docPraticaId, @@ -1493,8 +1399,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, + _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { docPraticaId, @@ -1529,8 +1435,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { docPraticaId, aggiornato }); } catch (Throwable t) { @@ -1558,8 +1464,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1587,8 +1493,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1615,8 +1521,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, new Object[] { classPk }); + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { classPk }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1644,8 +1550,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { classPk, start, end }); } catch (Throwable t) { @@ -1674,8 +1580,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1703,8 +1609,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { classPk }); + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { classPk }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1733,8 +1639,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { status, @@ -1770,8 +1676,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, new Object[] { status }); + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1798,8 +1704,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { classPk, @@ -1832,8 +1738,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { classPk, @@ -1870,8 +1776,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId, @@ -1908,8 +1814,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { intPraticaId, @@ -1949,8 +1855,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { intPraticaId, @@ -1986,8 +1892,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { intPraticaId, @@ -2022,8 +1928,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { dlFileEntryId, @@ -2049,35 +1955,6 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { return (it.tref.liferay.portos.bo.model.DocPratica)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPraticaId( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, new Object[] { oldDocPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.DocPratica)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List findDistinctDlFileEntryId( long classPk, java.lang.String tipologia, int start, int end) @@ -2085,8 +1962,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { classPk, @@ -2123,8 +2000,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { ClpSerializer.translateInput(classPks), @@ -2161,8 +2038,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2190,8 +2067,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { intPraticaId, @@ -2228,8 +2105,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { intPraticaId, @@ -2262,8 +2139,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { intPraticaId, start, end }); } catch (Throwable t) { @@ -2292,8 +2169,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { intPraticaId, @@ -2331,8 +2208,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { intPraticaId, @@ -2371,8 +2248,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { intPraticaId, @@ -2409,8 +2286,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { intPraticaId, @@ -2443,8 +2320,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2472,8 +2349,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2501,8 +2378,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, + returnObj = _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { intPraticaId, @@ -2538,8 +2415,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { public void completeInvalidation(long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2558,35 +2435,6 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { } } - @Override - public java.util.List getDocPraticaWithOldFileEntryId( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public it.tref.liferay.portos.bo.model.DocPratica addDocPraticaAnnullamento( long userId, java.lang.String className, long classPk, @@ -2599,8 +2447,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { userId, @@ -2653,8 +2501,8 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { intPraticaId, @@ -2813,10 +2661,4 @@ public class DocPraticaLocalServiceClp implements DocPraticaLocalService { private String[] _methodParameterTypes62; private String _methodName63; private String[] _methodParameterTypes63; - private String _methodName64; - private String[] _methodParameterTypes64; - private String _methodName65; - private String[] _methodParameterTypes65; - private String _methodName66; - private String[] _methodParameterTypes66; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceUtil.java index 71b4d638..6a3ee6ed 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceUtil.java @@ -377,25 +377,6 @@ public class DocPraticaLocalServiceUtil { fileEntryId, fileName, tipologia, jsonFirmatari, serviceContext); } - public static it.tref.liferay.portos.bo.model.DocPratica addDocPraticaForImport( - long userId, java.lang.String className, long classPk, - long intPraticaId, byte[] dlFileEntry, java.lang.String fileName, - java.lang.String version, boolean praticaValidata, - java.lang.String descLong, java.lang.String tipologia, - java.lang.String sha256, boolean aggiornato, - java.lang.String jsonFirmatari, long dettPraticaIdRimozione, - java.util.Date dtDataRimozione, long oldDocPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .addDocPraticaForImport(userId, className, classPk, - intPraticaId, dlFileEntry, fileName, version, praticaValidata, - descLong, tipologia, sha256, aggiornato, jsonFirmatari, - dettPraticaIdRimozione, dtDataRimozione, oldDocPraticaId, - serviceContext); - } - public static com.liferay.portal.kernel.repository.model.FileEntry addAttachment( long classPk, long intPraticaId, long delegaUserId, java.lang.String sourceFileName, byte[] content, @@ -548,12 +529,6 @@ public class DocPraticaLocalServiceUtil { .fetchByC_Group_DlFileEntry_Version(dlFileEntryId, version); } - public static it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPraticaId( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldDocPraticaId(oldDocPraticaId); - } - public static java.util.List findDistinctDlFileEntryId( long classPk, java.lang.String tipologia, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { @@ -652,12 +627,6 @@ public class DocPraticaLocalServiceUtil { getService().completeInvalidation(intPraticaId); } - public static java.util.List getDocPraticaWithOldFileEntryId( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getDocPraticaWithOldFileEntryId(start, end); - } - public static it.tref.liferay.portos.bo.model.DocPratica addDocPraticaAnnullamento( long userId, java.lang.String className, long classPk, long intPraticaId, long fileEntryId, java.lang.String fileName, @@ -672,17 +641,6 @@ public class DocPraticaLocalServiceUtil { jsonFirmatari, serviceContext); } - /** - * Metodo nuovo ADT - * - * @param intPraticaId - * @param classPk - * @param tipologia - * @param start - * @param end - * @return - * @throws SystemException - */ public static java.util.List findByIntPratica_ClassPk_TipologiaNew( long intPraticaId, long classPk, java.lang.String tipologia, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceWrapper.java index 5fd5ff36..8f0f5a98 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/DocPraticaLocalServiceWrapper.java @@ -400,25 +400,6 @@ public class DocPraticaLocalServiceWrapper implements DocPraticaLocalService, jsonFirmatari, serviceContext); } - @Override - public it.tref.liferay.portos.bo.model.DocPratica addDocPraticaForImport( - long userId, java.lang.String className, long classPk, - long intPraticaId, byte[] dlFileEntry, java.lang.String fileName, - java.lang.String version, boolean praticaValidata, - java.lang.String descLong, java.lang.String tipologia, - java.lang.String sha256, boolean aggiornato, - java.lang.String jsonFirmatari, long dettPraticaIdRimozione, - java.util.Date dtDataRimozione, long oldDocPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _docPraticaLocalService.addDocPraticaForImport(userId, - className, classPk, intPraticaId, dlFileEntry, fileName, version, - praticaValidata, descLong, tipologia, sha256, aggiornato, - jsonFirmatari, dettPraticaIdRimozione, dtDataRimozione, - oldDocPraticaId, serviceContext); - } - @Override public com.liferay.portal.kernel.repository.model.FileEntry addAttachment( long classPk, long intPraticaId, long delegaUserId, @@ -586,13 +567,6 @@ public class DocPraticaLocalServiceWrapper implements DocPraticaLocalService, version); } - @Override - public it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPraticaId( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _docPraticaLocalService.fetchByOldDocPraticaId(oldDocPraticaId); - } - @Override public java.util.List findDistinctDlFileEntryId( long classPk, java.lang.String tipologia, int start, int end) @@ -701,14 +675,6 @@ public class DocPraticaLocalServiceWrapper implements DocPraticaLocalService, _docPraticaLocalService.completeInvalidation(intPraticaId); } - @Override - public java.util.List getDocPraticaWithOldFileEntryId( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _docPraticaLocalService.getDocPraticaWithOldFileEntryId(start, - end); - } - @Override public it.tref.liferay.portos.bo.model.DocPratica addDocPraticaAnnullamento( long userId, java.lang.String className, long classPk, @@ -723,17 +689,6 @@ public class DocPraticaLocalServiceWrapper implements DocPraticaLocalService, sha256, jsonFirmatari, serviceContext); } - /** - * Metodo nuovo ADT - * - * @param intPraticaId - * @param classPk - * @param tipologia - * @param start - * @param end - * @return - * @throws SystemException - */ @Override public java.util.List findByIntPratica_ClassPk_TipologiaNew( long intPraticaId, long classPk, java.lang.String tipologia, int start, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java index 6d3402c0..54d6b4ce 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalService.java @@ -470,9 +470,4 @@ public interface FineLavoriLocalService extends BaseLocalService, java.lang.String codiceFiscaleDelegatoCollaudo) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java index 6b5798d6..1ddfe738 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceClp.java @@ -295,10 +295,6 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { _methodName54 = "findIntPraticaByFineLavori"; _methodParameterTypes54 = new String[] { "java.lang.String" }; - - _methodName55 = "fetchByOldDettPraticaId"; - - _methodParameterTypes55 = new String[] { "long" }; } @Override @@ -2148,35 +2144,6 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, new Object[] { oldDettPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.FineLavori)ClpSerializer.translateOutput(returnObj); - } - private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -2286,6 +2253,4 @@ public class FineLavoriLocalServiceClp implements FineLavoriLocalService { private String[] _methodParameterTypes53; private String _methodName54; private String[] _methodParameterTypes54; - private String _methodName55; - private String[] _methodParameterTypes55; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java index 6995b2d6..9679fdb9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceUtil.java @@ -585,12 +585,6 @@ public class FineLavoriLocalServiceUtil { .findIntPraticaByFineLavori(codiceFiscaleDelegatoCollaudo); } - public static it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldDettPraticaId(oldDettPraticaId); - } - public static void clearService() { _service = null; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java index 50579a5c..633caf83 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/FineLavoriLocalServiceWrapper.java @@ -631,13 +631,6 @@ public class FineLavoriLocalServiceWrapper implements FineLavoriLocalService, return _fineLavoriLocalService.findIntPraticaByFineLavori(codiceFiscaleDelegatoCollaudo); } - @Override - public it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _fineLavoriLocalService.fetchByOldDettPraticaId(oldDettPraticaId); - } - /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVServiceWrapper.java deleted file mode 100644 index 77bed4ae..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IUVServiceWrapper.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.ServiceWrapper; - -/** - * Provides a wrapper for {@link IUVService}. - * - * @author Davide Barbagallo, 3F Consulting - * @see IUVService - * @generated - */ -public class IUVServiceWrapper implements IUVService, - ServiceWrapper { - public IUVServiceWrapper(IUVService iuvService) { - _iuvService = iuvService; - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public java.lang.String getBeanIdentifier() { - return _iuvService.getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - _iuvService.setBeanIdentifier(beanIdentifier); - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return _iuvService.invokeMethod(name, parameterTypes, arguments); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} - */ - public IUVService getWrappedIUVService() { - return _iuvService; - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} - */ - public void setWrappedIUVService(IUVService iuvService) { - _iuvService = iuvService; - } - - @Override - public IUVService getWrappedService() { - return _iuvService; - } - - @Override - public void setWrappedService(IUVService iuvService) { - _iuvService = iuvService; - } - - private IUVService _iuvService; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalService.java deleted file mode 100644 index 8224488d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalService.java +++ /dev/null @@ -1,341 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.search.IndexableType; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Propagation; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.service.BaseLocalService; -import com.liferay.portal.service.InvokableLocalService; -import com.liferay.portal.service.PersistedModelLocalService; - -/** - * Provides the local service interface for InfoFascicolo. 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 Davide Barbagallo, 3F Consulting - * @see InfoFascicoloLocalServiceUtil - * @see it.tref.liferay.portos.bo.service.base.InfoFascicoloLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.InfoFascicoloLocalServiceImpl - * @generated - */ -@Transactional(isolation = Isolation.PORTAL, rollbackFor = { - PortalException.class, SystemException.class}) -public interface InfoFascicoloLocalService extends BaseLocalService, - InvokableLocalService, PersistedModelLocalService { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link InfoFascicoloLocalServiceUtil} to access the info fascicolo local service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. - */ - - /** - * Adds the info fascicolo to the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was added - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Creates a new info fascicolo with the primary key. Does not add the info fascicolo to the database. - * - * @param infoFascicoloId the primary key for the new info fascicolo - * @return the new info fascicolo - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo createInfoFascicolo( - long infoFascicoloId); - - /** - * Deletes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) - public it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Deletes the info fascicolo from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) - public it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException; - - public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo with the primary key. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - @Override - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getInfoFascicolos( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of info fascicolos. - * - * @return the number of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public int getInfoFascicolosCount() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Updates the info fascicolo in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was updated - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) - public it.tref.liferay.portos.bo.model.InfoFascicolo updateInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public java.lang.String getBeanIdentifier(); - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public void setBeanIdentifier(java.lang.String beanIdentifier); - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable; - - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - boolean alreadyImported, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public it.tref.liferay.portos.bo.model.InfoFascicolo findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - public it.tref.liferay.portos.bo.model.InfoFascicolo updateAlreadyImportedField( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceClp.java deleted file mode 100644 index 36aba2c0..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceClp.java +++ /dev/null @@ -1,1085 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.InvokableLocalService; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class InfoFascicoloLocalServiceClp implements InfoFascicoloLocalService { - public InfoFascicoloLocalServiceClp( - InvokableLocalService invokableLocalService) { - _invokableLocalService = invokableLocalService; - - _methodName0 = "addInfoFascicolo"; - - _methodParameterTypes0 = new String[] { - "it.tref.liferay.portos.bo.model.InfoFascicolo" - }; - - _methodName1 = "createInfoFascicolo"; - - _methodParameterTypes1 = new String[] { "long" }; - - _methodName2 = "deleteInfoFascicolo"; - - _methodParameterTypes2 = new String[] { "long" }; - - _methodName3 = "deleteInfoFascicolo"; - - _methodParameterTypes3 = new String[] { - "it.tref.liferay.portos.bo.model.InfoFascicolo" - }; - - _methodName4 = "dynamicQuery"; - - _methodParameterTypes4 = new String[] { }; - - _methodName5 = "dynamicQuery"; - - _methodParameterTypes5 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName6 = "dynamicQuery"; - - _methodParameterTypes6 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" - }; - - _methodName7 = "dynamicQuery"; - - _methodParameterTypes7 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName8 = "dynamicQueryCount"; - - _methodParameterTypes8 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName9 = "dynamicQueryCount"; - - _methodParameterTypes9 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", - "com.liferay.portal.kernel.dao.orm.Projection" - }; - - _methodName10 = "fetchInfoFascicolo"; - - _methodParameterTypes10 = new String[] { "long" }; - - _methodName11 = "fetchInfoFascicoloByUuidAndCompanyId"; - - _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; - - _methodName12 = "fetchInfoFascicoloByUuidAndGroupId"; - - _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; - - _methodName13 = "getInfoFascicolo"; - - _methodParameterTypes13 = new String[] { "long" }; - - _methodName14 = "getPersistedModel"; - - _methodParameterTypes14 = new String[] { "java.io.Serializable" }; - - _methodName15 = "getInfoFascicoloByUuidAndCompanyId"; - - _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; - - _methodName16 = "getInfoFascicoloByUuidAndGroupId"; - - _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; - - _methodName17 = "getInfoFascicolos"; - - _methodParameterTypes17 = new String[] { "int", "int" }; - - _methodName18 = "getInfoFascicolosCount"; - - _methodParameterTypes18 = new String[] { }; - - _methodName19 = "updateInfoFascicolo"; - - _methodParameterTypes19 = new String[] { - "it.tref.liferay.portos.bo.model.InfoFascicolo" - }; - - _methodName20 = "getBeanIdentifier"; - - _methodParameterTypes20 = new String[] { }; - - _methodName21 = "setBeanIdentifier"; - - _methodParameterTypes21 = new String[] { "java.lang.String" }; - - _methodName23 = "addInfoFascicolo"; - - _methodParameterTypes23 = new String[] { - "long", "java.lang.String", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName24 = "addInfoFascicolo"; - - _methodParameterTypes24 = new String[] { - "long", "java.lang.String", "boolean", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName25 = "findByIntPratica"; - - _methodParameterTypes25 = new String[] { "long" }; - - _methodName26 = "fetchByIntPratica"; - - _methodParameterTypes26 = new String[] { "long" }; - - _methodName27 = "updateAlreadyImportedField"; - - _methodParameterTypes27 = new String[] { "long" }; - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName0, - _methodParameterTypes0, - new Object[] { ClpSerializer.translateInput(infoFascicolo) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo createInfoFascicolo( - long infoFascicoloId) { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName1, - _methodParameterTypes1, new Object[] { infoFascicoloId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName2, - _methodParameterTypes2, new Object[] { infoFascicoloId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName3, - _methodParameterTypes3, - new Object[] { ClpSerializer.translateInput(infoFascicolo) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName4, - _methodParameterTypes4, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj); - } - - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName5, - _methodParameterTypes5, - new Object[] { ClpSerializer.translateInput(dynamicQuery) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName6, - _methodParameterTypes6, - new Object[] { - ClpSerializer.translateInput(dynamicQuery), - - start, - - end - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName7, - _methodParameterTypes7, - new Object[] { - ClpSerializer.translateInput(dynamicQuery), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName8, - _methodParameterTypes8, - new Object[] { ClpSerializer.translateInput(dynamicQuery) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Long)returnObj).longValue(); - } - - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName9, - _methodParameterTypes9, - new Object[] { - ClpSerializer.translateInput(dynamicQuery), - - ClpSerializer.translateInput(projection) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Long)returnObj).longValue(); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName10, - _methodParameterTypes10, new Object[] { infoFascicoloId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName11, - _methodParameterTypes11, - new Object[] { ClpSerializer.translateInput(uuid), companyId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName12, - _methodParameterTypes12, - new Object[] { ClpSerializer.translateInput(uuid), groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName13, - _methodParameterTypes13, new Object[] { infoFascicoloId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName14, - _methodParameterTypes14, - new Object[] { ClpSerializer.translateInput(primaryKeyObj) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName15, - _methodParameterTypes15, - new Object[] { ClpSerializer.translateInput(uuid), companyId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName16, - _methodParameterTypes16, - new Object[] { ClpSerializer.translateInput(uuid), groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List getInfoFascicolos( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName17, - _methodParameterTypes17, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int getInfoFascicolosCount() - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName18, - _methodParameterTypes18, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo updateInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName19, - _methodParameterTypes19, - new Object[] { ClpSerializer.translateInput(infoFascicolo) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.lang.String getBeanIdentifier() { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName20, - _methodParameterTypes20, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.lang.String)ClpSerializer.translateOutput(returnObj); - } - - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - try { - _invokableLocalService.invokeMethod(_methodName21, - _methodParameterTypes21, - new Object[] { ClpSerializer.translateInput(beanIdentifier) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - throw new UnsupportedOperationException(); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName23, - _methodParameterTypes23, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(numeroProgetto), - - ClpSerializer.translateInput(serviceContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - boolean alreadyImported, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(numeroProgetto), - - alreadyImported, - - ClpSerializer.translateInput(serviceContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, new Object[] { intPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof it.tref.liferay.portos.bo.NoSuchInfoFascicoloException) { - throw (it.tref.liferay.portos.bo.NoSuchInfoFascicoloException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, new Object[] { intPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof it.tref.liferay.portos.bo.NoSuchInfoFascicoloException) { - throw (it.tref.liferay.portos.bo.NoSuchInfoFascicoloException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo updateAlreadyImportedField( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, new Object[] { infoFascicoloId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof it.tref.liferay.portos.bo.NoSuchInfoFascicoloException) { - throw (it.tref.liferay.portos.bo.NoSuchInfoFascicoloException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.InfoFascicolo)ClpSerializer.translateOutput(returnObj); - } - - private InvokableLocalService _invokableLocalService; - private String _methodName0; - private String[] _methodParameterTypes0; - private String _methodName1; - private String[] _methodParameterTypes1; - private String _methodName2; - private String[] _methodParameterTypes2; - private String _methodName3; - private String[] _methodParameterTypes3; - private String _methodName4; - private String[] _methodParameterTypes4; - private String _methodName5; - private String[] _methodParameterTypes5; - private String _methodName6; - private String[] _methodParameterTypes6; - private String _methodName7; - private String[] _methodParameterTypes7; - private String _methodName8; - private String[] _methodParameterTypes8; - private String _methodName9; - private String[] _methodParameterTypes9; - private String _methodName10; - private String[] _methodParameterTypes10; - private String _methodName11; - private String[] _methodParameterTypes11; - private String _methodName12; - private String[] _methodParameterTypes12; - private String _methodName13; - private String[] _methodParameterTypes13; - private String _methodName14; - private String[] _methodParameterTypes14; - private String _methodName15; - private String[] _methodParameterTypes15; - private String _methodName16; - private String[] _methodParameterTypes16; - private String _methodName17; - private String[] _methodParameterTypes17; - private String _methodName18; - private String[] _methodParameterTypes18; - private String _methodName19; - private String[] _methodParameterTypes19; - private String _methodName20; - private String[] _methodParameterTypes20; - private String _methodName21; - private String[] _methodParameterTypes21; - private String _methodName23; - private String[] _methodParameterTypes23; - private String _methodName24; - private String[] _methodParameterTypes24; - private String _methodName25; - private String[] _methodParameterTypes25; - private String _methodName26; - private String[] _methodParameterTypes26; - private String _methodName27; - private String[] _methodParameterTypes27; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceUtil.java deleted file mode 100644 index 15fd3763..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceUtil.java +++ /dev/null @@ -1,410 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.util.ReferenceRegistry; -import com.liferay.portal.service.InvokableLocalService; - -/** - * Provides the local service utility for InfoFascicolo. This utility wraps - * {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloLocalServiceImpl} and is the - * primary access point for service operations in application layer code running - * on the local server. 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 Davide Barbagallo, 3F Consulting - * @see InfoFascicoloLocalService - * @see it.tref.liferay.portos.bo.service.base.InfoFascicoloLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.InfoFascicoloLocalServiceImpl - * @generated - */ -public class InfoFascicoloLocalServiceUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. - */ - - /** - * Adds the info fascicolo to the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was added - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().addInfoFascicolo(infoFascicolo); - } - - /** - * Creates a new info fascicolo with the primary key. Does not add the info fascicolo to the database. - * - * @param infoFascicoloId the primary key for the new info fascicolo - * @return the new info fascicolo - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo createInfoFascicolo( - long infoFascicoloId) { - return getService().createInfoFascicolo(infoFascicoloId); - } - - /** - * Deletes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().deleteInfoFascicolo(infoFascicoloId); - } - - /** - * Deletes the info fascicolo from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().deleteInfoFascicolo(infoFascicolo); - } - - public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { - return getService().dynamicQuery(); - } - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public static java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQuery(dynamicQuery); - } - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public static java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQuery(dynamicQuery, start, end); - } - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public static java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public static long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQueryCount(dynamicQuery); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public static long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQueryCount(dynamicQuery, projection); - } - - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchInfoFascicolo(infoFascicoloId); - } - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchInfoFascicoloByUuidAndCompanyId(uuid, companyId); - } - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchInfoFascicoloByUuidAndGroupId(uuid, groupId); - } - - /** - * Returns the info fascicolo with the primary key. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getInfoFascicolo(infoFascicoloId); - } - - public static com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getPersistedModel(primaryKeyObj); - } - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getInfoFascicoloByUuidAndCompanyId(uuid, companyId); - } - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getInfoFascicoloByUuidAndGroupId(uuid, groupId); - } - - /** - * Returns a range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List getInfoFascicolos( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getInfoFascicolos(start, end); - } - - /** - * Returns the number of info fascicolos. - * - * @return the number of info fascicolos - * @throws SystemException if a system exception occurred - */ - public static int getInfoFascicolosCount() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getInfoFascicolosCount(); - } - - /** - * Updates the info fascicolo in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was updated - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo updateInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().updateInfoFascicolo(infoFascicolo); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public static java.lang.String getBeanIdentifier() { - return getService().getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public static void setBeanIdentifier(java.lang.String beanIdentifier) { - getService().setBeanIdentifier(beanIdentifier); - } - - public static java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return getService().invokeMethod(name, parameterTypes, arguments); - } - - public static it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .addInfoFascicolo(intPraticaId, numeroProgetto, - serviceContext); - } - - public static it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - boolean alreadyImported, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .addInfoFascicolo(intPraticaId, numeroProgetto, - alreadyImported, serviceContext); - } - - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getService().findByIntPratica(intPraticaId); - } - - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getService().fetchByIntPratica(intPraticaId); - } - - public static it.tref.liferay.portos.bo.model.InfoFascicolo updateAlreadyImportedField( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getService().updateAlreadyImportedField(infoFascicoloId); - } - - public static void clearService() { - _service = null; - } - - public static InfoFascicoloLocalService getService() { - if (_service == null) { - InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), - InfoFascicoloLocalService.class.getName()); - - if (invokableLocalService instanceof InfoFascicoloLocalService) { - _service = (InfoFascicoloLocalService)invokableLocalService; - } - else { - _service = new InfoFascicoloLocalServiceClp(invokableLocalService); - } - - ReferenceRegistry.registerReference(InfoFascicoloLocalServiceUtil.class, - "_service"); - } - - return _service; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setService(InfoFascicoloLocalService service) { - } - - private static InfoFascicoloLocalService _service; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceWrapper.java deleted file mode 100644 index 9319c36c..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloLocalServiceWrapper.java +++ /dev/null @@ -1,431 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.ServiceWrapper; - -/** - * Provides a wrapper for {@link InfoFascicoloLocalService}. - * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloLocalService - * @generated - */ -public class InfoFascicoloLocalServiceWrapper - implements InfoFascicoloLocalService, - ServiceWrapper { - public InfoFascicoloLocalServiceWrapper( - InfoFascicoloLocalService infoFascicoloLocalService) { - _infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Adds the info fascicolo to the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was added - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.addInfoFascicolo(infoFascicolo); - } - - /** - * Creates a new info fascicolo with the primary key. Does not add the info fascicolo to the database. - * - * @param infoFascicoloId the primary key for the new info fascicolo - * @return the new info fascicolo - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo createInfoFascicolo( - long infoFascicoloId) { - return _infoFascicoloLocalService.createInfoFascicolo(infoFascicoloId); - } - - /** - * Deletes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.deleteInfoFascicolo(infoFascicoloId); - } - - /** - * Deletes the info fascicolo from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo deleteInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.deleteInfoFascicolo(infoFascicolo); - } - - @Override - public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { - return _infoFascicoloLocalService.dynamicQuery(); - } - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.dynamicQuery(dynamicQuery); - } - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.dynamicQuery(dynamicQuery, start, end); - } - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.dynamicQuery(dynamicQuery, start, - end, orderByComparator); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.dynamicQueryCount(dynamicQuery); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.dynamicQueryCount(dynamicQuery, - projection); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.fetchInfoFascicolo(infoFascicoloId); - } - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.fetchInfoFascicoloByUuidAndCompanyId(uuid, - companyId); - } - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.fetchInfoFascicoloByUuidAndGroupId(uuid, - groupId); - } - - /** - * Returns the info fascicolo with the primary key. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicolo( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.getInfoFascicolo(infoFascicoloId); - } - - @Override - public com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.getPersistedModel(primaryKeyObj); - } - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.getInfoFascicoloByUuidAndCompanyId(uuid, - companyId); - } - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo getInfoFascicoloByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.getInfoFascicoloByUuidAndGroupId(uuid, - groupId); - } - - /** - * Returns a range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public java.util.List getInfoFascicolos( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.getInfoFascicolos(start, end); - } - - /** - * Returns the number of info fascicolos. - * - * @return the number of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public int getInfoFascicolosCount() - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.getInfoFascicolosCount(); - } - - /** - * Updates the info fascicolo in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was updated - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo updateInfoFascicolo( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.updateInfoFascicolo(infoFascicolo); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public java.lang.String getBeanIdentifier() { - return _infoFascicoloLocalService.getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - _infoFascicoloLocalService.setBeanIdentifier(beanIdentifier); - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return _infoFascicoloLocalService.invokeMethod(name, parameterTypes, - arguments); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.addInfoFascicolo(intPraticaId, - numeroProgetto, serviceContext); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo addInfoFascicolo( - long intPraticaId, java.lang.String numeroProgetto, - boolean alreadyImported, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _infoFascicoloLocalService.addInfoFascicolo(intPraticaId, - numeroProgetto, alreadyImported, serviceContext); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return _infoFascicoloLocalService.findByIntPratica(intPraticaId); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return _infoFascicoloLocalService.fetchByIntPratica(intPraticaId); - } - - @Override - public it.tref.liferay.portos.bo.model.InfoFascicolo updateAlreadyImportedField( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return _infoFascicoloLocalService.updateAlreadyImportedField(infoFascicoloId); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} - */ - public InfoFascicoloLocalService getWrappedInfoFascicoloLocalService() { - return _infoFascicoloLocalService; - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} - */ - public void setWrappedInfoFascicoloLocalService( - InfoFascicoloLocalService infoFascicoloLocalService) { - _infoFascicoloLocalService = infoFascicoloLocalService; - } - - @Override - public InfoFascicoloLocalService getWrappedService() { - return _infoFascicoloLocalService; - } - - @Override - public void setWrappedService( - InfoFascicoloLocalService infoFascicoloLocalService) { - _infoFascicoloLocalService = infoFascicoloLocalService; - } - - private InfoFascicoloLocalService _infoFascicoloLocalService; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloService.java deleted file mode 100644 index 10f5f870..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloService.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.jsonwebservice.JSONWebService; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.security.ac.AccessControlled; -import com.liferay.portal.service.BaseService; -import com.liferay.portal.service.InvokableService; - -/** - * Provides the remote service interface for InfoFascicolo. Methods of this - * service are expected to have security checks based on the propagated JAAS - * credentials because this service can be accessed remotely. - * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloServiceUtil - * @see it.tref.liferay.portos.bo.service.base.InfoFascicoloServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.InfoFascicoloServiceImpl - * @generated - */ -@AccessControlled -@JSONWebService -@Transactional(isolation = Isolation.PORTAL, rollbackFor = { - PortalException.class, SystemException.class}) -public interface InfoFascicoloService extends BaseService, InvokableService { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link InfoFascicoloServiceUtil} to access the info fascicolo remote service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. - */ - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public java.lang.String getBeanIdentifier(); - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public void setBeanIdentifier(java.lang.String beanIdentifier); - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceClp.java deleted file mode 100644 index 15a41d00..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceClp.java +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.InvokableService; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class InfoFascicoloServiceClp implements InfoFascicoloService { - public InfoFascicoloServiceClp(InvokableService invokableService) { - _invokableService = invokableService; - - _methodName0 = "getBeanIdentifier"; - - _methodParameterTypes0 = new String[] { }; - - _methodName1 = "setBeanIdentifier"; - - _methodParameterTypes1 = new String[] { "java.lang.String" }; - } - - @Override - public java.lang.String getBeanIdentifier() { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName0, - _methodParameterTypes0, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.lang.String)ClpSerializer.translateOutput(returnObj); - } - - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - try { - _invokableService.invokeMethod(_methodName1, - _methodParameterTypes1, - new Object[] { ClpSerializer.translateInput(beanIdentifier) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - throw new UnsupportedOperationException(); - } - - private InvokableService _invokableService; - private String _methodName0; - private String[] _methodParameterTypes0; - private String _methodName1; - private String[] _methodParameterTypes1; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceUtil.java deleted file mode 100644 index f8da3df4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceUtil.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.util.ReferenceRegistry; -import com.liferay.portal.service.InvokableService; - -/** - * Provides the remote service utility for InfoFascicolo. This utility wraps - * {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloServiceImpl} and is the - * primary access point for service operations in application layer code running - * on a remote server. Methods of this service are expected to have security - * checks based on the propagated JAAS credentials because this service can be - * accessed remotely. - * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloService - * @see it.tref.liferay.portos.bo.service.base.InfoFascicoloServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.InfoFascicoloServiceImpl - * @generated - */ -public class InfoFascicoloServiceUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloServiceImpl} and rerun ServiceBuilder to regenerate this class. - */ - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public static java.lang.String getBeanIdentifier() { - return getService().getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public static void setBeanIdentifier(java.lang.String beanIdentifier) { - getService().setBeanIdentifier(beanIdentifier); - } - - public static java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return getService().invokeMethod(name, parameterTypes, arguments); - } - - public static void clearService() { - _service = null; - } - - public static InfoFascicoloService getService() { - if (_service == null) { - InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), - InfoFascicoloService.class.getName()); - - if (invokableService instanceof InfoFascicoloService) { - _service = (InfoFascicoloService)invokableService; - } - else { - _service = new InfoFascicoloServiceClp(invokableService); - } - - ReferenceRegistry.registerReference(InfoFascicoloServiceUtil.class, - "_service"); - } - - return _service; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setService(InfoFascicoloService service) { - } - - private static InfoFascicoloService _service; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceWrapper.java deleted file mode 100644 index 6bbb1ee7..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/InfoFascicoloServiceWrapper.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.ServiceWrapper; - -/** - * Provides a wrapper for {@link InfoFascicoloService}. - * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloService - * @generated - */ -public class InfoFascicoloServiceWrapper implements InfoFascicoloService, - ServiceWrapper { - public InfoFascicoloServiceWrapper( - InfoFascicoloService infoFascicoloService) { - _infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public java.lang.String getBeanIdentifier() { - return _infoFascicoloService.getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - _infoFascicoloService.setBeanIdentifier(beanIdentifier); - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return _infoFascicoloService.invokeMethod(name, parameterTypes, - arguments); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} - */ - public InfoFascicoloService getWrappedInfoFascicoloService() { - return _infoFascicoloService; - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} - */ - public void setWrappedInfoFascicoloService( - InfoFascicoloService infoFascicoloService) { - _infoFascicoloService = infoFascicoloService; - } - - @Override - public InfoFascicoloService getWrappedService() { - return _infoFascicoloService; - } - - @Override - public void setWrappedService(InfoFascicoloService infoFascicoloService) { - _infoFascicoloService = infoFascicoloService; - } - - private InfoFascicoloService _infoFascicoloService; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java index ae10930f..1fcb7f70 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java @@ -317,38 +317,37 @@ public interface IntPraticaLocalService extends BaseLocalService, java.lang.String[] parameterTypes, java.lang.Object[] arguments) throws java.lang.Throwable; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long userId, java.lang.String userName, java.lang.String tipoPratica, long territorioId, java.lang.String tipoProcedura, - java.util.Date dtSorteggio, java.lang.String statoPratica, - java.lang.String numeroProgetto, boolean validata, int esitoControllo, - java.util.Date dtPratica, long oldIntPraticaId, + java.lang.String statoPratica, java.lang.String numeroProgetto, + boolean validata, int esitoControllo, java.util.Date dtPratica, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public java.util.List svuotaDatabase2( - com.liferay.portal.service.ServiceContext serviceContext); - - public void clearDb() throws java.lang.Exception; - + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica deleteIntPratica( it.tref.liferay.portos.bo.model.IntPratica intPratica, boolean forced) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica cloneIntPratica( long intPraticaId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica updateDelegati( long intPraticaId, java.lang.String codiceFiscaleDelegatoFineLavori, java.lang.String codiceFiscaleDelegatoCollaudo, @@ -374,36 +373,31 @@ public interface IntPraticaLocalService extends BaseLocalService, double lat, double lng, int raggio, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica addNumeroProgetto( long intPraticaId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica sospendiPratica( long intPraticaId, boolean sospesa) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica cambiaTitolare( long intPraticaId, long soggettoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) public it.tref.liferay.portos.bo.model.IntPratica updateStatoPratica( long intPraticaId, java.lang.String statoPratica) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio) - throws com.liferay.portal.kernel.exception.SystemException; - - public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio, - java.lang.String statoPratica) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByC_UserId( long companyId, long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; @@ -411,11 +405,6 @@ public interface IntPraticaLocalService extends BaseLocalService, public int countByC_UserId(long companyId, long userId) throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - public void updateStatus(long intPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -481,10 +470,6 @@ public interface IntPraticaLocalService extends BaseLocalService, java.util.List groupIds, long intPraticaId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; - public int countSearchWithIntPraticaId( - java.util.List groupIds, long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - public com.liferay.portal.kernel.repository.model.FileEntry allegaFileAnnullamento( long intPraticaId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, @@ -514,13 +499,12 @@ public interface IntPraticaLocalService extends BaseLocalService, com.liferay.portal.kernel.exception.SystemException; public int countCaricoLavoroCF(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio, - java.lang.Long[] intPraticaIds) + java.lang.String tipoPratica, java.lang.Long[] intPraticaIds) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; public int countCaricoLavoroIstruttore(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio) + java.lang.String tipoPratica) throws com.liferay.portal.kernel.exception.SystemException; public long generateReportPratica( @@ -558,13 +542,6 @@ public interface IntPraticaLocalService extends BaseLocalService, java.lang.String type, boolean isControlloObbligatorio) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List importaVecchiFilesFascicolo( - long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findIntPraticaNotExist() - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List riparaWorkflow() throws com.liferay.portal.kernel.exception.SystemException; @@ -578,9 +555,6 @@ public interface IntPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public java.util.List trovaDoppioni() - throws com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.IntPratica findByNumeroProgetto( java.lang.String numeroProgetto) throws com.liferay.portal.kernel.exception.SystemException; @@ -589,37 +563,16 @@ public interface IntPraticaLocalService extends BaseLocalService, long territorioId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * ADT: report tempistiche istruttorie - */ public java.util.List reportTempisticheIstruttorieAvvisiAutorizzazioni( java.util.Date dtMin, java.util.Date dtMax, long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException; - /** - * @param dtMin - * @param dtMax - * @param groupId - * @return - * @throws SystemException - */ - public java.util.Map reportTempisticheIstruttorieCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * ADT: report pratiche vidimate - */ public java.util.List reportPraticheVidimate( java.util.Date dtMin, java.util.Date dtMax, long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.Map reportPraticheVidimateCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - public int countIngressiAutorizzazioni(java.util.Date dtMin, java.util.Date dtMax, long groupId) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java index 4a3cd84d..df9ec151 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java @@ -142,336 +142,281 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { _methodParameterTypes24 = new String[] { "long", "java.lang.String", "java.lang.String", "long", - "java.lang.String", "java.util.Date", "java.lang.String", - "java.lang.String", "boolean", "int", "java.util.Date", "long", + "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName25 = "svuotaDatabase2"; + _methodName25 = "deleteIntPratica"; _methodParameterTypes25 = new String[] { - "com.liferay.portal.service.ServiceContext" - }; - - _methodName26 = "clearDb"; - - _methodParameterTypes26 = new String[] { }; - - _methodName27 = "deleteIntPratica"; - - _methodParameterTypes27 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName28 = "cloneIntPratica"; + _methodName26 = "cloneIntPratica"; - _methodParameterTypes28 = new String[] { + _methodParameterTypes26 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName29 = "updateDelegati"; + _methodName27 = "updateDelegati"; - _methodParameterTypes29 = new String[] { + _methodParameterTypes27 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName30 = "findFascicoliNotProgetto"; + _methodName28 = "findFascicoliNotProgetto"; - _methodParameterTypes30 = new String[] { "int", "int" }; + _methodParameterTypes28 = new String[] { "int", "int" }; - _methodName31 = "countFascicoliNotProgetto"; + _methodName29 = "countFascicoliNotProgetto"; - _methodParameterTypes31 = new String[] { }; + _methodParameterTypes29 = new String[] { }; - _methodName32 = "countByPosizione"; + _methodName30 = "countByPosizione"; - _methodParameterTypes32 = new String[] { "double", "double", "int" }; + _methodParameterTypes30 = new String[] { "double", "double", "int" }; - _methodName33 = "findByPosizione"; + _methodName31 = "findByPosizione"; - _methodParameterTypes33 = new String[] { "double", "double", "int" }; + _methodParameterTypes31 = new String[] { "double", "double", "int" }; - _methodName34 = "findByPosizione"; + _methodName32 = "findByPosizione"; - _methodParameterTypes34 = new String[] { + _methodParameterTypes32 = new String[] { "double", "double", "int", "int", "int" }; - _methodName35 = "addNumeroProgetto"; + _methodName33 = "addNumeroProgetto"; - _methodParameterTypes35 = new String[] { "long" }; + _methodParameterTypes33 = new String[] { "long" }; - _methodName36 = "sospendiPratica"; + _methodName34 = "sospendiPratica"; - _methodParameterTypes36 = new String[] { "long", "boolean" }; + _methodParameterTypes34 = new String[] { "long", "boolean" }; - _methodName37 = "cambiaTitolare"; + _methodName35 = "cambiaTitolare"; - _methodParameterTypes37 = new String[] { + _methodParameterTypes35 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName38 = "updateStatoPratica"; - - _methodParameterTypes38 = new String[] { "long", "java.lang.String" }; - - _methodName39 = "updateIntPraticaSorteggio"; - - _methodParameterTypes39 = new String[] { "long", "java.util.Date" }; - - _methodName40 = "updateIntPraticaSorteggio"; - - _methodParameterTypes40 = new String[] { - "long", "java.util.Date", "java.lang.String" - }; - - _methodName41 = "findByC_UserId"; + _methodName36 = "updateStatoPratica"; - _methodParameterTypes41 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes36 = new String[] { "long", "java.lang.String" }; - _methodName42 = "countByC_UserId"; + _methodName37 = "findByC_UserId"; - _methodParameterTypes42 = new String[] { "long", "long" }; + _methodParameterTypes37 = new String[] { "long", "long", "int", "int" }; - _methodName43 = "fetchByOldIntPraticaId"; + _methodName38 = "countByC_UserId"; - _methodParameterTypes43 = new String[] { "long" }; + _methodParameterTypes38 = new String[] { "long", "long" }; - _methodName44 = "updateStatus"; + _methodName39 = "updateStatus"; - _methodParameterTypes44 = new String[] { "long", "int" }; + _methodParameterTypes39 = new String[] { "long", "int" }; - _methodName45 = "findByCompanyIdSoggettoProgetti"; + _methodName40 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes45 = new String[] { "long", "long" }; + _methodParameterTypes40 = new String[] { "long", "long" }; - _methodName46 = "countByCompanyIdSoggettoProgetti"; + _methodName41 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes46 = new String[] { "long", "long" }; + _methodParameterTypes41 = new String[] { "long", "long" }; - _methodName47 = "findByCompanyIdSoggettoArchivio"; + _methodName42 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes47 = new String[] { "long", "long" }; + _methodParameterTypes42 = new String[] { "long", "long" }; - _methodName48 = "countByCompanyIdSoggettoArchivio"; + _methodName43 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes48 = new String[] { "long", "long" }; + _methodParameterTypes43 = new String[] { "long", "long" }; - _methodName49 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName44 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes49 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes44 = new String[] { "long", "long", "int", "int" }; - _methodName50 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName45 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes50 = new String[] { "long", "long" }; + _methodParameterTypes45 = new String[] { "long", "long" }; - _methodName51 = "findByCanAddFineLavori"; + _methodName46 = "findByCanAddFineLavori"; - _methodParameterTypes51 = new String[] { + _methodParameterTypes46 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName52 = "countByCanAddFineLavori"; + _methodName47 = "countByCanAddFineLavori"; - _methodParameterTypes52 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes47 = new String[] { "long", "java.lang.String" }; - _methodName53 = "findByCanAddCollaudo"; + _methodName48 = "findByCanAddCollaudo"; - _methodParameterTypes53 = new String[] { + _methodParameterTypes48 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName54 = "countByCanAddCollaudo"; + _methodName49 = "countByCanAddCollaudo"; - _methodParameterTypes54 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes49 = new String[] { "long", "java.lang.String" }; - _methodName55 = "search"; + _methodName50 = "search"; - _methodParameterTypes55 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes50 = new String[] { "java.util.List", "int", "int" }; - _methodName56 = "countSearch"; + _methodName51 = "countSearch"; - _methodParameterTypes56 = new String[] { "java.util.List" }; + _methodParameterTypes51 = new String[] { "java.util.List" }; - _methodName57 = "searchWithIntPraticaId"; + _methodName52 = "searchWithIntPraticaId"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes52 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName58 = "countSearchWithIntPraticaId"; - - _methodParameterTypes58 = new String[] { "java.util.List", "long" }; + _methodName53 = "allegaFileAnnullamento"; - _methodName59 = "allegaFileAnnullamento"; - - _methodParameterTypes59 = new String[] { + _methodParameterTypes53 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName60 = "generateFileAnnullamento"; + _methodName54 = "generateFileAnnullamento"; - _methodParameterTypes60 = new String[] { + _methodParameterTypes54 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName61 = "deleteFileAnnullamento"; + _methodName55 = "deleteFileAnnullamento"; - _methodParameterTypes61 = new String[] { "long" }; + _methodParameterTypes55 = new String[] { "long" }; - _methodName62 = "completeAnnullamento"; + _methodName56 = "completeAnnullamento"; - _methodParameterTypes62 = new String[] { "long" }; + _methodParameterTypes56 = new String[] { "long" }; - _methodName63 = "cambiaIstruttore"; + _methodName57 = "cambiaIstruttore"; - _methodParameterTypes63 = new String[] { "long", "long", "long" }; + _methodParameterTypes57 = new String[] { "long", "long", "long" }; - _methodName64 = "countCaricoLavoroCF"; + _methodName58 = "countCaricoLavoroCF"; - _methodParameterTypes64 = new String[] { - "long", "java.lang.String", "java.lang.Boolean", - "java.lang.Long[][]" + _methodParameterTypes58 = new String[] { + "long", "java.lang.String", "java.lang.Long[][]" }; - _methodName65 = "countCaricoLavoroIstruttore"; + _methodName59 = "countCaricoLavoroIstruttore"; - _methodParameterTypes65 = new String[] { - "long", "java.lang.String", "java.lang.Boolean" - }; + _methodParameterTypes59 = new String[] { "long", "java.lang.String" }; - _methodName66 = "generateReportPratica"; + _methodName60 = "generateReportPratica"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes60 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName67 = "updateModifiedDate"; + _methodName61 = "updateModifiedDate"; - _methodParameterTypes67 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes61 = new String[] { "long", "java.util.Date" }; - _methodName68 = "countAutorizzazione"; + _methodName62 = "countAutorizzazione"; - _methodParameterTypes68 = new String[] { + _methodParameterTypes62 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName69 = "countSanatorie"; + _methodName63 = "countSanatorie"; - _methodParameterTypes69 = new String[] { + _methodParameterTypes63 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName70 = "countOpereMinoreImportanza"; + _methodName64 = "countOpereMinoreImportanza"; - _methodParameterTypes70 = new String[] { + _methodParameterTypes64 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName71 = "countDeposito"; + _methodName65 = "countDeposito"; - _methodParameterTypes71 = new String[] { + _methodParameterTypes65 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName72 = "countVidimate"; + _methodName66 = "countVidimate"; - _methodParameterTypes72 = new String[] { + _methodParameterTypes66 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName73 = "countControllo"; + _methodName67 = "countControllo"; - _methodParameterTypes73 = new String[] { + _methodParameterTypes67 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName74 = "importaVecchiFilesFascicolo"; - - _methodParameterTypes74 = new String[] { "long", "int", "int" }; + _methodName68 = "riparaWorkflow"; - _methodName75 = "findIntPraticaNotExist"; + _methodParameterTypes68 = new String[] { }; - _methodParameterTypes75 = new String[] { }; + _methodName69 = "reIndexFascicolo"; - _methodName76 = "riparaWorkflow"; - - _methodParameterTypes76 = new String[] { }; - - _methodName77 = "reIndexFascicolo"; - - _methodParameterTypes77 = new String[] { + _methodParameterTypes69 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName78 = "reIndexFasciolo"; - - _methodParameterTypes78 = new String[] { "java.lang.String", "long" }; + _methodName70 = "reIndexFasciolo"; - _methodName79 = "reIndexFasciolo"; + _methodParameterTypes70 = new String[] { "java.lang.String", "long" }; - _methodParameterTypes79 = new String[] { "long", "long" }; + _methodName71 = "reIndexFasciolo"; - _methodName80 = "trovaDoppioni"; + _methodParameterTypes71 = new String[] { "long", "long" }; - _methodParameterTypes80 = new String[] { }; + _methodName72 = "findByNumeroProgetto"; - _methodName81 = "findByNumeroProgetto"; + _methodParameterTypes72 = new String[] { "java.lang.String" }; - _methodParameterTypes81 = new String[] { "java.lang.String" }; + _methodName73 = "findByTerritorioId"; - _methodName82 = "findByTerritorioId"; + _methodParameterTypes73 = new String[] { "long" }; - _methodParameterTypes82 = new String[] { "long" }; + _methodName74 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodName83 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - - _methodParameterTypes83 = new String[] { + _methodParameterTypes74 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName84 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; - - _methodParameterTypes84 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; - - _methodName85 = "reportPraticheVidimate"; + _methodName75 = "reportPraticheVidimate"; - _methodParameterTypes85 = new String[] { + _methodParameterTypes75 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName86 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName76 = "countIngressiAutorizzazioni"; - _methodParameterTypes86 = new String[] { + _methodParameterTypes76 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName87 = "countIngressiAutorizzazioni"; + _methodName77 = "countIngressiDepositi"; - _methodParameterTypes87 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; - - _methodName88 = "countIngressiDepositi"; - - _methodParameterTypes88 = new String[] { + _methodParameterTypes77 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName89 = "countIngressiCO"; + _methodName78 = "countIngressiCO"; - _methodParameterTypes89 = new String[] { + _methodParameterTypes78 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName90 = "getOrganizationByIntPraticaId"; + _methodName79 = "getOrganizationByIntPraticaId"; - _methodParameterTypes90 = new String[] { "long" }; + _methodParameterTypes79 = new String[] { "long" }; } @Override @@ -1220,9 +1165,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long userId, java.lang.String userName, java.lang.String tipoPratica, long territorioId, java.lang.String tipoProcedura, - java.util.Date dtSorteggio, java.lang.String statoPratica, - java.lang.String numeroProgetto, boolean validata, int esitoControllo, - java.util.Date dtPratica, long oldIntPraticaId, + java.lang.String statoPratica, java.lang.String numeroProgetto, + boolean validata, int esitoControllo, java.util.Date dtPratica, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1242,8 +1186,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { ClpSerializer.translateInput(tipoProcedura), - ClpSerializer.translateInput(dtSorteggio), - ClpSerializer.translateInput(statoPratica), ClpSerializer.translateInput(numeroProgetto), @@ -1254,8 +1196,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { ClpSerializer.translateInput(dtPratica), - oldIntPraticaId, - ClpSerializer.translateInput(serviceContext) }); } @@ -1282,54 +1222,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.List svuotaDatabase2( - com.liferay.portal.service.ServiceContext serviceContext) { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, - new Object[] { ClpSerializer.translateInput(serviceContext) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public void clearDb() throws java.lang.Exception { - try { - _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof java.lang.Exception) { - throw (java.lang.Exception)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - } - @Override public it.tref.liferay.portos.bo.model.IntPratica deleteIntPratica( it.tref.liferay.portos.bo.model.IntPratica intPratica, boolean forced) @@ -1338,8 +1230,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName25, + _methodParameterTypes25, new Object[] { ClpSerializer.translateInput(intPratica), @@ -1378,8 +1270,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { intPraticaId, @@ -1419,8 +1311,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { intPraticaId, @@ -1462,8 +1354,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1490,8 +1382,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1518,8 +1410,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { lat, lng, raggio }); + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { lat, lng, raggio }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1547,8 +1439,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { lat, lng, raggio }); + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { lat, lng, raggio }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1576,8 +1468,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { lat, lng, raggio, start, end }); } catch (Throwable t) { @@ -1607,8 +1499,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1641,8 +1533,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1677,8 +1569,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { intPraticaId, @@ -1718,8 +1610,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, @@ -1749,77 +1641,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(dtSorteggio) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio, - java.lang.String statoPratica) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(dtSorteggio), - - ClpSerializer.translateInput(statoPratica) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List findByC_UserId( long companyId, long userId, int start, int end) @@ -1827,8 +1648,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1856,8 +1677,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1878,42 +1699,13 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return ((Integer)returnObj).intValue(); } - @Override - public it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, new Object[] { oldIntPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.IntPratica)ClpSerializer.translateOutput(returnObj); - } - @Override public void updateStatus(long intPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1944,8 +1736,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1978,8 +1770,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2013,8 +1805,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2047,8 +1839,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2082,8 +1874,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2117,8 +1909,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2152,8 +1944,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { companyId, @@ -2195,8 +1987,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { companyId, @@ -2234,8 +2026,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { companyId, @@ -2277,8 +2069,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { companyId, @@ -2315,8 +2107,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2350,8 +2142,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2380,8 +2172,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2411,40 +2203,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public int countSearchWithIntPraticaId( - java.util.List groupIds, long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, - new Object[] { - ClpSerializer.translateInput(groupIds), - - intPraticaId - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - @Override public com.liferay.portal.kernel.repository.model.FileEntry allegaFileAnnullamento( long intPraticaId, byte[] content, java.lang.String sourceFileName, @@ -2456,8 +2214,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { intPraticaId, @@ -2507,8 +2265,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { intPraticaId, @@ -2547,8 +2305,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2577,8 +2335,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2607,8 +2365,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2634,22 +2392,19 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { @Override public int countCaricoLavoroCF(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio, - java.lang.Long[] intPraticaIds) + java.lang.String tipoPratica, java.lang.Long[] intPraticaIds) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { ispettoreId, ClpSerializer.translateInput(tipoPratica), - ClpSerializer.translateInput(sorteggio), - ClpSerializer.translateInput(intPraticaIds) }); } @@ -2678,19 +2433,17 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { @Override public int countCaricoLavoroIstruttore(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio) + java.lang.String tipoPratica) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { ispettoreId, - ClpSerializer.translateInput(tipoPratica), - - ClpSerializer.translateInput(sorteggio) + ClpSerializer.translateInput(tipoPratica) }); } catch (Throwable t) { @@ -2720,8 +2473,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2759,8 +2512,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId, @@ -2797,8 +2550,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2833,8 +2586,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2869,8 +2622,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2905,8 +2658,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2943,8 +2696,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2984,8 +2737,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3017,72 +2770,14 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.List importaVecchiFilesFascicolo( - long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, - new Object[] { companyId, start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findIntPraticaNotExist() - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName75, - _methodParameterTypes75, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List riparaWorkflow() throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3107,8 +2802,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFascicolo( it.tref.liferay.portos.bo.model.IntPratica intPratica, long companyId) { try { - _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { ClpSerializer.translateInput(intPratica), companyId }); } catch (Throwable t) { @@ -3128,8 +2823,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFasciolo(java.lang.String numeroProgetto, long companyId) throws com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, + _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -3158,8 +2853,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, + _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -3183,34 +2878,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { } } - @Override - public java.util.List trovaDoppioni() - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public it.tref.liferay.portos.bo.model.IntPratica findByNumeroProgetto( java.lang.String numeroProgetto) @@ -3218,8 +2885,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -3248,8 +2915,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3278,8 +2945,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3309,42 +2976,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.Map reportTempisticheIstruttorieCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, - new Object[] { - ClpSerializer.translateInput(dtMin), - - ClpSerializer.translateInput(dtMax), - - groupId - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.Map)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List reportPraticheVidimate( java.util.Date dtMin, java.util.Date dtMax, long groupId, @@ -3353,8 +2984,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, + returnObj = _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3384,42 +3015,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.Map reportPraticheVidimateCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName86, - _methodParameterTypes86, - new Object[] { - ClpSerializer.translateInput(dtMin), - - ClpSerializer.translateInput(dtMax), - - groupId - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.Map)ClpSerializer.translateOutput(returnObj); - } - @Override public int countIngressiAutorizzazioni(java.util.Date dtMin, java.util.Date dtMax, long groupId) @@ -3427,8 +3022,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName87, - _methodParameterTypes87, + returnObj = _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3463,8 +3058,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName88, - _methodParameterTypes88, + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3499,8 +3094,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName89, - _methodParameterTypes89, + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3536,8 +3131,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName90, - _methodParameterTypes90, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3721,26 +3316,4 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes78; private String _methodName79; private String[] _methodParameterTypes79; - private String _methodName80; - private String[] _methodParameterTypes80; - private String _methodName81; - private String[] _methodParameterTypes81; - private String _methodName82; - private String[] _methodParameterTypes82; - private String _methodName83; - private String[] _methodParameterTypes83; - private String _methodName84; - private String[] _methodParameterTypes84; - private String _methodName85; - private String[] _methodParameterTypes85; - private String _methodName86; - private String[] _methodParameterTypes86; - private String _methodName87; - private String[] _methodParameterTypes87; - private String _methodName88; - private String[] _methodParameterTypes88; - private String _methodName89; - private String[] _methodParameterTypes89; - private String _methodName90; - private String[] _methodParameterTypes90; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java index e065c5bb..2d494e26 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java @@ -354,25 +354,15 @@ public class IntPraticaLocalServiceUtil { public static it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long userId, java.lang.String userName, java.lang.String tipoPratica, long territorioId, java.lang.String tipoProcedura, - java.util.Date dtSorteggio, java.lang.String statoPratica, - java.lang.String numeroProgetto, boolean validata, int esitoControllo, - java.util.Date dtPratica, long oldIntPraticaId, + java.lang.String statoPratica, java.lang.String numeroProgetto, + boolean validata, int esitoControllo, java.util.Date dtPratica, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addIntPratica(userId, userName, tipoPratica, territorioId, - tipoProcedura, dtSorteggio, statoPratica, numeroProgetto, validata, - esitoControllo, dtPratica, oldIntPraticaId, serviceContext); - } - - public static java.util.List svuotaDatabase2( - com.liferay.portal.service.ServiceContext serviceContext) { - return getService().svuotaDatabase2(serviceContext); - } - - public static void clearDb() throws java.lang.Exception { - getService().clearDb(); + tipoProcedura, statoPratica, numeroProgetto, validata, + esitoControllo, dtPratica, serviceContext); } public static it.tref.liferay.portos.bo.model.IntPratica deleteIntPratica( @@ -460,21 +450,6 @@ public class IntPraticaLocalServiceUtil { return getService().updateStatoPratica(intPraticaId, statoPratica); } - public static it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().updateIntPraticaSorteggio(intPraticaId, dtSorteggio); - } - - public static it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio, - java.lang.String statoPratica) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .updateIntPraticaSorteggio(intPraticaId, dtSorteggio, - statoPratica); - } - public static java.util.List findByC_UserId( long companyId, long userId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { @@ -486,12 +461,6 @@ public class IntPraticaLocalServiceUtil { return getService().countByC_UserId(companyId, userId); } - public static it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldIntPraticaId(oldIntPraticaId); - } - public static void updateStatus(long intPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -595,12 +564,6 @@ public class IntPraticaLocalServiceUtil { .searchWithIntPraticaId(groupIds, intPraticaId, start, end); } - public static int countSearchWithIntPraticaId( - java.util.List groupIds, long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countSearchWithIntPraticaId(groupIds, intPraticaId); - } - public static com.liferay.portal.kernel.repository.model.FileEntry allegaFileAnnullamento( long intPraticaId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, @@ -644,21 +607,17 @@ public class IntPraticaLocalServiceUtil { } public static int countCaricoLavoroCF(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio, - java.lang.Long[] intPraticaIds) + java.lang.String tipoPratica, java.lang.Long[] intPraticaIds) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() - .countCaricoLavoroCF(ispettoreId, tipoPratica, sorteggio, - intPraticaIds); + .countCaricoLavoroCF(ispettoreId, tipoPratica, intPraticaIds); } public static int countCaricoLavoroIstruttore(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio) + java.lang.String tipoPratica) throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countCaricoLavoroIstruttore(ispettoreId, tipoPratica, - sorteggio); + return getService().countCaricoLavoroIstruttore(ispettoreId, tipoPratica); } public static long generateReportPratica( @@ -717,17 +676,6 @@ public class IntPraticaLocalServiceUtil { isControlloObbligatorio); } - public static java.util.List importaVecchiFilesFascicolo( - long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().importaVecchiFilesFascicolo(companyId, start, end); - } - - public static java.util.List findIntPraticaNotExist() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findIntPraticaNotExist(); - } - public static java.util.List riparaWorkflow() throws com.liferay.portal.kernel.exception.SystemException { return getService().riparaWorkflow(); @@ -750,11 +698,6 @@ public class IntPraticaLocalServiceUtil { getService().reIndexFasciolo(intPraticaId, companyId); } - public static java.util.List trovaDoppioni() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().trovaDoppioni(); - } - public static it.tref.liferay.portos.bo.model.IntPratica findByNumeroProgetto( java.lang.String numeroProgetto) throws com.liferay.portal.kernel.exception.SystemException { @@ -767,9 +710,6 @@ public class IntPraticaLocalServiceUtil { return getService().findByTerritorioId(territorioId); } - /** - * ADT: report tempistiche istruttorie - */ public static java.util.List reportTempisticheIstruttorieAvvisiAutorizzazioni( java.util.Date dtMin, java.util.Date dtMax, long groupId, java.lang.String type) @@ -779,24 +719,6 @@ public class IntPraticaLocalServiceUtil { dtMax, groupId, type); } - /** - * @param dtMin - * @param dtMax - * @param groupId - * @return - * @throws SystemException - */ - public static java.util.Map reportTempisticheIstruttorieCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .reportTempisticheIstruttorieCalcolaDataSorteggio(dtMin, - dtMax, groupId); - } - - /** - * ADT: report pratiche vidimate - */ public static java.util.List reportPraticheVidimate( java.util.Date dtMin, java.util.Date dtMax, long groupId, java.lang.String type) @@ -804,14 +726,6 @@ public class IntPraticaLocalServiceUtil { return getService().reportPraticheVidimate(dtMin, dtMax, groupId, type); } - public static java.util.Map reportPraticheVidimateCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .reportPraticheVidimateCalcolaDataSorteggio(dtMin, dtMax, - groupId); - } - public static int countIngressiAutorizzazioni(java.util.Date dtMin, java.util.Date dtMax, long groupId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java index 4cf956bd..ce9da753 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java @@ -376,27 +376,14 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long userId, java.lang.String userName, java.lang.String tipoPratica, long territorioId, java.lang.String tipoProcedura, - java.util.Date dtSorteggio, java.lang.String statoPratica, - java.lang.String numeroProgetto, boolean validata, int esitoControllo, - java.util.Date dtPratica, long oldIntPraticaId, + java.lang.String statoPratica, java.lang.String numeroProgetto, + boolean validata, int esitoControllo, java.util.Date dtPratica, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _intPraticaLocalService.addIntPratica(userId, userName, - tipoPratica, territorioId, tipoProcedura, dtSorteggio, - statoPratica, numeroProgetto, validata, esitoControllo, dtPratica, - oldIntPraticaId, serviceContext); - } - - @Override - public java.util.List svuotaDatabase2( - com.liferay.portal.service.ServiceContext serviceContext) { - return _intPraticaLocalService.svuotaDatabase2(serviceContext); - } - - @Override - public void clearDb() throws java.lang.Exception { - _intPraticaLocalService.clearDb(); + tipoPratica, territorioId, tipoProcedura, statoPratica, + numeroProgetto, validata, esitoControllo, dtPratica, serviceContext); } @Override @@ -498,23 +485,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, statoPratica); } - @Override - public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.updateIntPraticaSorteggio(intPraticaId, - dtSorteggio); - } - - @Override - public it.tref.liferay.portos.bo.model.IntPratica updateIntPraticaSorteggio( - long intPraticaId, java.util.Date dtSorteggio, - java.lang.String statoPratica) - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.updateIntPraticaSorteggio(intPraticaId, - dtSorteggio, statoPratica); - } - @Override public java.util.List findByC_UserId( long companyId, long userId, int start, int end) @@ -529,13 +499,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, return _intPraticaLocalService.countByC_UserId(companyId, userId); } - @Override - public it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.fetchByOldIntPraticaId(oldIntPraticaId); - } - @Override public void updateStatus(long intPraticaId, int status) throws com.liferay.portal.kernel.exception.PortalException, @@ -652,14 +615,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, intPraticaId, start, end); } - @Override - public int countSearchWithIntPraticaId( - java.util.List groupIds, long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.countSearchWithIntPraticaId(groupIds, - intPraticaId); - } - @Override public com.liferay.portal.kernel.repository.model.FileEntry allegaFileAnnullamento( long intPraticaId, byte[] content, java.lang.String sourceFileName, @@ -708,20 +663,19 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, @Override public int countCaricoLavoroCF(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio, - java.lang.Long[] intPraticaIds) + java.lang.String tipoPratica, java.lang.Long[] intPraticaIds) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _intPraticaLocalService.countCaricoLavoroCF(ispettoreId, - tipoPratica, sorteggio, intPraticaIds); + tipoPratica, intPraticaIds); } @Override public int countCaricoLavoroIstruttore(long ispettoreId, - java.lang.String tipoPratica, java.lang.Boolean sorteggio) + java.lang.String tipoPratica) throws com.liferay.portal.kernel.exception.SystemException { return _intPraticaLocalService.countCaricoLavoroIstruttore(ispettoreId, - tipoPratica, sorteggio); + tipoPratica); } @Override @@ -788,20 +742,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, type, isControlloObbligatorio); } - @Override - public java.util.List importaVecchiFilesFascicolo( - long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.importaVecchiFilesFascicolo(companyId, - start, end); - } - - @Override - public java.util.List findIntPraticaNotExist() - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.findIntPraticaNotExist(); - } - @Override public java.util.List riparaWorkflow() throws com.liferay.portal.kernel.exception.SystemException { @@ -827,12 +767,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, _intPraticaLocalService.reIndexFasciolo(intPraticaId, companyId); } - @Override - public java.util.List trovaDoppioni() - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.trovaDoppioni(); - } - @Override public it.tref.liferay.portos.bo.model.IntPratica findByNumeroProgetto( java.lang.String numeroProgetto) @@ -847,9 +781,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, return _intPraticaLocalService.findByTerritorioId(territorioId); } - /** - * ADT: report tempistiche istruttorie - */ @Override public java.util.List reportTempisticheIstruttorieAvvisiAutorizzazioni( java.util.Date dtMin, java.util.Date dtMax, long groupId, @@ -859,24 +790,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, dtMax, groupId, type); } - /** - * @param dtMin - * @param dtMax - * @param groupId - * @return - * @throws SystemException - */ - @Override - public java.util.Map reportTempisticheIstruttorieCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.reportTempisticheIstruttorieCalcolaDataSorteggio(dtMin, - dtMax, groupId); - } - - /** - * ADT: report pratiche vidimate - */ @Override public java.util.List reportPraticheVidimate( java.util.Date dtMin, java.util.Date dtMax, long groupId, @@ -886,14 +799,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, groupId, type); } - @Override - public java.util.Map reportPraticheVidimateCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _intPraticaLocalService.reportPraticheVidimateCalcolaDataSorteggio(dtMin, - dtMax, groupId); - } - @Override public int countIngressiAutorizzazioni(java.util.Date dtMin, java.util.Date dtMax, long groupId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaService.java index def352bd..b5fe18b2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaService.java @@ -97,34 +97,6 @@ public interface IntPraticaService extends BaseService, InvokableService { public int countSearch(java.util.List groupIds) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByCompanyIdSoggettoProgetti( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByCompanyIdSoggettoArchivio( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByCompanyIdSoggettoAltriProgetti( - long companyId, long soggettoId, int start, int end) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - public int countByCompanyIdSoggettoAltriProgetti(long companyId, - long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByCanAddFineLavori( long companyId, java.lang.String codiceFiscale, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, @@ -161,8 +133,4 @@ public interface IntPraticaService extends BaseService, InvokableService { long istruttoreId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - - public java.lang.String geosisma(long intPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceClp.java index 04c2867c..bad9d174 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceClp.java @@ -62,68 +62,40 @@ public class IntPraticaServiceClp implements IntPraticaService { _methodParameterTypes9 = new String[] { "java.util.List" }; - _methodName10 = "findByCompanyIdSoggettoProgetti"; + _methodName10 = "findByCanAddFineLavori"; - _methodParameterTypes10 = new String[] { "long", "long" }; - - _methodName11 = "countByCompanyIdSoggettoProgetti"; - - _methodParameterTypes11 = new String[] { "long", "long" }; - - _methodName12 = "findByCompanyIdSoggettoArchivio"; - - _methodParameterTypes12 = new String[] { "long", "long" }; - - _methodName13 = "countByCompanyIdSoggettoArchivio"; - - _methodParameterTypes13 = new String[] { "long", "long" }; - - _methodName14 = "findByCompanyIdSoggettoAltriProgetti"; - - _methodParameterTypes14 = new String[] { "long", "long", "int", "int" }; - - _methodName15 = "countByCompanyIdSoggettoAltriProgetti"; - - _methodParameterTypes15 = new String[] { "long", "long" }; - - _methodName16 = "findByCanAddFineLavori"; - - _methodParameterTypes16 = new String[] { + _methodParameterTypes10 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName17 = "countByCanAddFineLavori"; + _methodName11 = "countByCanAddFineLavori"; - _methodParameterTypes17 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes11 = new String[] { "long", "java.lang.String" }; - _methodName18 = "findByCanAddCollaudo"; + _methodName12 = "findByCanAddCollaudo"; - _methodParameterTypes18 = new String[] { + _methodParameterTypes12 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName19 = "countByCanAddCollaudo"; + _methodName13 = "countByCanAddCollaudo"; - _methodParameterTypes19 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes13 = new String[] { "long", "java.lang.String" }; - _methodName20 = "allegaFileAnnullamento"; + _methodName14 = "allegaFileAnnullamento"; - _methodParameterTypes20 = new String[] { + _methodParameterTypes14 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName21 = "completeAnnullamento"; - - _methodParameterTypes21 = new String[] { "long", "long" }; + _methodName15 = "completeAnnullamento"; - _methodName22 = "cambiaIstruttore"; - - _methodParameterTypes22 = new String[] { "long", "long", "long" }; + _methodParameterTypes15 = new String[] { "long", "long" }; - _methodName23 = "geosisma"; + _methodName16 = "cambiaIstruttore"; - _methodParameterTypes23 = new String[] { "long" }; + _methodParameterTypes16 = new String[] { "long", "long", "long" }; } @Override @@ -405,214 +377,6 @@ public class IntPraticaServiceClp implements IntPraticaService { return ((Integer)returnObj).intValue(); } - @Override - public java.util.List findByCompanyIdSoggettoProgetti( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName10, - _methodParameterTypes10, - new Object[] { companyId, soggettoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName11, - _methodParameterTypes11, - new Object[] { companyId, soggettoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByCompanyIdSoggettoArchivio( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName12, - _methodParameterTypes12, - new Object[] { companyId, soggettoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName13, - _methodParameterTypes13, - new Object[] { companyId, soggettoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByCompanyIdSoggettoAltriProgetti( - long companyId, long soggettoId, int start, int end) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName14, - _methodParameterTypes14, - new Object[] { companyId, soggettoId, start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByCompanyIdSoggettoAltriProgetti(long companyId, - long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName15, - _methodParameterTypes15, - new Object[] { companyId, soggettoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - @Override public java.util.List findByCanAddFineLavori( long companyId, java.lang.String codiceFiscale, int start, int end) @@ -621,8 +385,8 @@ public class IntPraticaServiceClp implements IntPraticaService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName16, - _methodParameterTypes16, + returnObj = _invokableService.invokeMethod(_methodName10, + _methodParameterTypes10, new Object[] { companyId, @@ -664,8 +428,8 @@ public class IntPraticaServiceClp implements IntPraticaService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName17, - _methodParameterTypes17, + returnObj = _invokableService.invokeMethod(_methodName11, + _methodParameterTypes11, new Object[] { companyId, @@ -703,8 +467,8 @@ public class IntPraticaServiceClp implements IntPraticaService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName18, - _methodParameterTypes18, + returnObj = _invokableService.invokeMethod(_methodName12, + _methodParameterTypes12, new Object[] { companyId, @@ -746,8 +510,8 @@ public class IntPraticaServiceClp implements IntPraticaService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName19, - _methodParameterTypes19, + returnObj = _invokableService.invokeMethod(_methodName13, + _methodParameterTypes13, new Object[] { companyId, @@ -788,8 +552,8 @@ public class IntPraticaServiceClp implements IntPraticaService { Object returnObj = null; try { - returnObj = _invokableService.invokeMethod(_methodName20, - _methodParameterTypes20, + returnObj = _invokableService.invokeMethod(_methodName14, + _methodParameterTypes14, new Object[] { intPraticaId, @@ -834,8 +598,8 @@ public class IntPraticaServiceClp implements IntPraticaService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableService.invokeMethod(_methodName21, - _methodParameterTypes21, new Object[] { intPraticaId, userId }); + _invokableService.invokeMethod(_methodName15, + _methodParameterTypes15, new Object[] { intPraticaId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -864,8 +628,8 @@ public class IntPraticaServiceClp implements IntPraticaService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableService.invokeMethod(_methodName22, - _methodParameterTypes22, + _invokableService.invokeMethod(_methodName16, + _methodParameterTypes16, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -889,39 +653,6 @@ public class IntPraticaServiceClp implements IntPraticaService { } } - @Override - public java.lang.String geosisma(long intPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName23, - _methodParameterTypes23, new Object[] { intPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.lang.String)ClpSerializer.translateOutput(returnObj); - } - private InvokableService _invokableService; private String _methodName0; private String[] _methodParameterTypes0; @@ -955,18 +686,4 @@ public class IntPraticaServiceClp implements IntPraticaService { private String[] _methodParameterTypes15; private String _methodName16; private String[] _methodParameterTypes16; - private String _methodName17; - private String[] _methodParameterTypes17; - private String _methodName18; - private String[] _methodParameterTypes18; - private String _methodName19; - private String[] _methodParameterTypes19; - private String _methodName20; - private String[] _methodParameterTypes20; - private String _methodName21; - private String[] _methodParameterTypes21; - private String _methodName22; - private String[] _methodParameterTypes22; - private String _methodName23; - private String[] _methodParameterTypes23; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceUtil.java index 8b8d52a9..097a3b45 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceUtil.java @@ -107,55 +107,6 @@ public class IntPraticaServiceUtil { return getService().countSearch(groupIds); } - public static java.util.List findByCompanyIdSoggettoProgetti( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByCompanyIdSoggettoProgetti(companyId, soggettoId); - } - - public static int countByCompanyIdSoggettoProgetti(long companyId, - long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByCompanyIdSoggettoProgetti(companyId, soggettoId); - } - - public static java.util.List findByCompanyIdSoggettoArchivio( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByCompanyIdSoggettoArchivio(companyId, soggettoId); - } - - public static int countByCompanyIdSoggettoArchivio(long companyId, - long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByCompanyIdSoggettoArchivio(companyId, soggettoId); - } - - public static java.util.List findByCompanyIdSoggettoAltriProgetti( - long companyId, long soggettoId, int start, int end) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByCompanyIdSoggettoAltriProgetti(companyId, soggettoId, - start, end); - } - - public static int countByCompanyIdSoggettoAltriProgetti(long companyId, - long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByCompanyIdSoggettoAltriProgetti(companyId, soggettoId); - } - public static java.util.List findByCanAddFineLavori( long companyId, java.lang.String codiceFiscale, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, @@ -212,12 +163,6 @@ public class IntPraticaServiceUtil { .cambiaIstruttore(intPraticaId, controlloPraticaId, istruttoreId); } - public static java.lang.String geosisma(long intPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().geosisma(intPraticaId); - } - public static void clearService() { _service = null; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceWrapper.java index 31dbadbe..2f850cbb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaServiceWrapper.java @@ -108,58 +108,6 @@ public class IntPraticaServiceWrapper implements IntPraticaService, return _intPraticaService.countSearch(groupIds); } - @Override - public java.util.List findByCompanyIdSoggettoProgetti( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _intPraticaService.findByCompanyIdSoggettoProgetti(companyId, - soggettoId); - } - - @Override - public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _intPraticaService.countByCompanyIdSoggettoProgetti(companyId, - soggettoId); - } - - @Override - public java.util.List findByCompanyIdSoggettoArchivio( - long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _intPraticaService.findByCompanyIdSoggettoArchivio(companyId, - soggettoId); - } - - @Override - public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _intPraticaService.countByCompanyIdSoggettoArchivio(companyId, - soggettoId); - } - - @Override - public java.util.List findByCompanyIdSoggettoAltriProgetti( - long companyId, long soggettoId, int start, int end) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _intPraticaService.findByCompanyIdSoggettoAltriProgetti(companyId, - soggettoId, start, end); - } - - @Override - public int countByCompanyIdSoggettoAltriProgetti(long companyId, - long soggettoId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _intPraticaService.countByCompanyIdSoggettoAltriProgetti(companyId, - soggettoId); - } - @Override public java.util.List findByCanAddFineLavori( long companyId, java.lang.String codiceFiscale, int start, int end) @@ -223,13 +171,6 @@ public class IntPraticaServiceWrapper implements IntPraticaService, istruttoreId); } - @Override - public java.lang.String geosisma(long intPraticaId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _intPraticaService.geosisma(intPraticaId); - } - /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java index 57fa9e9a..332d2be3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java @@ -323,7 +323,6 @@ public interface PagamentoLocalService extends BaseLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -333,7 +332,6 @@ public interface PagamentoLocalService extends BaseLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -343,7 +341,6 @@ public interface PagamentoLocalService extends BaseLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -353,8 +350,7 @@ public interface PagamentoLocalService extends BaseLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoImporto, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, java.lang.String url, - java.util.List iuvs, + java.lang.String url, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -403,10 +399,6 @@ public interface PagamentoLocalService extends BaseLocalService, java.lang.String mezzo, java.lang.String utilizzata, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.Pagamento findByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - public int countByMezzo_Utilizzata(java.lang.String mezzo, java.lang.String utilizzata) throws com.liferay.portal.kernel.exception.SystemException; @@ -485,11 +477,6 @@ public interface PagamentoLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.Pagamento updateOtf( long pagamentoId, boolean otf) throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java index 39595b64..72f03a8d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java @@ -143,7 +143,7 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { _methodParameterTypes25 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", "long", + "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -152,7 +152,7 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { _methodParameterTypes26 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", "long", + "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -162,8 +162,7 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", - "java.lang.String", "long", - "com.liferay.portal.service.ServiceContext" + "java.lang.String", "com.liferay.portal.service.ServiceContext" }; _methodName28 = "addPagamentoAndUpdate"; @@ -172,7 +171,7 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", - "java.lang.String", "long", "java.lang.String", "java.util.List", + "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -225,110 +224,102 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { "java.lang.String", "java.lang.String", "int", "int" }; - _methodName38 = "findByOldPagamentoId"; - - _methodParameterTypes38 = new String[] { "long" }; + _methodName38 = "countByMezzo_Utilizzata"; - _methodName39 = "countByMezzo_Utilizzata"; - - _methodParameterTypes39 = new String[] { + _methodParameterTypes38 = new String[] { "java.lang.String", "java.lang.String" }; - _methodName40 = "findByMezzo_Utilizzata_CreateDate"; + _methodName39 = "findByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes40 = new String[] { + _methodParameterTypes39 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date", "int", "int" }; - _methodName41 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName40 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes41 = new String[] { + _methodParameterTypes40 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date" }; - _methodName42 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName41 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes42 = new String[] { + _methodParameterTypes41 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "int", "int" }; - _methodName43 = "findInPending"; + _methodName42 = "findInPending"; - _methodParameterTypes43 = new String[] { + _methodParameterTypes42 = new String[] { "java.util.Date", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName44 = "countInPending"; + _methodName43 = "countInPending"; - _methodParameterTypes44 = new String[] { "java.util.Date" }; + _methodParameterTypes43 = new String[] { "java.util.Date" }; - _methodName45 = "countByMezzo_Utilizzata_CreateDate"; + _methodName44 = "countByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes45 = new String[] { + _methodParameterTypes44 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName46 = "updateEmailPendingPagamento"; + _methodName45 = "updateEmailPendingPagamento"; + + _methodParameterTypes45 = new String[] { "long", "boolean" }; - _methodParameterTypes46 = new String[] { "long", "boolean" }; + _methodName46 = "countByClassPk"; - _methodName47 = "countByClassPk"; + _methodParameterTypes46 = new String[] { "long" }; + + _methodName47 = "findByClassPk"; _methodParameterTypes47 = new String[] { "long" }; - _methodName48 = "findByClassPk"; + _methodName48 = "findByIntPratica"; _methodParameterTypes48 = new String[] { "long" }; - _methodName49 = "findByIntPratica"; + _methodName49 = "countByIntPratica"; _methodParameterTypes49 = new String[] { "long" }; - _methodName50 = "countByIntPratica"; + _methodName50 = "findByIntPratica_Visible"; _methodParameterTypes50 = new String[] { "long" }; - _methodName51 = "findByIntPratica_Visible"; + _methodName51 = "countByIntPratica_Visible"; _methodParameterTypes51 = new String[] { "long" }; - _methodName52 = "countByIntPratica_Visible"; - - _methodParameterTypes52 = new String[] { "long" }; + _methodName52 = "sostituisciPagamento"; - _methodName53 = "sostituisciPagamento"; - - _methodParameterTypes53 = new String[] { + _methodParameterTypes52 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName54 = "updatePagamentoManuale"; + _methodName53 = "updatePagamentoManuale"; - _methodParameterTypes54 = new String[] { + _methodParameterTypes53 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName55 = "updatePagamentoManualeFromImport"; + _methodName54 = "updatePagamentoManualeFromImport"; - _methodParameterTypes55 = new String[] { + _methodParameterTypes54 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName56 = "fetchByOldPagamentoId"; - - _methodParameterTypes56 = new String[] { "long" }; - - _methodName57 = "updateOtf"; + _methodName55 = "updateOtf"; - _methodParameterTypes57 = new String[] { "long", "boolean" }; + _methodParameterTypes55 = new String[] { "long", "boolean" }; } @Override @@ -1073,7 +1064,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1101,8 +1091,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { ClpSerializer.translateInput(className), - oldPagamentoId, - ClpSerializer.translateInput(serviceContext) }); } @@ -1135,7 +1123,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1163,8 +1150,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { ClpSerializer.translateInput(className), - oldPagamentoId, - ClpSerializer.translateInput(serviceContext) }); } @@ -1197,7 +1182,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1227,8 +1211,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { ClpSerializer.translateInput(className), - oldPagamentoId, - ClpSerializer.translateInput(serviceContext) }); } @@ -1261,8 +1243,7 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoImporto, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, java.lang.String url, - java.util.List iuvs, + java.lang.String url, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1292,12 +1273,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { ClpSerializer.translateInput(className), - oldPagamentoId, - ClpSerializer.translateInput(url), - ClpSerializer.translateInput(iuvs), - ClpSerializer.translateInput(serviceContext) }); } @@ -1667,35 +1644,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.Pagamento findByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, new Object[] { oldPagamentoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Pagamento)ClpSerializer.translateOutput(returnObj); - } - @Override public int countByMezzo_Utilizzata(java.lang.String mezzo, java.lang.String utilizzata) @@ -1703,8 +1651,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { ClpSerializer.translateInput(mezzo), @@ -1738,8 +1686,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { ClpSerializer.translateInput(mezzo), @@ -1779,8 +1727,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { ClpSerializer.translateInput(mezzo), @@ -1818,8 +1766,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { ClpSerializer.translateInput(mezzo), @@ -1861,8 +1809,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { ClpSerializer.translateInput(date), @@ -1898,8 +1846,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { ClpSerializer.translateInput(date) }); } catch (Throwable t) { @@ -1928,8 +1876,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { ClpSerializer.translateInput(mezzo), @@ -1965,8 +1913,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { pagamentoId, emailPending }); } catch (Throwable t) { @@ -1998,8 +1946,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, new Object[] { classPk }); + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { classPk }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2027,8 +1975,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, new Object[] { classPk }); + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { classPk }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2056,8 +2004,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2084,8 +2032,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2113,8 +2061,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2141,8 +2089,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2171,8 +2119,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { pagamentoId, @@ -2215,8 +2163,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { com.liferay.portal.kernel.exception.SystemException, java.io.IOException { try { - _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { pagamentoId, @@ -2261,8 +2209,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { pagamentoId, @@ -2294,35 +2242,6 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { } } - @Override - public it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, new Object[] { oldPagamentoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Pagamento)ClpSerializer.translateOutput(returnObj); - } - @Override public it.tref.liferay.portos.bo.model.Pagamento updateOtf( long pagamentoId, boolean otf) @@ -2331,8 +2250,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, new Object[] { pagamentoId, otf }); + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { pagamentoId, otf }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2468,8 +2387,4 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService { private String[] _methodParameterTypes54; private String _methodName55; private String[] _methodParameterTypes55; - private String _methodName56; - private String[] _methodParameterTypes56; - private String _methodName57; - private String[] _methodParameterTypes57; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java index 70b3dc7a..03fdaff9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java @@ -351,14 +351,13 @@ public class PagamentoLocalServiceUtil { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addPagamento(codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, utilizzata, - classPk, className, oldPagamentoId, serviceContext); + classPk, className, serviceContext); } public static it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( @@ -366,14 +365,13 @@ public class PagamentoLocalServiceUtil { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addPagamentoAndUpdate(codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, utilizzata, - classPk, className, oldPagamentoId, serviceContext); + classPk, className, serviceContext); } public static it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( @@ -381,14 +379,13 @@ public class PagamentoLocalServiceUtil { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, utilizzata, - classPk, className, oldPagamentoId, serviceContext); + classPk, className, serviceContext); } public static it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( @@ -396,15 +393,14 @@ public class PagamentoLocalServiceUtil { java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoImporto, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, java.lang.String url, - java.util.List iuvs, + java.lang.String url, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, tipoImporto, importo, utilizzata, - classPk, className, oldPagamentoId, url, iuvs, serviceContext); + classPk, className, url, serviceContext); } public static it.tref.liferay.portos.bo.model.Pagamento updatePagamento( @@ -478,12 +474,6 @@ public class PagamentoLocalServiceUtil { return getService().findByMezzo_Utilizzata(mezzo, utilizzata, start, end); } - public static it.tref.liferay.portos.bo.model.Pagamento findByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByOldPagamentoId(oldPagamentoId); - } - public static int countByMezzo_Utilizzata(java.lang.String mezzo, java.lang.String utilizzata) throws com.liferay.portal.kernel.exception.SystemException { @@ -610,12 +600,6 @@ public class PagamentoLocalServiceUtil { sourceFileName, serviceContext); } - public static it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldPagamentoId(oldPagamentoId); - } - public static it.tref.liferay.portos.bo.model.Pagamento updateOtf( long pagamentoId, boolean otf) throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java index 29d3e9b6..37131bd5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java @@ -372,13 +372,12 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _pagamentoLocalService.addPagamento(codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, utilizzata, - classPk, className, oldPagamentoId, serviceContext); + classPk, className, serviceContext); } @Override @@ -387,13 +386,12 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _pagamentoLocalService.addPagamentoAndUpdate(codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, - utilizzata, classPk, className, oldPagamentoId, serviceContext); + utilizzata, classPk, className, serviceContext); } @Override @@ -402,14 +400,12 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoPagamento, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _pagamentoLocalService.addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, - importo, utilizzata, classPk, className, oldPagamentoId, - serviceContext); + importo, utilizzata, classPk, className, serviceContext); } @Override @@ -418,15 +414,13 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String tipoImporto, java.lang.String importo, java.lang.String utilizzata, long classPk, java.lang.String className, - long oldPagamentoId, java.lang.String url, - java.util.List iuvs, + java.lang.String url, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _pagamentoLocalService.addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, tipoImporto, - importo, utilizzata, classPk, className, oldPagamentoId, url, iuvs, - serviceContext); + importo, utilizzata, classPk, className, url, serviceContext); } @Override @@ -507,13 +501,6 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService, start, end); } - @Override - public it.tref.liferay.portos.bo.model.Pagamento findByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return _pagamentoLocalService.findByOldPagamentoId(oldPagamentoId); - } - @Override public int countByMezzo_Utilizzata(java.lang.String mezzo, java.lang.String utilizzata) @@ -651,13 +638,6 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService, content, sourceFileName, serviceContext); } - @Override - public it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return _pagamentoLocalService.fetchByOldPagamentoId(oldPagamentoId); - } - @Override public it.tref.liferay.portos.bo.model.Pagamento updateOtf( long pagamentoId, boolean otf) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java index 795f1072..77b3d7a7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java @@ -373,4 +373,10 @@ public interface ParereGeologoLocalService extends BaseLocalService, public int countFindWithParereByGeologoId(long geologoUserId) throws com.liferay.portal.kernel.exception.SystemException; + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java index 051993f0..cf0ca5aa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java @@ -202,6 +202,10 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { _methodName38 = "countFindWithParereByGeologoId"; _methodParameterTypes38 = new String[] { "long" }; + + _methodName39 = "getCarichiLavoro"; + + _methodParameterTypes39 = new String[] { "long", "int" }; } @Override @@ -1384,6 +1388,41 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { return ((Integer)returnObj).intValue(); } + @Override + public java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, + new Object[] { controlloPraticaId, giorni }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.Map)ClpSerializer.translateOutput(returnObj); + } + private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -1461,4 +1500,6 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { private String[] _methodParameterTypes37; private String _methodName38; private String[] _methodParameterTypes38; + private String _methodName39; + private String[] _methodParameterTypes39; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java index d44b8684..cf404f6d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java @@ -439,6 +439,13 @@ public class ParereGeologoLocalServiceUtil { return getService().countFindWithParereByGeologoId(geologoUserId); } + public static java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getCarichiLavoro(controlloPraticaId, giorni); + } + public static void clearService() { _service = null; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java index b1e7dcf8..d78970b4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java @@ -478,6 +478,15 @@ public class ParereGeologoLocalServiceWrapper return _parereGeologoLocalService.countFindWithParereByGeologoId(geologoUserId); } + @Override + public java.util.Map getCarichiLavoro( + long controlloPraticaId, int giorni) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _parereGeologoLocalService.getCarichiLavoro(controlloPraticaId, + giorni); + } + /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalService.java index 6880fa47..3b596656 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalService.java @@ -254,11 +254,8 @@ public interface ProvinciaLocalService extends BaseLocalService, java.lang.String[] parameterTypes, java.lang.Object[] arguments) throws java.lang.Throwable; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getProvinceAttive(); - public it.tref.liferay.portos.bo.model.Provincia addProvincia(long userId, - java.lang.String codiceProvincia, java.lang.String provincia, + java.lang.String codiceProvincia, java.lang.String nome, java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -305,7 +302,7 @@ public interface ProvinciaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.SystemException; public it.tref.liferay.portos.bo.model.Provincia updateProvincia( - long userId, long provinciaId, java.lang.String provincia, + long userId, long provinciaId, java.lang.String nome, java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceClp.java index e867fd55..6b9c696f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceClp.java @@ -114,65 +114,61 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { _methodParameterTypes17 = new String[] { "java.lang.String" }; - _methodName19 = "getProvinceAttive"; + _methodName19 = "addProvincia"; - _methodParameterTypes19 = new String[] { }; - - _methodName20 = "addProvincia"; - - _methodParameterTypes20 = new String[] { + _methodParameterTypes19 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName21 = "findAll"; + _methodName20 = "findAll"; - _methodParameterTypes21 = new String[] { + _methodParameterTypes20 = new String[] { "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName22 = "countByCompanyId"; + _methodName21 = "countByCompanyId"; + + _methodParameterTypes21 = new String[] { "long" }; - _methodParameterTypes22 = new String[] { "long" }; + _methodName22 = "countByKeywords"; - _methodName23 = "countByKeywords"; + _methodParameterTypes22 = new String[] { "long", "java.lang.String" }; + + _methodName23 = "fetchByC_C"; _methodParameterTypes23 = new String[] { "long", "java.lang.String" }; - _methodName24 = "fetchByC_C"; + _methodName24 = "fetchByC_S"; _methodParameterTypes24 = new String[] { "long", "java.lang.String" }; - _methodName25 = "fetchByC_S"; + _methodName25 = "findByCompanyId"; - _methodParameterTypes25 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes25 = new String[] { "long", "int", "int" }; _methodName26 = "findByCompanyId"; - _methodParameterTypes26 = new String[] { "long", "int", "int" }; - - _methodName27 = "findByCompanyId"; - - _methodParameterTypes27 = new String[] { + _methodParameterTypes26 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName28 = "findByC_C"; + _methodName27 = "findByC_C"; - _methodParameterTypes28 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes27 = new String[] { "long", "java.lang.String" }; - _methodName29 = "findByKeywords"; + _methodName28 = "findByKeywords"; - _methodParameterTypes29 = new String[] { + _methodParameterTypes28 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName30 = "updateProvincia"; + _methodName29 = "updateProvincia"; - _methodParameterTypes30 = new String[] { + _methodParameterTypes29 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -728,32 +724,9 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { throw new UnsupportedOperationException(); } - @Override - public java.util.List getProvinceAttive() { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName19, - _methodParameterTypes19, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public it.tref.liferay.portos.bo.model.Provincia addProvincia(long userId, - java.lang.String codiceProvincia, java.lang.String provincia, + java.lang.String codiceProvincia, java.lang.String nome, java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -761,14 +734,14 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName20, - _methodParameterTypes20, + returnObj = _invokableLocalService.invokeMethod(_methodName19, + _methodParameterTypes19, new Object[] { userId, ClpSerializer.translateInput(codiceProvincia), - ClpSerializer.translateInput(provincia), + ClpSerializer.translateInput(nome), ClpSerializer.translateInput(regione), @@ -808,8 +781,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName21, - _methodParameterTypes21, + returnObj = _invokableLocalService.invokeMethod(_methodName20, + _methodParameterTypes20, new Object[] { start, @@ -843,8 +816,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName22, - _methodParameterTypes22, new Object[] { companyId }); + returnObj = _invokableLocalService.invokeMethod(_methodName21, + _methodParameterTypes21, new Object[] { companyId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -871,8 +844,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName23, - _methodParameterTypes23, + returnObj = _invokableLocalService.invokeMethod(_methodName22, + _methodParameterTypes22, new Object[] { companyId, @@ -905,8 +878,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, + returnObj = _invokableLocalService.invokeMethod(_methodName23, + _methodParameterTypes23, new Object[] { companyId, @@ -939,8 +912,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, + returnObj = _invokableLocalService.invokeMethod(_methodName24, + _methodParameterTypes24, new Object[] { companyId, ClpSerializer.translateInput( sigla) }); } @@ -970,8 +943,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, + returnObj = _invokableLocalService.invokeMethod(_methodName25, + _methodParameterTypes25, new Object[] { companyId, start, end }); } catch (Throwable t) { @@ -1001,8 +974,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { companyId, @@ -1040,8 +1013,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { companyId, @@ -1079,8 +1052,8 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { companyId, @@ -1114,7 +1087,7 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { @Override public it.tref.liferay.portos.bo.model.Provincia updateProvincia( - long userId, long provinciaId, java.lang.String provincia, + long userId, long provinciaId, java.lang.String nome, java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -1122,14 +1095,14 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { userId, provinciaId, - ClpSerializer.translateInput(provincia), + ClpSerializer.translateInput(nome), ClpSerializer.translateInput(regione), @@ -1220,6 +1193,4 @@ public class ProvinciaLocalServiceClp implements ProvinciaLocalService { private String[] _methodParameterTypes28; private String _methodName29; private String[] _methodParameterTypes29; - private String _methodName30; - private String[] _methodParameterTypes30; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceUtil.java index d7fd2203..8372ec3c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceUtil.java @@ -275,20 +275,15 @@ public class ProvinciaLocalServiceUtil { return getService().invokeMethod(name, parameterTypes, arguments); } - public static java.util.List getProvinceAttive() { - return getService().getProvinceAttive(); - } - public static it.tref.liferay.portos.bo.model.Provincia addProvincia( - long userId, java.lang.String codiceProvincia, - java.lang.String provincia, java.lang.String regione, - java.lang.String sigla, + long userId, java.lang.String codiceProvincia, java.lang.String nome, + java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() - .addProvincia(userId, codiceProvincia, provincia, regione, - sigla, serviceContext); + .addProvincia(userId, codiceProvincia, nome, regione, sigla, + serviceContext); } public static java.util.List findAll( @@ -351,14 +346,14 @@ public class ProvinciaLocalServiceUtil { } public static it.tref.liferay.portos.bo.model.Provincia updateProvincia( - long userId, long provinciaId, java.lang.String provincia, + long userId, long provinciaId, java.lang.String nome, java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() - .updateProvincia(userId, provinciaId, provincia, regione, - sigla, serviceContext); + .updateProvincia(userId, provinciaId, nome, regione, sigla, + serviceContext); } public static void clearService() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceWrapper.java index f8d32b79..0b86b57c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ProvinciaLocalServiceWrapper.java @@ -286,20 +286,15 @@ public class ProvinciaLocalServiceWrapper implements ProvinciaLocalService, arguments); } - @Override - public java.util.List getProvinceAttive() { - return _provinciaLocalService.getProvinceAttive(); - } - @Override public it.tref.liferay.portos.bo.model.Provincia addProvincia(long userId, - java.lang.String codiceProvincia, java.lang.String provincia, + java.lang.String codiceProvincia, java.lang.String nome, java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _provinciaLocalService.addProvincia(userId, codiceProvincia, - provincia, regione, sigla, serviceContext); + nome, regione, sigla, serviceContext); } @Override @@ -371,13 +366,13 @@ public class ProvinciaLocalServiceWrapper implements ProvinciaLocalService, @Override public it.tref.liferay.portos.bo.model.Provincia updateProvincia( - long userId, long provinciaId, java.lang.String provincia, + long userId, long provinciaId, java.lang.String nome, java.lang.String regione, java.lang.String sigla, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _provinciaLocalService.updateProvincia(userId, provinciaId, - provincia, regione, sigla, serviceContext); + nome, regione, sigla, serviceContext); } /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java index 1abe38db..ac3d4583 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalService.java @@ -338,7 +338,7 @@ public interface SoggettoLocalService extends BaseLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -370,7 +370,7 @@ public interface SoggettoLocalService extends BaseLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -401,8 +401,7 @@ public interface SoggettoLocalService extends BaseLocalService, boolean aggiuntivo, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long oldSoggettoId, boolean tmp, - com.liferay.portal.service.ServiceContext serviceContext) + boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -440,7 +439,7 @@ public interface SoggettoLocalService extends BaseLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -472,17 +471,12 @@ public interface SoggettoLocalService extends BaseLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Soggetto fetchByOldSoggettId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica( long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java index 6c5f0a2d..a84cae28 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceClp.java @@ -149,7 +149,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", "java.util.Date", "long", - "long", "boolean", "com.liferay.portal.service.ServiceContext" + "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName24 = "addSoggettoValidatedByFile"; @@ -171,8 +171,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", "java.util.Date", "long", - "long", "byte[][]", "java.lang.String", "java.lang.String", - "boolean", "com.liferay.portal.service.ServiceContext" + "byte[][]", "java.lang.String", "java.lang.String", "boolean", + "com.liferay.portal.service.ServiceContext" }; _methodName25 = "addSoggettoForImport"; @@ -192,8 +192,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", - "java.lang.String", "long", "long", "java.util.Date", "long", - "boolean", "com.liferay.portal.service.ServiceContext" + "java.lang.String", "long", "long", "java.util.Date", "boolean", + "com.liferay.portal.service.ServiceContext" }; _methodName26 = "cloneSoggetto"; @@ -223,7 +223,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", - "java.util.Date", "long", "long", "boolean", + "java.util.Date", "long", "boolean", "com.liferay.portal.service.ServiceContext" }; @@ -246,341 +246,337 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", - "java.util.Date", "long", "long", "byte[][]", "java.lang.String", + "java.util.Date", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName29 = "fetchByOldSoggettId"; + _methodName29 = "findByIntPratica"; _methodParameterTypes29 = new String[] { "long" }; - _methodName30 = "findByIntPratica"; + _methodName30 = "countByIntPratica"; _methodParameterTypes30 = new String[] { "long" }; - _methodName31 = "countByIntPratica"; + _methodName31 = "findByDettPratica"; _methodParameterTypes31 = new String[] { "long" }; - _methodName32 = "findByDettPratica"; + _methodName32 = "countByDettPratica"; _methodParameterTypes32 = new String[] { "long" }; - _methodName33 = "countByDettPratica"; - - _methodParameterTypes33 = new String[] { "long" }; - - _methodName34 = "findByDettPratica_CodiceFiscale"; + _methodName33 = "findByDettPratica_CodiceFiscale"; - _methodParameterTypes34 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes33 = new String[] { "long", "java.lang.String" }; - _methodName35 = "findByDettPratica_CodiceFiscale_Rimosso"; + _methodName34 = "findByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes35 = new String[] { + _methodParameterTypes34 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName36 = "countByDettPratica_CodiceFiscale"; + _methodName35 = "countByDettPratica_CodiceFiscale"; - _methodParameterTypes36 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes35 = new String[] { "long", "java.lang.String" }; - _methodName37 = "countByDettPratica_CodiceFiscale_Rimosso"; + _methodName36 = "countByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes37 = new String[] { + _methodParameterTypes36 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName38 = "findByIntPratica_CodiceFiscale"; + _methodName37 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes38 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes37 = new String[] { "long", "java.lang.String" }; - _methodName39 = "findByIntPratica_CodiceFiscale_Rimosso"; + _methodName38 = "findByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes39 = new String[] { + _methodParameterTypes38 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName40 = "countByIntPratica_CodiceFiscale"; + _methodName39 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes40 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes39 = new String[] { "long", "java.lang.String" }; - _methodName41 = "countByIntPratica_CodiceFiscale_Rimosso"; + _methodName40 = "countByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes41 = new String[] { + _methodParameterTypes40 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName42 = "findByIntPratica_TipologiaSoggetto"; + _methodName41 = "findByIntPratica_TipologiaSoggetto"; - _methodParameterTypes42 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes41 = new String[] { "long", "java.lang.String" }; - _methodName43 = "findByDettPratica_TipologiaSoggetto"; + _methodName42 = "findByDettPratica_TipologiaSoggetto"; - _methodParameterTypes43 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes42 = new String[] { "long", "java.lang.String" }; - _methodName44 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; + _methodName43 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; - _methodParameterTypes44 = new String[] { + _methodParameterTypes43 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName45 = "findByIntPratica_TipologiaSoggetto_Rimosso"; + _methodName44 = "findByIntPratica_TipologiaSoggetto_Rimosso"; - _methodParameterTypes45 = new String[] { + _methodParameterTypes44 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName46 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; + _methodName45 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; - _methodParameterTypes46 = new String[] { + _methodParameterTypes45 = new String[] { "long", "java.lang.String", "long" }; - _methodName47 = "getValidByIntPratica"; + _methodName46 = "getValidByIntPratica"; + + _methodParameterTypes46 = new String[] { "long" }; + + _methodName47 = "getValidByDettPratica"; _methodParameterTypes47 = new String[] { "long" }; - _methodName48 = "getValidByDettPratica"; + _methodName48 = "countValidByIntPratica"; _methodParameterTypes48 = new String[] { "long" }; - _methodName49 = "countValidByIntPratica"; + _methodName49 = "getValidTmpByIntPratica"; _methodParameterTypes49 = new String[] { "long" }; - _methodName50 = "getValidTmpByIntPratica"; + _methodName50 = "countValidTmpByIntPratica"; _methodParameterTypes50 = new String[] { "long" }; - _methodName51 = "countValidTmpByIntPratica"; + _methodName51 = "getTmpNotCompletedByDettPratica"; _methodParameterTypes51 = new String[] { "long" }; - _methodName52 = "getTmpNotCompletedByDettPratica"; + _methodName52 = "countTmpNotCompletedByDettPratica"; _methodParameterTypes52 = new String[] { "long" }; - _methodName53 = "countTmpNotCompletedByDettPratica"; + _methodName53 = "getSoggettiPrincipaliValidTmpByDettPratica"; _methodParameterTypes53 = new String[] { "long" }; - _methodName54 = "getSoggettiPrincipaliValidTmpByDettPratica"; + _methodName54 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes54 = new String[] { "long" }; + _methodParameterTypes54 = new String[] { "long", "java.lang.String[][]" }; - _methodName55 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName55 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; _methodParameterTypes55 = new String[] { "long", "java.lang.String[][]" }; - _methodName56 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName56 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; _methodParameterTypes56 = new String[] { "long", "java.lang.String[][]" }; - _methodName57 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName57 = "getValidTmpByDettPratica"; - _methodParameterTypes57 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes57 = new String[] { "long" }; - _methodName58 = "getValidTmpByDettPratica"; + _methodName58 = "getCfValidTmpByDettPratica"; _methodParameterTypes58 = new String[] { "long" }; - _methodName59 = "getCfValidTmpByDettPratica"; + _methodName59 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes59 = new String[] { "long" }; + _methodParameterTypes59 = new String[] { "long", "java.lang.String" }; - _methodName60 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; + _methodName60 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; _methodParameterTypes60 = new String[] { "long", "java.lang.String" }; - _methodName61 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; + _methodName61 = "countCfValidTmpByDettPratica"; - _methodParameterTypes61 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes61 = new String[] { "long" }; - _methodName62 = "countCfValidTmpByDettPratica"; + _methodName62 = "getValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes62 = new String[] { "long" }; + _methodParameterTypes62 = new String[] { + "long", "java.lang.String", "long" + }; - _methodName63 = "getValidTmpByIntPratica_CodiceFiscale"; + _methodName63 = "countValidTmpByIntPratica_CodiceFiscale"; _methodParameterTypes63 = new String[] { "long", "java.lang.String", "long" }; - _methodName64 = "countValidTmpByIntPratica_CodiceFiscale"; + _methodName64 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; _methodParameterTypes64 = new String[] { - "long", "java.lang.String", "long" + "long", "java.lang.String", "java.lang.String" }; _methodName65 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; _methodParameterTypes65 = new String[] { - "long", "java.lang.String", "java.lang.String" + "long", "java.lang.String", "java.lang.String", "long" }; - _methodName66 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName66 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; _methodParameterTypes66 = new String[] { - "long", "java.lang.String", "java.lang.String", "long" + "long", "java.lang.String", "java.lang.String" }; - _methodName67 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName67 = "getValidByIntPratica_CodiceFiscale"; - _methodParameterTypes67 = new String[] { - "long", "java.lang.String", "java.lang.String" - }; + _methodParameterTypes67 = new String[] { "long", "java.lang.String" }; - _methodName68 = "getValidByIntPratica_CodiceFiscale"; + _methodName68 = "getValidByIntPratica_NoCodiceFiscale"; _methodParameterTypes68 = new String[] { "long", "java.lang.String" }; - _methodName69 = "getValidByIntPratica_NoCodiceFiscale"; + _methodName69 = "countValidByIntPratica_CodiceFiscale"; _methodParameterTypes69 = new String[] { "long", "java.lang.String" }; - _methodName70 = "countValidByIntPratica_CodiceFiscale"; + _methodName70 = "getValidByIntPratica_TipologiaSoggetto"; _methodParameterTypes70 = new String[] { "long", "java.lang.String" }; - _methodName71 = "getValidByIntPratica_TipologiaSoggetto"; + _methodName71 = "getValidTmpByIntPratica_TipologiaSoggetto"; _methodParameterTypes71 = new String[] { "long", "java.lang.String" }; - _methodName72 = "getValidTmpByIntPratica_TipologiaSoggetto"; + _methodName72 = "getValidTmpByDettPratica_TipologiaSoggetto"; _methodParameterTypes72 = new String[] { "long", "java.lang.String" }; - _methodName73 = "getValidTmpByDettPratica_TipologiaSoggetto"; + _methodName73 = "getCfValidByIntPratica"; - _methodParameterTypes73 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes73 = new String[] { "long" }; - _methodName74 = "getCfValidByIntPratica"; + _methodName74 = "getValidByIntPratica_CodiciFiscali"; - _methodParameterTypes74 = new String[] { "long" }; + _methodParameterTypes74 = new String[] { "long", "java.util.List" }; - _methodName75 = "getValidByIntPratica_CodiciFiscali"; + _methodName75 = "getInvalidByIntPratica"; - _methodParameterTypes75 = new String[] { "long", "java.util.List" }; + _methodParameterTypes75 = new String[] { "long" }; - _methodName76 = "getInvalidByIntPratica"; + _methodName76 = "getInvalidTmpByIntPratica"; _methodParameterTypes76 = new String[] { "long" }; - _methodName77 = "getInvalidTmpByIntPratica"; + _methodName77 = "getRivalidatedTmpByIntPratica"; _methodParameterTypes77 = new String[] { "long" }; - _methodName78 = "getRivalidatedTmpByIntPratica"; + _methodName78 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes78 = new String[] { "long" }; + _methodParameterTypes78 = new String[] { "long", "long" }; _methodName79 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes79 = new String[] { "long", "long" }; - - _methodName80 = "getValidUntilDettPraticaByIntPratica"; - - _methodParameterTypes80 = new String[] { + _methodParameterTypes79 = new String[] { "long", "long", "java.lang.String" }; - _methodName81 = "countValidUntilDettPraticaByIntPratica"; + _methodName80 = "countValidUntilDettPraticaByIntPratica"; - _methodParameterTypes81 = new String[] { "long", "long" }; + _methodParameterTypes80 = new String[] { "long", "long" }; - _methodName82 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; + _methodName81 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; - _methodParameterTypes82 = new String[] { + _methodParameterTypes81 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName83 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName82 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes83 = new String[] { + _methodParameterTypes82 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName84 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName83 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes84 = new String[] { + _methodParameterTypes83 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName85 = "findByUserId"; + _methodName84 = "findByUserId"; - _methodParameterTypes85 = new String[] { "long" }; + _methodParameterTypes84 = new String[] { "long" }; - _methodName86 = "findByUserId"; + _methodName85 = "findByUserId"; - _methodParameterTypes86 = new String[] { + _methodParameterTypes85 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName87 = "findByUserId_CodiceFiscale"; + _methodName86 = "findByUserId_CodiceFiscale"; - _methodParameterTypes87 = new String[] { + _methodParameterTypes86 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName88 = "countByUserId_CodiceFiscale"; + _methodName87 = "countByUserId_CodiceFiscale"; - _methodParameterTypes88 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes87 = new String[] { "long", "java.lang.String" }; - _methodName89 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName88 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes89 = new String[] { + _methodParameterTypes88 = new String[] { "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName90 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName89 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes90 = new String[] { + _methodParameterTypes89 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName91 = "findIntPraticaBySoggettoId"; + _methodName90 = "findIntPraticaBySoggettoId"; - _methodParameterTypes91 = new String[] { "long" }; + _methodParameterTypes90 = new String[] { "long" }; - _methodName92 = "updatePrincipale"; + _methodName91 = "updatePrincipale"; - _methodParameterTypes92 = new String[] { + _methodParameterTypes91 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName93 = "completeInvalidation"; + _methodName92 = "completeInvalidation"; - _methodParameterTypes93 = new String[] { "long" }; + _methodParameterTypes92 = new String[] { "long" }; - _methodName94 = "getSoggettiSostituitiIds"; + _methodName93 = "getSoggettiSostituitiIds"; - _methodParameterTypes94 = new String[] { "long" }; + _methodParameterTypes93 = new String[] { "long" }; - _methodName95 = "validaSoggetto"; + _methodName94 = "validaSoggetto"; - _methodParameterTypes95 = new String[] { "long", "long" }; + _methodParameterTypes94 = new String[] { "long", "long" }; - _methodName96 = "invalidaSoggetto"; + _methodName95 = "invalidaSoggetto"; - _methodParameterTypes96 = new String[] { "long", "long" }; + _methodParameterTypes95 = new String[] { "long", "long" }; - _methodName97 = "invalidaESostituisciSoggetto"; + _methodName96 = "invalidaESostituisciSoggetto"; - _methodParameterTypes97 = new String[] { "long", "long", "long" }; + _methodParameterTypes96 = new String[] { "long", "long", "long" }; - _methodName98 = "allegaFileModifica"; + _methodName97 = "allegaFileModifica"; - _methodParameterTypes98 = new String[] { + _methodParameterTypes97 = new String[] { "long", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName99 = "getSoggettiByIntPraticaId_DtRimozioneNull"; + _methodName98 = "getSoggettiByIntPraticaId_DtRimozioneNull"; - _methodParameterTypes99 = new String[] { "long" }; + _methodParameterTypes98 = new String[] { "long" }; } @Override @@ -1295,7 +1291,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1411,8 +1407,6 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { soggettoSostituitoId, - oldSoggettoId, - tmp, ClpSerializer.translateInput(serviceContext) @@ -1469,7 +1463,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -1586,8 +1580,6 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { soggettoSostituitoId, - oldSoggettoId, - ClpSerializer.translateInput(content), ClpSerializer.translateInput(sourceFileName), @@ -1648,8 +1640,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { boolean aggiuntivo, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long oldSoggettoId, boolean tmp, - com.liferay.portal.service.ServiceContext serviceContext) + boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1756,8 +1747,6 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { ClpSerializer.translateInput(dtDataRimozione), - oldSoggettoId, - tmp, ClpSerializer.translateInput(serviceContext) @@ -1861,7 +1850,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1979,8 +1968,6 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { soggettoSostituitoId, - oldSoggettoId, - tmp, ClpSerializer.translateInput(serviceContext) @@ -2037,7 +2024,7 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -2156,8 +2143,6 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { soggettoSostituitoId, - oldSoggettoId, - ClpSerializer.translateInput(content), ClpSerializer.translateInput(sourceFileName), @@ -2190,35 +2175,6 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { return (it.tref.liferay.portos.bo.model.Soggetto)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.Soggetto fetchByOldSoggettId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, new Object[] { oldSoggettoId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Soggetto)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List findByIntPratica( long intPraticaId) @@ -2226,8 +2182,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2254,8 +2210,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2283,8 +2239,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2311,8 +2267,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2340,8 +2296,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { dettPraticaId, @@ -2374,8 +2330,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { dettPraticaId, @@ -2410,8 +2366,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { dettPraticaId, @@ -2444,8 +2400,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { dettPraticaId, @@ -2480,8 +2436,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId, @@ -2514,8 +2470,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { intPraticaId, @@ -2550,8 +2506,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { intPraticaId, @@ -2584,8 +2540,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { intPraticaId, @@ -2620,8 +2576,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { intPraticaId, @@ -2654,8 +2610,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { dettPraticaId, @@ -2689,8 +2645,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { dettPraticaId, @@ -2725,8 +2681,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { intPraticaId, @@ -2762,8 +2718,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { intPraticaId, @@ -2798,8 +2754,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2827,8 +2783,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2855,8 +2811,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2884,8 +2840,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2912,8 +2868,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2941,8 +2897,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2969,8 +2925,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2999,8 +2955,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3033,8 +2989,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { dettPraticaId, @@ -3072,8 +3028,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { dettPraticaId, @@ -3111,8 +3067,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { dettPraticaId, @@ -3149,8 +3105,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3178,8 +3134,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3207,8 +3163,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { intPraticaId, @@ -3241,8 +3197,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + returnObj = _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { dettPraticaId, @@ -3274,8 +3230,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, new Object[] { dettPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { dettPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3303,8 +3259,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { intPraticaId, @@ -3339,8 +3295,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { intPraticaId, @@ -3376,8 +3332,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { intPraticaId, @@ -3413,8 +3369,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { intPraticaId, @@ -3452,8 +3408,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { intPraticaId, @@ -3488,8 +3444,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { intPraticaId, @@ -3522,8 +3478,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { intPraticaId, @@ -3556,8 +3512,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { intPraticaId, @@ -3590,8 +3546,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { intPraticaId, @@ -3624,8 +3580,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { intPraticaId, @@ -3658,8 +3614,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { dettPraticaId, @@ -3692,8 +3648,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3721,8 +3677,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName75, - _methodParameterTypes75, + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { intPraticaId, @@ -3755,8 +3711,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3784,8 +3740,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3813,8 +3769,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3842,8 +3798,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { intPraticaId, dettPraticaId }); } catch (Throwable t) { @@ -3873,8 +3829,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { intPraticaId, @@ -3909,8 +3865,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { intPraticaId, dettPraticaId }); } catch (Throwable t) { @@ -3940,8 +3896,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, + returnObj = _invokableLocalService.invokeMethod(_methodName81, + _methodParameterTypes81, new Object[] { dettPraticaId, @@ -3977,8 +3933,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName82, + _methodParameterTypes82, new Object[] { dettPraticaId, @@ -4016,8 +3972,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, + returnObj = _invokableLocalService.invokeMethod(_methodName83, + _methodParameterTypes83, new Object[] { intPraticaId, @@ -4053,8 +4009,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, new Object[] { userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName84, + _methodParameterTypes84, new Object[] { userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4083,8 +4039,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName86, - _methodParameterTypes86, + returnObj = _invokableLocalService.invokeMethod(_methodName85, + _methodParameterTypes85, new Object[] { userId, @@ -4122,8 +4078,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName87, - _methodParameterTypes87, + returnObj = _invokableLocalService.invokeMethod(_methodName86, + _methodParameterTypes86, new Object[] { userId, @@ -4162,8 +4118,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName88, - _methodParameterTypes88, + returnObj = _invokableLocalService.invokeMethod(_methodName87, + _methodParameterTypes87, new Object[] { userId, @@ -4198,8 +4154,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName89, - _methodParameterTypes89, + returnObj = _invokableLocalService.invokeMethod(_methodName88, + _methodParameterTypes88, new Object[] { userId, @@ -4240,8 +4196,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName90, - _methodParameterTypes90, + returnObj = _invokableLocalService.invokeMethod(_methodName89, + _methodParameterTypes89, new Object[] { userId, @@ -4277,8 +4233,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName91, - _methodParameterTypes91, new Object[] { soggettoId }); + returnObj = _invokableLocalService.invokeMethod(_methodName90, + _methodParameterTypes90, new Object[] { soggettoId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4309,8 +4265,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName92, - _methodParameterTypes92, + _invokableLocalService.invokeMethod(_methodName91, + _methodParameterTypes91, new Object[] { dettPraticaId, @@ -4344,8 +4300,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { public void completeInvalidation(long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName93, - _methodParameterTypes93, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName92, + _methodParameterTypes92, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4371,8 +4327,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName94, - _methodParameterTypes94, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName93, + _methodParameterTypes93, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4401,8 +4357,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName95, - _methodParameterTypes95, + returnObj = _invokableLocalService.invokeMethod(_methodName94, + _methodParameterTypes94, new Object[] { soggettoId, dettPraticaId }); } catch (Throwable t) { @@ -4436,8 +4392,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName96, - _methodParameterTypes96, + returnObj = _invokableLocalService.invokeMethod(_methodName95, + _methodParameterTypes95, new Object[] { soggettoId, dettPraticaIdRimozione }); } catch (Throwable t) { @@ -4471,8 +4427,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName97, - _methodParameterTypes97, + returnObj = _invokableLocalService.invokeMethod(_methodName96, + _methodParameterTypes96, new Object[] { soggettoId, @@ -4514,8 +4470,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName98, - _methodParameterTypes98, + returnObj = _invokableLocalService.invokeMethod(_methodName97, + _methodParameterTypes97, new Object[] { soggettoId, @@ -4562,8 +4518,8 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName99, - _methodParameterTypes99, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName98, + _methodParameterTypes98, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -4781,6 +4737,4 @@ public class SoggettoLocalServiceClp implements SoggettoLocalService { private String[] _methodParameterTypes97; private String _methodName98; private String[] _methodParameterTypes98; - private String _methodName99; - private String[] _methodParameterTypes99; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java index 94f9836f..b20df9d4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceUtil.java @@ -364,7 +364,7 @@ public class SoggettoLocalServiceUtil { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -381,8 +381,7 @@ public class SoggettoLocalServiceUtil { numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, - serviceContext); + dtDataRimozione, soggettoSostituitoId, tmp, serviceContext); } public static it.tref.liferay.portos.bo.model.Soggetto addSoggettoValidatedByFile( @@ -412,7 +411,7 @@ public class SoggettoLocalServiceUtil { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -430,8 +429,8 @@ public class SoggettoLocalServiceUtil { numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, content, - sourceFileName, jsonFirmatari, tmp, serviceContext); + dtDataRimozione, soggettoSostituitoId, content, sourceFileName, + jsonFirmatari, tmp, serviceContext); } public static it.tref.liferay.portos.bo.model.Soggetto addSoggettoForImport( @@ -459,8 +458,7 @@ public class SoggettoLocalServiceUtil { boolean aggiuntivo, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long oldSoggettoId, boolean tmp, - com.liferay.portal.service.ServiceContext serviceContext) + boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() @@ -475,7 +473,7 @@ public class SoggettoLocalServiceUtil { provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, oldSoggettoId, tmp, serviceContext); + dtDataRimozione, tmp, serviceContext); } public static it.tref.liferay.portos.bo.model.Soggetto cloneSoggetto( @@ -516,7 +514,7 @@ public class SoggettoLocalServiceUtil { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -533,8 +531,7 @@ public class SoggettoLocalServiceUtil { numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, - serviceContext); + dtDataRimozione, soggettoSostituitoId, tmp, serviceContext); } public static it.tref.liferay.portos.bo.model.Soggetto updateSoggettoValidatedByFile( @@ -564,7 +561,7 @@ public class SoggettoLocalServiceUtil { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -583,14 +580,7 @@ public class SoggettoLocalServiceUtil { email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, - oldSoggettoId, content, sourceFileName, jsonFirmatari, - serviceContext); - } - - public static it.tref.liferay.portos.bo.model.Soggetto fetchByOldSoggettId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldSoggettId(oldSoggettoId); + content, sourceFileName, jsonFirmatari, serviceContext); } public static java.util.List findByIntPratica( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java index 00409fa0..da02946b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoLocalServiceWrapper.java @@ -381,7 +381,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -397,8 +397,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, - serviceContext); + dtDataRimozione, soggettoSostituitoId, tmp, serviceContext); } @Override @@ -429,7 +428,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -447,8 +446,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, - oldSoggettoId, content, sourceFileName, jsonFirmatari, tmp, - serviceContext); + content, sourceFileName, jsonFirmatari, tmp, serviceContext); } @Override @@ -477,8 +475,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, boolean aggiuntivo, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long oldSoggettoId, boolean tmp, - com.liferay.portal.service.ServiceContext serviceContext) + boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _soggettoLocalService.addSoggettoForImport(userId, @@ -492,8 +489,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, - dettPraticaIdRimozione, dtDataRimozione, oldSoggettoId, tmp, - serviceContext); + dettPraticaIdRimozione, dtDataRimozione, tmp, serviceContext); } @Override @@ -535,7 +531,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -551,8 +547,8 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, - dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, - oldSoggettoId, tmp, serviceContext); + dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, tmp, + serviceContext); } @Override @@ -583,7 +579,7 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, byte[] content, + long soggettoSostituitoId, byte[] content, java.lang.String sourceFileName, java.lang.String jsonFirmatari, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, @@ -601,15 +597,8 @@ public class SoggettoLocalServiceWrapper implements SoggettoLocalService, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, content, - sourceFileName, jsonFirmatari, serviceContext); - } - - @Override - public it.tref.liferay.portos.bo.model.Soggetto fetchByOldSoggettId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException { - return _soggettoLocalService.fetchByOldSoggettId(oldSoggettoId); + dtDataRimozione, soggettoSostituitoId, content, sourceFileName, + jsonFirmatari, serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoService.java index 606c0af9..c78b698a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoService.java @@ -97,7 +97,7 @@ public interface SoggettoService extends BaseService, InvokableService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -139,7 +139,7 @@ public interface SoggettoService extends BaseService, InvokableService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceClp.java index 643c880d..5f64348e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceClp.java @@ -55,7 +55,7 @@ public class SoggettoServiceClp implements SoggettoService { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", "java.util.Date", "long", - "long", "boolean", "com.liferay.portal.service.ServiceContext" + "boolean", "com.liferay.portal.service.ServiceContext" }; _methodName5 = "deleteSoggetto"; @@ -87,7 +87,7 @@ public class SoggettoServiceClp implements SoggettoService { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", - "java.util.Date", "long", "long", "boolean", + "java.util.Date", "long", "boolean", "com.liferay.portal.service.ServiceContext" }; @@ -310,7 +310,7 @@ public class SoggettoServiceClp implements SoggettoService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -426,8 +426,6 @@ public class SoggettoServiceClp implements SoggettoService { soggettoSostituitoId, - oldSoggettoId, - tmp, ClpSerializer.translateInput(serviceContext) @@ -553,7 +551,7 @@ public class SoggettoServiceClp implements SoggettoService { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -671,8 +669,6 @@ public class SoggettoServiceClp implements SoggettoService { soggettoSostituitoId, - oldSoggettoId, - tmp, ClpSerializer.translateInput(serviceContext) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceUtil.java index 2d8f3734..113299db 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceUtil.java @@ -97,7 +97,7 @@ public class SoggettoServiceUtil { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -114,8 +114,7 @@ public class SoggettoServiceUtil { numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, - serviceContext); + dtDataRimozione, soggettoSostituitoId, tmp, serviceContext); } public static it.tref.liferay.portos.bo.model.Soggetto deleteSoggetto( @@ -159,7 +158,7 @@ public class SoggettoServiceUtil { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -176,8 +175,7 @@ public class SoggettoServiceUtil { numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, - serviceContext); + dtDataRimozione, soggettoSostituitoId, tmp, serviceContext); } public static void updatePrincipale(long dettPraticaId, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceWrapper.java index 0254d430..84ff9cd8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SoggettoServiceWrapper.java @@ -91,7 +91,7 @@ public class SoggettoServiceWrapper implements SoggettoService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -107,8 +107,7 @@ public class SoggettoServiceWrapper implements SoggettoService, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, - serviceContext); + dtDataRimozione, soggettoSostituitoId, tmp, serviceContext); } @Override @@ -155,7 +154,7 @@ public class SoggettoServiceWrapper implements SoggettoService, boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -171,8 +170,8 @@ public class SoggettoServiceWrapper implements SoggettoService, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, - dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, - oldSoggettoId, tmp, serviceContext); + dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, tmp, + serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalService.java deleted file mode 100644 index 4776b552..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalService.java +++ /dev/null @@ -1,455 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.search.IndexableType; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Propagation; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.service.BaseLocalService; -import com.liferay.portal.service.InvokableLocalService; -import com.liferay.portal.service.PersistedModelLocalService; - -/** - * Provides the local service interface for Sorteggio. 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 Davide Barbagallo, 3F Consulting - * @see SorteggioLocalServiceUtil - * @see it.tref.liferay.portos.bo.service.base.SorteggioLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.SorteggioLocalServiceImpl - * @generated - */ -@Transactional(isolation = Isolation.PORTAL, rollbackFor = { - PortalException.class, SystemException.class}) -public interface SorteggioLocalService extends BaseLocalService, - InvokableLocalService, PersistedModelLocalService { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link SorteggioLocalServiceUtil} to access the sorteggio local service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.SorteggioLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. - */ - - /** - * Adds the sorteggio to the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was added - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Creates a new sorteggio with the primary key. Does not add the sorteggio to the database. - * - * @param sorteggioId the primary key for the new sorteggio - * @return the new sorteggio - */ - public it.tref.liferay.portos.bo.model.Sorteggio createSorteggio( - long sorteggioId); - - /** - * Deletes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) - public it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Deletes the sorteggio from the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) - public it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException; - - public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio with the primary key. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - @Override - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of sorteggios - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getSorteggios( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios. - * - * @return the number of sorteggios - * @throws SystemException if a system exception occurred - */ - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public int getSorteggiosCount() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Updates the sorteggio in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was updated - * @throws SystemException if a system exception occurred - */ - @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) - public it.tref.liferay.portos.bo.model.Sorteggio updateSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public java.lang.String getBeanIdentifier(); - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public void setBeanIdentifier(java.lang.String beanIdentifier); - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable; - - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException; - - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggioForImport( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, int status, - long oldSorteggioId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getYears(java.lang.Long groupId, - int lastResults) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countDettPraticaWorkflowNonAvviato() - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List getDettPraticaWorkflowNonAvviato( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List search( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countSearch(long groupId, java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List search( - java.lang.String anno, java.lang.String mese, int settimana, - java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - public int countSearch(java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public boolean isDettPraticaSorteggiata(long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException; - - public it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica( - long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - public it.tref.liferay.portos.bo.model.Sorteggio findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findSorteggiGroupByAnnoMeseSettimana( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countSorteggiGroupByAnnoMeseSettimana() - throws com.liferay.portal.kernel.exception.SystemException; - - public int countSorteggioMese(java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findSorteggioMese( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findSorteggioAnno( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException; - - public void updateDataSorteggioPraticaEsterna(long praticaEsternaId, - java.util.Date dataSorteggio) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.lang.String getTecnicoSorteggioPraticaEsterna( - long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException; - - public long findTipoPraticaIdSorteggioPraticaEsterna(long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public java.util.List search( - java.lang.Long groupId, java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - public int count(java.lang.Long groupId, java.lang.String anno, - java.lang.String mese, int settimana, java.lang.String committente, - java.lang.String tecnico, java.lang.String comune, - java.lang.String pratica, java.lang.Long numeroEstrazione, - java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceClp.java deleted file mode 100644 index d76319f9..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceClp.java +++ /dev/null @@ -1,2097 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.InvokableLocalService; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class SorteggioLocalServiceClp implements SorteggioLocalService { - public SorteggioLocalServiceClp(InvokableLocalService invokableLocalService) { - _invokableLocalService = invokableLocalService; - - _methodName0 = "addSorteggio"; - - _methodParameterTypes0 = new String[] { - "it.tref.liferay.portos.bo.model.Sorteggio" - }; - - _methodName1 = "createSorteggio"; - - _methodParameterTypes1 = new String[] { "long" }; - - _methodName2 = "deleteSorteggio"; - - _methodParameterTypes2 = new String[] { "long" }; - - _methodName3 = "deleteSorteggio"; - - _methodParameterTypes3 = new String[] { - "it.tref.liferay.portos.bo.model.Sorteggio" - }; - - _methodName4 = "dynamicQuery"; - - _methodParameterTypes4 = new String[] { }; - - _methodName5 = "dynamicQuery"; - - _methodParameterTypes5 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName6 = "dynamicQuery"; - - _methodParameterTypes6 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" - }; - - _methodName7 = "dynamicQuery"; - - _methodParameterTypes7 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName8 = "dynamicQueryCount"; - - _methodParameterTypes8 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName9 = "dynamicQueryCount"; - - _methodParameterTypes9 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", - "com.liferay.portal.kernel.dao.orm.Projection" - }; - - _methodName10 = "fetchSorteggio"; - - _methodParameterTypes10 = new String[] { "long" }; - - _methodName11 = "fetchSorteggioByUuidAndCompanyId"; - - _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; - - _methodName12 = "fetchSorteggioByUuidAndGroupId"; - - _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; - - _methodName13 = "getSorteggio"; - - _methodParameterTypes13 = new String[] { "long" }; - - _methodName14 = "getPersistedModel"; - - _methodParameterTypes14 = new String[] { "java.io.Serializable" }; - - _methodName15 = "getSorteggioByUuidAndCompanyId"; - - _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; - - _methodName16 = "getSorteggioByUuidAndGroupId"; - - _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; - - _methodName17 = "getSorteggios"; - - _methodParameterTypes17 = new String[] { "int", "int" }; - - _methodName18 = "getSorteggiosCount"; - - _methodParameterTypes18 = new String[] { }; - - _methodName19 = "updateSorteggio"; - - _methodParameterTypes19 = new String[] { - "it.tref.liferay.portos.bo.model.Sorteggio" - }; - - _methodName20 = "getBeanIdentifier"; - - _methodParameterTypes20 = new String[] { }; - - _methodName21 = "setBeanIdentifier"; - - _methodParameterTypes21 = new String[] { "java.lang.String" }; - - _methodName23 = "addSorteggio"; - - _methodParameterTypes23 = new String[] { - "long", "long", "java.lang.String", "java.lang.String", "int", - "java.util.Date", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", - "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "long", "boolean", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName24 = "addSorteggioForImport"; - - _methodParameterTypes24 = new String[] { - "long", "long", "java.lang.String", "java.lang.String", "int", - "java.util.Date", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", - "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "long", "boolean", "int", "long", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName25 = "getYears"; - - _methodParameterTypes25 = new String[] { "java.lang.Long", "int" }; - - _methodName26 = "countDettPraticaWorkflowNonAvviato"; - - _methodParameterTypes26 = new String[] { }; - - _methodName27 = "getDettPraticaWorkflowNonAvviato"; - - _methodParameterTypes27 = new String[] { "int", "int" }; - - _methodName28 = "search"; - - _methodParameterTypes28 = new String[] { - "long", "java.lang.String", "java.lang.String", "int", "int", - "int" - }; - - _methodName29 = "countSearch"; - - _methodParameterTypes29 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName30 = "search"; - - _methodParameterTypes30 = new String[] { - "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String", "int", - "int" - }; - - _methodName31 = "countSearch"; - - _methodParameterTypes31 = new String[] { - "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String" - }; - - _methodName32 = "isDettPraticaSorteggiata"; - - _methodParameterTypes32 = new String[] { "long", "long" }; - - _methodName33 = "fetchByOldSorteggioId"; - - _methodParameterTypes33 = new String[] { "long" }; - - _methodName34 = "findByC_DettPratica"; - - _methodParameterTypes34 = new String[] { "long", "long" }; - - _methodName35 = "findByIntPratica"; - - _methodParameterTypes35 = new String[] { "long" }; - - _methodName36 = "findByGroupId_Anno_Mese_Settimana"; - - _methodParameterTypes36 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName37 = "findByCompanyIdGroupId"; - - _methodParameterTypes37 = new String[] { "long", "long" }; - - _methodName38 = "findByAnno_Mese_Settimana"; - - _methodParameterTypes38 = new String[] { - "java.lang.String", "java.lang.String", "int" - }; - - _methodName39 = "findSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes39 = new String[] { "int", "int" }; - - _methodName40 = "countSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes40 = new String[] { }; - - _methodName41 = "countSorteggioMese"; - - _methodParameterTypes41 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List" - }; - - _methodName42 = "findSorteggioMese"; - - _methodParameterTypes42 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName43 = "findSorteggioAnno"; - - _methodParameterTypes43 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName44 = "updateDataSorteggioPraticaEsterna"; - - _methodParameterTypes44 = new String[] { "long", "java.util.Date" }; - - _methodName45 = "getTecnicoSorteggioPraticaEsterna"; - - _methodParameterTypes45 = new String[] { "long" }; - - _methodName46 = "findTipoPraticaIdSorteggioPraticaEsterna"; - - _methodParameterTypes46 = new String[] { "long" }; - - _methodName47 = "search"; - - _methodParameterTypes47 = new String[] { - "java.lang.Long", "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String", "int", - "int" - }; - - _methodName48 = "count"; - - _methodParameterTypes48 = new String[] { - "java.lang.Long", "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String" - }; - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName0, - _methodParameterTypes0, - new Object[] { ClpSerializer.translateInput(sorteggio) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio createSorteggio( - long sorteggioId) { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName1, - _methodParameterTypes1, new Object[] { sorteggioId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName2, - _methodParameterTypes2, new Object[] { sorteggioId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName3, - _methodParameterTypes3, - new Object[] { ClpSerializer.translateInput(sorteggio) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName4, - _methodParameterTypes4, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj); - } - - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName5, - _methodParameterTypes5, - new Object[] { ClpSerializer.translateInput(dynamicQuery) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName6, - _methodParameterTypes6, - new Object[] { - ClpSerializer.translateInput(dynamicQuery), - - start, - - end - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName7, - _methodParameterTypes7, - new Object[] { - ClpSerializer.translateInput(dynamicQuery), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName8, - _methodParameterTypes8, - new Object[] { ClpSerializer.translateInput(dynamicQuery) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Long)returnObj).longValue(); - } - - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName9, - _methodParameterTypes9, - new Object[] { - ClpSerializer.translateInput(dynamicQuery), - - ClpSerializer.translateInput(projection) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Long)returnObj).longValue(); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName10, - _methodParameterTypes10, new Object[] { sorteggioId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName11, - _methodParameterTypes11, - new Object[] { ClpSerializer.translateInput(uuid), companyId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName12, - _methodParameterTypes12, - new Object[] { ClpSerializer.translateInput(uuid), groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName13, - _methodParameterTypes13, new Object[] { sorteggioId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName14, - _methodParameterTypes14, - new Object[] { ClpSerializer.translateInput(primaryKeyObj) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName15, - _methodParameterTypes15, - new Object[] { ClpSerializer.translateInput(uuid), companyId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName16, - _methodParameterTypes16, - new Object[] { ClpSerializer.translateInput(uuid), groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List getSorteggios( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName17, - _methodParameterTypes17, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int getSorteggiosCount() - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName18, - _methodParameterTypes18, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio updateSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName19, - _methodParameterTypes19, - new Object[] { ClpSerializer.translateInput(sorteggio) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.lang.String getBeanIdentifier() { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName20, - _methodParameterTypes20, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.lang.String)ClpSerializer.translateOutput(returnObj); - } - - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - try { - _invokableLocalService.invokeMethod(_methodName21, - _methodParameterTypes21, - new Object[] { ClpSerializer.translateInput(beanIdentifier) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - throw new UnsupportedOperationException(); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName23, - _methodParameterTypes23, - new Object[] { - intPraticaId, - - dettPraticaId, - - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana, - - ClpSerializer.translateInput(dtSorteggio), - - ClpSerializer.translateInput(note), - - ClpSerializer.translateInput(stato), - - ClpSerializer.translateInput(dettagli), - - numeroEstrazione, - - ClpSerializer.translateInput(pratica), - - ClpSerializer.translateInput(committente), - - ClpSerializer.translateInput(comune), - - ClpSerializer.translateInput(provincia), - - esterna, - - praticaEsternaId, - - mesePrecedente, - - ClpSerializer.translateInput(serviceContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggioForImport( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, int status, - long oldSorteggioId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, - new Object[] { - intPraticaId, - - dettPraticaId, - - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana, - - ClpSerializer.translateInput(dtSorteggio), - - ClpSerializer.translateInput(note), - - ClpSerializer.translateInput(stato), - - ClpSerializer.translateInput(dettagli), - - numeroEstrazione, - - ClpSerializer.translateInput(pratica), - - ClpSerializer.translateInput(committente), - - ClpSerializer.translateInput(comune), - - ClpSerializer.translateInput(provincia), - - esterna, - - praticaEsternaId, - - mesePrecedente, - - status, - - oldSorteggioId, - - ClpSerializer.translateInput(serviceContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List getYears(java.lang.Long groupId, - int lastResults) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, - new Object[] { - ClpSerializer.translateInput(groupId), - - lastResults - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countDettPraticaWorkflowNonAvviato() - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List getDettPraticaWorkflowNonAvviato( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List search( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, - new Object[] { - groupId, - - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana, - - start, - - end - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countSearch(long groupId, java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, - new Object[] { - groupId, - - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List search( - java.lang.String anno, java.lang.String mese, int settimana, - java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, - new Object[] { - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana, - - ClpSerializer.translateInput(committente), - - ClpSerializer.translateInput(tecnico), - - ClpSerializer.translateInput(comune), - - ClpSerializer.translateInput(pratica), - - ClpSerializer.translateInput(numeroEstrazione), - - ClpSerializer.translateInput(provincia), - - start, - - end - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countSearch(java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, - new Object[] { - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana, - - ClpSerializer.translateInput(committente), - - ClpSerializer.translateInput(tecnico), - - ClpSerializer.translateInput(comune), - - ClpSerializer.translateInput(pratica), - - ClpSerializer.translateInput(numeroEstrazione), - - ClpSerializer.translateInput(provincia) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public boolean isDettPraticaSorteggiata(long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, - new Object[] { companyId, dettPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Boolean)returnObj).booleanValue(); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { oldSorteggioId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica( - long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, - new Object[] { companyId, dettPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, new Object[] { intPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Sorteggio)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, - new Object[] { - groupId, - - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, new Object[] { companyId, groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, - new Object[] { - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findSorteggiGroupByAnnoMeseSettimana( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { start, end }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countSorteggiGroupByAnnoMeseSettimana() - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public int countSorteggioMese(java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, - new Object[] { - ClpSerializer.translateInput(dtMin), - - ClpSerializer.translateInput(dtMax), - - ClpSerializer.translateInput(territorioIds), - - ClpSerializer.translateInput(tipoPraticaIds) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findSorteggioMese( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, - new Object[] { - ClpSerializer.translateInput(dtMin), - - ClpSerializer.translateInput(dtMax), - - ClpSerializer.translateInput(territorioIds), - - ClpSerializer.translateInput(tipoPraticaIds), - - ClpSerializer.translateInput(statiPratica), - - maxResults - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findSorteggioAnno( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, - new Object[] { - ClpSerializer.translateInput(dtMin), - - ClpSerializer.translateInput(dtMax), - - ClpSerializer.translateInput(territorioIds), - - ClpSerializer.translateInput(tipoPraticaIds), - - ClpSerializer.translateInput(statiPratica), - - maxResults - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public void updateDataSorteggioPraticaEsterna(long praticaEsternaId, - java.util.Date dataSorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - try { - _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, - new Object[] { - praticaEsternaId, - - ClpSerializer.translateInput(dataSorteggio) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - } - - @Override - public java.lang.String getTecnicoSorteggioPraticaEsterna( - long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, new Object[] { praticaEsternaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.lang.String)ClpSerializer.translateOutput(returnObj); - } - - @Override - public long findTipoPraticaIdSorteggioPraticaEsterna(long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, new Object[] { praticaEsternaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Long)returnObj).longValue(); - } - - @Override - public java.util.List search( - java.lang.Long groupId, java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, - new Object[] { - ClpSerializer.translateInput(groupId), - - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana, - - ClpSerializer.translateInput(committente), - - ClpSerializer.translateInput(tecnico), - - ClpSerializer.translateInput(comune), - - ClpSerializer.translateInput(pratica), - - ClpSerializer.translateInput(numeroEstrazione), - - ClpSerializer.translateInput(provincia), - - start, - - end - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int count(java.lang.Long groupId, java.lang.String anno, - java.lang.String mese, int settimana, java.lang.String committente, - java.lang.String tecnico, java.lang.String comune, - java.lang.String pratica, java.lang.Long numeroEstrazione, - java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, - new Object[] { - ClpSerializer.translateInput(groupId), - - ClpSerializer.translateInput(anno), - - ClpSerializer.translateInput(mese), - - settimana, - - ClpSerializer.translateInput(committente), - - ClpSerializer.translateInput(tecnico), - - ClpSerializer.translateInput(comune), - - ClpSerializer.translateInput(pratica), - - ClpSerializer.translateInput(numeroEstrazione), - - ClpSerializer.translateInput(provincia) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - private InvokableLocalService _invokableLocalService; - private String _methodName0; - private String[] _methodParameterTypes0; - private String _methodName1; - private String[] _methodParameterTypes1; - private String _methodName2; - private String[] _methodParameterTypes2; - private String _methodName3; - private String[] _methodParameterTypes3; - private String _methodName4; - private String[] _methodParameterTypes4; - private String _methodName5; - private String[] _methodParameterTypes5; - private String _methodName6; - private String[] _methodParameterTypes6; - private String _methodName7; - private String[] _methodParameterTypes7; - private String _methodName8; - private String[] _methodParameterTypes8; - private String _methodName9; - private String[] _methodParameterTypes9; - private String _methodName10; - private String[] _methodParameterTypes10; - private String _methodName11; - private String[] _methodParameterTypes11; - private String _methodName12; - private String[] _methodParameterTypes12; - private String _methodName13; - private String[] _methodParameterTypes13; - private String _methodName14; - private String[] _methodParameterTypes14; - private String _methodName15; - private String[] _methodParameterTypes15; - private String _methodName16; - private String[] _methodParameterTypes16; - private String _methodName17; - private String[] _methodParameterTypes17; - private String _methodName18; - private String[] _methodParameterTypes18; - private String _methodName19; - private String[] _methodParameterTypes19; - private String _methodName20; - private String[] _methodParameterTypes20; - private String _methodName21; - private String[] _methodParameterTypes21; - private String _methodName23; - private String[] _methodParameterTypes23; - private String _methodName24; - private String[] _methodParameterTypes24; - private String _methodName25; - private String[] _methodParameterTypes25; - private String _methodName26; - private String[] _methodParameterTypes26; - private String _methodName27; - private String[] _methodParameterTypes27; - private String _methodName28; - private String[] _methodParameterTypes28; - private String _methodName29; - private String[] _methodParameterTypes29; - private String _methodName30; - private String[] _methodParameterTypes30; - private String _methodName31; - private String[] _methodParameterTypes31; - private String _methodName32; - private String[] _methodParameterTypes32; - private String _methodName33; - private String[] _methodParameterTypes33; - private String _methodName34; - private String[] _methodParameterTypes34; - private String _methodName35; - private String[] _methodParameterTypes35; - private String _methodName36; - private String[] _methodParameterTypes36; - private String _methodName37; - private String[] _methodParameterTypes37; - private String _methodName38; - private String[] _methodParameterTypes38; - private String _methodName39; - private String[] _methodParameterTypes39; - private String _methodName40; - private String[] _methodParameterTypes40; - private String _methodName41; - private String[] _methodParameterTypes41; - private String _methodName42; - private String[] _methodParameterTypes42; - private String _methodName43; - private String[] _methodParameterTypes43; - private String _methodName44; - private String[] _methodParameterTypes44; - private String _methodName45; - private String[] _methodParameterTypes45; - private String _methodName46; - private String[] _methodParameterTypes46; - private String _methodName47; - private String[] _methodParameterTypes47; - private String _methodName48; - private String[] _methodParameterTypes48; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceUtil.java deleted file mode 100644 index 5f064551..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceUtil.java +++ /dev/null @@ -1,584 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.util.ReferenceRegistry; -import com.liferay.portal.service.InvokableLocalService; - -/** - * Provides the local service utility for Sorteggio. This utility wraps - * {@link it.tref.liferay.portos.bo.service.impl.SorteggioLocalServiceImpl} and is the - * primary access point for service operations in application layer code running - * on the local server. 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 Davide Barbagallo, 3F Consulting - * @see SorteggioLocalService - * @see it.tref.liferay.portos.bo.service.base.SorteggioLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.SorteggioLocalServiceImpl - * @generated - */ -public class SorteggioLocalServiceUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.SorteggioLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. - */ - - /** - * Adds the sorteggio to the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was added - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().addSorteggio(sorteggio); - } - - /** - * Creates a new sorteggio with the primary key. Does not add the sorteggio to the database. - * - * @param sorteggioId the primary key for the new sorteggio - * @return the new sorteggio - */ - public static it.tref.liferay.portos.bo.model.Sorteggio createSorteggio( - long sorteggioId) { - return getService().createSorteggio(sorteggioId); - } - - /** - * Deletes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().deleteSorteggio(sorteggioId); - } - - /** - * Deletes the sorteggio from the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().deleteSorteggio(sorteggio); - } - - public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { - return getService().dynamicQuery(); - } - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public static java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQuery(dynamicQuery); - } - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public static java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQuery(dynamicQuery, start, end); - } - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @SuppressWarnings("rawtypes") - public static java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public static long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQueryCount(dynamicQuery); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - public static long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().dynamicQueryCount(dynamicQuery, projection); - } - - public static it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchSorteggio(sorteggioId); - } - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchSorteggioByUuidAndCompanyId(uuid, companyId); - } - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchSorteggioByUuidAndGroupId(uuid, groupId); - } - - /** - * Returns the sorteggio with the primary key. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio getSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getSorteggio(sorteggioId); - } - - public static com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getPersistedModel(primaryKeyObj); - } - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getSorteggioByUuidAndCompanyId(uuid, companyId); - } - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService().getSorteggioByUuidAndGroupId(uuid, groupId); - } - - /** - * Returns a range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List getSorteggios( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getSorteggios(start, end); - } - - /** - * Returns the number of sorteggios. - * - * @return the number of sorteggios - * @throws SystemException if a system exception occurred - */ - public static int getSorteggiosCount() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getSorteggiosCount(); - } - - /** - * Updates the sorteggio in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was updated - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio updateSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().updateSorteggio(sorteggio); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public static java.lang.String getBeanIdentifier() { - return getService().getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public static void setBeanIdentifier(java.lang.String beanIdentifier) { - getService().setBeanIdentifier(beanIdentifier); - } - - public static java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return getService().invokeMethod(name, parameterTypes, arguments); - } - - public static it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .addSorteggio(intPraticaId, dettPraticaId, anno, mese, - settimana, dtSorteggio, note, stato, dettagli, numeroEstrazione, - pratica, committente, comune, provincia, esterna, praticaEsternaId, - mesePrecedente, serviceContext); - } - - public static it.tref.liferay.portos.bo.model.Sorteggio addSorteggioForImport( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, int status, - long oldSorteggioId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .addSorteggioForImport(intPraticaId, dettPraticaId, anno, - mese, settimana, dtSorteggio, note, stato, dettagli, - numeroEstrazione, pratica, committente, comune, provincia, esterna, - praticaEsternaId, mesePrecedente, status, oldSorteggioId, - serviceContext); - } - - public static java.util.List getYears( - java.lang.Long groupId, int lastResults) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getYears(groupId, lastResults); - } - - public static int countDettPraticaWorkflowNonAvviato() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countDettPraticaWorkflowNonAvviato(); - } - - public static java.util.List getDettPraticaWorkflowNonAvviato( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getDettPraticaWorkflowNonAvviato(start, end); - } - - public static java.util.List search( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().search(groupId, anno, mese, settimana, start, end); - } - - public static int countSearch(long groupId, java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countSearch(groupId, anno, mese, settimana); - } - - public static java.util.List search( - java.lang.String anno, java.lang.String mese, int settimana, - java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .search(anno, mese, settimana, committente, tecnico, comune, - pratica, numeroEstrazione, provincia, start, end); - } - - public static int countSearch(java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countSearch(anno, mese, settimana, committente, tecnico, - comune, pratica, numeroEstrazione, provincia); - } - - public static boolean isDettPraticaSorteggiata(long companyId, - long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().isDettPraticaSorteggiata(companyId, dettPraticaId); - } - - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldSorteggioId(oldSorteggioId); - } - - public static it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica( - long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByC_DettPratica(companyId, dettPraticaId); - } - - public static it.tref.liferay.portos.bo.model.Sorteggio findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByIntPratica(intPraticaId); - } - - public static java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana); - } - - public static java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByCompanyIdGroupId(companyId, groupId); - } - - public static java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findByAnno_Mese_Settimana(anno, mese, settimana); - } - - public static java.util.List findSorteggiGroupByAnnoMeseSettimana( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().findSorteggiGroupByAnnoMeseSettimana(start, end); - } - - public static int countSorteggiGroupByAnnoMeseSettimana() - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countSorteggiGroupByAnnoMeseSettimana(); - } - - public static int countSorteggioMese(java.util.Date dtMin, - java.util.Date dtMax, java.util.List territorioIds, - java.util.List tipoPraticaIds) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countSorteggioMese(dtMin, dtMax, territorioIds, - tipoPraticaIds); - } - - public static java.util.List findSorteggioMese( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findSorteggioMese(dtMin, dtMax, territorioIds, - tipoPraticaIds, statiPratica, maxResults); - } - - public static java.util.List findSorteggioAnno( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findSorteggioAnno(dtMin, dtMax, territorioIds, - tipoPraticaIds, statiPratica, maxResults); - } - - public static void updateDataSorteggioPraticaEsterna( - long praticaEsternaId, java.util.Date dataSorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - getService() - .updateDataSorteggioPraticaEsterna(praticaEsternaId, dataSorteggio); - } - - public static java.lang.String getTecnicoSorteggioPraticaEsterna( - long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().getTecnicoSorteggioPraticaEsterna(praticaEsternaId); - } - - public static long findTipoPraticaIdSorteggioPraticaEsterna( - long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findTipoPraticaIdSorteggioPraticaEsterna(praticaEsternaId); - } - - public static java.util.List search( - java.lang.Long groupId, java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .search(groupId, anno, mese, settimana, committente, - tecnico, comune, pratica, numeroEstrazione, provincia, start, end); - } - - public static int count(java.lang.Long groupId, java.lang.String anno, - java.lang.String mese, int settimana, java.lang.String committente, - java.lang.String tecnico, java.lang.String comune, - java.lang.String pratica, java.lang.Long numeroEstrazione, - java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .count(groupId, anno, mese, settimana, committente, tecnico, - comune, pratica, numeroEstrazione, provincia); - } - - public static void clearService() { - _service = null; - } - - public static SorteggioLocalService getService() { - if (_service == null) { - InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), - SorteggioLocalService.class.getName()); - - if (invokableLocalService instanceof SorteggioLocalService) { - _service = (SorteggioLocalService)invokableLocalService; - } - else { - _service = new SorteggioLocalServiceClp(invokableLocalService); - } - - ReferenceRegistry.registerReference(SorteggioLocalServiceUtil.class, - "_service"); - } - - return _service; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setService(SorteggioLocalService service) { - } - - private static SorteggioLocalService _service; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceWrapper.java deleted file mode 100644 index 9af4c63e..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioLocalServiceWrapper.java +++ /dev/null @@ -1,619 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.ServiceWrapper; - -/** - * Provides a wrapper for {@link SorteggioLocalService}. - * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioLocalService - * @generated - */ -public class SorteggioLocalServiceWrapper implements SorteggioLocalService, - ServiceWrapper { - public SorteggioLocalServiceWrapper( - SorteggioLocalService sorteggioLocalService) { - _sorteggioLocalService = sorteggioLocalService; - } - - /** - * Adds the sorteggio to the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was added - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.addSorteggio(sorteggio); - } - - /** - * Creates a new sorteggio with the primary key. Does not add the sorteggio to the database. - * - * @param sorteggioId the primary key for the new sorteggio - * @return the new sorteggio - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio createSorteggio( - long sorteggioId) { - return _sorteggioLocalService.createSorteggio(sorteggioId); - } - - /** - * Deletes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.deleteSorteggio(sorteggioId); - } - - /** - * Deletes the sorteggio from the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio deleteSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.deleteSorteggio(sorteggio); - } - - @Override - public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { - return _sorteggioLocalService.dynamicQuery(); - } - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.dynamicQuery(dynamicQuery); - } - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.dynamicQuery(dynamicQuery, start, end); - } - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public java.util.List dynamicQuery( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.dynamicQuery(dynamicQuery, start, end, - orderByComparator); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.dynamicQueryCount(dynamicQuery); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount( - com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, - com.liferay.portal.kernel.dao.orm.Projection projection) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.dynamicQueryCount(dynamicQuery, projection); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.fetchSorteggio(sorteggioId); - } - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.fetchSorteggioByUuidAndCompanyId(uuid, - companyId); - } - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.fetchSorteggioByUuidAndGroupId(uuid, - groupId); - } - - /** - * Returns the sorteggio with the primary key. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggio( - long sorteggioId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getSorteggio(sorteggioId); - } - - @Override - public com.liferay.portal.model.PersistedModel getPersistedModel( - java.io.Serializable primaryKeyObj) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getPersistedModel(primaryKeyObj); - } - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndCompanyId( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getSorteggioByUuidAndCompanyId(uuid, - companyId); - } - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio getSorteggioByUuidAndGroupId( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getSorteggioByUuidAndGroupId(uuid, groupId); - } - - /** - * Returns a range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public java.util.List getSorteggios( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getSorteggios(start, end); - } - - /** - * Returns the number of sorteggios. - * - * @return the number of sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int getSorteggiosCount() - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getSorteggiosCount(); - } - - /** - * Updates the sorteggio in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was updated - * @throws SystemException if a system exception occurred - */ - @Override - public it.tref.liferay.portos.bo.model.Sorteggio updateSorteggio( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.updateSorteggio(sorteggio); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public java.lang.String getBeanIdentifier() { - return _sorteggioLocalService.getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - _sorteggioLocalService.setBeanIdentifier(beanIdentifier); - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return _sorteggioLocalService.invokeMethod(name, parameterTypes, - arguments); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggio( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.addSorteggio(intPraticaId, dettPraticaId, - anno, mese, settimana, dtSorteggio, note, stato, dettagli, - numeroEstrazione, pratica, committente, comune, provincia, esterna, - praticaEsternaId, mesePrecedente, serviceContext); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio addSorteggioForImport( - long intPraticaId, long dettPraticaId, java.lang.String anno, - java.lang.String mese, int settimana, java.util.Date dtSorteggio, - java.lang.String note, java.lang.String stato, - java.lang.String dettagli, long numeroEstrazione, - java.lang.String pratica, java.lang.String committente, - java.lang.String comune, java.lang.String provincia, boolean esterna, - long praticaEsternaId, boolean mesePrecedente, int status, - long oldSorteggioId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.addSorteggioForImport(intPraticaId, - dettPraticaId, anno, mese, settimana, dtSorteggio, note, stato, - dettagli, numeroEstrazione, pratica, committente, comune, - provincia, esterna, praticaEsternaId, mesePrecedente, status, - oldSorteggioId, serviceContext); - } - - @Override - public java.util.List getYears(java.lang.Long groupId, - int lastResults) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getYears(groupId, lastResults); - } - - @Override - public int countDettPraticaWorkflowNonAvviato() - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.countDettPraticaWorkflowNonAvviato(); - } - - @Override - public java.util.List getDettPraticaWorkflowNonAvviato( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getDettPraticaWorkflowNonAvviato(start, - end); - } - - @Override - public java.util.List search( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.search(groupId, anno, mese, settimana, - start, end); - } - - @Override - public int countSearch(long groupId, java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.countSearch(groupId, anno, mese, settimana); - } - - @Override - public java.util.List search( - java.lang.String anno, java.lang.String mese, int settimana, - java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.search(anno, mese, settimana, - committente, tecnico, comune, pratica, numeroEstrazione, provincia, - start, end); - } - - @Override - public int countSearch(java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.countSearch(anno, mese, settimana, - committente, tecnico, comune, pratica, numeroEstrazione, provincia); - } - - @Override - public boolean isDettPraticaSorteggiata(long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.isDettPraticaSorteggiata(companyId, - dettPraticaId); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.fetchByOldSorteggioId(oldSorteggioId); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica( - long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findByC_DettPratica(companyId, - dettPraticaId); - } - - @Override - public it.tref.liferay.portos.bo.model.Sorteggio findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findByIntPratica(intPraticaId); - } - - @Override - public java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findByGroupId_Anno_Mese_Settimana(groupId, - anno, mese, settimana); - } - - @Override - public java.util.List findByCompanyIdGroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findByCompanyIdGroupId(companyId, groupId); - } - - @Override - public java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findByAnno_Mese_Settimana(anno, mese, - settimana); - } - - @Override - public java.util.List findSorteggiGroupByAnnoMeseSettimana( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findSorteggiGroupByAnnoMeseSettimana(start, - end); - } - - @Override - public int countSorteggiGroupByAnnoMeseSettimana() - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.countSorteggiGroupByAnnoMeseSettimana(); - } - - @Override - public int countSorteggioMese(java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.countSorteggioMese(dtMin, dtMax, - territorioIds, tipoPraticaIds); - } - - @Override - public java.util.List findSorteggioMese( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findSorteggioMese(dtMin, dtMax, - territorioIds, tipoPraticaIds, statiPratica, maxResults); - } - - @Override - public java.util.List findSorteggioAnno( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findSorteggioAnno(dtMin, dtMax, - territorioIds, tipoPraticaIds, statiPratica, maxResults); - } - - @Override - public void updateDataSorteggioPraticaEsterna(long praticaEsternaId, - java.util.Date dataSorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - _sorteggioLocalService.updateDataSorteggioPraticaEsterna(praticaEsternaId, - dataSorteggio); - } - - @Override - public java.lang.String getTecnicoSorteggioPraticaEsterna( - long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.getTecnicoSorteggioPraticaEsterna(praticaEsternaId); - } - - @Override - public long findTipoPraticaIdSorteggioPraticaEsterna(long praticaEsternaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.findTipoPraticaIdSorteggioPraticaEsterna(praticaEsternaId); - } - - @Override - public java.util.List search( - java.lang.Long groupId, java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.search(groupId, anno, mese, settimana, - committente, tecnico, comune, pratica, numeroEstrazione, provincia, - start, end); - } - - @Override - public int count(java.lang.Long groupId, java.lang.String anno, - java.lang.String mese, int settimana, java.lang.String committente, - java.lang.String tecnico, java.lang.String comune, - java.lang.String pratica, java.lang.Long numeroEstrazione, - java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException { - return _sorteggioLocalService.count(groupId, anno, mese, settimana, - committente, tecnico, comune, pratica, numeroEstrazione, provincia); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} - */ - public SorteggioLocalService getWrappedSorteggioLocalService() { - return _sorteggioLocalService; - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} - */ - public void setWrappedSorteggioLocalService( - SorteggioLocalService sorteggioLocalService) { - _sorteggioLocalService = sorteggioLocalService; - } - - @Override - public SorteggioLocalService getWrappedService() { - return _sorteggioLocalService; - } - - @Override - public void setWrappedService(SorteggioLocalService sorteggioLocalService) { - _sorteggioLocalService = sorteggioLocalService; - } - - private SorteggioLocalService _sorteggioLocalService; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioService.java deleted file mode 100644 index ff9e8e85..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioService.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.jsonwebservice.JSONWebService; -import com.liferay.portal.kernel.transaction.Isolation; -import com.liferay.portal.kernel.transaction.Transactional; -import com.liferay.portal.security.ac.AccessControlled; -import com.liferay.portal.service.BaseService; -import com.liferay.portal.service.InvokableService; - -/** - * Provides the remote service interface for Sorteggio. Methods of this - * service are expected to have security checks based on the propagated JAAS - * credentials because this service can be accessed remotely. - * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioServiceUtil - * @see it.tref.liferay.portos.bo.service.base.SorteggioServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl - * @generated - */ -@AccessControlled -@JSONWebService -@Transactional(isolation = Isolation.PORTAL, rollbackFor = { - PortalException.class, SystemException.class}) -public interface SorteggioService extends BaseService, InvokableService { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link SorteggioServiceUtil} to access the sorteggio remote service. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. - */ - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public java.lang.String getBeanIdentifier(); - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public void setBeanIdentifier(java.lang.String beanIdentifier); - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceClp.java deleted file mode 100644 index 71855f38..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceClp.java +++ /dev/null @@ -1,91 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.service.InvokableService; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class SorteggioServiceClp implements SorteggioService { - public SorteggioServiceClp(InvokableService invokableService) { - _invokableService = invokableService; - - _methodName0 = "getBeanIdentifier"; - - _methodParameterTypes0 = new String[] { }; - - _methodName1 = "setBeanIdentifier"; - - _methodParameterTypes1 = new String[] { "java.lang.String" }; - } - - @Override - public java.lang.String getBeanIdentifier() { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName0, - _methodParameterTypes0, new Object[] { }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.lang.String)ClpSerializer.translateOutput(returnObj); - } - - @Override - public void setBeanIdentifier(java.lang.String beanIdentifier) { - try { - _invokableService.invokeMethod(_methodName1, - _methodParameterTypes1, - new Object[] { ClpSerializer.translateInput(beanIdentifier) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - } - - @Override - public java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - throw new UnsupportedOperationException(); - } - - private InvokableService _invokableService; - private String _methodName0; - private String[] _methodParameterTypes0; - private String _methodName1; - private String[] _methodParameterTypes1; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceUtil.java deleted file mode 100644 index a89cbd2a..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/SorteggioServiceUtil.java +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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.liferay.portos.bo.service; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.util.ReferenceRegistry; -import com.liferay.portal.service.InvokableService; - -/** - * Provides the remote service utility for Sorteggio. This utility wraps - * {@link it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl} and is the - * primary access point for service operations in application layer code running - * on a remote server. Methods of this service are expected to have security - * checks based on the propagated JAAS credentials because this service can be - * accessed remotely. - * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioService - * @see it.tref.liferay.portos.bo.service.base.SorteggioServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl - * @generated - */ -public class SorteggioServiceUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Add custom service methods to {@link it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl} and rerun ServiceBuilder to regenerate this class. - */ - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - public static java.lang.String getBeanIdentifier() { - return getService().getBeanIdentifier(); - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - public static void setBeanIdentifier(java.lang.String beanIdentifier) { - getService().setBeanIdentifier(beanIdentifier); - } - - public static java.lang.Object invokeMethod(java.lang.String name, - java.lang.String[] parameterTypes, java.lang.Object[] arguments) - throws java.lang.Throwable { - return getService().invokeMethod(name, parameterTypes, arguments); - } - - public static void clearService() { - _service = null; - } - - public static SorteggioService getService() { - if (_service == null) { - InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), - SorteggioService.class.getName()); - - if (invokableService instanceof SorteggioService) { - _service = (SorteggioService)invokableService; - } - else { - _service = new SorteggioServiceClp(invokableService); - } - - ReferenceRegistry.registerReference(SorteggioServiceUtil.class, - "_service"); - } - - return _service; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setService(SorteggioService service) { - } - - private static SorteggioService _service; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalService.java index 561a07a6..e0791130 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalService.java @@ -261,18 +261,6 @@ public interface StoricoSoggettoPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica addStoricoSoggettoPraticaForImport( - long intPraticaId, java.lang.String nome, java.lang.String cognome, - java.lang.String codiceFiscale, long oldStoricoSoggettoPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException; - - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica( long companyId, long intPraticaId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceClp.java index edb5f1ca..cec584ab 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceClp.java @@ -123,25 +123,13 @@ public class StoricoSoggettoPraticaLocalServiceClp "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName20 = "addStoricoSoggettoPraticaForImport"; + _methodName20 = "findByIntPratica"; - _methodParameterTypes20 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String", "long", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName21 = "fetchByOldStoricoSoggettoPraticaId"; - - _methodParameterTypes21 = new String[] { "long" }; - - _methodName22 = "findByIntPratica"; - - _methodParameterTypes22 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes20 = new String[] { "long", "long", "int", "int" }; - _methodName23 = "countByIntPratica"; + _methodName21 = "countByIntPratica"; - _methodParameterTypes23 = new String[] { "long", "long" }; + _methodParameterTypes21 = new String[] { "long", "long" }; } @Override @@ -751,85 +739,6 @@ public class StoricoSoggettoPraticaLocalServiceClp return (it.tref.liferay.portos.bo.model.StoricoSoggettoPratica)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica addStoricoSoggettoPraticaForImport( - long intPraticaId, java.lang.String nome, java.lang.String cognome, - java.lang.String codiceFiscale, long oldStoricoSoggettoPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName20, - _methodParameterTypes20, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(nome), - - ClpSerializer.translateInput(cognome), - - ClpSerializer.translateInput(codiceFiscale), - - oldStoricoSoggettoPraticaId, - - ClpSerializer.translateInput(serviceContext) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.PortalException) { - throw (com.liferay.portal.kernel.exception.PortalException)t; - } - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.StoricoSoggettoPratica)ClpSerializer.translateOutput(returnObj); - } - - @Override - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName21, - _methodParameterTypes21, - new Object[] { oldStoricoSoggettoPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.StoricoSoggettoPratica)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List findByIntPratica( long companyId, long intPraticaId, int start, int end) @@ -837,8 +746,8 @@ public class StoricoSoggettoPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName22, - _methodParameterTypes22, + returnObj = _invokableLocalService.invokeMethod(_methodName20, + _methodParameterTypes20, new Object[] { companyId, intPraticaId, start, end }); } catch (Throwable t) { @@ -866,8 +775,8 @@ public class StoricoSoggettoPraticaLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName23, - _methodParameterTypes23, + returnObj = _invokableLocalService.invokeMethod(_methodName21, + _methodParameterTypes21, new Object[] { companyId, intPraticaId }); } catch (Throwable t) { @@ -932,8 +841,4 @@ public class StoricoSoggettoPraticaLocalServiceClp private String[] _methodParameterTypes20; private String _methodName21; private String[] _methodParameterTypes21; - private String _methodName22; - private String[] _methodParameterTypes22; - private String _methodName23; - private String[] _methodParameterTypes23; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceUtil.java index 37b697ea..7a7c8c85 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceUtil.java @@ -288,24 +288,6 @@ public class StoricoSoggettoPraticaLocalServiceUtil { codiceFiscale, serviceContext); } - public static it.tref.liferay.portos.bo.model.StoricoSoggettoPratica addStoricoSoggettoPraticaForImport( - long intPraticaId, java.lang.String nome, java.lang.String cognome, - java.lang.String codiceFiscale, long oldStoricoSoggettoPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return getService() - .addStoricoSoggettoPraticaForImport(intPraticaId, nome, - cognome, codiceFiscale, oldStoricoSoggettoPraticaId, serviceContext); - } - - public static it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .fetchByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - } - public static java.util.List findByIntPratica( long companyId, long intPraticaId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceWrapper.java index 117e9690..032fe3dc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/StoricoSoggettoPraticaLocalServiceWrapper.java @@ -301,25 +301,6 @@ public class StoricoSoggettoPraticaLocalServiceWrapper nome, cognome, codiceFiscale, serviceContext); } - @Override - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica addStoricoSoggettoPraticaForImport( - long intPraticaId, java.lang.String nome, java.lang.String cognome, - java.lang.String codiceFiscale, long oldStoricoSoggettoPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws com.liferay.portal.kernel.exception.PortalException, - com.liferay.portal.kernel.exception.SystemException { - return _storicoSoggettoPraticaLocalService.addStoricoSoggettoPraticaForImport(intPraticaId, - nome, cognome, codiceFiscale, oldStoricoSoggettoPraticaId, - serviceContext); - } - - @Override - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _storicoSoggettoPraticaLocalService.fetchByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - } - @Override public java.util.List findByIntPratica( long companyId, long intPraticaId, int start, int end) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalService.java index 44982c8f..e19ced1d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalService.java @@ -363,11 +363,6 @@ public interface TempisticaLocalService extends BaseLocalService, public int countScadenzeIntegrazioni(long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica_Tipo( long intPraticaId, java.lang.String tipo) throws com.liferay.portal.kernel.exception.SystemException; @@ -375,9 +370,6 @@ public interface TempisticaLocalService extends BaseLocalService, public int countPraticheScaduteAutorizzazione(long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException; - public int countPraticheScaduteSorteggiate(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - public int countPraticheScaduteControlloObbligatorio(long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException; @@ -386,9 +378,6 @@ public interface TempisticaLocalService extends BaseLocalService, long groupId) throws com.liferay.portal.kernel.exception.SystemException; - public int countPraticheInScadenzaSorteggiate(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - public int countPraticheInScadenzaControlloObbligatorio(long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException; @@ -397,10 +386,6 @@ public interface TempisticaLocalService extends BaseLocalService, long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List praticheAttiveSorteggiate( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List praticheAttiveControlloObbligatorio( long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceClp.java index 9d263804..1bc22765 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceClp.java @@ -196,61 +196,45 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { _methodParameterTypes35 = new String[] { "long", "long" }; - _methodName36 = "fetchByOldTempisticaId"; + _methodName36 = "findByIntPratica_Tipo"; - _methodParameterTypes36 = new String[] { "long" }; + _methodParameterTypes36 = new String[] { "long", "java.lang.String" }; - _methodName37 = "findByIntPratica_Tipo"; + _methodName37 = "countPraticheScaduteAutorizzazione"; - _methodParameterTypes37 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes37 = new String[] { "long", "long" }; - _methodName38 = "countPraticheScaduteAutorizzazione"; + _methodName38 = "countPraticheScaduteControlloObbligatorio"; _methodParameterTypes38 = new String[] { "long", "long" }; - _methodName39 = "countPraticheScaduteSorteggiate"; + _methodName39 = "countPraticheInScadenzaAutorizzazioni"; _methodParameterTypes39 = new String[] { "long", "long" }; - _methodName40 = "countPraticheScaduteControlloObbligatorio"; + _methodName40 = "countPraticheInScadenzaControlloObbligatorio"; _methodParameterTypes40 = new String[] { "long", "long" }; - _methodName41 = "countPraticheInScadenzaAutorizzazioni"; + _methodName41 = "praticheAttiveAutorizzazioni"; _methodParameterTypes41 = new String[] { "long", "long" }; - _methodName42 = "countPraticheInScadenzaSorteggiate"; + _methodName42 = "praticheAttiveControlloObbligatorio"; _methodParameterTypes42 = new String[] { "long", "long" }; - _methodName43 = "countPraticheInScadenzaControlloObbligatorio"; + _methodName43 = "getDtSottopostaAParere"; - _methodParameterTypes43 = new String[] { "long", "long" }; + _methodParameterTypes43 = new String[] { "long" }; - _methodName44 = "praticheAttiveAutorizzazioni"; + _methodName44 = "countPraticheAttivePerDiscriminazione"; _methodParameterTypes44 = new String[] { "long", "long" }; - _methodName45 = "praticheAttiveSorteggiate"; + _methodName45 = "scadenzePraticheForBackwardCompatibility"; - _methodParameterTypes45 = new String[] { "long", "long" }; - - _methodName46 = "praticheAttiveControlloObbligatorio"; - - _methodParameterTypes46 = new String[] { "long", "long" }; - - _methodName47 = "getDtSottopostaAParere"; - - _methodParameterTypes47 = new String[] { "long" }; - - _methodName48 = "countPraticheAttivePerDiscriminazione"; - - _methodParameterTypes48 = new String[] { "long", "long" }; - - _methodName49 = "scadenzePraticheForBackwardCompatibility"; - - _methodParameterTypes49 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes45 = new String[] { "long", "long", "int", "int" }; } @Override @@ -1364,35 +1348,6 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { return ((Integer)returnObj).intValue(); } - @Override - public it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, new Object[] { oldTempisticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Tempistica)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List findByIntPratica_Tipo( long intPraticaId, java.lang.String tipo) @@ -1400,8 +1355,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, @@ -1433,36 +1388,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, new Object[] { companyId, groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public int countPraticheScaduteSorteggiate(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1490,8 +1417,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1519,36 +1446,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, new Object[] { companyId, groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return ((Integer)returnObj).intValue(); - } - - @Override - public int countPraticheInScadenzaSorteggiate(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1576,8 +1475,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1605,37 +1504,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, new Object[] { companyId, groupId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List praticheAttiveSorteggiate( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1663,8 +1533,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1691,8 +1561,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1719,8 +1589,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, new Object[] { companyId, groupId }); + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, groupId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1743,8 +1613,8 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, groupId, start, end }); } catch (Throwable t) { @@ -1853,12 +1723,4 @@ public class TempisticaLocalServiceClp implements TempisticaLocalService { private String[] _methodParameterTypes44; private String _methodName45; private String[] _methodParameterTypes45; - private String _methodName46; - private String[] _methodParameterTypes46; - private String _methodName47; - private String[] _methodParameterTypes47; - private String _methodName48; - private String[] _methodParameterTypes48; - private String _methodName49; - private String[] _methodParameterTypes49; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceUtil.java index 480ad344..e5150876 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceUtil.java @@ -422,12 +422,6 @@ public class TempisticaLocalServiceUtil { return getService().countScadenzeIntegrazioni(companyId, groupId); } - public static it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().fetchByOldTempisticaId(oldTempisticaId); - } - public static java.util.List findByIntPratica_Tipo( long intPraticaId, java.lang.String tipo) throws com.liferay.portal.kernel.exception.SystemException { @@ -441,12 +435,6 @@ public class TempisticaLocalServiceUtil { .countPraticheScaduteAutorizzazione(companyId, groupId); } - public static int countPraticheScaduteSorteggiate(long companyId, - long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countPraticheScaduteSorteggiate(companyId, groupId); - } - public static int countPraticheScaduteControlloObbligatorio( long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { @@ -461,13 +449,6 @@ public class TempisticaLocalServiceUtil { .countPraticheInScadenzaAutorizzazioni(companyId, groupId); } - public static int countPraticheInScadenzaSorteggiate(long companyId, - long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countPraticheInScadenzaSorteggiate(companyId, groupId); - } - public static int countPraticheInScadenzaControlloObbligatorio( long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { @@ -482,12 +463,6 @@ public class TempisticaLocalServiceUtil { return getService().praticheAttiveAutorizzazioni(companyId, groupId); } - public static java.util.List praticheAttiveSorteggiate( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().praticheAttiveSorteggiate(companyId, groupId); - } - public static java.util.List praticheAttiveControlloObbligatorio( long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceWrapper.java index 070cdd54..16b999f5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TempisticaLocalServiceWrapper.java @@ -453,13 +453,6 @@ public class TempisticaLocalServiceWrapper implements TempisticaLocalService, groupId); } - @Override - public it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _tempisticaLocalService.fetchByOldTempisticaId(oldTempisticaId); - } - @Override public java.util.List findByIntPratica_Tipo( long intPraticaId, java.lang.String tipo) @@ -474,13 +467,6 @@ public class TempisticaLocalServiceWrapper implements TempisticaLocalService, groupId); } - @Override - public int countPraticheScaduteSorteggiate(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _tempisticaLocalService.countPraticheScaduteSorteggiate(companyId, - groupId); - } - @Override public int countPraticheScaduteControlloObbligatorio(long companyId, long groupId) @@ -497,13 +483,6 @@ public class TempisticaLocalServiceWrapper implements TempisticaLocalService, groupId); } - @Override - public int countPraticheInScadenzaSorteggiate(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _tempisticaLocalService.countPraticheInScadenzaSorteggiate(companyId, - groupId); - } - @Override public int countPraticheInScadenzaControlloObbligatorio(long companyId, long groupId) @@ -520,14 +499,6 @@ public class TempisticaLocalServiceWrapper implements TempisticaLocalService, groupId); } - @Override - public java.util.List praticheAttiveSorteggiate( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return _tempisticaLocalService.praticheAttiveSorteggiate(companyId, - groupId); - } - @Override public java.util.List praticheAttiveControlloObbligatorio( long companyId, long groupId) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java index db523f18..e2667091 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java @@ -258,7 +258,7 @@ public interface TerritorioLocalService extends BaseLocalService, long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldTerritorioId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; @@ -308,12 +308,6 @@ public interface TerritorioLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchTerritorioException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) - public it.tref.liferay.portos.bo.model.Territorio fetchByOldTerriotioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException; - @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public java.util.List getTerritoriByGroupAndZona( long groupId, java.lang.String zona) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java index 8a6342ca..cdb1ffe2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java @@ -120,7 +120,7 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { _methodParameterTypes19 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", - "java.util.Date", "java.lang.String", "java.lang.String", "long", + "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -168,27 +168,23 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { "java.util.Date" }; - _methodName29 = "fetchByOldTerriotioId"; - - _methodParameterTypes29 = new String[] { "long" }; - - _methodName30 = "getTerritoriByGroupAndZona"; + _methodName29 = "getTerritoriByGroupAndZona"; - _methodParameterTypes30 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes29 = new String[] { "long", "java.lang.String" }; - _methodName31 = "getTerritoriByGroupAndZonaAndFascia"; + _methodName30 = "getTerritoriByGroupAndZonaAndFascia"; - _methodParameterTypes31 = new String[] { + _methodParameterTypes30 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName32 = "getAllTerritorioGroup"; + _methodName31 = "getAllTerritorioGroup"; - _methodParameterTypes32 = new String[] { }; + _methodParameterTypes31 = new String[] { }; - _methodName33 = "verifyTerritorioConstraintAlreadyExist"; + _methodName32 = "verifyTerritorioConstraintAlreadyExist"; - _methodParameterTypes33 = new String[] { + _methodParameterTypes32 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; @@ -749,7 +745,7 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldTerritorioId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -779,8 +775,6 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { ClpSerializer.translateInput(agMin), - oldTerritorioId, - ClpSerializer.translateInput(serviceContext) }); } @@ -1120,40 +1114,6 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { return (it.tref.liferay.portos.bo.model.Territorio)ClpSerializer.translateOutput(returnObj); } - @Override - public it.tref.liferay.portos.bo.model.Territorio fetchByOldTerriotioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, new Object[] { oldTerritorioId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof com.liferay.portal.kernel.exception.SystemException) { - throw (com.liferay.portal.kernel.exception.SystemException)t; - } - - if (t instanceof it.tref.liferay.portos.bo.NoSuchTerritorioException) { - throw (it.tref.liferay.portos.bo.NoSuchTerritorioException)t; - } - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (it.tref.liferay.portos.bo.model.Territorio)ClpSerializer.translateOutput(returnObj); - } - @Override public java.util.List getTerritoriByGroupAndZona( long groupId, java.lang.String zona) @@ -1161,8 +1121,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { groupId, ClpSerializer.translateInput(zona) }); } catch (Throwable t) { @@ -1191,8 +1151,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { groupId, @@ -1226,8 +1186,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1256,8 +1216,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { comuneId, @@ -1354,6 +1314,4 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService { private String[] _methodParameterTypes31; private String _methodName32; private String[] _methodParameterTypes32; - private String _methodName33; - private String[] _methodParameterTypes33; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java index d56ace4e..a33d78f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java @@ -279,14 +279,13 @@ public class TerritorioLocalServiceUtil { long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldTerritorioId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addTerritorio(comuneId, groupId, codiceProvincia, zona, - fascia, articolo61, dtIni, dtFin, agMax, agMin, oldTerritorioId, - serviceContext); + fascia, articolo61, dtIni, dtFin, agMax, agMin, serviceContext); } public static it.tref.liferay.portos.bo.model.Territorio updateTerritorio( @@ -353,13 +352,6 @@ public class TerritorioLocalServiceUtil { zona, fascia, dtIni); } - public static it.tref.liferay.portos.bo.model.Territorio fetchByOldTerriotioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException { - return getService().fetchByOldTerriotioId(oldTerritorioId); - } - public static java.util.List getTerritoriByGroupAndZona( long groupId, java.lang.String zona) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java index bed3d543..5489ac32 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java @@ -292,13 +292,13 @@ public class TerritorioLocalServiceWrapper implements TerritorioLocalService, long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldTerritorioId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _territorioLocalService.addTerritorio(comuneId, groupId, codiceProvincia, zona, fascia, articolo61, dtIni, dtFin, agMax, - agMin, oldTerritorioId, serviceContext); + agMin, serviceContext); } @Override @@ -373,14 +373,6 @@ public class TerritorioLocalServiceWrapper implements TerritorioLocalService, groupId, zona, fascia, dtIni); } - @Override - public it.tref.liferay.portos.bo.model.Territorio fetchByOldTerriotioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException { - return _territorioLocalService.fetchByOldTerriotioId(oldTerritorioId); - } - @Override public java.util.List getTerritoriByGroupAndZona( long groupId, java.lang.String zona) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioService.java index d1c72438..4bde0c69 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioService.java @@ -69,7 +69,7 @@ public interface TerritorioService extends BaseService, InvokableService { long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceClp.java index 01c764af..3ae4309e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceClp.java @@ -37,7 +37,7 @@ public class TerritorioServiceClp implements TerritorioService { _methodParameterTypes3 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", - "java.util.Date", "java.lang.String", "java.lang.String", "long", + "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -122,7 +122,7 @@ public class TerritorioServiceClp implements TerritorioService { long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -152,8 +152,6 @@ public class TerritorioServiceClp implements TerritorioService { ClpSerializer.translateInput(agMin), - oldId, - ClpSerializer.translateInput(serviceContext) }); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceUtil.java index 17441ca9..3e02a814 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceUtil.java @@ -67,14 +67,13 @@ public class TerritorioServiceUtil { long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService() .addTerritorio(comuneId, groupId, codiceProvincia, zona, - fascia, articolo61, dtIni, dtFin, agMax, agMin, oldId, - serviceContext); + fascia, articolo61, dtIni, dtFin, agMax, agMin, serviceContext); } public static it.tref.liferay.portos.bo.model.Territorio updateTerritorio( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceWrapper.java index d2a51aae..ffd65f36 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioServiceWrapper.java @@ -61,13 +61,13 @@ public class TerritorioServiceWrapper implements TerritorioService, long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _territorioService.addTerritorio(comuneId, groupId, codiceProvincia, zona, fascia, articolo61, dtIni, dtFin, agMax, - agMin, oldId, serviceContext); + agMin, serviceContext); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java index 940fe785..48e380b5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/messaging/ClpMessageListener.java @@ -46,10 +46,6 @@ import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriServiceUtil; import it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil; import it.tref.liferay.portos.bo.service.HistoryWorkflowActionServiceUtil; -import it.tref.liferay.portos.bo.service.IUVLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IUVServiceUtil; -import it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil; -import it.tref.liferay.portos.bo.service.InfoFascicoloServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; @@ -60,8 +56,6 @@ import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioServiceUtil; import it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaServiceUtil; import it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil; @@ -126,15 +120,9 @@ public class ClpMessageListener extends BaseMessageListener { HistoryWorkflowActionLocalServiceUtil.clearService(); HistoryWorkflowActionServiceUtil.clearService(); - InfoFascicoloLocalServiceUtil.clearService(); - - InfoFascicoloServiceUtil.clearService(); IntPraticaLocalServiceUtil.clearService(); IntPraticaServiceUtil.clearService(); - IUVLocalServiceUtil.clearService(); - - IUVServiceUtil.clearService(); PagamentoLocalServiceUtil.clearService(); PagamentoServiceUtil.clearService(); @@ -147,9 +135,6 @@ public class ClpMessageListener extends BaseMessageListener { SoggettoLocalServiceUtil.clearService(); SoggettoServiceUtil.clearService(); - SorteggioLocalServiceUtil.clearService(); - - SorteggioServiceUtil.clearService(); StoricoSoggettoPraticaLocalServiceUtil.clearService(); StoricoSoggettoPraticaServiceUtil.clearService(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistence.java index 4b7b9f54..431596a6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistence.java @@ -386,64 +386,6 @@ public interface AvvisoPersistence extends BasePersistence { public int countByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the avviso where oldAvvisoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchAvvisoException} if it could not be found. - * - * @param oldAvvisoId the old avviso ID - * @return the matching avviso - * @throws it.tref.liferay.portos.bo.NoSuchAvvisoException if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Avviso findByoldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAvvisoException; - - /** - * Returns the avviso where oldAvvisoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldAvvisoId the old avviso ID - * @return the matching avviso, or null if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Avviso fetchByoldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the avviso where oldAvvisoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldAvvisoId the old avviso ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching avviso, or null if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Avviso fetchByoldAvvisoId( - long oldAvvisoId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the avviso where oldAvvisoId = ? from the database. - * - * @param oldAvvisoId the old avviso ID - * @return the avviso that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Avviso removeByoldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAvvisoException; - - /** - * Returns the number of avvisos where oldAvvisoId = ?. - * - * @param oldAvvisoId the old avviso ID - * @return the number of matching avvisos - * @throws SystemException if a system exception occurred - */ - public int countByoldAvvisoId(long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the avvisos where intPraticaId = ? and tipoDocumento = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoUtil.java index 995af733..1c4c0204 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AvvisoUtil.java @@ -515,75 +515,6 @@ public class AvvisoUtil { return getPersistence().countByUuid_C(uuid, companyId); } - /** - * Returns the avviso where oldAvvisoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchAvvisoException} if it could not be found. - * - * @param oldAvvisoId the old avviso ID - * @return the matching avviso - * @throws it.tref.liferay.portos.bo.NoSuchAvvisoException if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Avviso findByoldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAvvisoException { - return getPersistence().findByoldAvvisoId(oldAvvisoId); - } - - /** - * Returns the avviso where oldAvvisoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldAvvisoId the old avviso ID - * @return the matching avviso, or null if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Avviso fetchByoldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByoldAvvisoId(oldAvvisoId); - } - - /** - * Returns the avviso where oldAvvisoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldAvvisoId the old avviso ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching avviso, or null if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Avviso fetchByoldAvvisoId( - long oldAvvisoId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByoldAvvisoId(oldAvvisoId, retrieveFromCache); - } - - /** - * Removes the avviso where oldAvvisoId = ? from the database. - * - * @param oldAvvisoId the old avviso ID - * @return the avviso that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Avviso removeByoldAvvisoId( - long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAvvisoException { - return getPersistence().removeByoldAvvisoId(oldAvvisoId); - } - - /** - * Returns the number of avvisos where oldAvvisoId = ?. - * - * @param oldAvvisoId the old avviso ID - * @return the number of matching avvisos - * @throws SystemException if a system exception occurred - */ - public static int countByoldAvvisoId(long oldAvvisoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByoldAvvisoId(oldAvvisoId); - } - /** * Returns all the avvisos where intPraticaId = ? and tipoDocumento = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistence.java index dd96f64e..b38fdeff 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistence.java @@ -1255,64 +1255,6 @@ public interface CollaudoPersistence extends BasePersistence { public int countByIntPraticaId_Parziale(long intPraticaId, boolean parziale) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the collaudo where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchCollaudoException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching collaudo - * @throws it.tref.liferay.portos.bo.NoSuchCollaudoException if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Collaudo findByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchCollaudoException; - - /** - * Returns the collaudo where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching collaudo, or null if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the collaudo where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching collaudo, or null if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the collaudo where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the collaudo that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Collaudo removeByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchCollaudoException; - - /** - * Returns the number of collaudos where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching collaudos - * @throws SystemException if a system exception occurred - */ - public int countByOldDettPraticaId(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the collaudo in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoUtil.java index 5a1e40dd..12303223 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/CollaudoUtil.java @@ -1592,75 +1592,6 @@ public class CollaudoUtil { .countByIntPraticaId_Parziale(intPraticaId, parziale); } - /** - * Returns the collaudo where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchCollaudoException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching collaudo - * @throws it.tref.liferay.portos.bo.NoSuchCollaudoException if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Collaudo findByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchCollaudoException { - return getPersistence().findByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the collaudo where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching collaudo, or null if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the collaudo where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching collaudo, or null if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Collaudo fetchByOldDettPraticaId( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldDettPraticaId(oldDettPraticaId, retrieveFromCache); - } - - /** - * Removes the collaudo where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the collaudo that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Collaudo removeByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchCollaudoException { - return getPersistence().removeByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the number of collaudos where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching collaudos - * @throws SystemException if a system exception occurred - */ - public static int countByOldDettPraticaId(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldDettPraticaId(oldDettPraticaId); - } - /** * Caches the collaudo in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistence.java index 79d089ac..e7c32a55 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistence.java @@ -652,64 +652,6 @@ public interface DettPraticaPersistence extends BasePersistence { java.lang.String protocollo) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the dett pratica where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDettPraticaException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica - * @throws it.tref.liferay.portos.bo.NoSuchDettPraticaException if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica findByOldDettPratica( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException; - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPratica( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPratica( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the dett pratica where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the dett pratica that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica removeByOldDettPratica( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException; - - /** - * Returns the number of dett praticas where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching dett praticas - * @throws SystemException if a system exception occurred - */ - public int countByOldDettPratica(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the dett praticas where intPraticaId = ? and tipoIntegrazione = ? and completa = ?. * @@ -1025,64 +967,6 @@ public interface DettPraticaPersistence extends BasePersistence { java.lang.String tipoIntegrazione) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the dett pratica where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDettPraticaException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica - * @throws it.tref.liferay.portos.bo.NoSuchDettPraticaException if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica findByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException; - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the dett pratica where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the dett pratica that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DettPratica removeByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException; - - /** - * Returns the number of dett praticas where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching dett praticas - * @throws SystemException if a system exception occurred - */ - public int countByOldDettPraticaId(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the dett pratica in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaUtil.java index 1073369b..6fcc52c6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DettPraticaUtil.java @@ -838,75 +838,6 @@ public class DettPraticaUtil { .countByC_G_Protocollo(companyId, groupId, protocollo); } - /** - * Returns the dett pratica where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDettPraticaException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica - * @throws it.tref.liferay.portos.bo.NoSuchDettPraticaException if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica findByOldDettPratica( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException { - return getPersistence().findByOldDettPratica(oldDettPraticaId); - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPratica( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldDettPratica(oldDettPraticaId); - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPratica( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldDettPratica(oldDettPraticaId, retrieveFromCache); - } - - /** - * Removes the dett pratica where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the dett pratica that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica removeByOldDettPratica( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException { - return getPersistence().removeByOldDettPratica(oldDettPraticaId); - } - - /** - * Returns the number of dett praticas where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching dett praticas - * @throws SystemException if a system exception occurred - */ - public static int countByOldDettPratica(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldDettPratica(oldDettPraticaId); - } - /** * Returns all the dett praticas where intPraticaId = ? and tipoIntegrazione = ? and completa = ?. * @@ -1302,75 +1233,6 @@ public class DettPraticaUtil { tipoIntegrazione); } - /** - * Returns the dett pratica where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDettPraticaException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica - * @throws it.tref.liferay.portos.bo.NoSuchDettPraticaException if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica findByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException { - return getPersistence().findByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica fetchByOldDettPraticaId( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldDettPraticaId(oldDettPraticaId, retrieveFromCache); - } - - /** - * Removes the dett pratica where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the dett pratica that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DettPratica removeByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDettPraticaException { - return getPersistence().removeByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the number of dett praticas where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching dett praticas - * @throws SystemException if a system exception occurred - */ - public static int countByOldDettPraticaId(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldDettPraticaId(oldDettPraticaId); - } - /** * Caches the dett pratica in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistence.java index 3a0d6b34..f741ac5f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistence.java @@ -811,64 +811,6 @@ public interface DocAggiuntivaPersistence extends BasePersistence public int countByIntPratica_FeVisible(long intPraticaId, boolean feVisible) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the doc aggiuntiva where oldFileEntryId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException} if it could not be found. - * - * @param oldFileEntryId the old file entry ID - * @return the matching doc aggiuntiva - * @throws it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException if a matching doc aggiuntiva could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocAggiuntiva findByoldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException; - - /** - * Returns the doc aggiuntiva where oldFileEntryId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldFileEntryId the old file entry ID - * @return the matching doc aggiuntiva, or null if a matching doc aggiuntiva could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByoldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the doc aggiuntiva where oldFileEntryId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldFileEntryId the old file entry ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching doc aggiuntiva, or null if a matching doc aggiuntiva could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByoldFileEntryId( - long oldFileEntryId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the doc aggiuntiva where oldFileEntryId = ? from the database. - * - * @param oldFileEntryId the old file entry ID - * @return the doc aggiuntiva that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocAggiuntiva removeByoldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException; - - /** - * Returns the number of doc aggiuntivas where oldFileEntryId = ?. - * - * @param oldFileEntryId the old file entry ID - * @return the number of matching doc aggiuntivas - * @throws SystemException if a system exception occurred - */ - public int countByoldFileEntryId(long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the doc aggiuntiva in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaUtil.java index 6773fd6d..c7a31291 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaUtil.java @@ -1035,75 +1035,6 @@ public class DocAggiuntivaUtil { .countByIntPratica_FeVisible(intPraticaId, feVisible); } - /** - * Returns the doc aggiuntiva where oldFileEntryId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException} if it could not be found. - * - * @param oldFileEntryId the old file entry ID - * @return the matching doc aggiuntiva - * @throws it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException if a matching doc aggiuntiva could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocAggiuntiva findByoldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException { - return getPersistence().findByoldFileEntryId(oldFileEntryId); - } - - /** - * Returns the doc aggiuntiva where oldFileEntryId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldFileEntryId the old file entry ID - * @return the matching doc aggiuntiva, or null if a matching doc aggiuntiva could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByoldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByoldFileEntryId(oldFileEntryId); - } - - /** - * Returns the doc aggiuntiva where oldFileEntryId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldFileEntryId the old file entry ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching doc aggiuntiva, or null if a matching doc aggiuntiva could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocAggiuntiva fetchByoldFileEntryId( - long oldFileEntryId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByoldFileEntryId(oldFileEntryId, retrieveFromCache); - } - - /** - * Removes the doc aggiuntiva where oldFileEntryId = ? from the database. - * - * @param oldFileEntryId the old file entry ID - * @return the doc aggiuntiva that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocAggiuntiva removeByoldFileEntryId( - long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException { - return getPersistence().removeByoldFileEntryId(oldFileEntryId); - } - - /** - * Returns the number of doc aggiuntivas where oldFileEntryId = ?. - * - * @param oldFileEntryId the old file entry ID - * @return the number of matching doc aggiuntivas - * @throws SystemException if a system exception occurred - */ - public static int countByoldFileEntryId(long oldFileEntryId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByoldFileEntryId(oldFileEntryId); - } - /** * Caches the doc aggiuntiva in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistence.java index 46c7ddab..6a7ea34f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistence.java @@ -444,64 +444,6 @@ public interface DocPraticaPersistence extends BasePersistence { public int countByDlFileEntry(long dlFileEntryId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the doc pratica where oldDocPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDocPraticaException} if it could not be found. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the matching doc pratica - * @throws it.tref.liferay.portos.bo.NoSuchDocPraticaException if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocPratica findByOldDocPratica( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocPraticaException; - - /** - * Returns the doc pratica where oldDocPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the matching doc pratica, or null if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPratica( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the doc pratica where oldDocPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDocPraticaId the old doc pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching doc pratica, or null if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPratica( - long oldDocPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the doc pratica where oldDocPraticaId = ? from the database. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the doc pratica that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.DocPratica removeByOldDocPratica( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocPraticaException; - - /** - * Returns the number of doc praticas where oldDocPraticaId = ?. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the number of matching doc praticas - * @throws SystemException if a system exception occurred - */ - public int countByOldDocPratica(long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the doc praticas where intPraticaId = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaUtil.java index d33bd3b5..09c9d79a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/DocPraticaUtil.java @@ -586,75 +586,6 @@ public class DocPraticaUtil { return getPersistence().countByDlFileEntry(dlFileEntryId); } - /** - * Returns the doc pratica where oldDocPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDocPraticaException} if it could not be found. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the matching doc pratica - * @throws it.tref.liferay.portos.bo.NoSuchDocPraticaException if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocPratica findByOldDocPratica( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocPraticaException { - return getPersistence().findByOldDocPratica(oldDocPraticaId); - } - - /** - * Returns the doc pratica where oldDocPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the matching doc pratica, or null if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPratica( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldDocPratica(oldDocPraticaId); - } - - /** - * Returns the doc pratica where oldDocPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDocPraticaId the old doc pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching doc pratica, or null if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocPratica fetchByOldDocPratica( - long oldDocPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldDocPratica(oldDocPraticaId, retrieveFromCache); - } - - /** - * Removes the doc pratica where oldDocPraticaId = ? from the database. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the doc pratica that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.DocPratica removeByOldDocPratica( - long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchDocPraticaException { - return getPersistence().removeByOldDocPratica(oldDocPraticaId); - } - - /** - * Returns the number of doc praticas where oldDocPraticaId = ?. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the number of matching doc praticas - * @throws SystemException if a system exception occurred - */ - public static int countByOldDocPratica(long oldDocPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldDocPratica(oldDocPraticaId); - } - /** * Returns all the doc praticas where intPraticaId = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistence.java index d52509a0..0a8cffd9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistence.java @@ -1417,64 +1417,6 @@ public interface FineLavoriPersistence extends BasePersistence { boolean parziale, boolean completata) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the fine lavori where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchFineLavoriException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching fine lavori - * @throws it.tref.liferay.portos.bo.NoSuchFineLavoriException if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.FineLavori findByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchFineLavoriException; - - /** - * Returns the fine lavori where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching fine lavori, or null if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the fine lavori where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching fine lavori, or null if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the fine lavori where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the fine lavori that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.FineLavori removeByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchFineLavoriException; - - /** - * Returns the number of fine lavoris where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching fine lavoris - * @throws SystemException if a system exception occurred - */ - public int countByOldDettPraticaId(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the fine lavori in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriUtil.java index 5c6c8855..5d4dffb1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/FineLavoriUtil.java @@ -1795,75 +1795,6 @@ public class FineLavoriUtil { parziale, completata); } - /** - * Returns the fine lavori where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchFineLavoriException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching fine lavori - * @throws it.tref.liferay.portos.bo.NoSuchFineLavoriException if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.FineLavori findByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchFineLavoriException { - return getPersistence().findByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the fine lavori where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching fine lavori, or null if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the fine lavori where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching fine lavori, or null if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.FineLavori fetchByOldDettPraticaId( - long oldDettPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldDettPraticaId(oldDettPraticaId, retrieveFromCache); - } - - /** - * Removes the fine lavori where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the fine lavori that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.FineLavori removeByOldDettPraticaId( - long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchFineLavoriException { - return getPersistence().removeByOldDettPraticaId(oldDettPraticaId); - } - - /** - * Returns the number of fine lavoris where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching fine lavoris - * @throws SystemException if a system exception occurred - */ - public static int countByOldDettPraticaId(long oldDettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldDettPraticaId(oldDettPraticaId); - } - /** * Caches the fine lavori in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVExportActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVExportActionableDynamicQuery.java deleted file mode 100644 index 1391cba9..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVExportActionableDynamicQuery.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.lar.ExportImportHelperUtil; -import com.liferay.portal.kernel.lar.ManifestSummary; -import com.liferay.portal.kernel.lar.PortletDataContext; -import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.util.PortalUtil; - -import it.tref.liferay.portos.bo.model.IUV; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class IUVExportActionableDynamicQuery extends IUVActionableDynamicQuery { - public IUVExportActionableDynamicQuery( - PortletDataContext portletDataContext) throws SystemException { - _portletDataContext = portletDataContext; - - setCompanyId(_portletDataContext.getCompanyId()); - - setGroupId(_portletDataContext.getScopeGroupId()); - } - - @Override - public long performCount() throws PortalException, SystemException { - ManifestSummary manifestSummary = _portletDataContext.getManifestSummary(); - - StagedModelType stagedModelType = getStagedModelType(); - - long modelAdditionCount = super.performCount(); - - manifestSummary.addModelAdditionCount(stagedModelType.toString(), - modelAdditionCount); - - long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(_portletDataContext, - stagedModelType); - - manifestSummary.addModelDeletionCount(stagedModelType.toString(), - modelDeletionCount); - - return modelAdditionCount; - } - - @Override - protected void addCriteria(DynamicQuery dynamicQuery) { - _portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate"); - } - - protected StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - IUV.class.getName())); - } - - @Override - @SuppressWarnings("unused") - protected void performAction(Object object) - throws PortalException, SystemException { - IUV stagedModel = (IUV)object; - - StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext, - stagedModel); - } - - private PortletDataContext _portletDataContext; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVPersistence.java deleted file mode 100644 index 8cd8c49b..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVPersistence.java +++ /dev/null @@ -1,936 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.service.persistence.BasePersistence; - -import it.tref.liferay.portos.bo.model.IUV; - -/** - * The persistence interface for the i u v service. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see IUVPersistenceImpl - * @see IUVUtil - * @generated - */ -public interface IUVPersistence extends BasePersistence { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link IUVUtil} to access the i u v persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. - */ - - /** - * Returns all the i u vs where uuid = ?. - * - * @param uuid the uuid - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the i u vs where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the i u vs where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the first i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the last i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u vs before and after the current i u v in the ordered set where uuid = ?. - * - * @param iuvId the primary key of the current i u v - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV[] findByUuid_PrevAndNext( - long iuvId, java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Removes all the i u vs where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - public void removeByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of i u vs where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public int countByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u v where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchIUVException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the i u v where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u v where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByUUID_G( - java.lang.String uuid, long groupId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the i u v where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the i u v that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV removeByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the number of i u vs where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public int countByUUID_G(java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the i u vs where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the i u vs where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the i u vs where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the first i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the last i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u vs before and after the current i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param iuvId the primary key of the current i u v - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV[] findByUuid_C_PrevAndNext( - long iuvId, java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Removes all the i u vs where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - public void removeByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of i u vs where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public int countByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the i u vs where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByPagamento( - long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the i u vs where pagamentoId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param pagamentoId the pagamento ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByPagamento( - long pagamentoId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the i u vs where pagamentoId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param pagamentoId the pagamento ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByPagamento( - long pagamentoId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByPagamento_First( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the first i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByPagamento_First( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByPagamento_Last( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the last i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByPagamento_Last( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u vs before and after the current i u v in the ordered set where pagamentoId = ?. - * - * @param iuvId the primary key of the current i u v - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV[] findByPagamento_PrevAndNext( - long iuvId, long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Removes all the i u vs where pagamentoId = ? from the database. - * - * @param pagamentoId the pagamento ID - * @throws SystemException if a system exception occurred - */ - public void removeByPagamento(long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of i u vs where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public int countByPagamento(long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the i u vs where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByTipoPagamento( - java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the i u vs where tipoPagamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByTipoPagamento( - java.lang.String tipoPagamento, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the i u vs where tipoPagamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByTipoPagamento( - java.lang.String tipoPagamento, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_First( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_First( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_Last( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_Last( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u vs before and after the current i u v in the ordered set where tipoPagamento = ?. - * - * @param iuvId the primary key of the current i u v - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV[] findByTipoPagamento_PrevAndNext( - long iuvId, java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Removes all the i u vs where tipoPagamento = ? from the database. - * - * @param tipoPagamento the tipo pagamento - * @throws SystemException if a system exception occurred - */ - public void removeByTipoPagamento(java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of i u vs where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public int countByTipoPagamento(java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the i u vs where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the i u vs where tipoPagamento = ? and createDate < ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the i u vs where tipoPagamento = ? and createDate < ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_CreateDate_First( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_CreateDate_First( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_CreateDate_Last( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_CreateDate_Last( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u vs before and after the current i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param iuvId the primary key of the current i u v - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV[] findByTipoPagamento_CreateDate_PrevAndNext( - long iuvId, java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Removes all the i u vs where tipoPagamento = ? and createDate < ? from the database. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @throws SystemException if a system exception occurred - */ - public void removeByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of i u vs where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public int countByTipoPagamento_CreateDate(java.lang.String tipoPagamento, - java.util.Date createDate) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Caches the i u v in the entity cache if it is enabled. - * - * @param iuv the i u v - */ - public void cacheResult(it.tref.liferay.portos.bo.model.IUV iuv); - - /** - * Caches the i u vs in the entity cache if it is enabled. - * - * @param iuvs the i u vs - */ - public void cacheResult( - java.util.List iuvs); - - /** - * Creates a new i u v with the primary key. Does not add the i u v to the database. - * - * @param iuvId the primary key for the new i u v - * @return the new i u v - */ - public it.tref.liferay.portos.bo.model.IUV create(long iuvId); - - /** - * Removes the i u v with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param iuvId the primary key of the i u v - * @return the i u v that was removed - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV remove(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - public it.tref.liferay.portos.bo.model.IUV updateImpl( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the i u v with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchIUVException} if it could not be found. - * - * @param iuvId the primary key of the i u v - * @return the i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV findByPrimaryKey(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException; - - /** - * Returns the i u v with the primary key or returns null if it could not be found. - * - * @param iuvId the primary key of the i u v - * @return the i u v, or null if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IUV fetchByPrimaryKey(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the i u vs. - * - * @return the i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the i u vs. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the i u vs. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of i u vs - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll( - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes all the i u vs from the database. - * - * @throws SystemException if a system exception occurred - */ - public void removeAll() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of i u vs. - * - * @return the number of i u vs - * @throws SystemException if a system exception occurred - */ - public int countAll() - throws com.liferay.portal.kernel.exception.SystemException; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVUtil.java deleted file mode 100644 index 736b63a9..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IUVUtil.java +++ /dev/null @@ -1,1201 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.ReferenceRegistry; -import com.liferay.portal.service.ServiceContext; - -import it.tref.liferay.portos.bo.model.IUV; - -import java.util.List; - -/** - * The persistence utility for the i u v service. This utility wraps {@link IUVPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see IUVPersistence - * @see IUVPersistenceImpl - * @generated - */ -public class IUVUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. - */ - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() - */ - public static void clearCache() { - getPersistence().clearCache(); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) - */ - public static void clearCache(IUV iuv) { - getPersistence().clearCache(iuv); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) - */ - public static long countWithDynamicQuery(DynamicQuery dynamicQuery) - throws SystemException { - return getPersistence().countWithDynamicQuery(dynamicQuery); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) - */ - public static List findWithDynamicQuery(DynamicQuery dynamicQuery) - throws SystemException { - return getPersistence().findWithDynamicQuery(dynamicQuery); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) - */ - public static List findWithDynamicQuery(DynamicQuery dynamicQuery, - int start, int end) throws SystemException { - return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) - */ - public static List findWithDynamicQuery(DynamicQuery dynamicQuery, - int start, int end, OrderByComparator orderByComparator) - throws SystemException { - return getPersistence() - .findWithDynamicQuery(dynamicQuery, start, end, - orderByComparator); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) - */ - public static IUV update(IUV iuv) throws SystemException { - return getPersistence().update(iuv); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) - */ - public static IUV update(IUV iuv, ServiceContext serviceContext) - throws SystemException { - return getPersistence().update(iuv, serviceContext); - } - - /** - * Returns all the i u vs where uuid = ?. - * - * @param uuid the uuid - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid); - } - - /** - * Returns a range of all the i u vs where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid, start, end); - } - - /** - * Returns an ordered range of all the i u vs where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid, start, end, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence().findByUuid_First(uuid, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUuid_First(uuid, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence().findByUuid_Last(uuid, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUuid_Last(uuid, orderByComparator); - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where uuid = ?. - * - * @param iuvId the primary key of the current i u v - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV[] findByUuid_PrevAndNext( - long iuvId, java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByUuid_PrevAndNext(iuvId, uuid, orderByComparator); - } - - /** - * Removes all the i u vs where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - public static void removeByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByUuid(uuid); - } - - /** - * Returns the number of i u vs where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static int countByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUuid(uuid); - } - - /** - * Returns the i u v where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchIUVException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence().findByUUID_G(uuid, groupId); - } - - /** - * Returns the i u v where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUUID_G(uuid, groupId); - } - - /** - * Returns the i u v where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByUUID_G( - java.lang.String uuid, long groupId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); - } - - /** - * Removes the i u v where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the i u v that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV removeByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence().removeByUUID_G(uuid, groupId); - } - - /** - * Returns the number of i u vs where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static int countByUUID_G(java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUUID_G(uuid, groupId); - } - - /** - * Returns all the i u vs where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid_C(uuid, companyId); - } - - /** - * Returns a range of all the i u vs where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid_C(uuid, companyId, start, end); - } - - /** - * Returns an ordered range of all the i u vs where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByUuid_C(uuid, companyId, start, end, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByUuid_C_First(uuid, companyId, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByUuid_C_First(uuid, companyId, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByUuid_C_Last(uuid, companyId, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByUuid_C_Last(uuid, companyId, orderByComparator); - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param iuvId the primary key of the current i u v - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV[] findByUuid_C_PrevAndNext( - long iuvId, java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByUuid_C_PrevAndNext(iuvId, uuid, companyId, - orderByComparator); - } - - /** - * Removes all the i u vs where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - public static void removeByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByUuid_C(uuid, companyId); - } - - /** - * Returns the number of i u vs where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static int countByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUuid_C(uuid, companyId); - } - - /** - * Returns all the i u vs where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByPagamento( - long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByPagamento(pagamentoId); - } - - /** - * Returns a range of all the i u vs where pagamentoId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param pagamentoId the pagamento ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByPagamento( - long pagamentoId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByPagamento(pagamentoId, start, end); - } - - /** - * Returns an ordered range of all the i u vs where pagamentoId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param pagamentoId the pagamento ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByPagamento( - long pagamentoId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByPagamento(pagamentoId, start, end, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByPagamento_First( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByPagamento_First(pagamentoId, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByPagamento_First( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByPagamento_First(pagamentoId, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByPagamento_Last( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByPagamento_Last(pagamentoId, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByPagamento_Last( - long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByPagamento_Last(pagamentoId, orderByComparator); - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where pagamentoId = ?. - * - * @param iuvId the primary key of the current i u v - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV[] findByPagamento_PrevAndNext( - long iuvId, long pagamentoId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByPagamento_PrevAndNext(iuvId, pagamentoId, - orderByComparator); - } - - /** - * Removes all the i u vs where pagamentoId = ? from the database. - * - * @param pagamentoId the pagamento ID - * @throws SystemException if a system exception occurred - */ - public static void removeByPagamento(long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByPagamento(pagamentoId); - } - - /** - * Returns the number of i u vs where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static int countByPagamento(long pagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByPagamento(pagamentoId); - } - - /** - * Returns all the i u vs where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByTipoPagamento( - java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByTipoPagamento(tipoPagamento); - } - - /** - * Returns a range of all the i u vs where tipoPagamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByTipoPagamento( - java.lang.String tipoPagamento, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByTipoPagamento(tipoPagamento, start, end); - } - - /** - * Returns an ordered range of all the i u vs where tipoPagamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByTipoPagamento( - java.lang.String tipoPagamento, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByTipoPagamento(tipoPagamento, start, end, - orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_First( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByTipoPagamento_First(tipoPagamento, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_First( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByTipoPagamento_First(tipoPagamento, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_Last( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByTipoPagamento_Last(tipoPagamento, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_Last( - java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByTipoPagamento_Last(tipoPagamento, orderByComparator); - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where tipoPagamento = ?. - * - * @param iuvId the primary key of the current i u v - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV[] findByTipoPagamento_PrevAndNext( - long iuvId, java.lang.String tipoPagamento, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByTipoPagamento_PrevAndNext(iuvId, tipoPagamento, - orderByComparator); - } - - /** - * Removes all the i u vs where tipoPagamento = ? from the database. - * - * @param tipoPagamento the tipo pagamento - * @throws SystemException if a system exception occurred - */ - public static void removeByTipoPagamento(java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByTipoPagamento(tipoPagamento); - } - - /** - * Returns the number of i u vs where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static int countByTipoPagamento(java.lang.String tipoPagamento) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByTipoPagamento(tipoPagamento); - } - - /** - * Returns all the i u vs where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByTipoPagamento_CreateDate(tipoPagamento, createDate); - } - - /** - * Returns a range of all the i u vs where tipoPagamento = ? and createDate < ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByTipoPagamento_CreateDate(tipoPagamento, createDate, - start, end); - } - - /** - * Returns an ordered range of all the i u vs where tipoPagamento = ? and createDate < ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByTipoPagamento_CreateDate(tipoPagamento, createDate, - start, end, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_CreateDate_First( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByTipoPagamento_CreateDate_First(tipoPagamento, - createDate, orderByComparator); - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_CreateDate_First( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByTipoPagamento_CreateDate_First(tipoPagamento, - createDate, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByTipoPagamento_CreateDate_Last( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByTipoPagamento_CreateDate_Last(tipoPagamento, - createDate, orderByComparator); - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByTipoPagamento_CreateDate_Last( - java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByTipoPagamento_CreateDate_Last(tipoPagamento, - createDate, orderByComparator); - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param iuvId the primary key of the current i u v - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV[] findByTipoPagamento_CreateDate_PrevAndNext( - long iuvId, java.lang.String tipoPagamento, java.util.Date createDate, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence() - .findByTipoPagamento_CreateDate_PrevAndNext(iuvId, - tipoPagamento, createDate, orderByComparator); - } - - /** - * Removes all the i u vs where tipoPagamento = ? and createDate < ? from the database. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @throws SystemException if a system exception occurred - */ - public static void removeByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByTipoPagamento_CreateDate(tipoPagamento, createDate); - } - - /** - * Returns the number of i u vs where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - public static int countByTipoPagamento_CreateDate( - java.lang.String tipoPagamento, java.util.Date createDate) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByTipoPagamento_CreateDate(tipoPagamento, createDate); - } - - /** - * Caches the i u v in the entity cache if it is enabled. - * - * @param iuv the i u v - */ - public static void cacheResult(it.tref.liferay.portos.bo.model.IUV iuv) { - getPersistence().cacheResult(iuv); - } - - /** - * Caches the i u vs in the entity cache if it is enabled. - * - * @param iuvs the i u vs - */ - public static void cacheResult( - java.util.List iuvs) { - getPersistence().cacheResult(iuvs); - } - - /** - * Creates a new i u v with the primary key. Does not add the i u v to the database. - * - * @param iuvId the primary key for the new i u v - * @return the new i u v - */ - public static it.tref.liferay.portos.bo.model.IUV create(long iuvId) { - return getPersistence().create(iuvId); - } - - /** - * Removes the i u v with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param iuvId the primary key of the i u v - * @return the i u v that was removed - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV remove(long iuvId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence().remove(iuvId); - } - - public static it.tref.liferay.portos.bo.model.IUV updateImpl( - it.tref.liferay.portos.bo.model.IUV iuv) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().updateImpl(iuv); - } - - /** - * Returns the i u v with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchIUVException} if it could not be found. - * - * @param iuvId the primary key of the i u v - * @return the i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV findByPrimaryKey( - long iuvId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIUVException { - return getPersistence().findByPrimaryKey(iuvId); - } - - /** - * Returns the i u v with the primary key or returns null if it could not be found. - * - * @param iuvId the primary key of the i u v - * @return the i u v, or null if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IUV fetchByPrimaryKey( - long iuvId) throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByPrimaryKey(iuvId); - } - - /** - * Returns all the i u vs. - * - * @return the i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll() - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(); - } - - /** - * Returns a range of all the i u vs. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(start, end); - } - - /** - * Returns an ordered range of all the i u vs. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of i u vs - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll( - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(start, end, orderByComparator); - } - - /** - * Removes all the i u vs from the database. - * - * @throws SystemException if a system exception occurred - */ - public static void removeAll() - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeAll(); - } - - /** - * Returns the number of i u vs. - * - * @return the number of i u vs - * @throws SystemException if a system exception occurred - */ - public static int countAll() - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countAll(); - } - - public static IUVPersistence getPersistence() { - if (_persistence == null) { - _persistence = (IUVPersistence)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.bo.service.ClpSerializer.getServletContextName(), - IUVPersistence.class.getName()); - - ReferenceRegistry.registerReference(IUVUtil.class, "_persistence"); - } - - return _persistence; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setPersistence(IUVPersistence persistence) { - } - - private static IUVPersistence _persistence; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloActionableDynamicQuery.java deleted file mode 100644 index 61b81272..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloActionableDynamicQuery.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery; -import com.liferay.portal.kernel.exception.SystemException; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; -import it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public abstract class InfoFascicoloActionableDynamicQuery - extends BaseActionableDynamicQuery { - public InfoFascicoloActionableDynamicQuery() throws SystemException { - setBaseLocalService(InfoFascicoloLocalServiceUtil.getService()); - setClass(InfoFascicolo.class); - - setClassLoader(it.tref.liferay.portos.bo.service.ClpSerializer.class.getClassLoader()); - - setPrimaryKeyPropertyName("infoFascicoloId"); - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloExportActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloExportActionableDynamicQuery.java deleted file mode 100644 index 0045367f..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloExportActionableDynamicQuery.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.lar.ExportImportHelperUtil; -import com.liferay.portal.kernel.lar.ManifestSummary; -import com.liferay.portal.kernel.lar.PortletDataContext; -import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.util.PortalUtil; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class InfoFascicoloExportActionableDynamicQuery - extends InfoFascicoloActionableDynamicQuery { - public InfoFascicoloExportActionableDynamicQuery( - PortletDataContext portletDataContext) throws SystemException { - _portletDataContext = portletDataContext; - - setCompanyId(_portletDataContext.getCompanyId()); - - setGroupId(_portletDataContext.getScopeGroupId()); - } - - @Override - public long performCount() throws PortalException, SystemException { - ManifestSummary manifestSummary = _portletDataContext.getManifestSummary(); - - StagedModelType stagedModelType = getStagedModelType(); - - long modelAdditionCount = super.performCount(); - - manifestSummary.addModelAdditionCount(stagedModelType.toString(), - modelAdditionCount); - - long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(_portletDataContext, - stagedModelType); - - manifestSummary.addModelDeletionCount(stagedModelType.toString(), - modelDeletionCount); - - return modelAdditionCount; - } - - @Override - protected void addCriteria(DynamicQuery dynamicQuery) { - _portletDataContext.addDateRangeCriteria(dynamicQuery, "modifiedDate"); - } - - protected StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - InfoFascicolo.class.getName())); - } - - @Override - @SuppressWarnings("unused") - protected void performAction(Object object) - throws PortalException, SystemException { - InfoFascicolo stagedModel = (InfoFascicolo)object; - - StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext, - stagedModel); - } - - private PortletDataContext _portletDataContext; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistence.java deleted file mode 100644 index 25a0bb21..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistence.java +++ /dev/null @@ -1,572 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.service.persistence.BasePersistence; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; - -/** - * The persistence interface for the info fascicolo service. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloPersistenceImpl - * @see InfoFascicoloUtil - * @generated - */ -public interface InfoFascicoloPersistence extends BasePersistence { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link InfoFascicoloUtil} to access the info fascicolo persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. - */ - - /** - * Returns all the info fascicolos where uuid = ?. - * - * @param uuid the uuid - * @return the matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the info fascicolos where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the info fascicolos where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the first info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the last info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolos before and after the current info fascicolo in the ordered set where uuid = ?. - * - * @param infoFascicoloId the primary key of the current info fascicolo - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo[] findByUuid_PrevAndNext( - long infoFascicoloId, java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Removes all the info fascicolos where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - public void removeByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of info fascicolos where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public int countByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo findByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUUID_G( - java.lang.String uuid, long groupId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the info fascicolo where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo removeByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the number of info fascicolos where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public int countByUUID_G(java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the info fascicolos where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the info fascicolos where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the info fascicolos where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the first info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the last info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolos before and after the current info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param infoFascicoloId the primary key of the current info fascicolo - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo[] findByUuid_C_PrevAndNext( - long infoFascicoloId, java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Removes all the info fascicolos where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - public void removeByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of info fascicolos where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public int countByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo where intPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param intPraticaId the int pratica ID - * @return the matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the info fascicolo where intPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param intPraticaId the int pratica ID - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo where intPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param intPraticaId the int pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the info fascicolo where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo removeByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the number of info fascicolos where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Caches the info fascicolo in the entity cache if it is enabled. - * - * @param infoFascicolo the info fascicolo - */ - public void cacheResult( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo); - - /** - * Caches the info fascicolos in the entity cache if it is enabled. - * - * @param infoFascicolos the info fascicolos - */ - public void cacheResult( - java.util.List infoFascicolos); - - /** - * Creates a new info fascicolo with the primary key. Does not add the info fascicolo to the database. - * - * @param infoFascicoloId the primary key for the new info fascicolo - * @return the new info fascicolo - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo create( - long infoFascicoloId); - - /** - * Removes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo remove( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - public it.tref.liferay.portos.bo.model.InfoFascicolo updateImpl( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the info fascicolo with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo findByPrimaryKey( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; - - /** - * Returns the info fascicolo with the primary key or returns null if it could not be found. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo, or null if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.InfoFascicolo fetchByPrimaryKey( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the info fascicolos. - * - * @return the info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of info fascicolos - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll( - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes all the info fascicolos from the database. - * - * @throws SystemException if a system exception occurred - */ - public void removeAll() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of info fascicolos. - * - * @return the number of info fascicolos - * @throws SystemException if a system exception occurred - */ - public int countAll() - throws com.liferay.portal.kernel.exception.SystemException; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloUtil.java deleted file mode 100644 index c53c3b6a..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloUtil.java +++ /dev/null @@ -1,759 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.ReferenceRegistry; -import com.liferay.portal.service.ServiceContext; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; - -import java.util.List; - -/** - * The persistence utility for the info fascicolo service. This utility wraps {@link InfoFascicoloPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloPersistence - * @see InfoFascicoloPersistenceImpl - * @generated - */ -public class InfoFascicoloUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. - */ - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() - */ - public static void clearCache() { - getPersistence().clearCache(); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) - */ - public static void clearCache(InfoFascicolo infoFascicolo) { - getPersistence().clearCache(infoFascicolo); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) - */ - public static long countWithDynamicQuery(DynamicQuery dynamicQuery) - throws SystemException { - return getPersistence().countWithDynamicQuery(dynamicQuery); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) - */ - public static List findWithDynamicQuery( - DynamicQuery dynamicQuery) throws SystemException { - return getPersistence().findWithDynamicQuery(dynamicQuery); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) - */ - public static List findWithDynamicQuery( - DynamicQuery dynamicQuery, int start, int end) - throws SystemException { - return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) - */ - public static List findWithDynamicQuery( - DynamicQuery dynamicQuery, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return getPersistence() - .findWithDynamicQuery(dynamicQuery, start, end, - orderByComparator); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) - */ - public static InfoFascicolo update(InfoFascicolo infoFascicolo) - throws SystemException { - return getPersistence().update(infoFascicolo); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) - */ - public static InfoFascicolo update(InfoFascicolo infoFascicolo, - ServiceContext serviceContext) throws SystemException { - return getPersistence().update(infoFascicolo, serviceContext); - } - - /** - * Returns all the info fascicolos where uuid = ?. - * - * @param uuid the uuid - * @return the matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid); - } - - /** - * Returns a range of all the info fascicolos where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid, start, end); - } - - /** - * Returns an ordered range of all the info fascicolos where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid, start, end, orderByComparator); - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().findByUuid_First(uuid, orderByComparator); - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUuid_First(uuid, orderByComparator); - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().findByUuid_Last(uuid, orderByComparator); - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUuid_Last(uuid, orderByComparator); - } - - /** - * Returns the info fascicolos before and after the current info fascicolo in the ordered set where uuid = ?. - * - * @param infoFascicoloId the primary key of the current info fascicolo - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo[] findByUuid_PrevAndNext( - long infoFascicoloId, java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence() - .findByUuid_PrevAndNext(infoFascicoloId, uuid, - orderByComparator); - } - - /** - * Removes all the info fascicolos where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - public static void removeByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByUuid(uuid); - } - - /** - * Returns the number of info fascicolos where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static int countByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUuid(uuid); - } - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().findByUUID_G(uuid, groupId); - } - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUUID_G(uuid, groupId); - } - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUUID_G( - java.lang.String uuid, long groupId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); - } - - /** - * Removes the info fascicolo where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo removeByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().removeByUUID_G(uuid, groupId); - } - - /** - * Returns the number of info fascicolos where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static int countByUUID_G(java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUUID_G(uuid, groupId); - } - - /** - * Returns all the info fascicolos where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid_C(uuid, companyId); - } - - /** - * Returns a range of all the info fascicolos where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid_C(uuid, companyId, start, end); - } - - /** - * Returns an ordered range of all the info fascicolos where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByUuid_C(uuid, companyId, start, end, orderByComparator); - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence() - .findByUuid_C_First(uuid, companyId, orderByComparator); - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByUuid_C_First(uuid, companyId, orderByComparator); - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence() - .findByUuid_C_Last(uuid, companyId, orderByComparator); - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByUuid_C_Last(uuid, companyId, orderByComparator); - } - - /** - * Returns the info fascicolos before and after the current info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param infoFascicoloId the primary key of the current info fascicolo - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo[] findByUuid_C_PrevAndNext( - long infoFascicoloId, java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence() - .findByUuid_C_PrevAndNext(infoFascicoloId, uuid, companyId, - orderByComparator); - } - - /** - * Removes all the info fascicolos where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - public static void removeByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByUuid_C(uuid, companyId); - } - - /** - * Returns the number of info fascicolos where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static int countByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUuid_C(uuid, companyId); - } - - /** - * Returns the info fascicolo where intPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param intPraticaId the int pratica ID - * @return the matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().findByIntPratica(intPraticaId); - } - - /** - * Returns the info fascicolo where intPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param intPraticaId the int pratica ID - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByIntPratica(intPraticaId); - } - - /** - * Returns the info fascicolo where intPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param intPraticaId the int pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByIntPratica( - long intPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPratica(intPraticaId, retrieveFromCache); - } - - /** - * Removes the info fascicolo where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo removeByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().removeByIntPratica(intPraticaId); - } - - /** - * Returns the number of info fascicolos where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - public static int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByIntPratica(intPraticaId); - } - - /** - * Caches the info fascicolo in the entity cache if it is enabled. - * - * @param infoFascicolo the info fascicolo - */ - public static void cacheResult( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) { - getPersistence().cacheResult(infoFascicolo); - } - - /** - * Caches the info fascicolos in the entity cache if it is enabled. - * - * @param infoFascicolos the info fascicolos - */ - public static void cacheResult( - java.util.List infoFascicolos) { - getPersistence().cacheResult(infoFascicolos); - } - - /** - * Creates a new info fascicolo with the primary key. Does not add the info fascicolo to the database. - * - * @param infoFascicoloId the primary key for the new info fascicolo - * @return the new info fascicolo - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo create( - long infoFascicoloId) { - return getPersistence().create(infoFascicoloId); - } - - /** - * Removes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo remove( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().remove(infoFascicoloId); - } - - public static it.tref.liferay.portos.bo.model.InfoFascicolo updateImpl( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().updateImpl(infoFascicolo); - } - - /** - * Returns the info fascicolo with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo findByPrimaryKey( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchInfoFascicoloException { - return getPersistence().findByPrimaryKey(infoFascicoloId); - } - - /** - * Returns the info fascicolo with the primary key or returns null if it could not be found. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo, or null if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.InfoFascicolo fetchByPrimaryKey( - long infoFascicoloId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByPrimaryKey(infoFascicoloId); - } - - /** - * Returns all the info fascicolos. - * - * @return the info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll() - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(); - } - - /** - * Returns a range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(start, end); - } - - /** - * Returns an ordered range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of info fascicolos - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll( - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(start, end, orderByComparator); - } - - /** - * Removes all the info fascicolos from the database. - * - * @throws SystemException if a system exception occurred - */ - public static void removeAll() - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeAll(); - } - - /** - * Returns the number of info fascicolos. - * - * @return the number of info fascicolos - * @throws SystemException if a system exception occurred - */ - public static int countAll() - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countAll(); - } - - public static InfoFascicoloPersistence getPersistence() { - if (_persistence == null) { - _persistence = (InfoFascicoloPersistence)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.bo.service.ClpSerializer.getServletContextName(), - InfoFascicoloPersistence.class.getName()); - - ReferenceRegistry.registerReference(InfoFascicoloUtil.class, - "_persistence"); - } - - return _persistence; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setPersistence(InfoFascicoloPersistence persistence) { - } - - private static InfoFascicoloPersistence _persistence; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java index 6baa9655..9817bbb0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinder.java @@ -35,19 +35,9 @@ public interface IntPraticaFinder { long groupId, boolean controlloOblligatorio) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List importaVecchiFilesFascicolo( - long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findIntPraticaNotExist() - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List riparaWorkflow() throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List trovaDoppioni() - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List canAddCollaudo( java.lang.String codiceFiscaleDelegatoCollaudo, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; @@ -69,19 +59,11 @@ public interface IntPraticaFinder { java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.Map reportTempisticheIstruttorieCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List reportPraticheVidimate( java.util.Date dtMin, java.util.Date dtMax, long groupId, java.lang.String type) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.Map reportPraticheVidimateCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - public int countIngressiAutorizzazioni(java.util.Date dtMin, java.util.Date dtMax, long groupId) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java index 00524da0..a9c2d2c7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderUtil.java @@ -51,27 +51,11 @@ public class IntPraticaFinderUtil { .countDeposito(dtMin, dtMax, groupId, controlloOblligatorio); } - public static java.util.List importaVecchiFilesFascicolo( - long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder().importaVecchiFilesFascicolo(companyId, start, end); - } - - public static java.util.List findIntPraticaNotExist() - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder().findIntPraticaNotExist(); - } - public static java.util.List riparaWorkflow() throws com.liferay.portal.kernel.exception.SystemException { return getFinder().riparaWorkflow(); } - public static java.util.List trovaDoppioni() - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder().trovaDoppioni(); - } - public static java.util.List canAddCollaudo( java.lang.String codiceFiscaleDelegatoCollaudo, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { @@ -106,14 +90,6 @@ public class IntPraticaFinderUtil { dtMax, groupId, type); } - public static java.util.Map reportTempisticheIstruttorieCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder() - .reportTempisticheIstruttorieCalcolaDataSorteggio(dtMin, - dtMax, groupId); - } - public static java.util.List reportPraticheVidimate( java.util.Date dtMin, java.util.Date dtMax, long groupId, java.lang.String type) @@ -121,14 +97,6 @@ public class IntPraticaFinderUtil { return getFinder().reportPraticheVidimate(dtMin, dtMax, groupId, type); } - public static java.util.Map reportPraticheVidimateCalcolaDataSorteggio( - java.util.Date dtMin, java.util.Date dtMax, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder() - .reportPraticheVidimateCalcolaDataSorteggio(dtMin, dtMax, - groupId); - } - public static int countIngressiAutorizzazioni(java.util.Date dtMin, java.util.Date dtMax, long groupId) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistence.java index 00b5612e..f17aae3c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistence.java @@ -898,64 +898,6 @@ public interface IntPraticaPersistence extends BasePersistence { public int filterCountByC_Group(long companyId, long groupId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the int pratica where oldIntPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchIntPraticaException} if it could not be found. - * - * @param oldIntPraticaId the old int pratica ID - * @return the matching int pratica - * @throws it.tref.liferay.portos.bo.NoSuchIntPraticaException if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IntPratica findByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIntPraticaException; - - /** - * Returns the int pratica where oldIntPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldIntPraticaId the old int pratica ID - * @return the matching int pratica, or null if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the int pratica where oldIntPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldIntPraticaId the old int pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching int pratica, or null if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the int pratica where oldIntPraticaId = ? from the database. - * - * @param oldIntPraticaId the old int pratica ID - * @return the int pratica that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.IntPratica removeByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIntPraticaException; - - /** - * Returns the number of int praticas where oldIntPraticaId = ?. - * - * @param oldIntPraticaId the old int pratica ID - * @return the number of matching int praticas - * @throws SystemException if a system exception occurred - */ - public int countByOldIntPraticaId(long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the int praticas where status = ? and dtPratica = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaUtil.java index 228501d3..ec707959 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/IntPraticaUtil.java @@ -1128,75 +1128,6 @@ public class IntPraticaUtil { return getPersistence().filterCountByC_Group(companyId, groupId); } - /** - * Returns the int pratica where oldIntPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchIntPraticaException} if it could not be found. - * - * @param oldIntPraticaId the old int pratica ID - * @return the matching int pratica - * @throws it.tref.liferay.portos.bo.NoSuchIntPraticaException if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IntPratica findByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIntPraticaException { - return getPersistence().findByOldIntPraticaId(oldIntPraticaId); - } - - /** - * Returns the int pratica where oldIntPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldIntPraticaId the old int pratica ID - * @return the matching int pratica, or null if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldIntPraticaId(oldIntPraticaId); - } - - /** - * Returns the int pratica where oldIntPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldIntPraticaId the old int pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching int pratica, or null if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IntPratica fetchByOldIntPraticaId( - long oldIntPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldIntPraticaId(oldIntPraticaId, retrieveFromCache); - } - - /** - * Removes the int pratica where oldIntPraticaId = ? from the database. - * - * @param oldIntPraticaId the old int pratica ID - * @return the int pratica that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.IntPratica removeByOldIntPraticaId( - long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchIntPraticaException { - return getPersistence().removeByOldIntPraticaId(oldIntPraticaId); - } - - /** - * Returns the number of int praticas where oldIntPraticaId = ?. - * - * @param oldIntPraticaId the old int pratica ID - * @return the number of matching int praticas - * @throws SystemException if a system exception occurred - */ - public static int countByOldIntPraticaId(long oldIntPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldIntPraticaId(oldIntPraticaId); - } - /** * Returns all the int praticas where status = ? and dtPratica = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistence.java index e1428afa..6d9f1921 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistence.java @@ -1309,64 +1309,6 @@ public interface PagamentoPersistence extends BasePersistence { public int countByClassPk(long classPk) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the pagamento where oldPagamentoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPagamentoException} if it could not be found. - * - * @param oldPagamentoId the old pagamento ID - * @return the matching pagamento - * @throws it.tref.liferay.portos.bo.NoSuchPagamentoException if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Pagamento findByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchPagamentoException; - - /** - * Returns the pagamento where oldPagamentoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldPagamentoId the old pagamento ID - * @return the matching pagamento, or null if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the pagamento where oldPagamentoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldPagamentoId the old pagamento ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching pagamento, or null if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the pagamento where oldPagamentoId = ? from the database. - * - * @param oldPagamentoId the old pagamento ID - * @return the pagamento that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Pagamento removeByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchPagamentoException; - - /** - * Returns the number of pagamentos where oldPagamentoId = ?. - * - * @param oldPagamentoId the old pagamento ID - * @return the number of matching pagamentos - * @throws SystemException if a system exception occurred - */ - public int countByOldPagamentoId(long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the pagamento in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoUtil.java index f487d486..dbfb4b99 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PagamentoUtil.java @@ -1633,75 +1633,6 @@ public class PagamentoUtil { return getPersistence().countByClassPk(classPk); } - /** - * Returns the pagamento where oldPagamentoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPagamentoException} if it could not be found. - * - * @param oldPagamentoId the old pagamento ID - * @return the matching pagamento - * @throws it.tref.liferay.portos.bo.NoSuchPagamentoException if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Pagamento findByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchPagamentoException { - return getPersistence().findByOldPagamentoId(oldPagamentoId); - } - - /** - * Returns the pagamento where oldPagamentoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldPagamentoId the old pagamento ID - * @return the matching pagamento, or null if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldPagamentoId(oldPagamentoId); - } - - /** - * Returns the pagamento where oldPagamentoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldPagamentoId the old pagamento ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching pagamento, or null if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Pagamento fetchByOldPagamentoId( - long oldPagamentoId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldPagamentoId(oldPagamentoId, retrieveFromCache); - } - - /** - * Removes the pagamento where oldPagamentoId = ? from the database. - * - * @param oldPagamentoId the old pagamento ID - * @return the pagamento that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Pagamento removeByOldPagamentoId( - long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchPagamentoException { - return getPersistence().removeByOldPagamentoId(oldPagamentoId); - } - - /** - * Returns the number of pagamentos where oldPagamentoId = ?. - * - * @param oldPagamentoId the old pagamento ID - * @return the number of matching pagamentos - * @throws SystemException if a system exception occurred - */ - public static int countByOldPagamentoId(long oldPagamentoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldPagamentoId(oldPagamentoId); - } - /** * Caches the pagamento in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistence.java index 993f2093..76f14dca 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistence.java @@ -965,64 +965,6 @@ public interface SoggettoPersistence extends BasePersistence { java.lang.String tipologiaSoggetto) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the soggetto where oldSoggettoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSoggettoException} if it could not be found. - * - * @param oldSoggettoId the old soggetto ID - * @return the matching soggetto - * @throws it.tref.liferay.portos.bo.NoSuchSoggettoException if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Soggetto findByoldSoggettoId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSoggettoException; - - /** - * Returns the soggetto where oldSoggettoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldSoggettoId the old soggetto ID - * @return the matching soggetto, or null if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Soggetto fetchByoldSoggettoId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the soggetto where oldSoggettoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldSoggettoId the old soggetto ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching soggetto, or null if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Soggetto fetchByoldSoggettoId( - long oldSoggettoId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the soggetto where oldSoggettoId = ? from the database. - * - * @param oldSoggettoId the old soggetto ID - * @return the soggetto that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Soggetto removeByoldSoggettoId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSoggettoException; - - /** - * Returns the number of soggettos where oldSoggettoId = ?. - * - * @param oldSoggettoId the old soggetto ID - * @return the number of matching soggettos - * @throws SystemException if a system exception occurred - */ - public int countByoldSoggettoId(long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the soggettos where dettPraticaId = ? and tipologiaSoggetto = ? and aggiuntivo = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoUtil.java index 1a5d7613..ab551124 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SoggettoUtil.java @@ -1230,75 +1230,6 @@ public class SoggettoUtil { tipologiaSoggetto); } - /** - * Returns the soggetto where oldSoggettoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSoggettoException} if it could not be found. - * - * @param oldSoggettoId the old soggetto ID - * @return the matching soggetto - * @throws it.tref.liferay.portos.bo.NoSuchSoggettoException if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Soggetto findByoldSoggettoId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSoggettoException { - return getPersistence().findByoldSoggettoId(oldSoggettoId); - } - - /** - * Returns the soggetto where oldSoggettoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldSoggettoId the old soggetto ID - * @return the matching soggetto, or null if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Soggetto fetchByoldSoggettoId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByoldSoggettoId(oldSoggettoId); - } - - /** - * Returns the soggetto where oldSoggettoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldSoggettoId the old soggetto ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching soggetto, or null if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Soggetto fetchByoldSoggettoId( - long oldSoggettoId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByoldSoggettoId(oldSoggettoId, retrieveFromCache); - } - - /** - * Removes the soggetto where oldSoggettoId = ? from the database. - * - * @param oldSoggettoId the old soggetto ID - * @return the soggetto that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Soggetto removeByoldSoggettoId( - long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSoggettoException { - return getPersistence().removeByoldSoggettoId(oldSoggettoId); - } - - /** - * Returns the number of soggettos where oldSoggettoId = ?. - * - * @param oldSoggettoId the old soggetto ID - * @return the number of matching soggettos - * @throws SystemException if a system exception occurred - */ - public static int countByoldSoggettoId(long oldSoggettoId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByoldSoggettoId(oldSoggettoId); - } - /** * Returns all the soggettos where dettPraticaId = ? and tipologiaSoggetto = ? and aggiuntivo = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioActionableDynamicQuery.java deleted file mode 100644 index 0dc42bfb..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioActionableDynamicQuery.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery; -import com.liferay.portal.kernel.exception.SystemException; - -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public abstract class SorteggioActionableDynamicQuery - extends BaseActionableDynamicQuery { - public SorteggioActionableDynamicQuery() throws SystemException { - setBaseLocalService(SorteggioLocalServiceUtil.getService()); - setClass(Sorteggio.class); - - setClassLoader(it.tref.liferay.portos.bo.service.ClpSerializer.class.getClassLoader()); - - setPrimaryKeyPropertyName("sorteggioId"); - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioExportActionableDynamicQuery.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioExportActionableDynamicQuery.java deleted file mode 100644 index 3bd16335..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioExportActionableDynamicQuery.java +++ /dev/null @@ -1,118 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.dao.orm.Criterion; -import com.liferay.portal.kernel.dao.orm.Disjunction; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.Property; -import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; -import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.lar.ExportImportHelperUtil; -import com.liferay.portal.kernel.lar.ManifestSummary; -import com.liferay.portal.kernel.lar.PortletDataContext; -import com.liferay.portal.kernel.lar.StagedModelDataHandler; -import com.liferay.portal.kernel.lar.StagedModelDataHandlerRegistryUtil; -import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.util.PortalUtil; - -import it.tref.liferay.portos.bo.model.Sorteggio; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class SorteggioExportActionableDynamicQuery - extends SorteggioActionableDynamicQuery { - public SorteggioExportActionableDynamicQuery( - PortletDataContext portletDataContext) throws SystemException { - _portletDataContext = portletDataContext; - - setCompanyId(_portletDataContext.getCompanyId()); - - setGroupId(_portletDataContext.getScopeGroupId()); - } - - @Override - public long performCount() throws PortalException, SystemException { - ManifestSummary manifestSummary = _portletDataContext.getManifestSummary(); - - StagedModelType stagedModelType = getStagedModelType(); - - long modelAdditionCount = super.performCount(); - - manifestSummary.addModelAdditionCount(stagedModelType.toString(), - modelAdditionCount); - - long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(_portletDataContext, - stagedModelType); - - manifestSummary.addModelDeletionCount(stagedModelType.toString(), - modelDeletionCount); - - return modelAdditionCount; - } - - @Override - protected void addCriteria(DynamicQuery dynamicQuery) { - Criterion modifiedDateCriterion = _portletDataContext.getDateRangeCriteria( - "modifiedDate"); - Criterion statusDateCriterion = _portletDataContext.getDateRangeCriteria( - "statusDate"); - - if ((modifiedDateCriterion != null) && (statusDateCriterion != null)) { - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); - - disjunction.add(modifiedDateCriterion); - disjunction.add(statusDateCriterion); - - dynamicQuery.add(disjunction); - } - - Property workflowStatusProperty = PropertyFactoryUtil.forName("status"); - - if (_portletDataContext.isInitialPublication()) { - dynamicQuery.add(workflowStatusProperty.ne( - WorkflowConstants.STATUS_IN_TRASH)); - } - else { - StagedModelDataHandler stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(Sorteggio.class.getName()); - - dynamicQuery.add(workflowStatusProperty.in( - stagedModelDataHandler.getExportableStatuses())); - } - } - - protected StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - Sorteggio.class.getName())); - } - - @Override - @SuppressWarnings("unused") - protected void performAction(Object object) - throws PortalException, SystemException { - Sorteggio stagedModel = (Sorteggio)object; - - StagedModelDataHandlerUtil.exportStagedModel(_portletDataContext, - stagedModel); - } - - private PortletDataContext _portletDataContext; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioFinder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioFinder.java deleted file mode 100644 index 5cd7d3fb..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioFinder.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -/** - * @author Davide Barbagallo, 3F Consulting - */ -public interface SorteggioFinder { - public int countSorteggioMese(java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findSorteggioMese( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findSorteggioAnno( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findSorteggiGroupByAnnoMeseSettimana( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countSorteggiGroupByAnnoMeseSettimana() - throws com.liferay.portal.kernel.exception.SystemException; - - public void updateDataSorteggioPraticaEsterna(long id, - java.util.Date dataSorteggio) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.lang.String findTecnicoSorteggioPraticaEsterna(long id) - throws com.liferay.portal.kernel.exception.SystemException; - - public long findTipoPraticaIdSorteggioPraticaEsterna(long id) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List search( - java.lang.Long groupId, java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - public int count(java.lang.Long groupId, java.lang.String anno, - java.lang.String mese, int settimana, java.lang.String committente, - java.lang.String tecnico, java.lang.String comune, - java.lang.String pratica, java.lang.Long numeroEstrazione, - java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioFinderUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioFinderUtil.java deleted file mode 100644 index 93eb824f..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioFinderUtil.java +++ /dev/null @@ -1,123 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.util.ReferenceRegistry; - -/** - * @author Davide Barbagallo, 3F Consulting - */ -public class SorteggioFinderUtil { - public static int countSorteggioMese(java.util.Date dtMin, - java.util.Date dtMax, java.util.List territorioIds, - java.util.List tipoPraticaIds) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder() - .countSorteggioMese(dtMin, dtMax, territorioIds, - tipoPraticaIds); - } - - public static java.util.List findSorteggioMese( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder() - .findSorteggioMese(dtMin, dtMax, territorioIds, - tipoPraticaIds, statiPratica, maxResults); - } - - public static java.util.List findSorteggioAnno( - java.util.Date dtMin, java.util.Date dtMax, - java.util.List territorioIds, - java.util.List tipoPraticaIds, - java.util.List statiPratica, int maxResults) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder() - .findSorteggioAnno(dtMin, dtMax, territorioIds, - tipoPraticaIds, statiPratica, maxResults); - } - - public static java.util.List findSorteggiGroupByAnnoMeseSettimana( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder().findSorteggiGroupByAnnoMeseSettimana(start, end); - } - - public static int countSorteggiGroupByAnnoMeseSettimana() - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder().countSorteggiGroupByAnnoMeseSettimana(); - } - - public static void updateDataSorteggioPraticaEsterna(long id, - java.util.Date dataSorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - getFinder().updateDataSorteggioPraticaEsterna(id, dataSorteggio); - } - - public static java.lang.String findTecnicoSorteggioPraticaEsterna(long id) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder().findTecnicoSorteggioPraticaEsterna(id); - } - - public static long findTipoPraticaIdSorteggioPraticaEsterna(long id) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder().findTipoPraticaIdSorteggioPraticaEsterna(id); - } - - public static java.util.List search( - java.lang.Long groupId, java.lang.String anno, java.lang.String mese, - int settimana, java.lang.String committente, java.lang.String tecnico, - java.lang.String comune, java.lang.String pratica, - java.lang.Long numeroEstrazione, java.lang.String provincia, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return getFinder() - .search(groupId, anno, mese, settimana, committente, - tecnico, comune, pratica, numeroEstrazione, provincia, start, end); - } - - public static int count(java.lang.Long groupId, java.lang.String anno, - java.lang.String mese, int settimana, java.lang.String committente, - java.lang.String tecnico, java.lang.String comune, - java.lang.String pratica, java.lang.Long numeroEstrazione, - java.lang.String provincia) - throws com.liferay.portal.kernel.exception.SystemException { - return getFinder() - .count(groupId, anno, mese, settimana, committente, tecnico, - comune, pratica, numeroEstrazione, provincia); - } - - public static SorteggioFinder getFinder() { - if (_finder == null) { - _finder = (SorteggioFinder)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.bo.service.ClpSerializer.getServletContextName(), - SorteggioFinder.class.getName()); - - ReferenceRegistry.registerReference(SorteggioFinderUtil.class, - "_finder"); - } - - return _finder; - } - - public void setFinder(SorteggioFinder finder) { - _finder = finder; - - ReferenceRegistry.registerReference(SorteggioFinderUtil.class, "_finder"); - } - - private static SorteggioFinder _finder; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistence.java deleted file mode 100644 index 622b24de..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistence.java +++ /dev/null @@ -1,1343 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.service.persistence.BasePersistence; - -import it.tref.liferay.portos.bo.model.Sorteggio; - -/** - * The persistence interface for the sorteggio service. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioPersistenceImpl - * @see SorteggioUtil - * @generated - */ -public interface SorteggioPersistence extends BasePersistence { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this interface directly. Always use {@link SorteggioUtil} to access the sorteggio persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. - */ - - /** - * Returns all the sorteggios where uuid = ?. - * - * @param uuid the uuid - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid( - java.lang.String uuid, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the first sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the last sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where uuid = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio[] findByUuid_PrevAndNext( - long sorteggioId, java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Removes all the sorteggios where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - public void removeByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByUUID_G( - java.lang.String uuid, long groupId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the sorteggio where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio removeByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the number of sorteggios where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByUUID_G(java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the sorteggios where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the first sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the last sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio[] findByUuid_C_PrevAndNext( - long sorteggioId, java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Removes all the sorteggios where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - public void removeByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio where oldSorteggioId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param oldSorteggioId the old sorteggio ID - * @return the matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the sorteggio where oldSorteggioId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldSorteggioId the old sorteggio ID - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio where oldSorteggioId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldSorteggioId the old sorteggio ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the sorteggio where oldSorteggioId = ? from the database. - * - * @param oldSorteggioId the old sorteggio ID - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio removeByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the number of sorteggios where oldSorteggioId = ?. - * - * @param oldSorteggioId the old sorteggio ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByOldSorteggioId(long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the sorteggios where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByC_GroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios where companyId = ? and groupId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param groupId the group ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByC_GroupId( - long companyId, long groupId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios where companyId = ? and groupId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param groupId the group ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByC_GroupId( - long companyId, long groupId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByC_GroupId_First( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByC_GroupId_First( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByC_GroupId_Last( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByC_GroupId_Last( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio[] findByC_GroupId_PrevAndNext( - long sorteggioId, long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Removes all the sorteggios where companyId = ? and groupId = ? from the database. - * - * @param companyId the company ID - * @param groupId the group ID - * @throws SystemException if a system exception occurred - */ - public void removeByC_GroupId(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByC_GroupId(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the sorteggios where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByC_DettPratica( - long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios where companyId = ? and dettPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByC_DettPratica( - long companyId, long dettPraticaId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios where companyId = ? and dettPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByC_DettPratica( - long companyId, long dettPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica_First( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByC_DettPratica_First( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica_Last( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByC_DettPratica_Last( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio[] findByC_DettPratica_PrevAndNext( - long sorteggioId, long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Removes all the sorteggios where companyId = ? and dettPraticaId = ? from the database. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @throws SystemException if a system exception occurred - */ - public void removeByC_DettPratica(long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByC_DettPratica(long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the sorteggios where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPraticaId( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPraticaId( - long intPraticaId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPraticaId( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByIntPraticaId_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the first sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByIntPraticaId_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByIntPraticaId_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the last sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByIntPraticaId_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where intPraticaId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio[] findByIntPraticaId_PrevAndNext( - long sorteggioId, long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Removes all the sorteggios where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @throws SystemException if a system exception occurred - */ - public void removeByIntPraticaId(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByIntPraticaId(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByGroupId_Anno_Mese_Settimana_First( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the first sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByGroupId_Anno_Mese_Settimana_First( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByGroupId_Anno_Mese_Settimana_Last( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the last sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByGroupId_Anno_Mese_Settimana_Last( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio[] findByGroupId_Anno_Mese_Settimana_PrevAndNext( - long sorteggioId, long groupId, java.lang.String anno, - java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Removes all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ? from the database. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @throws SystemException if a system exception occurred - */ - public void removeByGroupId_Anno_Mese_Settimana(long groupId, - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByGroupId_Anno_Mese_Settimana(long groupId, - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByAnno_Mese_Settimana_First( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the first sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByAnno_Mese_Settimana_First( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByAnno_Mese_Settimana_Last( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the last sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByAnno_Mese_Settimana_Last( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio[] findByAnno_Mese_Settimana_PrevAndNext( - long sorteggioId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Removes all the sorteggios where anno = ? and mese = ? and settimana = ? from the database. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @throws SystemException if a system exception occurred - */ - public void removeByAnno_Mese_Settimana(java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public int countByAnno_Mese_Settimana(java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Caches the sorteggio in the entity cache if it is enabled. - * - * @param sorteggio the sorteggio - */ - public void cacheResult(it.tref.liferay.portos.bo.model.Sorteggio sorteggio); - - /** - * Caches the sorteggios in the entity cache if it is enabled. - * - * @param sorteggios the sorteggios - */ - public void cacheResult( - java.util.List sorteggios); - - /** - * Creates a new sorteggio with the primary key. Does not add the sorteggio to the database. - * - * @param sorteggioId the primary key for the new sorteggio - * @return the new sorteggio - */ - public it.tref.liferay.portos.bo.model.Sorteggio create(long sorteggioId); - - /** - * Removes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio remove(long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - public it.tref.liferay.portos.bo.model.Sorteggio updateImpl( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the sorteggio with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio findByPrimaryKey( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException; - - /** - * Returns the sorteggio with the primary key or returns null if it could not be found. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio, or null if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Sorteggio fetchByPrimaryKey( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the sorteggios. - * - * @return the sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of sorteggios - * @throws SystemException if a system exception occurred - */ - public java.util.List findAll( - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes all the sorteggios from the database. - * - * @throws SystemException if a system exception occurred - */ - public void removeAll() - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of sorteggios. - * - * @return the number of sorteggios - * @throws SystemException if a system exception occurred - */ - public int countAll() - throws com.liferay.portal.kernel.exception.SystemException; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioUtil.java deleted file mode 100644 index 5f78851f..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/SorteggioUtil.java +++ /dev/null @@ -1,1693 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.ReferenceRegistry; -import com.liferay.portal.service.ServiceContext; - -import it.tref.liferay.portos.bo.model.Sorteggio; - -import java.util.List; - -/** - * The persistence utility for the sorteggio service. This utility wraps {@link SorteggioPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioPersistence - * @see SorteggioPersistenceImpl - * @generated - */ -public class SorteggioUtil { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. - */ - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() - */ - public static void clearCache() { - getPersistence().clearCache(); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) - */ - public static void clearCache(Sorteggio sorteggio) { - getPersistence().clearCache(sorteggio); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) - */ - public static long countWithDynamicQuery(DynamicQuery dynamicQuery) - throws SystemException { - return getPersistence().countWithDynamicQuery(dynamicQuery); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) - */ - public static List findWithDynamicQuery( - DynamicQuery dynamicQuery) throws SystemException { - return getPersistence().findWithDynamicQuery(dynamicQuery); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) - */ - public static List findWithDynamicQuery( - DynamicQuery dynamicQuery, int start, int end) - throws SystemException { - return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) - */ - public static List findWithDynamicQuery( - DynamicQuery dynamicQuery, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return getPersistence() - .findWithDynamicQuery(dynamicQuery, start, end, - orderByComparator); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) - */ - public static Sorteggio update(Sorteggio sorteggio) - throws SystemException { - return getPersistence().update(sorteggio); - } - - /** - * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) - */ - public static Sorteggio update(Sorteggio sorteggio, - ServiceContext serviceContext) throws SystemException { - return getPersistence().update(sorteggio, serviceContext); - } - - /** - * Returns all the sorteggios where uuid = ?. - * - * @param uuid the uuid - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid); - } - - /** - * Returns a range of all the sorteggios where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid, start, end); - } - - /** - * Returns an ordered range of all the sorteggios where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid( - java.lang.String uuid, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid(uuid, start, end, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().findByUuid_First(uuid, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_First( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUuid_First(uuid, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().findByUuid_Last(uuid, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_Last( - java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUuid_Last(uuid, orderByComparator); - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where uuid = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio[] findByUuid_PrevAndNext( - long sorteggioId, java.lang.String uuid, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByUuid_PrevAndNext(sorteggioId, uuid, orderByComparator); - } - - /** - * Removes all the sorteggios where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - public static void removeByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByUuid(uuid); - } - - /** - * Returns the number of sorteggios where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByUuid(java.lang.String uuid) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUuid(uuid); - } - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().findByUUID_G(uuid, groupId); - } - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUUID_G(uuid, groupId); - } - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByUUID_G( - java.lang.String uuid, long groupId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); - } - - /** - * Removes the sorteggio where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio removeByUUID_G( - java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().removeByUUID_G(uuid, groupId); - } - - /** - * Returns the number of sorteggios where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByUUID_G(java.lang.String uuid, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUUID_G(uuid, groupId); - } - - /** - * Returns all the sorteggios where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid_C(uuid, companyId); - } - - /** - * Returns a range of all the sorteggios where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByUuid_C(uuid, companyId, start, end); - } - - /** - * Returns an ordered range of all the sorteggios where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByUuid_C( - java.lang.String uuid, long companyId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByUuid_C(uuid, companyId, start, end, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByUuid_C_First(uuid, companyId, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_C_First( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByUuid_C_First(uuid, companyId, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByUuid_C_Last(uuid, companyId, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByUuid_C_Last( - java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByUuid_C_Last(uuid, companyId, orderByComparator); - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio[] findByUuid_C_PrevAndNext( - long sorteggioId, java.lang.String uuid, long companyId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByUuid_C_PrevAndNext(sorteggioId, uuid, companyId, - orderByComparator); - } - - /** - * Removes all the sorteggios where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - public static void removeByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByUuid_C(uuid, companyId); - } - - /** - * Returns the number of sorteggios where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByUuid_C(java.lang.String uuid, long companyId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByUuid_C(uuid, companyId); - } - - /** - * Returns the sorteggio where oldSorteggioId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param oldSorteggioId the old sorteggio ID - * @return the matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().findByOldSorteggioId(oldSorteggioId); - } - - /** - * Returns the sorteggio where oldSorteggioId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldSorteggioId the old sorteggio ID - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldSorteggioId(oldSorteggioId); - } - - /** - * Returns the sorteggio where oldSorteggioId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldSorteggioId the old sorteggio ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByOldSorteggioId( - long oldSorteggioId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldSorteggioId(oldSorteggioId, retrieveFromCache); - } - - /** - * Removes the sorteggio where oldSorteggioId = ? from the database. - * - * @param oldSorteggioId the old sorteggio ID - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio removeByOldSorteggioId( - long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().removeByOldSorteggioId(oldSorteggioId); - } - - /** - * Returns the number of sorteggios where oldSorteggioId = ?. - * - * @param oldSorteggioId the old sorteggio ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByOldSorteggioId(long oldSorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldSorteggioId(oldSorteggioId); - } - - /** - * Returns all the sorteggios where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByC_GroupId( - long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByC_GroupId(companyId, groupId); - } - - /** - * Returns a range of all the sorteggios where companyId = ? and groupId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param groupId the group ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByC_GroupId( - long companyId, long groupId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByC_GroupId(companyId, groupId, start, end); - } - - /** - * Returns an ordered range of all the sorteggios where companyId = ? and groupId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param groupId the group ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByC_GroupId( - long companyId, long groupId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByC_GroupId(companyId, groupId, start, end, - orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByC_GroupId_First( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByC_GroupId_First(companyId, groupId, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByC_GroupId_First( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByC_GroupId_First(companyId, groupId, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByC_GroupId_Last( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByC_GroupId_Last(companyId, groupId, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByC_GroupId_Last( - long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByC_GroupId_Last(companyId, groupId, orderByComparator); - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio[] findByC_GroupId_PrevAndNext( - long sorteggioId, long companyId, long groupId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByC_GroupId_PrevAndNext(sorteggioId, companyId, - groupId, orderByComparator); - } - - /** - * Removes all the sorteggios where companyId = ? and groupId = ? from the database. - * - * @param companyId the company ID - * @param groupId the group ID - * @throws SystemException if a system exception occurred - */ - public static void removeByC_GroupId(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByC_GroupId(companyId, groupId); - } - - /** - * Returns the number of sorteggios where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByC_GroupId(long companyId, long groupId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByC_GroupId(companyId, groupId); - } - - /** - * Returns all the sorteggios where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByC_DettPratica( - long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByC_DettPratica(companyId, dettPraticaId); - } - - /** - * Returns a range of all the sorteggios where companyId = ? and dettPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByC_DettPratica( - long companyId, long dettPraticaId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByC_DettPratica(companyId, dettPraticaId, start, end); - } - - /** - * Returns an ordered range of all the sorteggios where companyId = ? and dettPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByC_DettPratica( - long companyId, long dettPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByC_DettPratica(companyId, dettPraticaId, start, end, - orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica_First( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByC_DettPratica_First(companyId, dettPraticaId, - orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByC_DettPratica_First( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByC_DettPratica_First(companyId, dettPraticaId, - orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByC_DettPratica_Last( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByC_DettPratica_Last(companyId, dettPraticaId, - orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByC_DettPratica_Last( - long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByC_DettPratica_Last(companyId, dettPraticaId, - orderByComparator); - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio[] findByC_DettPratica_PrevAndNext( - long sorteggioId, long companyId, long dettPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByC_DettPratica_PrevAndNext(sorteggioId, companyId, - dettPraticaId, orderByComparator); - } - - /** - * Removes all the sorteggios where companyId = ? and dettPraticaId = ? from the database. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @throws SystemException if a system exception occurred - */ - public static void removeByC_DettPratica(long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByC_DettPratica(companyId, dettPraticaId); - } - - /** - * Returns the number of sorteggios where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByC_DettPratica(long companyId, long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByC_DettPratica(companyId, dettPraticaId); - } - - /** - * Returns all the sorteggios where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPraticaId( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByIntPraticaId(intPraticaId); - } - - /** - * Returns a range of all the sorteggios where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPraticaId( - long intPraticaId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByIntPraticaId(intPraticaId, start, end); - } - - /** - * Returns an ordered range of all the sorteggios where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPraticaId( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPraticaId(intPraticaId, start, end, - orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByIntPraticaId_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByIntPraticaId_First(intPraticaId, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByIntPraticaId_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPraticaId_First(intPraticaId, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByIntPraticaId_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByIntPraticaId_Last(intPraticaId, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByIntPraticaId_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPraticaId_Last(intPraticaId, orderByComparator); - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where intPraticaId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio[] findByIntPraticaId_PrevAndNext( - long sorteggioId, long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByIntPraticaId_PrevAndNext(sorteggioId, intPraticaId, - orderByComparator); - } - - /** - * Removes all the sorteggios where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @throws SystemException if a system exception occurred - */ - public static void removeByIntPraticaId(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByIntPraticaId(intPraticaId); - } - - /** - * Returns the number of sorteggios where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByIntPraticaId(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByIntPraticaId(intPraticaId); - } - - /** - * Returns all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana); - } - - /** - * Returns a range of all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana, start, end); - } - - /** - * Returns an ordered range of all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByGroupId_Anno_Mese_Settimana( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana, start, end, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByGroupId_Anno_Mese_Settimana_First( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByGroupId_Anno_Mese_Settimana_First(groupId, anno, - mese, settimana, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByGroupId_Anno_Mese_Settimana_First( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByGroupId_Anno_Mese_Settimana_First(groupId, anno, - mese, settimana, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByGroupId_Anno_Mese_Settimana_Last( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByGroupId_Anno_Mese_Settimana_Last(groupId, anno, mese, - settimana, orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByGroupId_Anno_Mese_Settimana_Last( - long groupId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByGroupId_Anno_Mese_Settimana_Last(groupId, anno, - mese, settimana, orderByComparator); - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio[] findByGroupId_Anno_Mese_Settimana_PrevAndNext( - long sorteggioId, long groupId, java.lang.String anno, - java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByGroupId_Anno_Mese_Settimana_PrevAndNext(sorteggioId, - groupId, anno, mese, settimana, orderByComparator); - } - - /** - * Removes all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ? from the database. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @throws SystemException if a system exception occurred - */ - public static void removeByGroupId_Anno_Mese_Settimana(long groupId, - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByGroupId_Anno_Mese_Settimana(groupId, anno, mese, settimana); - } - - /** - * Returns the number of sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByGroupId_Anno_Mese_Settimana(long groupId, - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana); - } - - /** - * Returns all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByAnno_Mese_Settimana(anno, mese, settimana); - } - - /** - * Returns a range of all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByAnno_Mese_Settimana(anno, mese, settimana, start, end); - } - - /** - * Returns an ordered range of all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByAnno_Mese_Settimana( - java.lang.String anno, java.lang.String mese, int settimana, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByAnno_Mese_Settimana(anno, mese, settimana, start, - end, orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByAnno_Mese_Settimana_First( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByAnno_Mese_Settimana_First(anno, mese, settimana, - orderByComparator); - } - - /** - * Returns the first sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByAnno_Mese_Settimana_First( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByAnno_Mese_Settimana_First(anno, mese, settimana, - orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByAnno_Mese_Settimana_Last( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByAnno_Mese_Settimana_Last(anno, mese, settimana, - orderByComparator); - } - - /** - * Returns the last sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByAnno_Mese_Settimana_Last( - java.lang.String anno, java.lang.String mese, int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByAnno_Mese_Settimana_Last(anno, mese, settimana, - orderByComparator); - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio[] findByAnno_Mese_Settimana_PrevAndNext( - long sorteggioId, java.lang.String anno, java.lang.String mese, - int settimana, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence() - .findByAnno_Mese_Settimana_PrevAndNext(sorteggioId, anno, - mese, settimana, orderByComparator); - } - - /** - * Removes all the sorteggios where anno = ? and mese = ? and settimana = ? from the database. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @throws SystemException if a system exception occurred - */ - public static void removeByAnno_Mese_Settimana(java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByAnno_Mese_Settimana(anno, mese, settimana); - } - - /** - * Returns the number of sorteggios where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countByAnno_Mese_Settimana(java.lang.String anno, - java.lang.String mese, int settimana) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByAnno_Mese_Settimana(anno, mese, settimana); - } - - /** - * Caches the sorteggio in the entity cache if it is enabled. - * - * @param sorteggio the sorteggio - */ - public static void cacheResult( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) { - getPersistence().cacheResult(sorteggio); - } - - /** - * Caches the sorteggios in the entity cache if it is enabled. - * - * @param sorteggios the sorteggios - */ - public static void cacheResult( - java.util.List sorteggios) { - getPersistence().cacheResult(sorteggios); - } - - /** - * Creates a new sorteggio with the primary key. Does not add the sorteggio to the database. - * - * @param sorteggioId the primary key for the new sorteggio - * @return the new sorteggio - */ - public static it.tref.liferay.portos.bo.model.Sorteggio create( - long sorteggioId) { - return getPersistence().create(sorteggioId); - } - - /** - * Removes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio remove( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().remove(sorteggioId); - } - - public static it.tref.liferay.portos.bo.model.Sorteggio updateImpl( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().updateImpl(sorteggio); - } - - /** - * Returns the sorteggio with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio findByPrimaryKey( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchSorteggioException { - return getPersistence().findByPrimaryKey(sorteggioId); - } - - /** - * Returns the sorteggio with the primary key or returns null if it could not be found. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio, or null if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Sorteggio fetchByPrimaryKey( - long sorteggioId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByPrimaryKey(sorteggioId); - } - - /** - * Returns all the sorteggios. - * - * @return the sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll() - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(); - } - - /** - * Returns a range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll( - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(start, end); - } - - /** - * Returns an ordered range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of sorteggios - * @throws SystemException if a system exception occurred - */ - public static java.util.List findAll( - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findAll(start, end, orderByComparator); - } - - /** - * Removes all the sorteggios from the database. - * - * @throws SystemException if a system exception occurred - */ - public static void removeAll() - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeAll(); - } - - /** - * Returns the number of sorteggios. - * - * @return the number of sorteggios - * @throws SystemException if a system exception occurred - */ - public static int countAll() - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countAll(); - } - - public static SorteggioPersistence getPersistence() { - if (_persistence == null) { - _persistence = (SorteggioPersistence)PortletBeanLocatorUtil.locate(it.tref.liferay.portos.bo.service.ClpSerializer.getServletContextName(), - SorteggioPersistence.class.getName()); - - ReferenceRegistry.registerReference(SorteggioUtil.class, - "_persistence"); - } - - return _persistence; - } - - /** - * @deprecated As of 6.2.0 - */ - public void setPersistence(SorteggioPersistence persistence) { - } - - private static SorteggioPersistence _persistence; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistence.java index 98860d7a..c1ac7f6d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistence.java @@ -185,65 +185,6 @@ public interface StoricoSoggettoPraticaPersistence extends BasePersistencenull if it could not be found. Uses the finder cache. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the matching storico soggetto pratica, or null if a matching storico soggetto pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the storico soggetto pratica where oldStoricoSoggettoPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching storico soggetto pratica, or null if a matching storico soggetto pratica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the storico soggetto pratica where oldStoricoSoggettoPraticaId = ? from the database. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the storico soggetto pratica that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.StoricoSoggettoPratica removeByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException; - - /** - * Returns the number of storico soggetto praticas where oldStoricoSoggettoPraticaId = ?. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the number of matching storico soggetto praticas - * @throws SystemException if a system exception occurred - */ - public int countByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the storico soggetto pratica in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaUtil.java index a2aa7b02..b28783d9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaUtil.java @@ -293,81 +293,6 @@ public class StoricoSoggettoPraticaUtil { return getPersistence().countByC_IntPratica(companyId, intPraticaId); } - /** - * Returns the storico soggetto pratica where oldStoricoSoggettoPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException} if it could not be found. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the matching storico soggetto pratica - * @throws it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException if a matching storico soggetto pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.StoricoSoggettoPratica findByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException { - return getPersistence() - .findByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - } - - /** - * Returns the storico soggetto pratica where oldStoricoSoggettoPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the matching storico soggetto pratica, or null if a matching storico soggetto pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - } - - /** - * Returns the storico soggetto pratica where oldStoricoSoggettoPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching storico soggetto pratica, or null if a matching storico soggetto pratica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId, - retrieveFromCache); - } - - /** - * Removes the storico soggetto pratica where oldStoricoSoggettoPraticaId = ? from the database. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the storico soggetto pratica that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.StoricoSoggettoPratica removeByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException { - return getPersistence() - .removeByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - } - - /** - * Returns the number of storico soggetto praticas where oldStoricoSoggettoPraticaId = ?. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the number of matching storico soggetto praticas - * @throws SystemException if a system exception occurred - */ - public static int countByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - } - /** * Caches the storico soggetto pratica in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinder.java index 23a3ea76..46b8a64a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinder.java @@ -23,8 +23,6 @@ public interface TempisticaFinder { public int countPraticheInScadenzaAutorizzazioni(long companyId, long groupId); - public int countPraticheInScadenzaSorteggiate(long companyId, long groupId); - public int countPraticheInScadenzaControlloObbligatorio(long companyId, long groupId); @@ -36,9 +34,6 @@ public interface TempisticaFinder { public java.util.List praticheAttiveAutorizzazioni( long companyId, long groupId); - public java.util.List praticheAttiveSorteggiate( - long companyId, long groupId); - public java.util.List praticheAttiveControlloObbligatorio( long companyId, long groupId); @@ -46,8 +41,6 @@ public interface TempisticaFinder { public int countPraticheScaduteAutorizzazione(long companyId, long groupId); - public int countPraticheScaduteSorteggiate(long companyId, long groupId); - public int countPraticheScaduteControlloObbligatorio(long companyId, long groupId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderUtil.java index a081cbd8..038365cf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaFinderUtil.java @@ -32,11 +32,6 @@ public class TempisticaFinderUtil { .countPraticheInScadenzaAutorizzazioni(companyId, groupId); } - public static int countPraticheInScadenzaSorteggiate(long companyId, - long groupId) { - return getFinder().countPraticheInScadenzaSorteggiate(companyId, groupId); - } - public static int countPraticheInScadenzaControlloObbligatorio( long companyId, long groupId) { return getFinder() @@ -59,11 +54,6 @@ public class TempisticaFinderUtil { return getFinder().praticheAttiveAutorizzazioni(companyId, groupId); } - public static java.util.List praticheAttiveSorteggiate( - long companyId, long groupId) { - return getFinder().praticheAttiveSorteggiate(companyId, groupId); - } - public static java.util.List praticheAttiveControlloObbligatorio( long companyId, long groupId) { return getFinder() @@ -79,11 +69,6 @@ public class TempisticaFinderUtil { return getFinder().countPraticheScaduteAutorizzazione(companyId, groupId); } - public static int countPraticheScaduteSorteggiate(long companyId, - long groupId) { - return getFinder().countPraticheScaduteSorteggiate(companyId, groupId); - } - public static int countPraticheScaduteControlloObbligatorio( long companyId, long groupId) { return getFinder() diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistence.java index 094932ee..5da074e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistence.java @@ -672,64 +672,6 @@ public interface TempisticaPersistence extends BasePersistence { public int countByIntPratica_Tipo(long intPraticaId, java.lang.String tipo) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the tempistica where oldTempisticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchTempisticaException} if it could not be found. - * - * @param oldTempisticaId the old tempistica ID - * @return the matching tempistica - * @throws it.tref.liferay.portos.bo.NoSuchTempisticaException if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Tempistica findByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTempisticaException; - - /** - * Returns the tempistica where oldTempisticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldTempisticaId the old tempistica ID - * @return the matching tempistica, or null if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the tempistica where oldTempisticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldTempisticaId the old tempistica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching tempistica, or null if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the tempistica where oldTempisticaId = ? from the database. - * - * @param oldTempisticaId the old tempistica ID - * @return the tempistica that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Tempistica removeByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTempisticaException; - - /** - * Returns the number of tempisticas where oldTempisticaId = ?. - * - * @param oldTempisticaId the old tempistica ID - * @return the number of matching tempisticas - * @throws SystemException if a system exception occurred - */ - public int countByOldTempisticaId(long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the tempisticas where companyId = ? and intPraticaId = ? and tipo = ? and completo = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaUtil.java index cb7c04ba..5fde7b77 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TempisticaUtil.java @@ -865,75 +865,6 @@ public class TempisticaUtil { return getPersistence().countByIntPratica_Tipo(intPraticaId, tipo); } - /** - * Returns the tempistica where oldTempisticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchTempisticaException} if it could not be found. - * - * @param oldTempisticaId the old tempistica ID - * @return the matching tempistica - * @throws it.tref.liferay.portos.bo.NoSuchTempisticaException if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Tempistica findByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTempisticaException { - return getPersistence().findByOldTempisticaId(oldTempisticaId); - } - - /** - * Returns the tempistica where oldTempisticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldTempisticaId the old tempistica ID - * @return the matching tempistica, or null if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldTempisticaId(oldTempisticaId); - } - - /** - * Returns the tempistica where oldTempisticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldTempisticaId the old tempistica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching tempistica, or null if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Tempistica fetchByOldTempisticaId( - long oldTempisticaId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldTempisticaId(oldTempisticaId, retrieveFromCache); - } - - /** - * Removes the tempistica where oldTempisticaId = ? from the database. - * - * @param oldTempisticaId the old tempistica ID - * @return the tempistica that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Tempistica removeByOldTempisticaId( - long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTempisticaException { - return getPersistence().removeByOldTempisticaId(oldTempisticaId); - } - - /** - * Returns the number of tempisticas where oldTempisticaId = ?. - * - * @param oldTempisticaId the old tempistica ID - * @return the number of matching tempisticas - * @throws SystemException if a system exception occurred - */ - public static int countByOldTempisticaId(long oldTempisticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldTempisticaId(oldTempisticaId); - } - /** * Returns all the tempisticas where companyId = ? and intPraticaId = ? and tipo = ? and completo = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistence.java index 85a09179..1612c4f3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistence.java @@ -958,64 +958,6 @@ public interface TerritorioPersistence extends BasePersistence { public int countByC(long companyId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns the territorio where oldTerritorioId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchTerritorioException} if it could not be found. - * - * @param oldTerritorioId the old territorio ID - * @return the matching territorio - * @throws it.tref.liferay.portos.bo.NoSuchTerritorioException if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Territorio findByOldTerritorioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException; - - /** - * Returns the territorio where oldTerritorioId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldTerritorioId the old territorio ID - * @return the matching territorio, or null if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Territorio fetchByOldTerritorioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the territorio where oldTerritorioId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldTerritorioId the old territorio ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching territorio, or null if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Territorio fetchByOldTerritorioId( - long oldTerritorioId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes the territorio where oldTerritorioId = ? from the database. - * - * @param oldTerritorioId the old territorio ID - * @return the territorio that was removed - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Territorio removeByOldTerritorioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException; - - /** - * Returns the number of territorios where oldTerritorioId = ?. - * - * @param oldTerritorioId the old territorio ID - * @return the number of matching territorios - * @throws SystemException if a system exception occurred - */ - public int countByOldTerritorioId(long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the territorio in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioUtil.java index beaee0a5..5b9eca94 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/TerritorioUtil.java @@ -1188,75 +1188,6 @@ public class TerritorioUtil { return getPersistence().countByC(companyId); } - /** - * Returns the territorio where oldTerritorioId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchTerritorioException} if it could not be found. - * - * @param oldTerritorioId the old territorio ID - * @return the matching territorio - * @throws it.tref.liferay.portos.bo.NoSuchTerritorioException if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Territorio findByOldTerritorioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException { - return getPersistence().findByOldTerritorioId(oldTerritorioId); - } - - /** - * Returns the territorio where oldTerritorioId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldTerritorioId the old territorio ID - * @return the matching territorio, or null if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Territorio fetchByOldTerritorioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().fetchByOldTerritorioId(oldTerritorioId); - } - - /** - * Returns the territorio where oldTerritorioId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldTerritorioId the old territorio ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching territorio, or null if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Territorio fetchByOldTerritorioId( - long oldTerritorioId, boolean retrieveFromCache) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByOldTerritorioId(oldTerritorioId, retrieveFromCache); - } - - /** - * Removes the territorio where oldTerritorioId = ? from the database. - * - * @param oldTerritorioId the old territorio ID - * @return the territorio that was removed - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Territorio removeByOldTerritorioId( - long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchTerritorioException { - return getPersistence().removeByOldTerritorioId(oldTerritorioId); - } - - /** - * Returns the number of territorios where oldTerritorioId = ?. - * - * @param oldTerritorioId the old territorio ID - * @return the number of matching territorios - * @throws SystemException if a system exception occurred - */ - public static int countByOldTerritorioId(long oldTerritorioId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByOldTerritorioId(oldTerritorioId); - } - /** * Caches the territorio in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java index 2b33509a..1d3b7e21 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java @@ -18,7 +18,6 @@ import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Locale; @@ -51,22 +50,23 @@ public class AsseverazioniUtil { public static boolean hasAsseverazioniAttive(long dettPraticaId) throws SystemException { - return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new String[] { - STATO_ASSEGNATA, STATO_ESEGUITA }) > 0; + return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new String[] { STATO_ASSEGNATA, + STATO_ESEGUITA }) > 0; } - public static boolean hasCambioStatoAsseverazione(long userId, long asseverazioneId) - throws PortalException, SystemException { + public static boolean hasCambioStatoAsseverazione(long userId, long asseverazioneId) throws PortalException, + SystemException { + Asseverazione asseverazione = AsseverazioneLocalServiceUtil.getAsseverazione(asseverazioneId); - DettPratica dettPratica = DettPraticaLocalServiceUtil - .getDettPratica(asseverazione.getDettPraticaId()); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); User user = UserLocalServiceUtil.getUser(userId); - return (asseverazione.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) || dettPratica - .getUserId() == userId) && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; + return (asseverazione.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) || dettPratica.getUserId() == userId) + && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; } public static boolean hasRichiediAsseverazioni(long userId, long dettPraticaId) throws PortalException, SystemException { + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); return !hasAsseverazioniAttive(dettPraticaId) && dettPratica.getUserId() == userId && ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId) @@ -75,21 +75,23 @@ public class AsseverazioniUtil { public static boolean hasAnnullaAsseverazioni(long userId, long dettPraticaId) throws PortalException, SystemException { + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); return hasAsseverazioniAttive(dettPraticaId) && dettPratica.getUserId() == userId && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; } - public static boolean hasGestisciFileAsseverazione(long userId, long asseverazioneId) - throws PortalException, SystemException { + public static boolean hasGestisciFileAsseverazione(long userId, long asseverazioneId) throws PortalException, + SystemException { + Asseverazione asseverazione = AsseverazioneLocalServiceUtil.getAsseverazione(asseverazioneId); - DettPratica dettPratica = DettPraticaLocalServiceUtil - .getDettPratica(asseverazione.getDettPraticaId()); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); return dettPratica.getUserId() == userId && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; } public static boolean hasAsseverazioneAttiva(long userId, long dettPraticaId) throws PortalException, SystemException { + User user = UserLocalServiceUtil.getUser(userId); return AsseverazioneLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, user.getScreenName(), new String[] { STATO_ASSEGNATA }) > 0; @@ -98,61 +100,98 @@ public class AsseverazioniUtil { public static String ASSEVERAZIONI_DOMANDA = "asseverazioni_domanda"; public static String ASSEVERAZIONI_VARIANTE = "asseverazioni_variante"; public static String ASSEVERAZIONI_INTEGRAZIONE = "asseverazioni_integrazione"; - private static Map> required = new HashMap>(); - static { - Map> aMap = new HashMap>(); - - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02, - Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03, - Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, - Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A08, - Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, - Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A13, - Arrays.asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15, - Arrays.asList(TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.DIRETTORE_LAVORI)); - - // Domanda - aMap.put(ASSEVERAZIONI_DOMANDA, Arrays.asList( - // TipoSoggettoUtil.COMMITTENTE, - TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DITTA, - TipoSoggettoUtil.COLLAUDATORE)); - // Variante - aMap.put(ASSEVERAZIONI_VARIANTE, new ArrayList()); - // Integrazioni - aMap.put(ASSEVERAZIONI_INTEGRAZIONE, new ArrayList()); - - // Fine Lavori - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI, - Arrays.asList(TipoSoggettoUtil.DIRETTORE_LAVORI)); - - // Collaudo - aMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO, - Arrays.asList(TipoSoggettoUtil.COLLAUDATORE)); - - required = Collections.unmodifiableMap(aMap); - } - private static Map> recommended = new HashMap>(); - static { - Map> bMap = new HashMap>(); - bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, Arrays.asList(TipoSoggettoUtil.DITTA)); - bMap.put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, Arrays.asList(TipoSoggettoUtil.DITTA)); - recommended = Collections.unmodifiableMap(bMap); - } - private static List oneIsEnough = new ArrayList(); - static { - oneIsEnough.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A11); - oneIsEnough.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12); - oneIsEnough.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17); - oneIsEnough.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ALTRI); - oneIsEnough.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DELEGA); - } + @SuppressWarnings("serial") + private static final Map> required = new HashMap>() { + { + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02, new ArrayList() { + { + add(TipoSoggettoUtil.PROGETTISTA); + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03, new ArrayList() { + { + add(TipoSoggettoUtil.PROGETTISTA); + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, new ArrayList() { + { + add(TipoSoggettoUtil.PROGETTISTA); + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A08, new ArrayList() { + { + add(TipoSoggettoUtil.PROGETTISTA); + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, new ArrayList() { + { + add(TipoSoggettoUtil.PROGETTISTA); + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A13, new ArrayList() { + { + add(TipoSoggettoUtil.PROGETTISTA); + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15, new ArrayList() { + { + add(TipoSoggettoUtil.GEOLOGO); + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + // Domanda + put(ASSEVERAZIONI_DOMANDA, new ArrayList() { + { + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + add(TipoSoggettoUtil.PROGETTISTA); + add(TipoSoggettoUtil.DITTA); + add(TipoSoggettoUtil.COLLAUDATORE); + } + }); + // Variante + put(ASSEVERAZIONI_VARIANTE, new ArrayList()); + // Integrazioni + put(ASSEVERAZIONI_INTEGRAZIONE, new ArrayList()); + // Fine Lavori + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI, new ArrayList() { + { + add(TipoSoggettoUtil.DIRETTORE_LAVORI); + } + }); + // Collaudo + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO, new ArrayList() { + { + add(TipoSoggettoUtil.COLLAUDATORE); + } + }); + } + }; + + @SuppressWarnings("serial") + private static final Map> recommended = new HashMap>() { + { + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, Arrays.asList(TipoSoggettoUtil.DITTA)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, Arrays.asList(TipoSoggettoUtil.DITTA)); + } + }; + + @SuppressWarnings("serial") + private static final List oneIsEnough = new ArrayList() { + { + add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A11); + add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12); + add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17); + add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ALTRI); + add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DELEGA); + } + }; public static boolean isAsseverazioneDomandaRequiredByTipoSoggetto(long dettPraticaId, String tipoSoggetto) throws PortalException, SystemException { @@ -160,32 +199,21 @@ public class AsseverazioniUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); long intPraticaId = dettPratica.getIntPraticaId(); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - - List nuoviSoggetti = SoggettoLocalServiceUtil - .getValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, tipoSoggetto); - List cfNuoviSoggetti = SoggettoLocalServiceUtil - .getCfValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, tipoSoggetto); - List nuoviDelegati = DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito( - dettPraticaId, new String[] { tipoSoggetto }, - new String[] { AsseverazioniUtil.STATO_ESEGUITA }); - + List nuoviSoggetti = SoggettoLocalServiceUtil.getValidTmpByDettPratica_TipologiaSoggetto( + dettPraticaId, tipoSoggetto); + List cfNuoviSoggetti = SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto( + dettPraticaId, tipoSoggetto); + List nuoviDelegati = DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(dettPraticaId, + new String[] { tipoSoggetto }, new String[] { AsseverazioniUtil.STATO_ESEGUITA }); nuoviDelegati.removeAll(cfNuoviSoggetti); for (String cfDelegato : nuoviDelegati) { List delegato = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale( dettPratica.getIntPraticaId(), cfDelegato, 0l); GenericUtils.addAllIfnotExist(nuoviSoggetti, delegato); } - - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica - .getTipoIntegrazione())) { - // if - // (TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto)) - // { - // return true; - // } + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); Soggetto titolareDigitale = SoggettoLocalServiceUtil .getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, @@ -194,9 +222,7 @@ public class AsseverazioniUtil { && tipoSoggetto.equalsIgnoreCase(titolareDigitale.getTipologiaSoggetto())) { GenericUtils.addIfnotExist(nuoviSoggetti, titolareDigitale); } - } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - if (!TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto) && !TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipoSoggetto)) { List soggettiPrincipali = SoggettoLocalServiceUtil @@ -205,20 +231,15 @@ public class AsseverazioniUtil { GenericUtils.addAllIfnotExist(nuoviSoggetti, soggettiPrincipali); } } - return nuoviSoggetti.size() > 0; } else { boolean collaudatoreNotRequired = dettPratica.getNoCollaudo() || dettPratica.getCollaudoStatico(); boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() || dettPratica.getNormLavoriNoDirettore(); - boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() - || dettPratica.getLavoriPubblici(); - - if (TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipoSoggetto) - && direttoreLavoriNotRequired) { + boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici(); + if (TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipoSoggetto) && direttoreLavoriNotRequired) { return checkAsseverazioniRichiestaOriginaria(tipoSoggetto, dettPraticaId); - } else if (TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipoSoggetto) - && collaudatoreNotRequired) { + } else if (TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipoSoggetto) && collaudatoreNotRequired) { return false; } else if (TipoSoggettoUtil.DITTA.equalsIgnoreCase(tipoSoggetto) && dittaNotRequired) { return false; @@ -227,14 +248,12 @@ public class AsseverazioniUtil { } else if (required.containsKey(ASSEVERAZIONI_DOMANDA)) { return checkAsseverazioniRichiestaOriginaria(tipoSoggetto, dettPraticaId); } - } - return false; } - public static boolean isAsseverazioneDomandaRecommendedByTipoSoggetto(long dettPraticaId, - String tipoSoggetto) throws PortalException, SystemException { + public static boolean isAsseverazioneDomandaRecommendedByTipoSoggetto(long dettPraticaId, String tipoSoggetto) + throws PortalException, SystemException { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { @@ -260,8 +279,7 @@ public class AsseverazioniUtil { return false; } - public static boolean allAsseverazioniCompleted(long dettPraticaId) throws SystemException, - PortalException { + public static boolean allAsseverazioniCompleted(long dettPraticaId) throws SystemException, PortalException { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); @@ -270,32 +288,23 @@ public class AsseverazioniUtil { || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { boolean soggetti = false; boolean delegati = false; - - List asseverazioniEseguite = AsseverazioneLocalServiceUtil - .findByDettPratica_InEsito(dettPraticaId, - new String[] { AsseverazioniUtil.STATO_ESEGUITA }, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - + List asseverazioniEseguite = AsseverazioneLocalServiceUtil.findByDettPratica_InEsito( + dettPraticaId, new String[] { AsseverazioniUtil.STATO_ESEGUITA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); if (asseverazioniEseguite.size() == 0) { return false; } - List nuoviSoggetti = new ArrayList( SoggettoLocalServiceUtil.getCfValidTmpByDettPratica(dettPraticaId)); List nuoviDelegati = new ArrayList( DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(dettPraticaId, new String[] { - TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO, - TipoSoggettoUtil.DITTA, TipoSoggettoUtil.PROGETTISTA }, - new String[] { AsseverazioniUtil.STATO_ESEGUITA })); - + TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.DITTA, + TipoSoggettoUtil.PROGETTISTA }, new String[] { AsseverazioniUtil.STATO_ESEGUITA })); List cfAsseverazioni = new ArrayList<>(); for (Asseverazione asseverazione : asseverazioniEseguite) { GenericUtils.addIfnotExist(cfAsseverazioni, asseverazione.getCodiceFiscale()); } - - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica - .getTipoIntegrazione())) { - + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { boolean titolareDigitale = false; User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); if (cfAsseverazioni.contains(titolaredigitaleUser.getScreenName())) { @@ -304,70 +313,53 @@ public class AsseverazioniUtil { if (cfAsseverazioni.containsAll(nuoviSoggetti)) { soggetti = true; } - nuoviDelegati.removeAll(nuoviSoggetti); if (cfAsseverazioni.containsAll(nuoviDelegati)) { delegati = true; } - if (!soggetti && delegati) { if (cfAsseverazioni.containsAll(nuoviSoggetti)) { soggetti = true; } } - return titolareDigitale && soggetti && delegati; - } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { boolean soggettiPrincipali = false; - - String[] tipoSoggetti = new String[] { TipoSoggettoUtil.DIRETTORE_LAVORI, - TipoSoggettoUtil.DITTA, TipoSoggettoUtil.PROGETTISTA }; - + String[] tipoSoggetti = new String[] { TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.DITTA, + TipoSoggettoUtil.PROGETTISTA }; List cfSoggettiPrincipali = SoggettoLocalServiceUtil - .getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, - tipoSoggetti); - + .getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, tipoSoggetti); if (cfAsseverazioni.containsAll(cfSoggettiPrincipali)) { soggettiPrincipali = true; } - nuoviSoggetti.removeAll(cfSoggettiPrincipali); if (cfAsseverazioni.containsAll(nuoviSoggetti)) { soggetti = true; } - nuoviDelegati.removeAll(cfSoggettiPrincipali); nuoviDelegati.removeAll(nuoviSoggetti); if (cfAsseverazioni.containsAll(nuoviDelegati)) { delegati = true; } - return soggettiPrincipali && soggetti && delegati; } - } else { - for (String tipoSoggetto : required.get(ASSEVERAZIONI_DOMANDA)) { if (isAsseverazioneDomandaRequiredByTipoSoggetto(dettPraticaId, tipoSoggetto)) { List asseverazioniEseguite = AsseverazioneLocalServiceUtil .findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, new String[] { AsseverazioniUtil.STATO_ESEGUITA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - List cfAsseverazioni = new ArrayList<>(); for (Asseverazione asseverazione : asseverazioniEseguite) { GenericUtils.addIfnotExist(cfAsseverazioni, asseverazione.getCodiceFiscale()); } - if (asseverazioniEseguite.size() == 0) { return false; } } } - } - return true; } @@ -386,14 +378,15 @@ public class AsseverazioniUtil { } public static boolean isEnoughOne(String codiceDoc) { + return oneIsEnough.contains(codiceDoc); } public static boolean signaturesContains(long intPraticaId, String tipoSoggetto, List signatures) throws SystemException { + for (String sign : signatures) { - List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, - sign); + List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, sign); for (Soggetto soggetto : soggetti) { if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)) { return true; @@ -403,41 +396,35 @@ public class AsseverazioniUtil { return false; } - public static Map iconMapper = new HashMap(); - static { - Map aMap = new HashMap(); - aMap.put(TipoSoggettoUtil.COMMITTENTE, "fa-bullseye"); - aMap.put(TipoSoggettoUtil.DIRETTORE_LAVORI, "fa-bullhorn"); - aMap.put(TipoSoggettoUtil.DITTA, "fa-industry"); - aMap.put(TipoSoggettoUtil.GEOLOGO, "fa-globe"); - aMap.put(TipoSoggettoUtil.COLLAUDATORE, "fa-wrench"); - aMap.put(TipoSoggettoUtil.PROGETTISTA, "fa-object-ungroup"); - iconMapper = Collections.unmodifiableMap(aMap); - } + public static final Map iconMapper = new HashMap() { + { + put(TipoSoggettoUtil.COMMITTENTE, "fa-bullseye"); + put(TipoSoggettoUtil.DIRETTORE_LAVORI, "fa-bullhorn"); + put(TipoSoggettoUtil.DITTA, "fa-industry"); + put(TipoSoggettoUtil.GEOLOGO, "fa-globe"); + put(TipoSoggettoUtil.COLLAUDATORE, "fa-wrench"); + put(TipoSoggettoUtil.PROGETTISTA, "fa-object-ungroup"); + } + }; public static String retrieveAsseverazioneText(Asseverazione asseverazione, String codiceFiscale) throws PortalException, SystemException { + if (!codiceFiscale.equalsIgnoreCase(asseverazione.getCodiceFiscale())) { return StringPool.BLANK; } - Object[] params = new Object[] {}; String result = StringPool.BLANK; - String tipoAsseverazione = asseverazione.getTipologia(); - DettPratica dettPratica = DettPraticaLocalServiceUtil - .getDettPratica(asseverazione.getDettPraticaId()); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId()); Soggetto soggetto = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto( asseverazione.getIntPraticaId(), codiceFiscale, asseverazione.getTipologia(), 0l); - switch (tipoAsseverazione) { case TipoSoggettoUtil.COLLAUDATORE: - params = new Object[] { - soggetto.getDescrizioneCompleta(), - ("albo-altro".equalsIgnoreCase(soggetto.getAlbo()) ? soggetto.getAlboDescr() : soggetto - .getAlbo()), soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; - + params = new Object[] { soggetto.getDescrizioneCompleta(), + ("albo-altro".equalsIgnoreCase(soggetto.getAlbo()) ? soggetto.getAlboDescr() : soggetto.getAlbo()), + soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; break; case TipoSoggettoUtil.COMMITTENTE: params = new Object[] { soggetto.getDescrizioneCompleta() }; @@ -445,14 +432,13 @@ public class AsseverazioniUtil { case TipoSoggettoUtil.DIRETTORE_LAVORI: params = new Object[] { soggetto.getDescrizioneCompleta(), - (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), - dettPratica.getDettPraticaId()) ? "Principale" : StringPool.BLANK) - + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK - : (soggetto.getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto - .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, - "label-ambito-" + soggetto.getAmbitoProfessione()))), - soggetto.getAlbo(), soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; - + (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPratica.getDettPraticaId()) ? "Principale" + : StringPool.BLANK) + + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto + .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto + .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, + "label-ambito-" + soggetto.getAmbitoProfessione()))), soggetto.getAlbo(), + soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; break; case TipoSoggettoUtil.DITTA: params = new Object[] { @@ -462,10 +448,10 @@ public class AsseverazioniUtil { + (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPratica.getDettPraticaId()) ? "Principale" : StringPool.BLANK) + StringPool.SPACE - + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK - : (soggetto.getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto - .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, - "label-ambito-" + soggetto.getAmbitoProfessione()))) }; + + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto + .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto + .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, + "label-ambito-" + soggetto.getAmbitoProfessione()))) }; break; case TipoSoggettoUtil.GEOLOGO: params = new String[] { soggetto.getDescrizioneCompleta() }; @@ -474,38 +460,28 @@ public class AsseverazioniUtil { Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); params = new Object[] { soggetto.getDescrizioneCompleta(), - (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), - dettPratica.getDettPraticaId()) ? "Principale" : StringPool.BLANK) - + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK - : (soggetto.getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto - .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, - "label-ambito-" + soggetto.getAmbitoProfessione()))), - soggetto.getAlbo(), soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo(), + (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPratica.getDettPraticaId()) ? "Principale" + : StringPool.BLANK) + + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto + .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto + .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, + "label-ambito-" + soggetto.getAmbitoProfessione()))), soggetto.getAlbo(), + soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo(), dettPratica.getTcNuovaCostruzione() ? "X" : StringPool.SPACE, dettPratica.getTcAdeguamentoSismico() ? "X" : StringPool.SPACE, dettPratica.getTcMiglioramentoSismico() ? "X" : StringPool.SPACE, - dettPratica.getTcRiparazioneInterventoLocale() ? "X" : StringPool.SPACE, - territorio.getZona(), territorio.getFascia() }; - break; - - default: + dettPratica.getTcRiparazioneInterventoLocale() ? "X" : StringPool.SPACE, territorio.getZona(), + territorio.getFascia() }; break; } - result = LanguageUtil - .format(LocaleUtil.ITALIAN, "confirm-asseverazione-" + tipoAsseverazione, params); + result = LanguageUtil.format(LocaleUtil.ITALIAN, "confirm-asseverazione-" + tipoAsseverazione, params); // Added fixed bottom result += LanguageUtil.get(LocaleUtil.ITALIAN, "confirm-asseverazione-bottom"); return result; } /** - * * @author ADT - * - * @param tipoSoggetto - * @param dettPraticaId - * @return - * @throws SystemException */ private static boolean checkAsseverazioniRichiestaOriginaria(String tipoSoggetto, long dettPraticaId) throws SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java index 773ad87c..667e6d81 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java @@ -11,17 +11,18 @@ import java.util.Collection; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Map; + 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.Validator; -@SuppressWarnings("serial") public class AvvisoUtil { private static Log _log = LogFactoryUtil.getLog(AvvisoUtil.class); + // Ogni volta che leggo queste due righe mi sale la cattiveria public final static String DOCUMENTO_INVIATO = "S"; public final static String DOCUMENTO_NON_INVIATO = "N"; @@ -29,9 +30,9 @@ public class AvvisoUtil { public final static String TIPO_AVVISO_FIRMA = "S"; public final static String TIPO_REPORT_CONTROLLO_OBBLIGATORIO = "CO"; - public final static String TIPO_REPORT_SORTEGGIO = "SO"; public final static String TIPO_REPORT_AUTORIZZAZIONE = "AU"; + @SuppressWarnings("serial") private final static Map allTipoAvviso = new LinkedHashMap() { { put(TIPO_AVVISO_DIRETTO, "label.admingeniocivile.avviso.tipoAvviso.diretto"); @@ -39,36 +40,32 @@ public class AvvisoUtil { } }; + @SuppressWarnings("serial") private final static Map allTipoDocumento = new LinkedHashMap() { { put(StatoPraticaConstants.CONFORME, "label.admingeniocivile.avviso.tipoDocumento.conforme"); put(StatoPraticaConstants.NON_CONFORME, "label.admingeniocivile.avviso.tipoDocumento.nonconforme"); put(StatoPraticaConstants.AUTORIZZATA, "label.admingeniocivile.avviso.tipoDocumento.autorizzata"); - put(StatoPraticaConstants.NON_AUTORIZZATA, - "label.admingeniocivile.avviso.tipoDocumento.nonautorizzata"); - put(StatoPraticaConstants.INTEGRAZIONE, - "label.admingeniocivile.avviso.tipoDocumento.integrazione"); + put(StatoPraticaConstants.NON_AUTORIZZATA, "label.admingeniocivile.avviso.tipoDocumento.nonautorizzata"); + put(StatoPraticaConstants.INTEGRAZIONE, "label.admingeniocivile.avviso.tipoDocumento.integrazione"); put(StatoPraticaConstants.PREAVVISO_CONTRARIO, "label.admingeniocivile.avviso.tipoDocumento.preavvisocontrario"); put(StatoPraticaConstants.NO_PARERE, "label.admingeniocivile.avviso.tipoDocumento.noparere"); put(StatoPraticaConstants.VIDIMATA, "label.admingeniocivile.avviso.tipoDocumento.vidimata"); - put(StatoPraticaConstants.FINE_LAVORI, - "label.admingeniocivile.avviso.tipoDocumento.vidimata.finelavori"); - put(StatoPraticaConstants.COLLAUDO, - "label.admingeniocivile.avviso.tipoDocumento.vidimata.collaudo"); + put(StatoPraticaConstants.FINE_LAVORI, "label.admingeniocivile.avviso.tipoDocumento.vidimata.finelavori"); + put(StatoPraticaConstants.COLLAUDO, "label.admingeniocivile.avviso.tipoDocumento.vidimata.collaudo"); put(StatoPraticaConstants.RIFIUTATA, "label.admingeniocivile.avviso.tipoDocumento.rifiutata"); put(StatoPraticaConstants.SOTTOPOSTA_A_PARERE, "label.admingeniocivile.avviso.tipoDocumento.sottopostaparere"); put(StatoPraticaConstants.ANNULLATA, "label.admingeniocivile.avviso.tipoDocumento.annullata"); - put(StatoPraticaConstants.ANNULLA_ISTANZA, - "label.admingeniocivile.avviso.tipoDocumento.annullaistanza"); + put(StatoPraticaConstants.ANNULLA_ISTANZA, "label.admingeniocivile.avviso.tipoDocumento.annullaistanza"); put(StatoPraticaConstants.INTEGRAZIONE_ACCETTATA, "label.admingeniocivile.avviso.tipoDocumento.integrazioneaccettata"); - put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, - "label.admingeniocivile.avviso.tipoDocumento.cambioistruttore"); + put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "label.admingeniocivile.avviso.tipoDocumento.cambioistruttore"); } }; + @SuppressWarnings("serial") private final static Map allTipoDocumentoFolderTemplateProps = new LinkedHashMap() { { put(StatoPraticaConstants.VIDIMATA, "conf.geniocivile.avviso.folder.id.vidimata"); @@ -77,16 +74,13 @@ public class AvvisoUtil { put(StatoPraticaConstants.AUTORIZZATA, "conf.geniocivile.avviso.folder.id.autorizzata"); put(StatoPraticaConstants.NON_AUTORIZZATA, "conf.geniocivile.avviso.folder.id.non_autorizzata"); put(StatoPraticaConstants.INTEGRAZIONE, "conf.geniocivile.avviso.folder.id.integrazione"); - put(StatoPraticaConstants.PREAVVISO_CONTRARIO, - "conf.geniocivile.avviso.folder.id.preavvisocontrario"); + put(StatoPraticaConstants.PREAVVISO_CONTRARIO, "conf.geniocivile.avviso.folder.id.preavvisocontrario"); put(StatoPraticaConstants.NO_PARERE, "conf.geniocivile.avviso.folder.id.noparere"); put(StatoPraticaConstants.RIFIUTATA, "conf.geniocivile.avviso.folder.id.rifiutata"); - put(StatoPraticaConstants.SOTTOPOSTA_A_PARERE, - "conf.geniocivile.avviso.folder.id.sottopostaparere"); + put(StatoPraticaConstants.SOTTOPOSTA_A_PARERE, "conf.geniocivile.avviso.folder.id.sottopostaparere"); put(StatoPraticaConstants.ANNULLATA, "conf.geniocivile.avviso.folder.id.annullata"); put(StatoPraticaConstants.ANNULLA_ISTANZA, "conf.geniocivile.avviso.folder.id.annullaistanza"); - put(StatoPraticaConstants.INTEGRAZIONE_ACCETTATA, - "conf.geniocivile.avviso.folder.id.integrazioneaccettata"); + put(StatoPraticaConstants.INTEGRAZIONE_ACCETTATA, "conf.geniocivile.avviso.folder.id.integrazioneaccettata"); put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "conf.geniocivile.avviso.folder.id.cambioistruttore"); put("AS", "conf.geniocivile.avviso.folder.id.doc_asseverazione"); put("AIF", "conf.geniocivile.avviso.folder.id.doc_annullamento"); @@ -96,10 +90,10 @@ public class AvvisoUtil { } }; + @SuppressWarnings("serial") private final static Map allTipoDocumentoFileTemplateProps = new LinkedHashMap() { { - put(StatoPraticaConstants.VARIAZIONE_SOGGETTI, - "conf.geniocivile.avviso.template.id.variazionesoggetti"); + put(StatoPraticaConstants.VARIAZIONE_SOGGETTI, "conf.geniocivile.avviso.template.id.variazionesoggetti"); put(StatoPraticaConstants.FINE_LAVORI, "conf.geniocivile.avviso.template.id.vidimata.finelavori"); put(StatoPraticaConstants.COLLAUDO, "conf.geniocivile.avviso.template.id.vidimata.collaudo"); put(StatoPraticaConstants.CONFORME, "conf.geniocivile.avviso.template.id.conforme"); @@ -107,18 +101,15 @@ public class AvvisoUtil { put(StatoPraticaConstants.AUTORIZZATA, "conf.geniocivile.avviso.template.id.autorizzata"); put(StatoPraticaConstants.NON_AUTORIZZATA, "conf.geniocivile.avviso.template.id.non_autorizzata"); put(StatoPraticaConstants.INTEGRAZIONE, "conf.geniocivile.avviso.template.id.integrazione"); - put(StatoPraticaConstants.PREAVVISO_CONTRARIO, - "conf.geniocivile.avviso.template.id.preavvisocontrario"); + put(StatoPraticaConstants.PREAVVISO_CONTRARIO, "conf.geniocivile.avviso.template.id.preavvisocontrario"); put(StatoPraticaConstants.NO_PARERE, "conf.geniocivile.avviso.template.id.noparere"); put(StatoPraticaConstants.RIFIUTATA, "conf.geniocivile.avviso.template.id.rifiutata"); - put(StatoPraticaConstants.SOTTOPOSTA_A_PARERE, - "conf.geniocivile.avviso.template.id.sottopostaparere"); + put(StatoPraticaConstants.SOTTOPOSTA_A_PARERE, "conf.geniocivile.avviso.template.id.sottopostaparere"); put(StatoPraticaConstants.ANNULLATA, "conf.geniocivile.avviso.template.id.annullata"); put(StatoPraticaConstants.ANNULLA_ISTANZA, "conf.geniocivile.avviso.template.id.annullaistanza"); put(StatoPraticaConstants.INTEGRAZIONE_ACCETTATA, "conf.geniocivile.avviso.template.id.integrazioneaccettata"); - put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, - "conf.geniocivile.avviso.template.id.cambioistruttore"); + put(StatoPraticaConstants.CAMBIO_ISTRUTTORE, "conf.geniocivile.avviso.template.id.cambioistruttore"); put("AS", "conf.geniocivile.avviso.template.id.doc_asseverazione"); put("AIF", "conf.geniocivile.avviso.template.id.doc_annullamento"); put("PG", "conf.geniocivile.avviso.template.id.doc_pagamento"); @@ -138,6 +129,8 @@ public class AvvisoUtil { put("DPB2", "conf.geniocivile.avviso.template.id.deposito.B2"); put("DPVNS", "conf.geniocivile.avviso.template.id.deposito.VNS"); + put("VIARCH1", "conf.geniocivile.avviso.template.id.deposito.VIARCH1"); + put("VIARCH2", "conf.geniocivile.avviso.template.id.deposito.VIARCH2"); } }; @@ -161,7 +154,32 @@ public class AvvisoUtil { return allTipoDocumentoFileTemplateProps; } + public static String getFileTemplateProp(String statoPratica, String tipoProcedura) { + + String label = statoPratica; + switch (tipoProcedura) { + // VIArch + case Constants.PROCEDURA_P3: + switch (statoPratica) { + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + label = "VIARCH1"; + break; + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + label = "VIARCH2"; + break; + } + } + switch (statoPratica) { + case StatoPraticaConstants.VIDIMATA: + label = "DP" + tipoProcedura; + } + return allTipoDocumentoFileTemplateProps.get(label); + } + public static Collection getUniqueTipoDocumentoFileTemplateProps() { + Collection result = new HashSet<>(); for (String value : allTipoDocumentoFileTemplateProps.values()) { result.add(value); @@ -172,32 +190,19 @@ public class AvvisoUtil { public static String getTipoReport(DettPratica dettPratica, String tipoDocumento) { String tipoReport = null; - try { - - boolean sorteggiata = false; - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(dettPratica.getIntPraticaId()); if (Validator.isNull(dettPratica.getTipoIntegrazione()) - || (Validator.isNotNull(dettPratica.getTipoIntegrazione()) && dettPratica - .getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE))) { - if (Validator.isNotNull(intPratica.getDtSorteggio())) { - sorteggiata = true; - } + || (Validator.isNotNull(dettPratica.getTipoIntegrazione()) && dettPratica.getTipoIntegrazione() + .equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE))) { } - - if (sorteggiata) { - tipoReport = TIPO_REPORT_SORTEGGIO; + if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE) + && (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE) + || tipoDocumento.equals(StatoPraticaConstants.INTEGRAZIONE) || tipoDocumento + .equals(StatoPraticaConstants.PREAVVISO_CONTRARIO))) { + tipoReport = TIPO_REPORT_AUTORIZZAZIONE; } else { - - if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE) - && (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE) - || tipoDocumento.equals(StatoPraticaConstants.INTEGRAZIONE) || tipoDocumento - .equals(StatoPraticaConstants.PREAVVISO_CONTRARIO))) { - tipoReport = TIPO_REPORT_AUTORIZZAZIONE; - } else { - tipoReport = TIPO_REPORT_CONTROLLO_OBBLIGATORIO; - } + tipoReport = TIPO_REPORT_CONTROLLO_OBBLIGATORIO; } } catch (SystemException | PortalException e) { _log.warn(e, e); @@ -210,4 +215,4 @@ public class AvvisoUtil { // TODO: In attesa di specifiche su stati validi return getAllTipoDocumento().containsKey(statoPratica); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java index e0afb57e..05377a24 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java @@ -17,7 +17,6 @@ import java.util.Map; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.ListUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.UniqueList; import com.liferay.portal.kernel.workflow.WorkflowConstants; @@ -139,14 +138,10 @@ public class AzioniPraticheUtil { throw new SystemException("Azione non presente: " + action); } IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - boolean isDeposito = isDeposito(intPraticaId); boolean isAutorizzazione = isAutorizzazione(intPraticaId); - String status = StringPool.BLANK; - if (intPratica.getStatus() == WorkflowConstants.STATUS_PENDING) { - if (StatoPraticaConstants.INTEGRAZIONE.equalsIgnoreCase(intPratica.getStatoPratica()) || StatoPraticaConstants.PREAVVISO_CONTRARIO.equalsIgnoreCase(intPratica .getStatoPratica())) { @@ -157,7 +152,6 @@ public class AzioniPraticheUtil { } else { throw new SystemException("Tipo pratica non esiste"); } - } else if (isDeposito) { status = STATE_SOTTOPOSTO_A_PARERE_DEPOSITO; } else if (isAutorizzazione) { @@ -186,42 +180,33 @@ public class AzioniPraticheUtil { } else if (StatoPraticaConstants.COLLAUDO_PARZIALE.equalsIgnoreCase(intPratica.getStatoPratica())) { status = STATE_COLLAUDO_PARZIALE; } - List actionList = STATE_ACTIONS_MAP.get(status); if ((actionList == null) || !actionList.contains(action)) { return false; } - if (!action.equalsIgnoreCase(ACTION_INTEGRAZIONE) && intPratica.getCollaudoTotale()) { return false; } - if (action.equalsIgnoreCase(ACTION_FL_PARZIALE) && intPratica.getFineLavoriTotale()) { return false; } - if (action.equalsIgnoreCase(ACTION_FL_TOTALE) && intPratica.getFineLavoriTotale()) { return false; } - if (action.equalsIgnoreCase(ACTION_CO_PARZIALE) && !intPratica.getFineLavoriParziale()) { return false; } - if (action.equalsIgnoreCase(ACTION_CO_TOTALE) && !intPratica.getFineLavoriTotale()) { return false; } - if (action.equalsIgnoreCase(ACTION_VARIANTE) && intPratica.getFineLavoriTotale()) { return false; } - if (action.equalsIgnoreCase(ACTION_ANNULLA) && (intPratica.getFineLavoriTotale() || intPratica.getFineLavoriParziale() || intPratica .getCollaudoParziale())) { return false; } - if (action.equalsIgnoreCase(ACTION_RIMUOVI_SOGGETTO) && intPratica.getCollaudoParziale()) { return false; } @@ -229,15 +214,14 @@ public class AzioniPraticheUtil { } public static boolean canPrintFascicolo(long intPraticaId) throws PortalException, SystemException { - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); if ((!intPratica.getStatoPratica().equals(StringPool.BLANK) || intPratica.isValidata()) && !intPratica.getNumeroProgetto().equals(StringPool.BLANK)) { return true; } else { return false; } - } public static boolean canPrintFascicoloVariante(long intPraticaId) throws PortalException, @@ -245,7 +229,6 @@ public class AzioniPraticheUtil { int nVarianti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[] { TipoIntegrazioneUtil.VARIANTE })); - if (nVarianti > 0) { return true; } else { @@ -257,16 +240,13 @@ public class AzioniPraticheUtil { SystemException { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - if (!isAllowedAction(intPraticaId, ACTION_AGGIUNGI_SOGGETTO)) { return false; } - if ((!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto) && !TipoSoggettoUtil.COLLAUDATORE .equalsIgnoreCase(tipoSoggetto)) && (intPratica.isFineLavoriTotale())) { return false; } - return true; } @@ -277,7 +257,6 @@ public class AzioniPraticheUtil { if (!isAllowedAction(intPraticaId, ACTION_RIMUOVI_SOGGETTO)) { return false; } - if ((!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto) && !TipoSoggettoUtil.COLLAUDATORE .equalsIgnoreCase(tipoSoggetto)) && (intPratica.isFineLavoriTotale() || intPratica.getCollaudoParziale())) { @@ -287,7 +266,6 @@ public class AzioniPraticheUtil { .equalsIgnoreCase(tipoSoggetto)) && intPratica.isFineLavoriParziale()) { return false; } - return true; } @@ -304,6 +282,7 @@ public class AzioniPraticheUtil { } public static boolean canAddVariazioneSoggetti(long intPraticaId) throws PortalException, SystemException { + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); if (!intPratica.getStatoPratica().equals(StringPool.BLANK) && !intPratica.getNumeroProgetto().equals(StringPool.BLANK)) { @@ -312,4 +291,4 @@ public class AzioniPraticheUtil { return false; } } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java index d44b35b9..643068f7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java @@ -18,7 +18,6 @@ import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import java.util.ArrayList; -import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -60,9 +59,8 @@ public class DelegheUtil { } if (controllo) { User user = UserLocalServiceUtil.getUser(userId); - long owner = 0l; - long intPraticaId = 0l; - + long owner = 0L; + long intPraticaId = 0L; if (DettPratica.class.getName().equals(docPratica.getClassName())) { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(docPratica.getClassPk()); intPraticaId = dettPratica.getIntPraticaId(); @@ -74,7 +72,6 @@ public class DelegheUtil { Collaudo collaudo = CollaudoServiceUtil.getCollaudo(docPratica.getClassPk()); owner = collaudo.getUserId(); } - if (user.getUserId() == owner) { controllo = true; } else if (DettPratica.class.getName().equals(docPratica.getClassName())) { @@ -96,30 +93,30 @@ public class DelegheUtil { return controllo; } - private static List findDeleghe(long intPraticaid, boolean sezioneGeologica) - throws SystemException { + private static List findDeleghe(long intPraticaid, boolean sezioneGeologica) throws SystemException { + List deleghe = new ArrayList(); deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid, - DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)); + DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null)); deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid, DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)); if (sezioneGeologica) { deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid, - DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)); + DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null)); } return deleghe; } public static boolean hasDelegaDeleteFile(long userId, long docPraticaId, boolean sezioneGeologica) throws PortalException, SystemException { + // TODO completare e controllare DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(docPraticaId); boolean controllo = ValidazionePraticaUtil.praticaIsEditable(docPratica.getClassPk()); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(docPratica.getClassPk()); - if (controllo) { if (docPratica.getUserId() == userId) { controllo = true; @@ -127,33 +124,30 @@ public class DelegheUtil { controllo = true; } else if (hasDelegaCompilazioneDomanda(userId, docPratica.getClassPk())) { controllo = true; - } else if (sezioneGeologica - && hasDelegaCompilazioneSezioneGeologica(userId, docPratica.getClassPk())) { + } else if (sezioneGeologica && hasDelegaCompilazioneSezioneGeologica(userId, docPratica.getClassPk())) { controllo = true; } } return controllo; } - public static boolean hasCambioStatoDelega(long userId, long delegaId) throws PortalException, - SystemException { + public static boolean hasCambioStatoDelega(long userId, long delegaId) throws PortalException, SystemException { + // TODO completare e controllare boolean controllo = true; Delega delega = DelegaLocalServiceUtil.getDelega(delegaId); IntPratica dettPratica = IntPraticaLocalServiceUtil.getIntPratica(delega.getIntPraticaId()); - User user = UserLocalServiceUtil.fetchUserByScreenName(delega.getCompanyId(), - delega.getCodiceFiscale()); + User user = UserLocalServiceUtil.fetchUserByScreenName(delega.getCompanyId(), delega.getCodiceFiscale()); if (dettPratica.getUserId() == userId) { controllo = true; } else if (user != null && user.getUserId() == userId) { controllo = true; } - return controllo; } - public static boolean hasCreazioneDelega(long userId, long intPraticaId) throws PortalException, - SystemException { + public static boolean hasCreazioneDelega(long userId, long intPraticaId) throws PortalException, SystemException { + // TODO completare e controllare boolean controllo = true; IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); @@ -163,22 +157,23 @@ public class DelegheUtil { return controllo; } - public static boolean hasDeleteDelega(long userId, long intPraticaId) throws PortalException, - SystemException { + public static boolean hasDeleteDelega(long userId, long intPraticaId) throws PortalException, SystemException { + // TODO completare e controllare boolean controllo = hasCreazioneDelega(userId, intPraticaId); return controllo; } - public static boolean hasAnnullaDelega(long userId, long intPraticaId) throws PortalException, - SystemException { + public static boolean hasAnnullaDelega(long userId, long intPraticaId) throws PortalException, SystemException { + // TODO completare e controllare boolean controllo = hasCreazioneDelega(userId, intPraticaId); return controllo; } - public static boolean hasDelegaCompilazioneDomanda(long userId, long dettPraticaId) - throws PortalException, SystemException { + public static boolean hasDelegaCompilazioneDomanda(long userId, long dettPraticaId) throws PortalException, + SystemException { + boolean controllo = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); if (controllo) { User user = UserLocalServiceUtil.getUser(userId); @@ -186,13 +181,8 @@ public class DelegheUtil { List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( dettPratica.getIntPraticaId(), DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (deleghe.isEmpty()) { - if (user.getUserId() == dettPratica.getUserId()) { - controllo = true; - } else { - controllo = false; - } + controllo = user.getUserId() == dettPratica.getUserId(); } else { controllo = false; for (Delega delega : deleghe) { @@ -205,15 +195,14 @@ public class DelegheUtil { return controllo; } - public static boolean canCompilaDomanda(long userId, long dettPraticaId) throws PortalException, - SystemException { + public static boolean canCompilaDomanda(long userId, long dettPraticaId) throws PortalException, SystemException { + boolean controllo = false; User user = UserLocalServiceUtil.getUser(userId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( - dettPratica.getIntPraticaId(), DelegheUtil.TIPO_COMPILAZIONE, - new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - + List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(dettPratica.getIntPraticaId(), + DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); if (deleghe.isEmpty()) { if (user.getUserId() == dettPratica.getUserId()) { controllo = true; @@ -233,6 +222,7 @@ public class DelegheUtil { public static boolean hasDelegaFirmaAllegati(long userId, long dettPraticaId) throws PortalException, SystemException { + boolean controllo = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); if (controllo) { User user = UserLocalServiceUtil.getUser(userId); @@ -240,7 +230,6 @@ public class DelegheUtil { List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( dettPratica.getIntPraticaId(), DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (deleghe.isEmpty()) { controllo = hasDelegaCompilazioneDomanda(userId, dettPraticaId); } else { @@ -257,6 +246,7 @@ public class DelegheUtil { public static Soggetto getPersonaDelegaCompilazioneDomanda(long dettPraticaId) throws SystemException, PortalException { + Soggetto soggetto = null; boolean praticaIsEditable = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); if (praticaIsEditable) { @@ -264,11 +254,10 @@ public class DelegheUtil { List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( dettPratica.getIntPraticaId(), DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (!deleghe.isEmpty()) { for (Delega delega : deleghe) { - List soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale( - dettPraticaId, delega.getCodiceFiscale()); + List soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(dettPraticaId, + delega.getCodiceFiscale()); for (Soggetto soggettoTmp : soggetti) { soggetto = soggettoTmp; } @@ -280,6 +269,7 @@ public class DelegheUtil { public static boolean hasDelegaCompilazioneSezioneGeologica(long userId, long dettPraticaId) throws PortalException, SystemException { + boolean controllo = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); if (controllo) { User user = UserLocalServiceUtil.getUser(userId); @@ -287,7 +277,6 @@ public class DelegheUtil { List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( dettPratica.getIntPraticaId(), DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (deleghe.isEmpty()) { controllo = hasDelegaCompilazioneDomanda(userId, dettPraticaId); } else { @@ -302,8 +291,9 @@ public class DelegheUtil { return controllo; } - public static Soggetto getPersonaDelegaCompilazioneSezioneGeologica(long dettPraticaId) - throws SystemException, PortalException { + public static Soggetto getPersonaDelegaCompilazioneSezioneGeologica(long dettPraticaId) throws SystemException, + PortalException { + Soggetto soggetto = null; boolean praticaIsEditable = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); if (praticaIsEditable) { @@ -311,11 +301,10 @@ public class DelegheUtil { List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( dettPratica.getIntPraticaId(), DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (!deleghe.isEmpty()) { for (Delega delega : deleghe) { - List soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale( - dettPraticaId, delega.getCodiceFiscale()); + List soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(dettPraticaId, + delega.getCodiceFiscale()); for (Soggetto soggettoTmp : soggetti) { soggetto = soggettoTmp; } @@ -330,26 +319,23 @@ public class DelegheUtil { public static List getGeologi(long intPraticaId) throws SystemException { List geologi = new ArrayList(); - List soggetti = SoggettoLocalServiceUtil.findByIntPratica(intPraticaId); for (Soggetto soggetto : soggetti) { if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.GEOLOGO) && Validator.isNull(soggetto.getSostituitoDa())) geologi.add(soggetto); } - return geologi; } - public static boolean hasDelegaPagamento(long userId, long dettPraticaId) throws PortalException, - SystemException { + public static boolean hasDelegaPagamento(long userId, long dettPraticaId) throws PortalException, SystemException { + boolean controllo = false; User user = UserLocalServiceUtil.getUser(userId); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( - dettPratica.getIntPraticaId(), DelegheUtil.TIPO_PAGAMENTO, - new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - + List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(dettPratica.getIntPraticaId(), + DelegheUtil.TIPO_PAGAMENTO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); if (deleghe.isEmpty()) { if (user.getUserId() == dettPratica.getUserId()) { controllo = true; @@ -365,43 +351,37 @@ public class DelegheUtil { } } return controllo; - } - public static boolean canDoPayment(long userId, long dettPraticaId) throws PortalException, - SystemException { + public static boolean canDoPayment(long userId, long dettPraticaId) throws PortalException, SystemException { + return canCompilaDomanda(userId, dettPraticaId) || hasDelegaPagamento(userId, dettPraticaId); } public static boolean hasDelegheCompilazioneAttive(long dettPraticaId) throws SystemException { - // return - // DelegaLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new - // String[] - // {STATO_ASSEGNATA}) > 0; + return DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(dettPraticaId, new String[] { - TIPO_COMPILAZIONE, TIPO_GEOLOGO, TIPO_FIRMA_INSERIMENTO_ALLEGATI }, - new String[] { STATO_ASSEGNATA }) > 0; + TIPO_COMPILAZIONE, TIPO_GEOLOGO, TIPO_FIRMA_INSERIMENTO_ALLEGATI }, new String[] { STATO_ASSEGNATA }) > 0; } - public static boolean hasDelegaAttiva(long userId, long dettPraticaId) throws PortalException, - SystemException { - User user = UserLocalServiceUtil.getUser(userId); - return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - user.getScreenName(), new String[] { STATO_ASSEGNATA }) > 0; - } + public static boolean hasDelegaAttiva(long userId, long dettPraticaId) throws PortalException, SystemException { - public static Map iconMapper = new HashMap(); - static { - Map aMap = new HashMap(); - aMap.put(TIPO_TOTALE, "fa-bullseye"); - aMap.put(TIPO_COMPILAZIONE, "fa-pencil"); - aMap.put(TIPO_FIRMA_INSERIMENTO_ALLEGATI, "fa-paperclip"); - aMap.put(TIPO_GEOLOGO, "fa-globe"); - aMap.put(TIPO_COLLAUDO, "fa-cogs"); - aMap.put(TIPO_PAGAMENTO, "fa-eur"); - aMap.put(TIPO_VISUALIZZAZIONE, "fa-eye"); - aMap.put(TIPO_FINE_LAVORI, "fa-window-close"); - iconMapper = Collections.unmodifiableMap(aMap); + User user = UserLocalServiceUtil.getUser(userId); + return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, user.getScreenName(), + new String[] { STATO_ASSEGNATA }) > 0; } -} + @SuppressWarnings("serial") + public static final Map iconMapper = new HashMap() { + { + put(TIPO_TOTALE, "fa-bullseye"); + put(TIPO_COMPILAZIONE, "fa-pencil"); + put(TIPO_FIRMA_INSERIMENTO_ALLEGATI, "fa-paperclip"); + put(TIPO_GEOLOGO, "fa-globe"); + put(TIPO_COLLAUDO, "fa-cogs"); + put(TIPO_PAGAMENTO, "fa-eur"); + put(TIPO_VISUALIZZAZIONE, "fa-eye"); + put(TIPO_FINE_LAVORI, "fa-window-close"); + } + }; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DocumentiPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DocumentiPraticaUtil.java index 20a6e5f6..7d028c9b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DocumentiPraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DocumentiPraticaUtil.java @@ -8,69 +8,70 @@ import java.util.ArrayList; import java.util.List; public class DocumentiPraticaUtil { - public final static String TIPOLOGIA_ALLEGATO_A01 = "A01"; - public final static String TIPOLOGIA_ALLEGATO_A02 = "A02"; - public final static String TIPOLOGIA_ALLEGATO_A03 = "A03"; - public final static String TIPOLOGIA_ALLEGATO_A04 = "A04"; - public final static String TIPOLOGIA_ALLEGATO_A05 = "A05"; - public final static String TIPOLOGIA_ALLEGATO_A08 = "A08"; - public final static String TIPOLOGIA_ALLEGATO_A09 = "A09"; - public final static String TIPOLOGIA_ALLEGATO_A10 = "A10"; - public final static String TIPOLOGIA_ALLEGATO_A11 = "A11"; - public final static String TIPOLOGIA_ALLEGATO_A12 = "A12"; - public final static String TIPOLOGIA_ALLEGATO_A13 = "A13"; - public final static String TIPOLOGIA_ALLEGATO_A15 = "A15"; - public final static String TIPOLOGIA_ALLEGATO_A16 = "A16"; - public final static String TIPOLOGIA_ALLEGATO_A17 = "A17"; - public final static String TIPOLOGIA_ALLEGATO_A18 = "A18"; - public final static String TIPOLOGIA_ALLEGATO_A19 = "A19"; - public final static String TIPOLOGIA_ALLEGATO_A20 = "A20"; - public final static String TIPOLOGIA_ALLEGATO_A21 = "A21"; - public final static String TIPOLOGIA_ALLEGATO_A22 = "A22"; - public final static String TIPOLOGIA_ALLEGATO_A23 = "A23"; - public final static String TIPOLOGIA_ALLEGATO_A24 = "A24"; - public final static String TIPOLOGIA_ALLEGATO_A25 = "A25"; - public final static String TIPOLOGIA_ALLEGATO_A26 = "A26"; - public final static String TIPOLOGIA_ALLEGATO_A27 = "A27"; - public final static String TIPOLOGIA_ALLEGATO_A28 = "A28"; - public final static String TIPOLOGIA_ALLEGATO_A29 = "A29"; - public final static String TIPOLOGIA_ALLEGATO_A30 = "A30"; - public final static String TIPOLOGIA_ALLEGATO_ALTRI = "A99"; - public final static String TIPOLOGIA_ALLEGATO_DELEGA = "A98"; - - public final static String TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI = "AGL"; - public final static String TIPOLOGIA_ALLEGATO_CERTIFICATO_CALCESTRUZZO = "ACC"; - public final static String TIPOLOGIA_ALLEGATO_CERTIFICATO_ACCIAIO = "ACA"; - public final static String TIPOLOGIA_ALLEGATO_CERTIFICATO_LEGNO = "ACL"; - public final static String TIPOLOGIA_ALLEGATO_CERTIFICATO_LATERIZIO = "ACLAT"; - public final static String TIPOLOGIA_ALLEGATO_ALTRI_FINE_LAVORI = "AFL"; - public final static String TIPOLOGIA_DOCUMENTAZIONE_ALTRA_FINE_LAVORI = "DFL"; - - public final static String TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO = "ARC"; - public final static String TIPOLOGIA_ALLEGATO_ALTRA_DOC = "AAC"; - - public final static String TIPOLOGIA_ALLEGATO_PAGAMENTO_MANUALE = "APM"; - - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO = "G01"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO = "G02"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_CPT = "G03"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH = "G04"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE = "G05"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO = "G06"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI = "G07"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO = "G08"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE = "G09"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_MASW = "G10"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR = "G11"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_DH = "G12"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI = "G13"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO = "G14"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO = "G15"; - public final static String TIPOLOGIA_ALLEGATO_GEOLOGO_VARIE = "G16"; - - public final static String TIPOLOGIA_ALLEGATO_VARIAZIONE_SOGGETTO = "VS"; - public final static String TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO = "AI"; + public static final String TIPOLOGIA_ALLEGATO_A01 = "A01"; + public static final String TIPOLOGIA_ALLEGATO_A02 = "A02"; + public static final String TIPOLOGIA_ALLEGATO_A03 = "A03"; + public static final String TIPOLOGIA_ALLEGATO_A04 = "A04"; + public static final String TIPOLOGIA_ALLEGATO_A05 = "A05"; + public static final String TIPOLOGIA_ALLEGATO_A08 = "A08"; + public static final String TIPOLOGIA_ALLEGATO_A09 = "A09"; + public static final String TIPOLOGIA_ALLEGATO_A10 = "A10"; + public static final String TIPOLOGIA_ALLEGATO_A11 = "A11"; + public static final String TIPOLOGIA_ALLEGATO_A12 = "A12"; + public static final String TIPOLOGIA_ALLEGATO_A13 = "A13"; + public static final String TIPOLOGIA_ALLEGATO_A15 = "A15"; + public static final String TIPOLOGIA_ALLEGATO_A16 = "A16"; + public static final String TIPOLOGIA_ALLEGATO_A17 = "A17"; + public static final String TIPOLOGIA_ALLEGATO_A18 = "A18"; + public static final String TIPOLOGIA_ALLEGATO_A19 = "A19"; + public static final String TIPOLOGIA_ALLEGATO_A20 = "A20"; + public static final String TIPOLOGIA_ALLEGATO_A21 = "A21"; + public static final String TIPOLOGIA_ALLEGATO_A22 = "A22"; + public static final String TIPOLOGIA_ALLEGATO_A23 = "A23"; + public static final String TIPOLOGIA_ALLEGATO_A24 = "A24"; + public static final String TIPOLOGIA_ALLEGATO_A25 = "A25"; + public static final String TIPOLOGIA_ALLEGATO_A26 = "A26"; + public static final String TIPOLOGIA_ALLEGATO_A27 = "A27"; + public static final String TIPOLOGIA_ALLEGATO_A28 = "A28"; + public static final String TIPOLOGIA_ALLEGATO_A29 = "A29"; + public static final String TIPOLOGIA_ALLEGATO_A30 = "A30"; + + public static final String TIPOLOGIA_ALLEGATO_ALTRI = "A99"; + public static final String TIPOLOGIA_ALLEGATO_DELEGA = "A98"; + + public static final String TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI = "AGL"; + public static final String TIPOLOGIA_ALLEGATO_CERTIFICATO_CALCESTRUZZO = "ACC"; + public static final String TIPOLOGIA_ALLEGATO_CERTIFICATO_ACCIAIO = "ACA"; + public static final String TIPOLOGIA_ALLEGATO_CERTIFICATO_LEGNO = "ACL"; + public static final String TIPOLOGIA_ALLEGATO_CERTIFICATO_LATERIZIO = "ACLAT"; + public static final String TIPOLOGIA_ALLEGATO_ALTRI_FINE_LAVORI = "AFL"; + public static final String TIPOLOGIA_DOCUMENTAZIONE_ALTRA_FINE_LAVORI = "DFL"; + + public static final String TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO = "ARC"; + public static final String TIPOLOGIA_ALLEGATO_ALTRA_DOC = "AAC"; + + public static final String TIPOLOGIA_ALLEGATO_PAGAMENTO_MANUALE = "APM"; + + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO = "G01"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO = "G02"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_CPT = "G03"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH = "G04"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE = "G05"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO = "G06"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI = "G07"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO = "G08"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE = "G09"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_MASW = "G10"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR = "G11"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_DH = "G12"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI = "G13"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO = "G14"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO = "G15"; + public static final String TIPOLOGIA_ALLEGATO_GEOLOGO_VARIE = "G16"; + + public static final String TIPOLOGIA_ALLEGATO_VARIAZIONE_SOGGETTO = "VS"; + public static final String TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO = "AI"; public static List getDocObbligatori() { List docObbligatori = new ArrayList(); @@ -82,239 +83,246 @@ public class DocumentiPraticaUtil { return docObbligatoriCheck; } + @SuppressWarnings("serial") public static List getDocDomanda() { - List doc = new ArrayList(); - doc.add(TIPOLOGIA_ALLEGATO_A01); - doc.add(TIPOLOGIA_ALLEGATO_A02); - doc.add(TIPOLOGIA_ALLEGATO_A03); - doc.add(TIPOLOGIA_ALLEGATO_A04); - doc.add(TIPOLOGIA_ALLEGATO_A08); - doc.add(TIPOLOGIA_ALLEGATO_A09); - doc.add(TIPOLOGIA_ALLEGATO_A10); - doc.add(TIPOLOGIA_ALLEGATO_A11); - doc.add(TIPOLOGIA_ALLEGATO_A12); - doc.add(TIPOLOGIA_ALLEGATO_A13); - doc.add(TIPOLOGIA_ALLEGATO_A15); - doc.add(TIPOLOGIA_ALLEGATO_A16); - doc.add(TIPOLOGIA_ALLEGATO_A17); - doc.add(TIPOLOGIA_ALLEGATO_A18); - doc.add(TIPOLOGIA_ALLEGATO_A19); - doc.add(TIPOLOGIA_ALLEGATO_A20); - doc.add(TIPOLOGIA_ALLEGATO_A21); - doc.add(TIPOLOGIA_ALLEGATO_A24); - doc.add(TIPOLOGIA_ALLEGATO_A25); - doc.add(TIPOLOGIA_ALLEGATO_A26); - doc.add(TIPOLOGIA_ALLEGATO_A27); - doc.add(TIPOLOGIA_ALLEGATO_A28); - doc.add(TIPOLOGIA_ALLEGATO_A29); - doc.add(TIPOLOGIA_ALLEGATO_A30); - doc.add(TIPOLOGIA_ALLEGATO_ALTRI); - doc.add(TIPOLOGIA_ALLEGATO_DELEGA); - - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_A01); + add(TIPOLOGIA_ALLEGATO_A02); + add(TIPOLOGIA_ALLEGATO_A03); + add(TIPOLOGIA_ALLEGATO_A04); + add(TIPOLOGIA_ALLEGATO_A08); + add(TIPOLOGIA_ALLEGATO_A09); + add(TIPOLOGIA_ALLEGATO_A10); + add(TIPOLOGIA_ALLEGATO_A11); + add(TIPOLOGIA_ALLEGATO_A12); + add(TIPOLOGIA_ALLEGATO_A13); + add(TIPOLOGIA_ALLEGATO_A15); + add(TIPOLOGIA_ALLEGATO_A16); + add(TIPOLOGIA_ALLEGATO_A17); + add(TIPOLOGIA_ALLEGATO_A18); + add(TIPOLOGIA_ALLEGATO_A19); + add(TIPOLOGIA_ALLEGATO_A20); + add(TIPOLOGIA_ALLEGATO_A21); + add(TIPOLOGIA_ALLEGATO_A24); + add(TIPOLOGIA_ALLEGATO_A25); + add(TIPOLOGIA_ALLEGATO_A26); + add(TIPOLOGIA_ALLEGATO_A27); + add(TIPOLOGIA_ALLEGATO_A28); + add(TIPOLOGIA_ALLEGATO_A29); + add(TIPOLOGIA_ALLEGATO_A30); + add(TIPOLOGIA_ALLEGATO_ALTRI); + add(TIPOLOGIA_ALLEGATO_DELEGA); + } + }; } public static List getDocObbligatoriDomanda(IntPratica intPratica, DettPratica dettPratica) { - List docObbligatori = new ArrayList(); + List docObbligatori = new ArrayList<>(); switch (intPratica.getTipoProcedura()) { - case Constants.PROCEDURA_P1: - docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); - break; - case Constants.PROCEDURA_P2: - docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); - break; - case Constants.PROCEDURA_P3: - /*docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A02); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A11); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A12);*/ + case Constants.PROCEDURA_P1: + docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); + break; + case Constants.PROCEDURA_P2: + docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); + break; + case Constants.PROCEDURA_P3: + docObbligatori.add(TIPOLOGIA_ALLEGATO_A24); + break; + case Constants.PROCEDURA_P4: + case Constants.PROCEDURA_P5: + case Constants.PROCEDURA_P6: + case Constants.PROCEDURA_P7: + docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); + if (dettPratica.getTcInterventoOpereEscavazione()) { + docObbligatori.add(TIPOLOGIA_ALLEGATO_A10); + } + docObbligatori.add(TIPOLOGIA_ALLEGATO_A11); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); + if (dettPratica.getTcViarch()) { docObbligatori.add(TIPOLOGIA_ALLEGATO_A24); - break; - case Constants.PROCEDURA_P4: - case Constants.PROCEDURA_P5: - case Constants.PROCEDURA_P6: - case Constants.PROCEDURA_P7: - docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A02); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); - if (dettPratica.getTcInterventoOpereEscavazione()) { - docObbligatori.add(TIPOLOGIA_ALLEGATO_A10); - } - docObbligatori.add(TIPOLOGIA_ALLEGATO_A11); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); - if (dettPratica.getTcViarch()) { - docObbligatori.add(TIPOLOGIA_ALLEGATO_A24); - } - if (dettPratica.getTcOperaA25()) { - docObbligatori.add(TIPOLOGIA_ALLEGATO_A25); - } - if (dettPratica.getNoCollaudo()) { - docObbligatori.add(TIPOLOGIA_ALLEGATO_A27); - } - break; - case Constants.PROCEDURA_P8: - docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A02); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A15); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A19); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A20); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A21); - break; - case Constants.PROCEDURA_P9: - docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A02); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A16); - if(dettPratica.getSanatoriaEdilizia326()){ - docObbligatori.add(TIPOLOGIA_ALLEGATO_A17); - } - docObbligatori.add(TIPOLOGIA_ALLEGATO_A18); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A19); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A20); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A21); - docObbligatori.add(TIPOLOGIA_ALLEGATO_A28); - break; - case Constants.PROCEDURA_P10: - docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); - break; - - + } + if (dettPratica.getTcOperaA25()) { + docObbligatori.add(TIPOLOGIA_ALLEGATO_A25); + } + if (dettPratica.getNoCollaudo()) { + docObbligatori.add(TIPOLOGIA_ALLEGATO_A27); + } + break; + case Constants.PROCEDURA_P8: + docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A15); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A19); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A20); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A21); + break; + case Constants.PROCEDURA_P9: + docObbligatori.add(TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A09); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A16); + if (dettPratica.getSanatoriaEdilizia326()) { + docObbligatori.add(TIPOLOGIA_ALLEGATO_A17); + } + docObbligatori.add(TIPOLOGIA_ALLEGATO_A18); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A19); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A20); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A21); + docObbligatori.add(TIPOLOGIA_ALLEGATO_A28); + break; + case Constants.PROCEDURA_P10: + docObbligatori.add(TIPOLOGIA_ALLEGATO_A12); + break; + } - if (dettPratica.getTcCostruzioniEsistenti() || dettPratica.getTcNuovaCostruzionePertinenza() || dettPratica.getTcManutOrdStraord()) { docObbligatori.add(TIPOLOGIA_ALLEGATO_A26); } - - if(dettPratica.getNormLavoriInProprio()) + if (dettPratica.getNormLavoriInProprio()) { docObbligatori.add(TIPOLOGIA_ALLEGATO_A29); - if(dettPratica.getNormLavoriNoDirettore()) + } + if (dettPratica.getNormLavoriNoDirettore()) { docObbligatori.add(TIPOLOGIA_ALLEGATO_A30); - + } return docObbligatori; } + @SuppressWarnings("serial") public static List getDocGeologo() { - List doc = new ArrayList(); - - doc.add(TIPOLOGIA_ALLEGATO_A05); - doc.add(TIPOLOGIA_ALLEGATO_A22); - doc.add(TIPOLOGIA_ALLEGATO_A23); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_CPT); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_MASW); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_DH); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_VARIE); - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_A05); + add(TIPOLOGIA_ALLEGATO_A22); + add(TIPOLOGIA_ALLEGATO_A23); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_CPT); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_MASW); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_DH); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_VARIE); + } + }; } + @SuppressWarnings("serial") public static List getIndaginiGeologiche() { - List doc = new ArrayList(); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_CPT); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_MASW); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_DH); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO); - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_CPT); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_MASW); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_DH); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO); + } + }; } + @SuppressWarnings("serial") public static List getDocUnivoci() { - List doc = new ArrayList(); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_CPT); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_MASW); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_DH); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO); - doc.add(TIPOLOGIA_ALLEGATO_GEOLOGO_VARIE); - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_GEOLOGO_CAROTAGGIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_LABORATORIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_CPT); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_DPSH); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_INCLINOMETRICHE); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOGNOSTICO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_AFFIORAMENTI); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_GEOMECCANICO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_RIFRAZIONE); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_MASW); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_HVSR); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_DH); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_PROSPEZIONI); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_ARCHIVIO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_ALTRO); + add(TIPOLOGIA_ALLEGATO_GEOLOGO_VARIE); + } + }; } + @SuppressWarnings("serial") public static List getDocFineLavori() { - List doc = new ArrayList(); - - doc.add(TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI); - doc.add(TIPOLOGIA_ALLEGATO_CERTIFICATO_CALCESTRUZZO); - doc.add(TIPOLOGIA_ALLEGATO_CERTIFICATO_ACCIAIO); - doc.add(TIPOLOGIA_ALLEGATO_CERTIFICATO_LEGNO); - doc.add(TIPOLOGIA_ALLEGATO_CERTIFICATO_LATERIZIO); - doc.add(TIPOLOGIA_ALLEGATO_ALTRI_FINE_LAVORI); - doc.add(TIPOLOGIA_DOCUMENTAZIONE_ALTRA_FINE_LAVORI); - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI); + add(TIPOLOGIA_ALLEGATO_CERTIFICATO_CALCESTRUZZO); + add(TIPOLOGIA_ALLEGATO_CERTIFICATO_ACCIAIO); + add(TIPOLOGIA_ALLEGATO_CERTIFICATO_LEGNO); + add(TIPOLOGIA_ALLEGATO_CERTIFICATO_LATERIZIO); + add(TIPOLOGIA_ALLEGATO_ALTRI_FINE_LAVORI); + add(TIPOLOGIA_DOCUMENTAZIONE_ALTRA_FINE_LAVORI); + } + }; } + @SuppressWarnings("serial") public static List getDocObbligatoriFineLavori() { - List doc = new ArrayList(); - - doc.add(TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI); - - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI); + } + }; } + @SuppressWarnings("serial") public static List getDocCollaudo() { - List doc = new ArrayList(); - - doc.add(TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO); - doc.add(TIPOLOGIA_ALLEGATO_ALTRA_DOC); - - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO); + add(TIPOLOGIA_ALLEGATO_ALTRA_DOC); + } + }; } + @SuppressWarnings("serial") public static List getDocObbligatoriCollaudo() { - List doc = new ArrayList(); - - doc.add(TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO); - - return doc; + return new ArrayList() { + { + add(TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO); + } + }; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java index b6dd4c3e..3518a1c8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java @@ -1,7 +1,6 @@ package it.tref.liferay.portos.bo.util; import it.tref.liferay.portos.bo.model.Avviso; -import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; @@ -42,260 +41,224 @@ import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.UserLocalServiceUtil; public class MailUtil { - - - public static void invioMailNotifica(long intPraticaId, long dettPraticaId, long classPk, String className, - String[] to, String[] cc, String[] ccn, String templateName, JSONObject templateVariables, - List allegati, ServiceContext serviceContext) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); - - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = - ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - - User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); - List titolari = - SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(), - titolaredigitaleUser.getScreenName()); - String titolareDigitale = StringPool.BLANK; - String titolareDigitaleMail = StringPool.BLANK; - String titolareDigitaleRoles = StringPool.BLANK; - if (!titolari.isEmpty()) { - titolareDigitale = titolari.get(0).getTitle(); - titolareDigitaleMail = titolari.get(0).getEmail(); - for (Soggetto titolare : titolari) { - titolareDigitaleRoles += - LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + titolare.getTipologiaSoggetto()) + " "; - } - } - - String committenteTitle = StringPool.BLANK; - String descIntervento = StringPool.BLANK; - String tempId = StringPool.BLANK; - if (Validator.isNotNull(dettPratica)) { - tempId = dettPratica.getTitle(); - descIntervento = dettPratica.getDescLongIntervento(); - - Soggetto committentePrincipale = - SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(intPratica.getIntPraticaId(), - dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE); - if (Validator.isNotNull(committentePrincipale)) { - committenteTitle = committentePrincipale.getTitle(); - } - } - - // JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); - templateVariables.put("tempId", tempId); - templateVariables.put("praticaNum", intPratica.getNumeroProgetto()); - templateVariables.put("titolareDigitale", titolareDigitale); - templateVariables.put("titolareDigitaleRoles", titolareDigitaleRoles); - templateVariables.put("titolareDigitaleMail", titolareDigitaleMail); - templateVariables.put("intervento", descIntervento); - templateVariables.put("provincia", provincia.getProvincia()); - templateVariables.put("comune", comune.getDenominazione()); - templateVariables.put("committente", committenteTitle); + private static final Log _log = LogFactoryUtil.getLog(MailUtil.class); - // Iterator iterator = templateVariablesExtra.keys(); - // while (iterator.hasNext()) { - // String key = iterator.next(); - // templateVariables.put(key, templateVariablesExtra.getString(key)); - // } + public static void invioMailNotifica(long intPraticaId, long dettPraticaId, long classPk, String className, + String[] to, String[] cc, String[] ccn, String templateName, JSONObject templateVariables, + List allegati, ServiceContext serviceContext) throws PortalException, SystemException { - MailManagerUtil.sendMailByTemplatName(className, classPk, templateName, to, cc, ccn, templateVariables, allegati, - serviceContext); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); + Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); + Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), + territorio.getCodiceProvincia()); + User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); + List titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale( + intPratica.getIntPraticaId(), titolaredigitaleUser.getScreenName()); + String titolareDigitale = StringPool.BLANK; + String titolareDigitaleMail = StringPool.BLANK; + String titolareDigitaleRoles = StringPool.BLANK; + if (!titolari.isEmpty()) { + titolareDigitale = titolari.get(0).getTitle(); + titolareDigitaleMail = titolari.get(0).getEmail(); + for (Soggetto titolare : titolari) { + titolareDigitaleRoles += LanguageUtil.get(LocaleUtil.ITALIAN, + "gc-soggetto-" + titolare.getTipologiaSoggetto()) + + StringPool.SPACE; + } + } + String committenteTitle = StringPool.BLANK; + String descIntervento = StringPool.BLANK; + String tempId = StringPool.BLANK; + if (Validator.isNotNull(dettPratica)) { + tempId = dettPratica.getTitle(); + descIntervento = dettPratica.getDescLongIntervento(); + Soggetto committentePrincipale = SoggettoLocalServiceUtil + .getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(intPratica.getIntPraticaId(), + dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE); + if (Validator.isNotNull(committentePrincipale)) { + committenteTitle = committentePrincipale.getTitle(); + } + } + templateVariables.put("tempId", tempId); + templateVariables.put("praticaNum", intPratica.getNumeroProgetto()); + templateVariables.put("titolareDigitale", titolareDigitale); + templateVariables.put("titolareDigitaleRoles", titolareDigitaleRoles); + templateVariables.put("titolareDigitaleMail", titolareDigitaleMail); + templateVariables.put("intervento", descIntervento); + templateVariables.put("provincia", provincia.getProvincia()); + templateVariables.put("comune", comune.getDenominazione()); + templateVariables.put("committente", committenteTitle); + MailManagerUtil.sendMailByTemplatName(className, classPk, templateName, to, cc, ccn, templateVariables, + allegati, serviceContext); + } - } - /** * ADT - * - * @throws SystemException - * @throws PortalException */ public static void invioNotificaAssegnazioneIstruttore(Avviso avviso) throws PortalException, SystemException { - _log.info("start invioNotificaAssegnazioneIstruttore: avviso_id = " + avviso.getAvvisoId() + " - IntPraticaId = " + avviso.getIntPraticaId()); + _log.info("start invioNotificaAssegnazioneIstruttore: avviso_id = " + avviso.getAvvisoId() + + " - IntPraticaId = " + avviso.getIntPraticaId()); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso.getClassPk()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - - if (avviso.getControlloPraticaId()==0){ - _log.info("invioNotificaAssegnazioneIstruttore - skip invio email - controllopratica non trovato per avviso_id = " + avviso.getAvvisoId()); + if (avviso.getControlloPraticaId() == 0) { + _log.info("invioNotificaAssegnazioneIstruttore - skip invio email - controllopratica non trovato per avviso_id = " + + avviso.getAvvisoId()); AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), true); return; } - - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso.getControlloPraticaId()); + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso + .getControlloPraticaId()); ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(controlloPratica.getCompanyId()); serviceContext.setScopeGroupId(controlloPratica.getGroupId()); serviceContext.setUserId(controlloPratica.getUserId()); - User tecnicoIstruttore = recuperaTecnicoIstruttore(intPratica); - ///////////////////////////////////////////////////// - if (tecnicoIstruttore==null){ - _log.info("invioNotificaAssegnazioneIstruttore - skip invio email - tecnicoIstruttore non trovato per avviso_id = " + avviso.getAvvisoId()); + if (tecnicoIstruttore == null) { + _log.info("invioNotificaAssegnazioneIstruttore - skip invio email - tecnicoIstruttore non trovato per avviso_id = " + + avviso.getAvvisoId()); AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), true); return; } - /////////////////////////////////////////////// String[] to = { tecnicoIstruttore.getEmailAddress() }; String[] cc = new String[0]; String[] ccn = new String[0]; - // recupero dati - String tipoPratica = ""; + String tipoPratica = StringPool.BLANK; if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - // ////////////////////////// + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), + territorio.getCodiceProvincia()); JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); - templateVariables.put("receiver", tecnicoIstruttore.getFullName()); templateVariables.put("tipoPratica", tipoPratica); templateVariables.put("tipoOggetto", "Assegnazione Istruttoria"); - templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(intPratica.getStatusDate() != null ? intPratica.getStatusDate() : new Date())); + templateVariables.put( + "dataInvio", + FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format( + intPratica.getStatusDate() != null ? intPratica.getStatusDate() : new Date())); templateVariables.put("praticaNum", intPratica.getNumeroProgetto()); templateVariables.put("provincia", provincia.getProvincia()); templateVariables.put("comune", comune.getDenominazione()); - String className = IntPratica.class.getName(); long classPk = intPratica.getIntPraticaId(); - - MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables, null, serviceContext); - + MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables, null, + serviceContext); AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), true); - } /** * Invio notifica istruttore dopo inserimento parere geologo - * - * @param parereGeologoId - * @param serviceContext */ public static void invioNotificaIstruttoreByGeologo(long parereGeologoId, ServiceContext serviceContext) { - _log.info("start invioNotificaIstruttoreByGeologo parereGeologoId=" + parereGeologoId); + _log.info("start invioNotificaIstruttoreByGeologo parereGeologoId=" + parereGeologoId); long intPraticaId = 0L; - try { ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId); intPraticaId = parereGeologo.getIntPraticaId(); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); User tecnicoIstruttore = recuperaTecnicoIstruttore(intPratica); _log.info("email tecnico istruttore=" + tecnicoIstruttore.getEmailAddress()); - String[] to = { tecnicoIstruttore.getEmailAddress() }; String[] cc = new String[0]; String[] ccn = new String[0]; - // recupero dati - String tipoPratica = ""; + String tipoPratica = StringPool.BLANK; if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - // ////////////////////////// + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), + territorio.getCodiceProvincia()); JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); - templateVariables.put("receiver", tecnicoIstruttore.getFullName()); templateVariables.put("tipoPratica", tipoPratica); templateVariables.put("tipoOggetto", "Risposta a Richiesta Parere Endoprocedimentale"); - templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione() : new Date())); + templateVariables + .put("dataInvio", + FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format( + parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione() + : new Date())); templateVariables.put("praticaNum", intPratica.getNumeroProgetto()); templateVariables.put("provincia", provincia.getProvincia()); templateVariables.put("comune", comune.getDenominazione()); - String className = ParereGeologo.class.getName(); long classPk = parereGeologoId; - - MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables, null, serviceContext); + MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables, + null, serviceContext); } catch (Exception e) { - _log.error("invioNotificaIstruttoreByGeologo - Errore invio mail al tecnico istruttore per pratica id=" + intPraticaId, e); - + _log.error("invioNotificaIstruttoreByGeologo - Errore invio mail al tecnico istruttore per pratica id=" + + intPraticaId, e); } - } /** * Invio Notifica Geologo - * - * @param geologoUserId - * @param intPraticaId - * @param dettPraticaId - * @param serviceContext */ public static void invioNotificaGeologo(ParereGeologo parereGeologo, ServiceContext serviceContext) { + _log.info("start invioNotificaGeologo parereGeologo=" + parereGeologo.getParereGeologoId()); try { User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parereGeologo.getIntPraticaId()); - //DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(parereGeologo.getDettPraticaId()); _log.info("email geologo = " + geologo.getEmailAddress()); - String[] to = { geologo.getEmailAddress() }; String[] cc = new String[0]; String[] ccn = new String[0]; - - // recupero dati - String tipoPratica = ""; + String tipoPratica = StringPool.BLANK; if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - // ////////////////////////// + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), + territorio.getCodiceProvincia()); JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); - templateVariables.put("receiver", geologo.getFullName()); templateVariables.put("tipoPratica", tipoPratica); templateVariables.put("tipoOggetto", "Richiesta Parere"); - templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione() : new Date())); + templateVariables + .put("dataInvio", + FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format( + parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione() + : new Date())); templateVariables.put("praticaNum", intPratica.getNumeroProgetto()); templateVariables.put("provincia", provincia.getProvincia()); templateVariables.put("comune", comune.getDenominazione()); - String className = ParereGeologo.class.getName(); long classPk = parereGeologo.getParereGeologoId(); - - MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-GEOLOGO", to, cc, ccn, templateVariables, null, serviceContext); - + MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-GEOLOGO", to, cc, ccn, + templateVariables, null, serviceContext); } catch (Exception e) { - _log.error("invioNotificaGeologo - Errore invio mail al geologo - ParereGeologoId=" + parereGeologo.getParereGeologoId(), e); + _log.error( + "invioNotificaGeologo - Errore invio mail al geologo - ParereGeologoId=" + + parereGeologo.getParereGeologoId(), e); } - } public static User recuperaTecnicoIstruttore(IntPratica intPratica) throws PortalException, SystemException { + long statusByUserId = intPratica.getStatusByUserId(); User istruttoreUser = null; if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId); - _log.info("istruttore pratica id=" + intPratica.getIntPraticaId() + ":" + istruttoreUser.getScreenName() + " " + istruttoreUser.getEmailAddress()); - + _log.info("istruttore pratica id=" + intPratica.getIntPraticaId() + StringPool.COLON + + istruttoreUser.getScreenName() + StringPool.SPACE + istruttoreUser.getEmailAddress()); } return istruttoreUser; } - - private static final Log _log = LogFactoryUtil.getLog(MailUtil.class); - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java index e09be9b4..5fe94c8a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java @@ -5,14 +5,12 @@ import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Pagamento; -import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; @@ -26,68 +24,40 @@ 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.GetterUtil; import com.liferay.portal.kernel.util.Validator; public abstract class PagamentiCommonUtil { private static Log _log = LogFactoryUtil.getLog(PagamentiCommonUtil.class); - private static Map numeroBolliIntegrazioneMap; - // private static Map numeroBolliPraticaMap; - - static { - numeroBolliIntegrazioneMap = new HashMap(); - numeroBolliIntegrazioneMap.put(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, 0); - numeroBolliIntegrazioneMap.put(TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE, 2); - numeroBolliIntegrazioneMap.put(TipoIntegrazioneUtil.FINE_LAVORI, 2); - numeroBolliIntegrazioneMap.put(TipoIntegrazioneUtil.COLLAUDO_PARZIALE, 2); - numeroBolliIntegrazioneMap.put(TipoIntegrazioneUtil.COLLAUDO, 2); - numeroBolliIntegrazioneMap.put(TipoIntegrazioneUtil.VARIANTE, 2); - numeroBolliIntegrazioneMap.put(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO, 0); - } + private static Map numeroBolliIntegrazioneMap = new HashMap() { + { + put(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, 0); + put(TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE, 2); + put(TipoIntegrazioneUtil.FINE_LAVORI, 2); + put(TipoIntegrazioneUtil.COLLAUDO_PARZIALE, 2); + put(TipoIntegrazioneUtil.COLLAUDO, 2); + put(TipoIntegrazioneUtil.VARIANTE, 2); + put(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO, 0); + } + }; public static boolean isPagamentoRidotto(long dettPraticaId) throws Exception { + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_DEPOSITO)) { - - // ADT: VARIANTI DI DEPOSITI A SORTEGGIO E SORTEGGIATI - SI APPLICA - // PAGAMENTO RIDOTTO - if (TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione())) { - Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(dettPratica - .getIntPraticaId()); - boolean checkSorteggio = sorteggio != null; - _log.info("check pagamento ridotto per Variante Deposito - dettPraticaId=" + dettPraticaId - + " -intpraticaid=" + dettPratica.getIntPraticaId() + " - (checkSorteggio)=" - + checkSorteggio + " sorteggiata in data = " - + (sorteggio != null ? sorteggio.getDtSorteggio() : null)); - if (checkSorteggio) { - _log.info("pagamento ridotto da applicare per Variante Deposito - dettPraticaId=" - + dettPraticaId + " -intpraticaid=" + dettPratica.getIntPraticaId() - + " - (checkSorteggio)=" + checkSorteggio + " sorteggiata in data = " - + (sorteggio != null ? sorteggio.getDtSorteggio() : null)); - return true; - } - } - return true; - } else if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE) - && TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione()) - && !dettPratica.getVarianteSostanziale()) { return true; } else { return false; } } - public static BigDecimal getImportoBolli(long companyId, long classPK, String className, - String tipoIntegrazione) throws PortalException, SystemException { + public static BigDecimal getImportoBolli(long companyId, long classPK, String className, String tipoIntegrazione) + throws PortalException, SystemException { try { - boolean normEsenteBollo = false; - if (DettPratica.class.getName().equals(className)) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK); normEsenteBollo = dettPratica.isNormEsenteBollo(); @@ -98,20 +68,14 @@ public abstract class PagamentiCommonUtil { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK); normEsenteBollo = collaudo.isNormEsenteBollo(); } - if (normEsenteBollo) { return new BigDecimal("0.00"); } } catch (PortalException e) { - } - int numeroBolli = getNumeroBolli(tipoIntegrazione); - - BigDecimal importoBolliBigDecimal = new BigDecimal( - ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.IMPORTO_BOLLO)); - + BigDecimal importoBolliBigDecimal = new BigDecimal(ConfigurazioneLocalServiceUtil.findByC_ChiaveString( + companyId, ConfigurazioneConstants.IMPORTO_BOLLO)); return importoBolliBigDecimal.multiply(new BigDecimal(numeroBolli)); } @@ -126,28 +90,24 @@ public abstract class PagamentiCommonUtil { } private static Integer getNumeroBolliByTipoIntegrazione(String tipoIntegrazione) { + return numeroBolliIntegrazioneMap.get(tipoIntegrazione); } public static boolean existsSpeseIstruttoria(String tipoIntegrazione) { + return !TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE.equals(tipoIntegrazione) && !TipoIntegrazioneUtil.FINE_LAVORI.equals(tipoIntegrazione) && !TipoIntegrazioneUtil.COLLAUDO_PARZIALE.equals(tipoIntegrazione) && !TipoIntegrazioneUtil.COLLAUDO.equals(tipoIntegrazione); } - public static boolean irisIsEnable(long companyId) throws SystemException { - return GetterUtil.getBoolean(ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.SCHEDULER_IRIS)); - } + public static boolean pagamentiInitialized(long classPK, String className) throws PortalException, SystemException { - public static boolean pagamentiInitialized(long classPK, String className) throws PortalException, - SystemException { boolean normEsenteSpese = false; boolean normEsenteBollo = false; - long pagamentoIdSpese = 0l; - long pagamentoIdBolli = 0l; - + long pagamentoIdSpese = 0L; + long pagamentoIdBolli = 0L; if (DettPratica.class.getName().equals(className)) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK); normEsenteSpese = dettPratica.isNormEsenteSpese(); @@ -158,16 +118,15 @@ public abstract class PagamentiCommonUtil { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK); normEsenteSpese = true; normEsenteBollo = fineLavori.isNormEsenteBollo(); - pagamentoIdSpese = 0l; + pagamentoIdSpese = 0L; pagamentoIdBolli = fineLavori.getPagamentoId(); } else if (Collaudo.class.getName().equals(className)) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK); normEsenteSpese = true; normEsenteBollo = collaudo.isNormEsenteBollo(); - pagamentoIdSpese = 0l; + pagamentoIdSpese = 0L; pagamentoIdBolli = collaudo.getPagamentoId(); } - if (!normEsenteBollo && !normEsenteSpese) { return Validator.isNotNull(pagamentoIdBolli) || Validator.isNotNull(pagamentoIdSpese); } else if (normEsenteBollo) { @@ -175,17 +134,15 @@ public abstract class PagamentiCommonUtil { } else if (normEsenteSpese) { return Validator.isNotNull(pagamentoIdBolli); } - return false; } - public static boolean pagamentiCompleted(long classPK, String className) throws PortalException, - SystemException { + public static boolean pagamentiCompleted(long classPK, String className) throws PortalException, SystemException { boolean normEsenteSpese = false; boolean normEsenteBollo = false; - long pagamentoIdSpese = 0l; - long pagamentoIdBolli = 0l; + long pagamentoIdSpese = 0L; + long pagamentoIdBolli = 0L; if (DettPratica.class.getName().equals(className)) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK); @@ -197,16 +154,15 @@ public abstract class PagamentiCommonUtil { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK); normEsenteSpese = true; normEsenteBollo = fineLavori.isNormEsenteBollo(); - pagamentoIdSpese = 0l; + pagamentoIdSpese = 0L; pagamentoIdBolli = fineLavori.getPagamentoId(); } else if (Collaudo.class.getName().equals(className)) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK); normEsenteSpese = true; normEsenteBollo = collaudo.isNormEsenteBollo(); - pagamentoIdSpese = 0l; + pagamentoIdSpese = 0L; pagamentoIdBolli = collaudo.getPagamentoId(); } - boolean completed = false; if (!normEsenteBollo && !normEsenteSpese) { if (Validator.isNull(pagamentoIdBolli) || Validator.isNull(pagamentoIdSpese)) { @@ -219,15 +175,12 @@ public abstract class PagamentiCommonUtil { } else { if (normEsenteBollo && Validator.isNotNull(pagamentoIdSpese)) { Pagamento pagamentoSpese = PagamentoLocalServiceUtil.getPagamento(pagamentoIdSpese); - completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese - .getUtilizzata()); + completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata()); } else if (normEsenteSpese && Validator.isNotNull(pagamentoIdBolli)) { Pagamento pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(pagamentoIdBolli); - completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli - .getUtilizzata()); + completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata()); } } - return completed; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PortosIndexField.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PortosIndexField.java index a346d0ce..31b31881 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PortosIndexField.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PortosIndexField.java @@ -1,6 +1,6 @@ /* * Manifattura Web Group per Regione Siciliana - * + * * Spostato all'interno del servizio per essere accessibile alle classi *AdvancedSearch */ package it.tref.liferay.portos.bo.util; @@ -12,123 +12,62 @@ public class PortosIndexField implements Serializable { private static final long serialVersionUID = -6998611490305217348L; public static final String INT_PRATICA_ID = "intPraticaId"; - public static final String CONTROLLO_PRATICA_ID = "controlloPraticaId"; - public static final String DETT_PRATICA_ID = "dettPraticaId"; - public static final String NUMERO_PROGETTO = "numeroProgetto"; - public static final String PROTOCOLLO = "protocollo"; - public static final String TIPO_PRATICA = "tipoPratica"; - public static final String DETT_PRATICA = "dettPratica"; - public static final String STATO_PRATICA = "statoPratica"; - public static final String DESC_INTERVENTO = "descIntervento"; - public static final String COMMITTENTE = "committente"; - public static final String COMMITTENTI = "committenti"; - public static final String DIRETTORE_LAVORI = "direttoreLavori"; - public static final String COLLAUDATORI = "collaudatori"; - public static final String DATA_RICHIESTA = "dataRichiesta"; - public static final String DT_PRATICA = "dtPratica"; - public static final String DATA_RICHIESTA_DA = "dataRichiestaDa"; - public static final String DATA_RICHIESTA_AL = "dataRichiestaAl"; - public static final String STATUS = "status"; - public static final String STATUS_SOSPESA = "sospesa"; - public static final String PRATICA_APERTA = "praticaAperta"; - public static final String STATUS_BY_USERID = "statusByUserId"; - public static final String STATUS_BY_USERNAME = "statusByUsername"; - public static final String STATUS_DATE = "statusDate"; - public static final String SOGGETTI_INTERCONNESSI = "soggettiInterconnessi"; - public static final String SOGGETTI_INTERESSATI = "soggettiInteressati"; - public static final String SOTTOPOSTO_A_PARERE = "sottopostoAParere"; - - public static final String LAVORAZIONE_SORTEGGIATA = "lavorazioneSorteggiata"; - public static final String FINE_LAVORI_COMPLETATI = "fineLavoriCompletati"; - public static final String COLLAUDO_COMPLETATO = "collaudoCompletato"; - public static final String FINE_LAVORI_PARZIALI = "fineLavoriParziali"; - public static final String VARIATA = "variata"; - public static final String VIDIMATA = "vidimata"; - public static final String COLLAUDO_PARZIALE = "collaudoParziale"; - public static final String ISTRUTTORE_USER_ID = "istruttoreUserId"; - public static final String ISTRUTTORE_FULL_NAME = "istruttoreFullName"; - public static final String PROPRIETARIO_DIGITALE_FULL_NAME = "proprietarioDigitaleFullName"; - public static final String ISTRUTTORE_USERNAME = "istruttoreUsername"; - public static final String PARERE_GEOLOGO = "parereGeologo"; - public static final String COMUNE_ID = "comuneId"; - public static final String COMUNE_DENOMINAZIONE = "comuneDenominazione"; - public static final String PROVINCIA_ID = "provinciaId"; - public static final String PROVINCIA_CODICE = "codiceProvincia"; - public static final String PROVINCIA_NAME = "nomeProvincia"; - public static final String DATA_INIZIO_PROCEDIMENTO = "dataInizioProcedimento"; - public static final String TASK_ASSIGNEE_USER_ID = "taskAssigneeUserId"; - public static final String TASK_ASSIGNEE_ROLE_IDS = "taskAssigneeRoleIds"; - public static final String WORKFLOW_DEFINITION_NAME = "workflowDefinitionName"; - public static final String WORKFLOW_DEFINITION_VERSION = "workflowDefinitionVersion"; - public static final String TASK_NAME = "taskName"; - public static final String WORKFLOW_STATE = "workflowState"; - public static final String NUOVA_COSTRUZIONE = "nuovaCostruzione"; - public static final String ADEGUAMENTO_SISMICO = "adeguamentoSismico"; - public static final String MIGLIORAMENTO_SISMICO = "miglioramentoSismico"; - public static final String RIPARAZIONE_INTERVENTO_LOCALE = "riparazioneInterventoLocale"; - public static final String INDIRIZZO = "indirizzo"; - public static final String LOCALITA = "localita"; - public static final String PROVINCIA = "provincia"; - public static final String COMUNE = "comune"; - public static final String TIPO_PROCEDURA = "tipoProcedura"; - public static final String UNITA_OPERATIVA = "unitaOperativa"; - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java index a1405ea2..26a64287 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java @@ -1,30 +1,27 @@ package it.tref.liferay.portos.bo.util; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import java.util.ArrayList; import java.util.LinkedHashMap; -import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; 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.language.LanguageUtil; +import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; public class PraticaUtil { - private static final Log _log = LogFactoryUtil.getLog(PraticaUtil.class); - public static String getFolderName(long dettPraticaId) { - return StringUtils.leftPad(String.valueOf(dettPraticaId), 10, '0') + StringPool.UNDERLINE - + dettPraticaId; + return StringUtils.leftPad(String.valueOf(dettPraticaId), 10, '0') + StringPool.UNDERLINE + dettPraticaId; } public static String getFolderNameDocumentazione() { @@ -32,132 +29,58 @@ public class PraticaUtil { return "Documentazione Aggiuntiva"; } - public static Map getStatusChangeMap(long dettPraticaId) throws PortalException, - SystemException { + public static Map getStatusChangeMap(long dettPraticaId) throws PortalException, SystemException { Map allMethod = new LinkedHashMap(); - allMethod.put(StatoPraticaConstants.CONFORME, new String[] { StatoPraticaConstants.NON_CONFORME }); allMethod.put(StatoPraticaConstants.NON_CONFORME, new String[] { StatoPraticaConstants.CONFORME }); allMethod.put(StatoPraticaConstants.VIDIMATA, new String[] { StatoPraticaConstants.CONFORME, StatoPraticaConstants.NON_CONFORME }); allMethod.put(StatoPraticaConstants.INTEGRAZIONE, new String[] { StatoPraticaConstants.CONFORME, StatoPraticaConstants.NON_CONFORME }); - return allMethod; } - public static List getDettPraticaHiddenFields() { - - List hiddens = new ArrayList(); - hiddens.add("uuid"); - hiddens.add("uuid_"); - hiddens.add("dettPraticaId"); - hiddens.add("companyId"); - hiddens.add("userId"); - hiddens.add("userName"); - hiddens.add("createDate"); - hiddens.add("modifiedDate"); - hiddens.add("groupId"); - hiddens.add("intPraticaId"); - hiddens.add("dataEffettuazione"); - hiddens.add("integrazione"); - hiddens.add("validata"); - hiddens.add("dtProtocollo"); - hiddens.add("protocollo"); - hiddens.add("completa"); - hiddens.add("gestita"); - hiddens.add("version"); - hiddens.add("versionata"); - hiddens.add("status"); - hiddens.add("statusByUserId"); - hiddens.add("statusByUserName"); - hiddens.add("statusDate"); - hiddens.add("statusTask"); - hiddens.add("workflowForzato"); - hiddens.add("soggettoSostituitoId"); - hiddens.add("dtInvioSignal"); - hiddens.add("oldDettPraticaId"); - hiddens.add("tipoIntegrazione"); - hiddens.add("varianteSostanziale"); - hiddens.add("varianteNumero"); - hiddens.add("variataDa"); - hiddens.add("codiceFiscaleDelegato"); - hiddens.add("codiceRuoloDelegato"); - hiddens.add("codiceFiscaleDelegatoCommittente"); - hiddens.add("codiceFiscalePrincipaleCommittente"); - hiddens.add("codiceFiscalePrincipaleCollaudatore"); - hiddens.add("codiceFiscalePrincipaleProgettista"); - hiddens.add("codiceFiscalePrincipaleDirettoreLavori"); - hiddens.add("codiceFiscalePrincipaleDitta"); - hiddens.add("codiceFiscalePrincipaleGeologo"); - hiddens.add("localizzazioneGeografica"); - hiddens.add("inizioLavoriContestualeOpera"); - hiddens.add("dataInizioLavoriOpera"); - hiddens.add("dataInizioEsecuzioneOpera"); - hiddens.add("dataFineEsecuzioneOpera"); - hiddens.add("metratura"); - hiddens.add("lavoriPubblici"); - hiddens.add("lavoriPubbliciPercentuale"); - hiddens.add("numeroCivico"); - hiddens.add("normDpr03"); - hiddens.add("normDpr04"); - hiddens.add("normDpr05"); - hiddens.add("normDm04"); - hiddens.add("normDm05"); - hiddens.add("normOrd01"); - hiddens.add("normCI01"); - hiddens.add("normLTC01"); - hiddens.add("dpdc"); - hiddens.add("deInfAltro"); - hiddens.add("dccOpereDiRinforzoAltro"); - hiddens.add("dccElemNonStrutAltro"); - hiddens.add("dccCoperturaAltro"); - hiddens.add("dccOrizzontamentiAltro"); - hiddens.add("lavoriInEconomiaCommittente"); - hiddens.add("importoSpeseIstruttoria"); - hiddens.add("codicePagamentoOneri"); - hiddens.add("causalePagamentoOneri"); - hiddens.add("mezzoPagamentoOneri"); - hiddens.add("importoBolli"); - hiddens.add("codicePagamentoBolli"); - hiddens.add("causalePagamentoBolli"); - hiddens.add("mezzoPagamentoBolli"); - hiddens.add("pagamentoIdOneri"); - hiddens.add("pagamentoIdBolli"); - hiddens.add("pagNuoveCostruzioni"); - hiddens.add("pagAdeguamentoSismico"); - hiddens.add("pagMiglioramentoSismico"); - hiddens.add("pagRiparazioneInterventoLocale"); - hiddens.add("pagNuovaCostruzione"); - hiddens.add("pagVarianti"); - hiddens.add("pagAltro"); - - return hiddens; + public static String getStatoPraticaLabel(String statoPratica, long intPraticaId) throws PortalException, + SystemException { + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + return getStatoPraticaLabel(statoPratica, intPratica.getTipoProcedura()); } - public static String getStatoPraticaLabel(String statoPratica, long intPraticaId) - throws PortalException, SystemException { + public static String getStatoPratica(String statoPratica, long intPraticaId) throws PortalException, + SystemException { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + return getStatoPratica(statoPratica, intPratica.getTipoProcedura()); + } - String statoPraticaLabel = StringPool.BLANK; + public static String getStatoPratica(String statoPratica, String tipoProcedura) throws PortalException, + SystemException { + + return LanguageUtil.get(LocaleUtil.getDefault(), getStatoPraticaLabel(statoPratica, tipoProcedura)); + } + + public static String getStatoPraticaLabel(String statoPratica, String tipoProcedura) throws PortalException, + SystemException { + if (Constants.PROCEDURA_P3.equalsIgnoreCase(tipoProcedura)) { + switch (statoPratica) { + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + return StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.VIARCH_APERTO); + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + return StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.VIARCH_CHIUSO); + } + } + String statoPraticaLabel = StringPool.BLANK; switch (statoPratica) { case StatoPraticaConstants.CONFORME: - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { - statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.CONFORME); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { - statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.AUTORIZZATA); - } + statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.AUTORIZZATA); break; case StatoPraticaConstants.NON_CONFORME: - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { - statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.NON_CONFORME); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { - statoPraticaLabel = StatoPraticaConstants - .getStatusLabel(StatoPraticaConstants.NON_AUTORIZZATA); - } + statoPraticaLabel = StatoPraticaConstants.getStatusLabel(StatoPraticaConstants.NON_AUTORIZZATA); break; - default: statoPraticaLabel = StatoPraticaConstants.getStatusLabel(statoPratica); if (Validator.isNull(statoPraticaLabel)) { @@ -165,15 +88,29 @@ public class PraticaUtil { } break; } - return statoPraticaLabel; } - public static String getStatoPraticaCode(String statoPratica, IntPratica intPratica) - throws PortalException, SystemException { + public static String getStatoPraticaCode(String statoPratica, long intPraticaId) throws PortalException, + SystemException { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + return getStatoPraticaCode(statoPratica, intPratica); + } - String statoPraticaCode = StringPool.BLANK; + public static String getStatoPraticaCode(String statoPratica, IntPratica intPratica) throws PortalException, + SystemException { + if (Constants.PROCEDURA_P3.equals(intPratica.getTipoProcedura())) { + switch (intPratica.getStatoPratica()) { + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + return StatoPraticaConstants.VIARCH_APERTO; + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + return StatoPraticaConstants.VIARCH_CHIUSO; + } + } + String statoPraticaCode = StringPool.BLANK; switch (statoPratica) { case StatoPraticaConstants.CONFORME: if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { @@ -189,19 +126,10 @@ public class PraticaUtil { statoPraticaCode = StatoPraticaConstants.NON_AUTORIZZATA; } break; - default: statoPraticaCode = statoPratica; break; } - return statoPraticaCode; } - - public static String retrievePraticaText(IntPratica intPratica, String codiceFiscale) - throws PortalException, SystemException { - - String result = "IO SONO LA TUA PRATICA: " + intPratica.getIntPraticaId(); - return result; - } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ProtocolloUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ProtocolloUtil.java index 2212338a..e3a95b41 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ProtocolloUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ProtocolloUtil.java @@ -6,6 +6,7 @@ import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.shared.protocollo.model.File; import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo; import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo.TipoProtocollo; + import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -15,6 +16,7 @@ import org.apache.commons.codec.digest.DigestUtils; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; public class ProtocolloUtil { @@ -23,20 +25,12 @@ public class ProtocolloUtil { String className, long companyId, String screenName) throws Exception { File allegato = new File(); - String doc = String.valueOf(accessoAttiId); - String sha256 = DigestUtils.sha256Hex(doc); - allegato.setFileId("0"); allegato.setFileSha256(sha256); - - // utilizzato anche come discriminate tra la 1a e la 2a chiamata - // 1a recupero numero protocollo -> 1 allegato finto - // 2a aggiorno dati del documento prodotto -> 2 allegati, il 1o - // giusto e il 2o per recupero - // num protocollo - + // utilizzato anche come discriminate tra la 1ª e la 2ª chiamata 1ª recupero numero protocollo -> 1 allegato + // finto 2ª aggiorno dati del documento prodotto -> 2 allegati, il 1º giusto e il 2º per recupero num protocollo Protocollo protocolloBean = new Protocollo(); protocolloBean.setOggetto(generaOggettoProtocollo(className, accessoAttiId)); protocolloBean.setChiuso(false); @@ -49,8 +43,8 @@ public class ProtocolloUtil { return risposta.getString("anno") + String.format("%07d", risposta.getInt("numero")); } - public static String protocollaArrivoAccessoAtti(long groupId, long companyId, String userName, - long accessoAttiId, String className) throws Exception { + public static String protocollaArrivoAccessoAtti(long groupId, long companyId, String userName, long accessoAttiId, + String className) throws Exception { List allegati = new ArrayList(); File allegato = new File(); @@ -59,7 +53,6 @@ public class ProtocolloUtil { allegato.setFileId("0"); allegato.setFileSha256(sha256); allegati.add(allegato); - Protocollo protocolloBean = new Protocollo(); protocolloBean.setOggetto(generaOggettoProtocollo(className, accessoAttiId)); protocolloBean.setChiuso(false); @@ -67,7 +60,6 @@ public class ProtocolloUtil { protocolloBean.setUtenteId(userName); protocolloBean.setUfficioId(String.valueOf(groupId)); protocolloBean.setPraticaId(String.valueOf(accessoAttiId)); - protocolloBean.setFiles(allegati); JSONObject risposta = HttpServiceUtil.postProtocolloBean(companyId, protocolloBean); return risposta.getString("anno") + String.format("%07d", risposta.getInt("numero")); @@ -83,7 +75,6 @@ public class ProtocolloUtil { } catch (SystemException | PortalException e) { e.printStackTrace(); } - - return "Oggetto: " + className + " " + classPk; + return "Oggetto: " + className + StringPool.SPACE + classPk; } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java index 20ab159f..b83f15a4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java @@ -22,7 +22,6 @@ import it.tref.liferay.portos.bo.shared.util.SezioniUtil; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.AsseverazioniUtil; import java.io.IOException; import java.util.ArrayList; @@ -67,6 +66,7 @@ public class ValidazionePraticaUtil { private static final Log _log = LogFactoryUtil.getLog(ValidazionePraticaUtil.class); public static boolean praticaIsEditable(long dettPraticaId) throws PortalException, SystemException { + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); return !intPratica.getSospesa() && !intPratica.isAnnullata() @@ -76,6 +76,7 @@ public class ValidazionePraticaUtil { } public static boolean praticaIsCompleta(long dettPraticaId) throws SystemException, PortalException { + return 0 == notCompletedDettagliPrincipali(dettPraticaId).size() + notCompletedAnagrafeSoggetti(dettPraticaId).size() + notCompletedDescrizioneEdificio(dettPraticaId).size() @@ -86,30 +87,24 @@ public class ValidazionePraticaUtil { public static boolean canEditPratica(long intPraticaId) throws PortalException, SystemException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - return (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE); } - public static boolean canDeletePratica(long intPraticaId, long userId) throws PortalException, - SystemException { + public static boolean canDeletePratica(long intPraticaId, long userId) throws PortalException, SystemException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); - return (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || (dettPratica != null && dettPratica - .getStatus() == WorkflowConstants.STATUS_DRAFT) - && Validator.isNull(dettPratica.getTipoIntegrazione())) && intPratica.getUserId() == userId; + .getStatus() == WorkflowConstants.STATUS_DRAFT) && Validator.isNull(dettPratica.getTipoIntegrazione())) + && intPratica.getUserId() == userId; } public static boolean canEditUsers(long intPraticaId) throws PortalException, SystemException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - return !intPratica.isSospesa() && !intPratica.isAnnullata() && !canEditPratica(intPraticaId) - && !praticaHasVarianteInProgress(intPraticaId) - && !praticaHasRichiestaIntegrazioneAttiva(intPraticaId) - && !praticaHasIntegrazioneInProgress(intPraticaId) - && !praticaHasFineLavoriInProgress(intPraticaId) + && !praticaHasVarianteInProgress(intPraticaId) && !praticaHasRichiestaIntegrazioneAttiva(intPraticaId) + && !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriInProgress(intPraticaId) && !praticaHasCollaudoInProgress(intPraticaId); } @@ -117,21 +112,18 @@ public class ValidazionePraticaUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - return notCompletedAnagrafeSoggetti(dettPraticaId).size() == 0 && intPratica.getStatus() != WorkflowConstants.STATUS_ANY && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE && TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); } - public static boolean canAddPagamento(long intPraticaId, long userId) throws SystemException, - PortalException { + public static boolean canAddPagamento(long intPraticaId, long userId) throws SystemException, PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); if (Validator.isNull(dettPratica)) { return false; } - return pagamentoIsEnable(dettPratica.getDettPraticaId()) && DelegheUtil.hasDelegaPagamento(userId, dettPratica.getDettPraticaId()); } @@ -139,11 +131,9 @@ public class ValidazionePraticaUtil { public static boolean praticaInProgress(long intPraticaId) throws SystemException, PortalException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( - intPraticaId, Arrays - .asList(TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, - TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); - + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, + Arrays.asList(TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, + TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); return Validator.isNotNull(dettPratica) || intPratica.getStatus() == WorkflowConstants.STATUS_ANY || intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE; } @@ -151,8 +141,8 @@ public class ValidazionePraticaUtil { public static boolean praticaCanAddVariante(long intPraticaId) throws SystemException, PortalException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( - intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE)); + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, + Arrays.asList(TipoIntegrazioneUtil.VARIANTE)); if (Validator.isNotNull(dettPratica)) { return false; } @@ -173,23 +163,21 @@ public class ValidazionePraticaUtil { return praticaHasVarianteInProgress(intPraticaId); } - public static boolean praticaHasVarianteInProgress(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaHasVarianteInProgress(long intPraticaId) throws SystemException, PortalException { - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( - intPraticaId, Arrays.asList(TipoIntegrazioneUtil.VARIANTE)); + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, + Arrays.asList(TipoIntegrazioneUtil.VARIANTE)); if (Validator.isNotNull(dettPratica)) { return true; } return false; } - public static boolean praticaCanAddIntegrazione(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaCanAddIntegrazione(long intPraticaId) throws SystemException, PortalException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( - intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, + Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); if (Validator.isNotNull(dettPratica)) { return false; } @@ -199,14 +187,12 @@ public class ValidazionePraticaUtil { .getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)); } - public static boolean praticaCanEditIntegrazione(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaCanEditIntegrazione(long intPraticaId) throws SystemException, PortalException { return praticaHasIntegrazioneInProgress(intPraticaId); } - public static boolean praticaCanDeleteIntegrazione(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaCanDeleteIntegrazione(long intPraticaId) throws SystemException, PortalException { return praticaHasIntegrazioneInProgress(intPraticaId); } @@ -219,11 +205,10 @@ public class ValidazionePraticaUtil { || intPratica.getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO); } - public static boolean praticaHasIntegrazioneInProgress(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaHasIntegrazioneInProgress(long intPraticaId) throws SystemException, PortalException { - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica( - intPraticaId, Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, + Arrays.asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); return Validator.isNotNull(dettPratica); } @@ -233,21 +218,20 @@ public class ValidazionePraticaUtil { return Validator.isNotNull(intPratica) && intPratica.isAnnullata(); } - public static boolean praticaCanAddFineLavori(long intPraticaId, String userScreenName) - throws SystemException, PortalException { + public static boolean praticaCanAddFineLavori(long intPraticaId, String userScreenName) throws SystemException, + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) - && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(intPraticaId, false, - true) == 0 && !praticaHasFineLavoriInProgress(intPraticaId) - && !praticaHasVarianteInProgress(intPraticaId) + && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(intPraticaId, false, true) == 0 + && !praticaHasFineLavoriInProgress(intPraticaId) && !praticaHasVarianteInProgress(intPraticaId) && !praticaHasIntegrazioneInProgress(intPraticaId); } - public static boolean praticaCanEditFineLavori(long intPraticaId, String userScreenName) - throws SystemException, PortalException { + public static boolean praticaCanEditFineLavori(long intPraticaId, String userScreenName) throws SystemException, + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -255,8 +239,8 @@ public class ValidazionePraticaUtil { && praticaHasFineLavoriInProgress(intPraticaId); } - public static boolean praticaCanDeleteFineLavori(long intPraticaId, String userScreenName) - throws SystemException, PortalException { + public static boolean praticaCanDeleteFineLavori(long intPraticaId, String userScreenName) throws SystemException, + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -264,20 +248,13 @@ public class ValidazionePraticaUtil { && praticaHasFineLavoriPaymentPending(intPraticaId); } - public static boolean praticaHasFineLavoriInProgress(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaHasFineLavoriInProgress(long intPraticaId) throws SystemException, PortalException { FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); return Validator.isNotNull(fineLavori); - // if (Validator.isNotNull(fineLavori) && - // Validator.isNull(fineLavori.getPagamentoId())) { - // return true; - // } - // return false; } - public static boolean praticaHasFineLavoriPaymentPending(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaHasFineLavoriPaymentPending(long intPraticaId) throws SystemException, PortalException { FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); if (Validator.isNotNull(fineLavori) && Validator.isNull(fineLavori.getPagamentoId())) { @@ -286,8 +263,8 @@ public class ValidazionePraticaUtil { return false; } - public static boolean praticaCanAddCollaudo(long intPraticaId, String userScreenName) - throws SystemException, PortalException { + public static boolean praticaCanAddCollaudo(long intPraticaId, String userScreenName) throws SystemException, + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); @@ -299,8 +276,8 @@ public class ValidazionePraticaUtil { && !praticaHasIntegrazioneInProgress(intPraticaId); } - public static boolean praticaCanEditCollaudo(long intPraticaId, String userScreenName) - throws SystemException, PortalException { + public static boolean praticaCanEditCollaudo(long intPraticaId, String userScreenName) throws SystemException, + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -308,8 +285,8 @@ public class ValidazionePraticaUtil { && praticaHasCollaudoInProgress(intPraticaId); } - public static boolean praticaCanDeleteCollaudo(long intPraticaId, String userScreenName) - throws SystemException, PortalException { + public static boolean praticaCanDeleteCollaudo(long intPraticaId, String userScreenName) throws SystemException, + PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); return Validator.isNotNull(dettPratica) @@ -317,20 +294,13 @@ public class ValidazionePraticaUtil { && praticaHasCollaudoPaymentPending(intPraticaId); } - public static boolean praticaHasCollaudoInProgress(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaHasCollaudoInProgress(long intPraticaId) throws SystemException, PortalException { Collaudo collaudo = CollaudoServiceUtil.getLastEditable(intPraticaId); return Validator.isNotNull(collaudo); - // if (Validator.isNotNull(collaudo) && - // Validator.isNull(collaudo.getPagamentoId())) { - // return true; - // } - // return false; } - public static boolean praticaHasCollaudoPaymentPending(long intPraticaId) throws SystemException, - PortalException { + public static boolean praticaHasCollaudoPaymentPending(long intPraticaId) throws SystemException, PortalException { Collaudo collaudo = CollaudoServiceUtil.getLastEditable(intPraticaId); if (Validator.isNotNull(collaudo) && Validator.isNull(collaudo.getPagamentoId())) { @@ -345,16 +315,13 @@ public class ValidazionePraticaUtil { return AsseverazioniUtil.hasAsseverazioniAttive(dettPraticaId) || (dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT && SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) > 0 - && praticaIsCompleta(dettPraticaId) && !DelegheUtil - .hasDelegheCompilazioneAttive(dettPraticaId)); + && praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)); } public static boolean pagamentoIsEnable(long dettPraticaId) throws SystemException, PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - - // && asseverazioniIsCompleted(dettPraticaId); return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId) && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) // se è un'integrazione non si paga @@ -362,8 +329,7 @@ public class ValidazionePraticaUtil { && !intPratica.getStatoPratica().equals(StatoPraticaConstants.PREAVVISO_CONTRARIO); } - public static boolean canCompleteDettPraticaEsente(long dettPraticaId) throws SystemException, - PortalException { + public static boolean canCompleteDettPraticaEsente(long dettPraticaId) throws SystemException, PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); @@ -388,8 +354,7 @@ public class ValidazionePraticaUtil { && dettPratica.getStatus() != WorkflowConstants.STATUS_APPROVED; } - public static boolean praticaCanAbort(long intPraticaId, long userId) throws SystemException, - PortalException { + public static boolean praticaCanAbort(long intPraticaId, long userId) throws SystemException, PortalException { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); @@ -400,14 +365,12 @@ public class ValidazionePraticaUtil { && !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasAnnullamento(intPraticaId); } - public static boolean pagamentoFineLavoriIsEnable(long fineLavoriId) throws SystemException, - PortalException { + public static boolean pagamentoFineLavoriIsEnable(long fineLavoriId) throws SystemException, PortalException { return isFineLavoriDatiCompleted(fineLavoriId) && isFineLavoriAllegatiCompleted(fineLavoriId); } - public static boolean canCompleteFineLavoriEsente(long fineLavoriId) throws SystemException, - PortalException { + public static boolean canCompleteFineLavoriEsente(long fineLavoriId) throws SystemException, PortalException { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); return pagamentoFineLavoriIsEnable(fineLavoriId) && fineLavori.getNormEsenteBollo(); @@ -424,17 +387,15 @@ public class ValidazionePraticaUtil { return pagamentoCollaudoIsEnable(collaudoId) && collaudo.getNormEsenteBollo(); } - public static boolean delegheCompilazioneIsEnable(long dettPraticaId) throws SystemException, - PortalException { + public static boolean delegheCompilazioneIsEnable(long dettPraticaId) throws SystemException, PortalException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); return SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) > 0 && !AsseverazioniUtil.hasAsseverazioniAttive(dettPraticaId); - // && asseverazioniIsCompleted(dettPraticaId); } - public static List notCompletedSection(String section, long dettPraticaId) - throws PortalException, SystemException { + public static List notCompletedSection(String section, long dettPraticaId) throws PortalException, + SystemException { switch (section) { case SezioniUtil.SEZIONE_DETTAGLI_PRINCIPALI: @@ -458,51 +419,45 @@ public class ValidazionePraticaUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - if (Validator.isNull(dettPratica.getPaesaggioLocale())) { - notCompleted.add("dp-paesaggio-locale"); + notCompleted.add("paesaggio-locale"); } - if (Validator.isNull(dettPratica.getLivelloDiTutela())) { - notCompleted.add("dp-livello-di-tutela"); + notCompleted.add("livello-di-tutela"); } - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10)) { if (Validator.isNull(dettPratica.getLocalizzazioneGeografica()) || dettPratica.getLocalizzazioneGeografica().startsWith("||")) { notCompleted.add("Localizzazione geografica mancante"); } } else { - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9)) { if (!dettPratica.getSanatoriaEdilizia326() && !dettPratica.getSanatoriaEdilizia47() && !dettPratica.getSanatoriaEdilizia724()) { notCompleted.add("sanatorie-obbligatorie"); } } - + if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P7)) { + if (Validator.isNull(dettPratica.getInterventoVoceP7())) { + notCompleted.add("intervento-voce-p7"); + } + } if (dettPratica.getIntervFinPub() && Validator.isNull(dettPratica.getIntervFinPubDesc())) { notCompleted.add("interv-fin-pub-desc"); } - - if (dettPratica.getTcAltriInterventi() - && Validator.isNull(dettPratica.getTcAltriInterventiDesc())) { - notCompleted.add("tc-altro-intervento"); + if (dettPratica.getTcAltriInterventi() && Validator.isNull(dettPratica.getTcAltriInterventiDesc())) { + notCompleted.add("tc-altri-interventi"); } - if (Validator.isNull(dettPratica.getDescLongIntervento())) { notCompleted.add("desc-long-intervento"); } - if (!(dettPratica.getTcNuovaCostruzione() || dettPratica.getTcNuovaCostruzionePertinenza() || dettPratica.getTcCostruzioniEsistenti() || dettPratica.getTcManutOrdStraord() || dettPratica.getTcInterventoOpereEscavazione() || dettPratica.getTcViarch() || dettPratica.getTcOperaA25() || dettPratica.getTcAltriInterventi())) { notCompleted.add("fascicolo_title_intervento"); } - if (Validator.isNull(dettPratica.getDestinazione()) && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2)) { @@ -511,37 +466,30 @@ public class ValidazionePraticaUtil { if (Validator.isNull(dettPratica.getVia())) { notCompleted.add("via"); } - if (Validator.isNull(dettPratica.getLocalizzazioneGeografica()) || dettPratica.getLocalizzazioneGeografica().startsWith("||")) { notCompleted.add("Localizzazione geografica mancante"); } - - boolean tipologiaCostruttiva = dettPratica.getDestinazione().equals("3") - || dettPratica.getTcInCA() || dettPratica.getTcInAcciaio() - || dettPratica.getTcInMuratura() || dettPratica.getTcInLegno() + boolean tipologiaCostruttiva = dettPratica.getDestinazione().equals("3") || dettPratica.getTcInCA() + || dettPratica.getTcInAcciaio() || dettPratica.getTcInMuratura() || dettPratica.getTcInLegno() || dettPratica.getTcAltro(); if (!tipologiaCostruttiva && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2)) { notCompleted.add("Tipologia Costruttiva Mancante"); } - if ((dettPratica.getLavoriPubblici() || dettPratica.getIntervFinPub()) && !(dettPratica.getTcViarch() || dettPratica.getTcOperaA25())) { notCompleted.add("Tipologia intervento Opera pubblica mancante"); } } - return notCompleted; } /** * ADT - * - * @param dettPratica - * @return */ public static boolean isCollaudatoreRequired(DettPratica dettPratica) { + return dettPratica.getNoCollaudo() || dettPratica.getCollaudoStatico(); } @@ -551,24 +499,11 @@ public class ValidazionePraticaUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); long intPraticaId = dettPratica.getIntPraticaId(); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - - /* - * boolean isRiparazioneLocale = - * dettPratica.getTcRiparazioneInterventoLocale() && - * !dettPratica.getTcNuovaCostruzione(); - */ boolean collaudatoreNotRequired = dettPratica.getNoCollaudo() || dettPratica.getCollaudoStatico(); - boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() - || dettPratica.getNormLavoriNoDirettore(); + boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() || dettPratica.getNormLavoriNoDirettore(); boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici(); - List soggettiRichiesti = new ArrayList<>(); List notCompleted = new ArrayList<>(); - - /* - * if (!SoggettiUtil.isTitolareInSoggetti(intPraticaId)) { - * notCompleted.add("gc-soggetto-00-not-present"); } - */ switch (intPratica.getTipoProcedura()) { case Constants.PROCEDURA_P1: case Constants.PROCEDURA_P2: @@ -600,7 +535,6 @@ public class ValidazionePraticaUtil { soggettiRichiesti.add(TipoSoggettoUtil.COLLAUDATORE); break; } - boolean isDelegaCommittente = SoggettiUtil.isTitolareInCommittenti(intPraticaId) || Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCommittente()); if (!isDelegaCommittente) { @@ -618,12 +552,10 @@ public class ValidazionePraticaUtil { if (!isDelegaCollaudo) { notCompleted.add("delega-collaudatore"); } - List soggettiPratica = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPraticaId); for (Soggetto soggetto : soggettiPratica) { soggettiRichiesti.remove(soggetto.getTipologiaSoggetto()); } - if (direttoreLavoriNotRequired) { soggettiRichiesti.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); } @@ -633,60 +565,62 @@ public class ValidazionePraticaUtil { if (dittaNotRequired) { soggettiRichiesti.remove(TipoSoggettoUtil.DITTA); } - for (String soggetto : soggettiRichiesti) { notCompleted.add("gc-soggetto-" + soggetto + "-principale-not-present"); } - int soggettiIncompleti = SoggettoLocalServiceUtil.countTmpNotCompletedByDettPratica(dettPraticaId); if (soggettiIncompleti > 0) { notCompleted.add("gc-soggetti-not-completed"); } - return notCompleted; - } + @SuppressWarnings("serial") + private static final List infrastrutture = new ArrayList() { + { + add("1A"); + add("2A"); + add("A4A"); + add("A4B"); + add("A4C"); + add("A4D"); + add("A4E"); + add("A4F"); + add("A5A"); + add("B4A"); + add("B4B"); + add("B4C"); + add("B5A"); + } + }; + private static List notCompletedDescrizioneEdificio(long dettPraticaId) throws PortalException, SystemException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); List notCompleted = new ArrayList<>(); - - // Se in "Dettagli/Destinazione" è selezionato "altri interventi" - // rendere non obbligatoria la compilazione della sezione - // "descrizione interventi" - - if (dettPratica.getDestinazione().equals("3") - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) + // Se in "Dettagli/Destinazione" è selezionato "altri interventi" rendere non obbligatoria la compilazione della + // sezione "descrizione interventi" + if (dettPratica.getDestinazione().equals("3") || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10)) { return notCompleted; } - - List infrastrutture = Arrays.asList("1A", "2A", "A4A", "A4B", "A4C", "A4D", "A4E", "A4F", - "A5A", "B4A", "B4B", "B4C", "B5A"); // se infrastruttura controllo solo DATI INFRASTRUTTURA - boolean infrastruttura = infrastrutture.contains(dettPratica.getDestinazione()); - if (infrastruttura) { - + if (infrastrutture.contains(dettPratica.getDestinazione())) { boolean isCompleted = dettPratica.getDeInfStradaleStrada() || dettPratica.getDeInfStradalePonte() || dettPratica.getDeInfStradaleAltro() || dettPratica.getDeInfIdraulicaLong() || dettPratica.getDeInfIdraulicaTrasv() || dettPratica.getDeInfIdraulicaAltro() || dettPratica.getDeInfOperaAccStradale() || dettPratica.getDeInfOperaAccIdraulica() || dettPratica.getDeInfOperaAccAltro() || dettPratica.getDeInfAltraInfrastruttura() || Validator.isNotNull(dettPratica.getDeInfAltroDesc()); - if (!isCompleted) { notCompleted.add("de-inf-title"); } return notCompleted; } - // se non infrastruttura controllo il resto - // if (Validator.isNull(dettPratica.getDePiani())) { - // Ma perché generare bruttezza quando non è necessario? if (Validator.isNull(dettPratica.getDePiani())) { notCompleted.add("de-piani"); } @@ -714,19 +648,11 @@ public class ValidazionePraticaUtil { if (Validator.isNull(dettPratica.getDePubblica())) { notCompleted.add("de-pubblica"); } - boolean isComponentiCostruttiveDisabled = !dettPratica.getTcNuovaCostruzione() && dettPratica.getTcRiparazioneInterventoLocale(); - if (isComponentiCostruttiveDisabled) { return notCompleted; } - - /* - * if (Validator.isNull(dettPratica.getDccFondazioni())) { - * notCompleted.add("dcc-fondazioni"); } - */ - boolean elevazioni = (Validator.isNotNull(dettPratica.getDccStruttureEleMuraturePietrame()) || Validator.isNotNull(dettPratica.getDccStruttureEleMuratureLaterizio()) || Validator.isNotNull(dettPratica.getDccStruttureEleMuratureMisto()) || Validator @@ -739,24 +665,21 @@ public class ValidazionePraticaUtil { || Validator.isNotNull(dettPratica.getDccStruttureEleMistoMuratura()) || Validator .isNotNull(dettPratica.getDccStruttureEleMistoLegno())) || Validator.isNotNull(dettPratica.getDccStruttureElePrefabbricato()) - || (Validator.isNotNull(dettPratica.getDccStruttureEleAltro()) && Validator - .isNotNull(dettPratica.getDccStruttureEleAltroDescrizione())); + || (Validator.isNotNull(dettPratica.getDccStruttureEleAltro()) && Validator.isNotNull(dettPratica + .getDccStruttureEleAltroDescrizione())); if (!elevazioni) { notCompleted.add("dcc-strutture-ele"); } - boolean orizzontamenti = Validator.isNotNull(dettPratica.getDccOrizzontamentiCAAcciaio()) || Validator.isNotNull(dettPratica.getDccOrizzontamentiLamieraGrecata()) || Validator.isNotNull(dettPratica.getDccOrizzontamentiLegno()) || Validator.isNotNull(dettPratica.getDccOrizzontamentiLegnoCA()) || Validator.isNotNull(dettPratica.getDccOrizzontamentiVolte()) - || (Validator.isNotNull(dettPratica.getDccOrizzontamentiAltro()) && Validator - .isNotNull(dettPratica.getDccOrizzontamentiAltroDescrizione())); - + || (Validator.isNotNull(dettPratica.getDccOrizzontamentiAltro()) && Validator.isNotNull(dettPratica + .getDccOrizzontamentiAltroDescrizione())); if (!orizzontamenti) { notCompleted.add("dcc-orizzontamenti"); } - boolean coperture = Validator.isNotNull(dettPratica.getDccCopertura()) || Validator.isNotNull(dettPratica.getDccCoperturaCAAcciaio()) || Validator.isNotNull(dettPratica.getDccCoperturaLamieraGrecata()) @@ -765,24 +688,20 @@ public class ValidazionePraticaUtil { || Validator.isNotNull(dettPratica.getDccCoperturaLegnoCA()) || Validator.isNotNull(dettPratica.getDccCoperturaPannelli()) || Validator.isNotNull(dettPratica.getDccCoperturaPVCTelonati()) - || (Validator.isNotNull(dettPratica.getDccCoperturaAltro()) && Validator - .isNotNull(dettPratica.getDccCoperturaAltroDesrizione())); - + || (Validator.isNotNull(dettPratica.getDccCoperturaAltro()) && Validator.isNotNull(dettPratica + .getDccCoperturaAltroDesrizione())); if (!coperture) { notCompleted.add("dcc-copertura"); } - boolean non_strutturali = Validator.isNotNull(dettPratica.getDccElemNonStrutLaterizio()) || Validator.isNotNull(dettPratica.getDccElemNonStrutCalcestruzzo()) || Validator.isNotNull(dettPratica.getDccElemNonStrutCartongesso()) || Validator.isNotNull(dettPratica.getDccElemNonStrutLegno()) - || (Validator.isNotNull(dettPratica.getDccElemNonStrutAltro()) && Validator - .isNotNull(dettPratica.getDccElemNonStrutAltroDescrizione())); - + || (Validator.isNotNull(dettPratica.getDccElemNonStrutAltro()) && Validator.isNotNull(dettPratica + .getDccElemNonStrutAltroDescrizione())); if (!non_strutturali) { notCompleted.add("dcc-non_strutturali"); } - boolean rinforzo = Validator.isNotNull(dettPratica.getDccOpereDiRinforzoInsCatene()) || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoInsCordoli()) || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoIniArmate()) @@ -791,88 +710,86 @@ public class ValidazionePraticaUtil { || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoRinforziFRP()) || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoTelaiECerchiature()) || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoInsRompitratta()) - || (Validator.isNotNull(dettPratica.getDccOpereDiRinforzoAltro()) && Validator - .isNotNull(dettPratica.getDccOpereDiRinforzoAltroDescrizione())); - + || (Validator.isNotNull(dettPratica.getDccOpereDiRinforzoAltro()) && Validator.isNotNull(dettPratica + .getDccOpereDiRinforzoAltroDescrizione())); if (!rinforzo) { notCompleted.add("dcc-opere-di-rinforzo"); } - return notCompleted; } - public static List notCompletedSezioneGeologica(long dettPraticaId) throws PortalException, - SystemException { + public static List notCompletedSezioneGeologica(long dettPraticaId) throws PortalException, SystemException { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); - + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(dettPratica.getIntPraticaId()); + boolean geologo = false; + for (Soggetto soggetto : soggetti) { + if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.GEOLOGO)) { + geologo = true; + break; + } + } // Se check NormArt3com3 sez. geologica non obbligatoria - if (dettPratica.getNormArt3com3()) { + if (dettPratica.getNormArt3com3() && !geologo) { return Collections.emptyList(); } - notCompleted.addAll(notCompletedDatiSezionGeologica(dettPraticaId)); - String pericolositaGeomorfologicaPai = dettPratica.getGeoPericolositaGeomorfica(); String rischioGeomorfologicoPai = dettPratica.getGeoRischioGeomorfologicoPai(); String pericolositaIdraulicaPai = dettPratica.getGeoPericolositaIdraulicaPai(); String rischioIdraulicoPai = dettPratica.getGeoRischioIdraulicoPai(); - - if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), - "A22", QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { + if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), "A22", + QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { if (Validator.isNotNull(pericolositaGeomorfologicaPai) && pericolositaGeomorfologicaPai.equalsIgnoreCase("NA") - && Validator.isNotNull(rischioGeomorfologicoPai) - && rischioGeomorfologicoPai.equalsIgnoreCase("NA") - && Validator.isNotNull(pericolositaIdraulicaPai) - && pericolositaIdraulicaPai.equalsIgnoreCase("NA") + && Validator.isNotNull(rischioGeomorfologicoPai) && rischioGeomorfologicoPai.equalsIgnoreCase("NA") + && Validator.isNotNull(pericolositaIdraulicaPai) && pericolositaIdraulicaPai.equalsIgnoreCase("NA") && Validator.isNotNull(rischioIdraulicoPai) && rischioIdraulicoPai.equalsIgnoreCase("NA")) { notCompleted.add("Nessun allegato per " + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A22")); } } - if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), - "A23", QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { - if ((Validator.isNotNull(pericolositaGeomorfologicaPai) && !pericolositaGeomorfologicaPai + if ((Validator.isNotNull(pericolositaGeomorfologicaPai) && !pericolositaGeomorfologicaPai + .equalsIgnoreCase("NA")) + || (Validator.isNotNull(rischioGeomorfologicoPai) && !rischioGeomorfologicoPai .equalsIgnoreCase("NA")) - || (Validator.isNotNull(rischioGeomorfologicoPai) && !rischioGeomorfologicoPai - .equalsIgnoreCase("NA")) - || (Validator.isNotNull(pericolositaIdraulicaPai) && !pericolositaIdraulicaPai - .equalsIgnoreCase("NA")) - || (Validator.isNotNull(rischioIdraulicoPai) && !rischioIdraulicoPai - .equalsIgnoreCase("NA"))) { - notCompleted.add("Nessun allegato per " - + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A23")); + || (Validator.isNotNull(pericolositaIdraulicaPai) && !pericolositaIdraulicaPai + .equalsIgnoreCase("NA")) + || (Validator.isNotNull(rischioIdraulicoPai) && !rischioIdraulicoPai.equalsIgnoreCase("NA"))) { + + if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), "A23", + QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { + notCompleted.add("Nessun allegato per " + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A23")); + } + + if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), "A22", + QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { + notCompleted.add("Nessun allegato per " + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A22")); } } - int indaginiGeologiche = DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologie( - dettPratica.getIntPraticaId(), - DocumentiPraticaUtil.getIndaginiGeologiche().toArray(new String[0])); + /*int indaginiGeologiche = DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologie( + dettPratica.getIntPraticaId(), DocumentiPraticaUtil.getIndaginiGeologiche().toArray(new String[0])); if (indaginiGeologiche == 0) { notCompleted.add("Indagini Geologiche non presenti"); - } - + }*/ IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - notCompleted.addAll(firmeMancanti(intPratica, dettPratica, DocumentiPraticaUtil.getDocGeologo())); - return notCompleted; } - private static List firmeMancanti(IntPratica intPratica, DettPratica dettPratica, - List tipologie) throws SystemException, PortalException { - List notCompleted = new ArrayList<>(); + private static List firmeMancanti(IntPratica intPratica, DettPratica dettPratica, List tipologie) + throws SystemException, PortalException { - List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPratica - .getIntPraticaId()); + List notCompleted = new ArrayList<>(); + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPratica.getIntPraticaId()); String cfTitolare = intPratica.getUserName(); long intPraticaId = intPratica.getIntPraticaId(); for (String tipologia : tipologie) { - List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia( - intPraticaId, tipologia, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, + tipologia, QueryUtil.ALL_POS, QueryUtil.ALL_POS); Set firmeMancanti = new HashSet<>(); for (DocPratica doc : docs) { List firmeObbligatorie = getFirmeObbligatorie(tipologia, dettPratica); @@ -893,17 +810,13 @@ public class ValidazionePraticaUtil { if (!firmeMancanti.isEmpty()) { List tipologieMancanti = new ArrayList<>(); for (String firmaMancante : firmeMancanti) { - tipologieMancanti.add(LanguageUtil.get(Locale.getDefault(), "gc-soggetto-" - + firmaMancante)); + tipologieMancanti.add(LanguageUtil.get(Locale.getDefault(), "gc-soggetto-" + firmaMancante)); } - notCompleted.add(LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" - + tipologia) - + ", firme mancanti: " + StringUtils.join(tipologieMancanti, ", ")); + notCompleted.add(LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" + tipologia) + + ", firme mancanti: " + StringUtils.join(tipologieMancanti, StringPool.COMMA_AND_SPACE)); } } - return notCompleted; - } private static List notCompletedDatiSezionGeologica(long dettPraticaId) throws PortalException, @@ -911,93 +824,49 @@ public class ValidazionePraticaUtil { DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); List notCompleted = new ArrayList<>(); - - /* - * if (Validator.isNull(dettPratica.getGeoDtRelazione())) { - * notCompleted.add("geo-dt-relazione"); } if - * (Validator.isNull(dettPratica.getGeoClasseIndagine())) { - * notCompleted.add("geo-classe-indagine"); } if - * (Validator.isNull(dettPratica.getGeoOperaRilevante())) { - * notCompleted.add("geo-opera-rilevante"); } if - * (Validator.isNull(dettPratica.getGeoCategoriaSottosuolo())) { - * notCompleted.add("geo-categoria-sottosuolo"); } if - * (Validator.isNull(dettPratica.getGeoCategoriaTopografica())) { - * notCompleted.add("geo-categoria-topografica"); } if - * (Validator.isNull(dettPratica.getGeoOpereDiSostegno())) { - * notCompleted.add("geo-opere-di-sostegno"); } if - * (Validator.isNull(dettPratica.getGeoConsolidamento())) { - * notCompleted.add("geo-consolidamento"); } if - * (Validator.isNull(dettPratica.getGeoOpereInSotterranea())) { - * notCompleted.add("geo-opere-in-sotterranea"); } if - * (Validator.isNull(dettPratica.getGeoPericolositaGeologica())) { - * notCompleted.add("geo-pericolosita-geologica"); } if - * (Validator.isNull(dettPratica.getGeoPericolositaGeomorfica())) { - * notCompleted.add("geo-pericolosita-geomorfica"); } if - * (Validator.isNull(dettPratica.getGeoRischioGeomorfologicoPai())) { - * notCompleted.add("geo-rischio-geomorfologico"); } - */ + if (Validator.isNull(dettPratica.getGeoRischioGeomorfologicoPai())) { + notCompleted.add("geo-rischio-geomorfologico-pai"); + } if (Validator.isNull(dettPratica.getGeoPericolositaIdraulicaPai())) { notCompleted.add("geo-pericolosita-idraulica-pai"); } if (Validator.isNull(dettPratica.getGeoRischioIdraulicoPai())) { notCompleted.add("geo-rischio-idraulico-pai"); } - /* - * if (Validator.isNull(dettPratica.getGeoPericolositaSismica())) { - * notCompleted.add("geo-pericolosita-sismica"); } if - * (Validator.isNull(dettPratica.getGeoFattibilitaSismica())) { - * notCompleted.add("geo-fattibilita-sismica"); } if - * (Validator.isNull(dettPratica.getGeoPericolositaIdraulica())) { - * notCompleted.add("geo-pericolosita-idraulica"); } if - * (Validator.isNull(dettPratica.getGeoFattibilitaIdraulica())) { - * notCompleted.add("geo-fattibilita-idraulica"); } if - * (Validator.isNull(dettPratica.getGeoFattibilitaGeologica())) { - * notCompleted.add("geo-fattibilita-geologica"); } if - * (Validator.isNull(dettPratica.getGeoPresenzaPrescrizioni())) { - * notCompleted.add("geo-presenza-prescrizioni"); } if - * (Validator.isNull(dettPratica.getGeoEvidenzeGeologiche())) { - * notCompleted.add("geo-evidenze-geologiche-short"); } if - * (Validator.isNull(dettPratica.getGeoEvidenzeGeomorfiche())) { - * notCompleted.add("geo-evidenze-geomorfiche-short"); } - */ - + if (Validator.isNull(dettPratica.getGeoPericolositaGeomorfica())) { + notCompleted.add("geo-pericolosita-geomorfica"); + } return notCompleted; } - private static List notCompletedSezioneAllegati(long dettPraticaId) throws PortalException, - SystemException { + private static List notCompletedSezioneAllegati(long dettPraticaId) throws PortalException, SystemException { + List notCompleted = new ArrayList<>(); DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); long intPraticaId = dettPratica.getIntPraticaId(); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - List docObbligatori = DocumentiPraticaUtil.getDocObbligatoriDomanda(intPratica, dettPratica); - for (String docObbligatorio : docObbligatori) { - List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia( - intPraticaId, docObbligatorio, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, + docObbligatorio, QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (docs.isEmpty()) { notCompleted.add("Nessun allegato per " - + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" - + docObbligatorio)); + + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" + docObbligatorio)); } } - notCompleted.addAll(firmeMancanti(intPratica, dettPratica, DocumentiPraticaUtil.getDocDomanda())); - return notCompleted; } - private static List getSignaturePerSubject(long intPraticaId, List signatures, - String tipoSoggetto, long docPraticaClassPk) throws SystemException { + private static List getSignaturePerSubject(long intPraticaId, List signatures, String tipoSoggetto, + long docPraticaClassPk) throws SystemException { List signaturesPerSubject = new ArrayList(); for (String sign : signatures) { - List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale( - intPraticaId, sign, docPraticaClassPk); + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, + sign, docPraticaClassPk); for (Soggetto soggetto : soggetti) { - if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto) - && !signaturesPerSubject.contains(sign)) { + if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto) && !signaturesPerSubject.contains(sign)) { signaturesPerSubject.add(sign); } } @@ -1009,11 +878,10 @@ public class ValidazionePraticaUtil { List tipologiaSoggetti, DocPratica docPratica) throws SystemException { for (String tipoSoggetto : tipologiaSoggetti) { - boolean isRequired = AsseverazioniUtil - .isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); + boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); if (isRequired) { - List signaturesPerSubject = getSignaturePerSubject(intPraticaId, signatures, - tipoSoggetto, docPratica.getClassPk()); + List signaturesPerSubject = getSignaturePerSubject(intPraticaId, signatures, tipoSoggetto, + docPratica.getClassPk()); if (signaturesPerSubject.isEmpty()) { return false; } @@ -1022,77 +890,54 @@ public class ValidazionePraticaUtil { return true; } - public static boolean isFineLavoriDatiCompleted(long fineLavoriId) throws PortalException, - SystemException { + public static boolean isFineLavoriDatiCompleted(long fineLavoriId) throws PortalException, SystemException { + return notCompletedFineLavoriDati(fineLavoriId).isEmpty(); } - public static List notCompletedFineLavoriDati(long fineLavoriId) throws PortalException, - SystemException { + public static List notCompletedFineLavoriDati(long fineLavoriId) throws PortalException, SystemException { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); List notCompleted = new ArrayList<>(); - if (Validator.isNull(fineLavori.getParziale())) { notCompleted.add("fl-tipo"); } if (fineLavori.getParziale() - && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(fineLavori.getIntPraticaId(), - false) > 0) { + && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(fineLavori.getIntPraticaId(), false) > 0) { notCompleted.add("fl-parziale-not-possibile"); } if (Validator.isNull(fineLavori.getDataFineLavori())) { notCompleted.add("fl-data-fine"); } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(fineLavori.getIntPraticaId()); if (Validator.isNull(fineLavori.getDataFineLavori()) || fineLavori.getDataFineLavori().before(intPratica.getDtPratica())) { notCompleted.add("fl-data-fine-early"); } - if (Validator.isNull(fineLavori.getCodiceFiscaleDelegato())) { notCompleted.add("fl-dir-lav"); } - return notCompleted; } - private static boolean isFineLavoriAllegatiCompleted(long fineLavoriId) throws PortalException, - SystemException { + private static boolean isFineLavoriAllegatiCompleted(long fineLavoriId) throws PortalException, SystemException { FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); long intPraticaId = fineLavori.getIntPraticaId(); - - List tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriFineLavori(); - List tipologiaSoggetti = TipoSoggettoUtil.getAllSubjects(); - - for (String codiceDoc : tipologiaAllegati) { - - // List docs = - // DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, - // codiceDoc, QueryUtil.ALL_POS, - // QueryUtil.ALL_POS); - // ADT BUG FE ID = 13 - List docs = DocPraticaLocalServiceUtil.findByClassPk_Tipologia(fineLavoriId, - codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + for (String codiceDoc : DocumentiPraticaUtil.getDocObbligatoriFineLavori()) { + List docs = DocPraticaLocalServiceUtil.findByClassPk_Tipologia(fineLavoriId, codiceDoc, + QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (docs.isEmpty()) { - return false; // Ci dev'essere almeno un allegato per tipo - // obbligatorio + return false; // Ci dev'essere almeno un allegato per tipo obbligatorio } for (DocPratica doc : docs) { - FirmeBean firme = FirmeUtil.deserialize(doc.getJsonFirmatari()); List signatures = firme.allSignatures(); - - if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, tipologiaSoggetti, doc)) { - return false; // Return false if is required per this - // subjectType but it is not present + if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, TipoSoggettoUtil.getAllSubjects(), doc)) { + return false; // Return false if is required per this subjectType but it is not present } } - } - return true; } @@ -1101,12 +946,10 @@ public class ValidazionePraticaUtil { return notCompletedCollaudoDati(collaudoId).isEmpty(); } - public static List notCompletedCollaudoDati(long collaudoId) throws PortalException, - SystemException { + public static List notCompletedCollaudoDati(long collaudoId) throws PortalException, SystemException { Collaudo collaudo = CollaudoServiceUtil.getCollaudo(collaudoId); List notCompleted = new ArrayList<>(); - if (Validator.isNull(collaudo.getParziale())) { notCompleted.add("col-tipo"); } @@ -1115,8 +958,8 @@ public class ValidazionePraticaUtil { notCompleted.add("col-parziale-not-possibile"); } if (!collaudo.getParziale() - && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata( - collaudo.getIntPraticaId(), false, true) == 0) { + && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(collaudo.getIntPraticaId(), + false, true) == 0) { notCompleted.add("col-totale-not-possibile"); } if (Validator.isNull(collaudo.getDataCollaudo())) { @@ -1125,40 +968,28 @@ public class ValidazionePraticaUtil { if (Validator.isNull(collaudo.getCodiceFiscaleDelegato())) { notCompleted.add("col-collaudatore"); } - return notCompleted; } - private static boolean isCollaudoAllegatiCompleted(long collaudoId) throws PortalException, - SystemException { + private static boolean isCollaudoAllegatiCompleted(long collaudoId) throws PortalException, SystemException { Collaudo collaudo = CollaudoServiceUtil.getCollaudo(collaudoId); long intPraticaId = collaudo.getIntPraticaId(); - - List tipologiaAllegati = DocumentiPraticaUtil.getDocObbligatoriCollaudo(); - List tipologiaSoggetti = TipoSoggettoUtil.getAllSubjects(); - - for (String codiceDoc : tipologiaAllegati) { - - List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia( - intPraticaId, codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + for (String codiceDoc : DocumentiPraticaUtil.getDocObbligatoriCollaudo()) { + List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, + codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (docs.isEmpty()) { - return false; // Ci dev'essere almeno un allegato per tipo - // obbligatorio + return false; // Ci dev'essere almeno un allegato per tipo obbligatorio } for (DocPratica doc : docs) { - FirmeBean firme = FirmeUtil.deserialize(doc.getJsonFirmatari()); List signatures = firme.allSignatures(); - if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, tipologiaSoggetti, doc)) { - return false; // Return false if is required per this - // subjectType but it is not present + if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, TipoSoggettoUtil.getAllSubjects(), doc)) { + return false; // Return false if is required per this subjectType but it is not present } } - } - return true; } @@ -1166,13 +997,11 @@ public class ValidazionePraticaUtil { String codiceFiscaleOwner, String jsonFirmatariApplicativo) throws Exception { List signatures = gatherSignatures(fileName, fileBytes, companyId, jsonFirmatariApplicativo); - for (String cfSoggetto : signatures) { if (cfSoggetto.equalsIgnoreCase(codiceFiscaleOwner)) { return true; } } - return false; } @@ -1180,7 +1009,6 @@ public class ValidazionePraticaUtil { List cfSoggetti, String jsonFirmatariApplicativo) throws Exception { List signatures = gatherSignatures(fileName, fileBytes, companyId, jsonFirmatariApplicativo); - for (String cfSign : signatures) { for (String cfSoggetto : cfSoggetti) { if (cfSign.equalsIgnoreCase(cfSoggetto)) { @@ -1188,34 +1016,31 @@ public class ValidazionePraticaUtil { } } } - return false; } - public static boolean isAllegatoSignedBySubjectsAndPerson(String fileName, byte[] fileBytes, - long companyId, List cfSoggetti, String codiceFiscalePersona, - String jsonFirmatariApplicativo) throws Exception { + public static boolean isAllegatoSignedBySubjectsAndPerson(String fileName, byte[] fileBytes, long companyId, + List cfSoggetti, String codiceFiscalePersona, String jsonFirmatariApplicativo) throws Exception { List signatures = gatherSignatures(fileName, fileBytes, companyId, jsonFirmatariApplicativo); - boolean isSignedPersona = false; boolean isSignedSoggetti = false; - for (String cfPersona : signatures) { if (cfPersona.equalsIgnoreCase(codiceFiscalePersona)) { isSignedPersona = true; break; } } - for (String cfSoggetto : cfSoggetti) { - for (String cfSign : signatures) { - if (cfSoggetto.equalsIgnoreCase(cfSign)) { - isSignedSoggetti = true; - break; + if (isSignedPersona) { + for (String cfSoggetto : cfSoggetti) { + for (String cfSign : signatures) { + if (cfSoggetto.equalsIgnoreCase(cfSign)) { + isSignedSoggetti = true; + break; + } } } } - return isSignedPersona && isSignedSoggetti; } @@ -1227,20 +1052,17 @@ public class ValidazionePraticaUtil { FirmeBean firme = FirmeUtil.deserialize(jsonFirmatariApplicativo); signatures = firme.allSignatures(); } - if (Validator.isNotNull(fileBytes)) { signatures.addAll(extractSigns(companyId, fileName, fileBytes)); } - return signatures; } - private static Set extractSigns(long companyId, String fileName, byte[] fileBytes) - throws IOException, PortalException, SystemException { + private static Set extractSigns(long companyId, String fileName, byte[] fileBytes) throws IOException, + PortalException, SystemException { Company company = CompanyLocalServiceUtil.getCompany(companyId); String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", false); - HttpPost request = new HttpPost(urlPdfExtractor); MultipartEntityBuilder builder = MultipartEntityBuilder.create(); builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); @@ -1251,7 +1073,6 @@ public class ValidazionePraticaUtil { int statusCode = httpResponse.getStatusLine().getStatusCode(); String responseBody = EntityUtils.toString(httpResponse.getEntity(), StringPool.UTF8); client.close(); - if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) { JSONArray arrayFirme = JSONFactoryUtil.createJSONObject(responseBody).getJSONArray("cf"); Set cf = new HashSet<>(); @@ -1259,38 +1080,32 @@ public class ValidazionePraticaUtil { cf.add(arrayFirme.getString(i)); } return cf; - } else { _log.warn("P7M REST extractor error. Response: " + new String(responseBody)); } - return Collections.emptySet(); } private static List getFirmeObbligatorie(String tipologiaAllegato, DettPratica dettPratica) throws PortalException, SystemException { + List firme = new ArrayList<>(); if (firmeObbligatorie.containsKey(tipologiaAllegato)) { firme.addAll(firmeObbligatorie.get(tipologiaAllegato)); } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P8) || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9) || dettPratica.getNormLavoriNoDirettore()) { firme.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); } - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9)) { firme.remove(TipoSoggettoUtil.PROGETTISTA); } - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10)) { firme.remove(TipoSoggettoUtil.PROGETTISTA); firme.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); } - return firme; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowConstants.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowConstants.java index 2ef7f18a..4fef28fa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowConstants.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowConstants.java @@ -2,30 +2,26 @@ package it.tref.liferay.portos.bo.util; public class WorkflowConstants extends com.liferay.portal.kernel.workflow.WorkflowConstants { - public static final String CONTEXT_WORKFLOW_TASK_FORM_PARAMETERS = "CONTEXT_WORKFLOW_TASK_FORM_PARAMETERS"; - public static final String CONTEXT_WORKFLOW_PARAMETERS = "CONTEXT_WORKFLOW_PARAMETERS"; + public static final String CONTEXT_WORKFLOW_TASK_FORM_PARAMETERS = "CONTEXT_WORKFLOW_TASK_FORM_PARAMETERS"; + public static final String CONTEXT_WORKFLOW_PARAMETERS = "CONTEXT_WORKFLOW_PARAMETERS"; - public static final String WORKFLOW_PARAM_NAME_ESITO_ISTRUTTORIA = "esito"; - public static final String WORKFLOW_PARAM_NAME_DELEGATO = "delegato"; - public static final String WORKFLOW_PARAM_NAME_DELEGATO_OUT = "delegatoOut"; - public static final String WORKFLOW_PARAM_NAME_AVVISO = "avviso"; - public static final String WORKFLOW_PARAM_NAME_AVVISO_FIRMA = "avvisoFirma"; - public static final String WORKFLOW_PARAM_NAME_PROVINCIA = "provincia"; - public static final String WORKFLOW_PARAM_NAME_STATUS_TASK = "statusTask"; + public static final String WORKFLOW_PARAM_NAME_ESITO_ISTRUTTORIA = "esito"; + public static final String WORKFLOW_PARAM_NAME_DELEGATO = "delegato"; + public static final String WORKFLOW_PARAM_NAME_DELEGATO_OUT = "delegatoOut"; + public static final String WORKFLOW_PARAM_NAME_AVVISO = "avviso"; + public static final String WORKFLOW_PARAM_NAME_AVVISO_FIRMA = "avvisoFirma"; + public static final String WORKFLOW_PARAM_NAME_PROVINCIA = "provincia"; + public static final String WORKFLOW_PARAM_NAME_STATUS_TASK = "statusTask"; - public static final String WORKFLOW_SIGNAL_INVIO = "signal_ff"; - public static final String WORKFLOW_SIGNAL_ASSEGNAZIONE = "signal_ap"; - public static final String WORKFLOW_SIGNAL_INTEGRAZIONE = "signal_cittadino"; + public static final String WORKFLOW_SIGNAL_INVIO = "signal_ff"; + public static final String WORKFLOW_SIGNAL_ASSEGNAZIONE = "signal_ap"; + public static final String WORKFLOW_SIGNAL_INTEGRAZIONE = "signal_cittadino"; - public static final String WORKFLOW_PARAM_DEFAULT_VALUE_AVVISO = "00"; + public static final String WORKFLOW_PARAM_DEFAULT_VALUE_AVVISO = "00"; - public static final int STATUS_TASK_APPROVAZIONE_ESITO_ISTRUTTORIA = 1; - public static final int STATUS_TASK_FIRMA_ESITO_ISTRUTTORIA = 2; + public static final String WORKFLOW_PARAM_NAME_TECNICO = "tecnicoIstCorretto"; - public static final String WORKFLOW_PARAM_NAME_TECNICO = "tecnicoIstCorretto"; - - public static final String WORKFLOW_TASKNAME_ESITO = "esito"; - public static final String WORKFLOW_TASKNAME_ASSEGNAZIONE = "assegnazione"; - public static final String WORKFLOW_TASKNAME_APPROVAZIONE = "approvazione"; - -} + public static final String WORKFLOW_TASKNAME_ESITO = "esito"; + public static final String WORKFLOW_TASKNAME_ASSEGNAZIONE = "assegnazione"; + public static final String WORKFLOW_TASKNAME_APPROVAZIONE = "approvazione"; +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java index 50e018b2..a180cdb9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java @@ -7,16 +7,17 @@ import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.kaleo.model.FormLog; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.Constants; import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.Map; + import com.liferay.portal.NoSuchWorkflowInstanceLinkException; import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.exception.PortalException; @@ -45,8 +46,8 @@ public class WorkflowUtil { return getLastTask(companyId, groupId, userId, bean, false); } - public static WorkflowTask getLastCompletedTask(long companyId, long groupId, Long userId, - ControlloPratica bean) throws PortalException, SystemException { + public static WorkflowTask getLastCompletedTask(long companyId, long groupId, Long userId, ControlloPratica bean) + throws PortalException, SystemException { return getLastTask(companyId, groupId, userId, bean, true); } @@ -56,17 +57,15 @@ public class WorkflowUtil { WorkflowInstance workflowInstance = null; try { - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil - .getWorkflowInstanceLink(companyId, groupId, ControlloPratica.class.getName(), - bean.getPrimaryKey()); + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( + companyId, groupId, ControlloPratica.class.getName(), bean.getPrimaryKey()); long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, workflowInstanceId); } catch (NoSuchWorkflowInstanceLinkException e) { } if (workflowInstance != null) { - List listaTmp = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance( - companyId, userId, workflowInstance.getWorkflowInstanceId(), completed, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + List listaTmp = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(companyId, userId, + workflowInstance.getWorkflowInstanceId(), completed, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); if (!listaTmp.isEmpty()) { return listaTmp.get(0); } @@ -74,19 +73,17 @@ public class WorkflowUtil { return null; } - public static WorkflowTask getLastApprovazioneTask(long companyId, long groupId, Long userId, - ControlloPratica bean) throws PortalException, SystemException { + public static WorkflowTask getLastApprovazioneTask(long companyId, long groupId, Long userId, ControlloPratica bean) + throws PortalException, SystemException { - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil - .getWorkflowInstanceLink(companyId, groupId, ControlloPratica.class.getName(), - bean.getPrimaryKey()); + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( + companyId, groupId, ControlloPratica.class.getName(), bean.getPrimaryKey()); long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, workflowInstanceId); if (workflowInstance != null) { - List listaTmp = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance( - companyId, userId, workflowInstance.getWorkflowInstanceId(), true, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); + List listaTmp = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(companyId, userId, + workflowInstance.getWorkflowInstanceId(), true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (WorkflowTask workflowTask : listaTmp) { if (workflowTask.getName().equalsIgnoreCase("approvazione")) { return workflowTask; @@ -96,33 +93,26 @@ public class WorkflowUtil { return null; } - public static boolean existWorkflow(ControlloPratica controlloPratica) throws WorkflowException, - SystemException { + public static boolean existWorkflow(ControlloPratica controlloPratica) throws WorkflowException, SystemException { + WorkflowInstanceLink workflowInstancelink = null; try { workflowInstancelink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( - controlloPratica.getCompanyId(), controlloPratica.getGroupId(), - ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); + controlloPratica.getCompanyId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); } catch (PortalException e) { return false; } - // WorkflowInstance workflowInstance = - // WorkflowInstanceManagerUtil.getWorkflowInstance( - // dettPratica.getCompanyId(), - // workflowInstancelink.getWorkflowInstanceId()); - // if(workflowInstance !=null && workflowInstance.getEndDate() == null){ - // return true; - // } - // return false; return workflowInstancelink != null && controlloPratica.isPending(); } public static long getWorkflowInstanceId(ControlloPratica controlloPratica) throws SystemException { + long workflowInstanceId = 0L; try { - WorkflowInstanceLink workflowInstancelink = WorkflowInstanceLinkLocalServiceUtil - .getWorkflowInstanceLink(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), - ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); + WorkflowInstanceLink workflowInstancelink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( + controlloPratica.getCompanyId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); if (workflowInstancelink != null) { workflowInstanceId = workflowInstancelink.getWorkflowInstanceId(); } @@ -131,13 +121,13 @@ public class WorkflowUtil { return workflowInstanceId; } - public static long getWorkflowInstanceCreateUserId(ControlloPratica controlloPratica) - throws SystemException { + public static long getWorkflowInstanceCreateUserId(ControlloPratica controlloPratica) throws SystemException { + long userId = 0L; try { - WorkflowInstanceLink workflowInstancelink = WorkflowInstanceLinkLocalServiceUtil - .getWorkflowInstanceLink(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), - ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); + WorkflowInstanceLink workflowInstancelink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( + controlloPratica.getCompanyId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); if (workflowInstancelink != null) { userId = workflowInstancelink.getUserId(); } @@ -157,10 +147,6 @@ public class WorkflowUtil { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { - if (TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione()) - && !dettPratica.getVarianteSostanziale()) { - return false; - } return true; } else if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { return false; @@ -171,11 +157,12 @@ public class WorkflowUtil { public static boolean existWorkflowToSignal(ControlloPratica controlloPratica) throws WorkflowException, SystemException { + WorkflowInstanceLink workflowInstancelink = null; try { workflowInstancelink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( - controlloPratica.getCompanyId(), controlloPratica.getGroupId(), - ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); + controlloPratica.getCompanyId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); } catch (PortalException e) { return false; } @@ -186,6 +173,7 @@ public class WorkflowUtil { public static void attivaWorkflow(long intPraticaId, long groupId, long userId, long dettPraticaId, ServiceContext serviceContext, boolean attiva) throws PortalException, SystemException { + if (attiva && isWorkflowAttivabile(intPraticaId)) { attiva(intPraticaId, groupId, userId, dettPraticaId, serviceContext); } else if (!attiva && isWorkflowDisattivabile(intPraticaId)) { @@ -196,37 +184,34 @@ public class WorkflowUtil { private static void disattiva(long intPraticaId, long groupId, long userId, long dettPraticaId, ServiceContext serviceContext) throws SystemException, PortalException { - List lista = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status( - intPraticaId, WorkflowConstants.STATUS_PENDING); + List lista = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, + WorkflowConstants.STATUS_PENDING); for (ControlloPratica controlloPratica : lista) { - WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE, getWorkflowContext(controlloPratica)); WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(controlloPratica.getCompanyId(), - controlloPratica.getGroupId(), ControlloPratica.class.getName(), - controlloPratica.getPrimaryKey()); + controlloPratica.getGroupId(), ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); } } private static void attiva(long intPraticaId, long groupId, long userId, long dettPraticaId, ServiceContext serviceContext) throws PortalException, SystemException { - if (isWorkflowAttivabile(intPraticaId)) { - ControlloPratica cp = ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, - intPraticaId, dettPraticaId, false, serviceContext); - // ADT: bug id=7 gestione workflow - ControlloPraticaLocalServiceUtil.gestioneWFVarianti(cp); + if (isWorkflowAttivabile(intPraticaId)) { + ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, false, + serviceContext); } } public static boolean isWorkflowAttivabile(long intPraticaId) throws PortalException, SystemException { + return !isWorkflowDisattivabile(intPraticaId); } - public static boolean isWorkflowAttivabileByTipoIntegrazione(DettPratica dettPratica) - throws PortalException, SystemException { + public static boolean isWorkflowAttivabileByTipoIntegrazione(DettPratica dettPratica) throws PortalException, + SystemException { - if (dettPratica.getTipoIntegrazione() == null || dettPratica.getTipoIntegrazione().equals("")) { + if (Validator.isNull(dettPratica.getTipoIntegrazione())) { return true; } else { return !TipoIntegrazioneUtil.isOutOfWorkflow(dettPratica.getTipoIntegrazione()); @@ -234,14 +219,13 @@ public class WorkflowUtil { } public static boolean isWorkflowDisattivabile(long intPraticaId) throws PortalException, SystemException { + int count = ControlloPraticaLocalServiceUtil.countByIntPraticaId_Status(intPraticaId, WorkflowConstants.STATUS_PENDING); return count > 0; } - /* - * Verificare corretta corrispondenza con AvvisoUtil.getAllTipoDocumento() - */ + // Verificare corretta corrispondenza con AvvisoUtil.getAllTipoDocumento() @SuppressWarnings("serial") private final static Map tipoDocumentoToSignal = new HashMap() { { @@ -261,22 +245,21 @@ public class WorkflowUtil { return tipoDocumentoToSignal.get(tipoDocumento); } - public static void assegnaUltimoTask(long companyId, long groupId, long istruttoreId, - long assegnatoreUserId, ControlloPratica controlloPratica) throws PortalException, - SystemException { + public static void assegnaUltimoTask(long companyId, long groupId, long istruttoreId, long assegnatoreUserId, + ControlloPratica controlloPratica) throws PortalException, SystemException { WorkflowTask workflowTask = getLastTask(companyId, groupId, null, controlloPratica); Map workflowContext = getWorkflowContext(controlloPratica); - WorkflowTaskManagerUtil.assignWorkflowTaskToUser(companyId, assegnatoreUserId, - workflowTask.getWorkflowTaskId(), istruttoreId, "", null, workflowContext); + workflowTask.getWorkflowTaskId(), istruttoreId, StringPool.BLANK, null, workflowContext); } public static Map getWorkflowContext(ControlloPratica controlloPratica) throws PortalException, SystemException { - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil - .getWorkflowInstanceLink(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), - ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); + + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink( + controlloPratica.getCompanyId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance( controlloPratica.getCompanyId(), workflowInstanceId); @@ -285,6 +268,7 @@ public class WorkflowUtil { public static String adjustWorkflowContextValue(String key, String value, long intPraticaId) throws NumberFormatException, PortalException, SystemException { + switch (key) { case "istruttore": if (Validator.isNotNull(value) && !"0".equals(value)) { @@ -296,18 +280,23 @@ public class WorkflowUtil { break; case "esito": if (Validator.isNotNull(value) && !"0".equals(value)) { - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - if(intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE)){ - if(value.equals(StatoPraticaConstants.CONFORME)) - value = StatoPraticaConstants.AUTORIZZATA; - else if(value.equals(StatoPraticaConstants.NON_CONFORME)) + if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P3)) { + switch (value) { + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + return "stato-pratica-" + StatoPraticaConstants.VIARCH_APERTO; + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + return "stato-pratica-" + StatoPraticaConstants.VIARCH_CHIUSO; + } + } else if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE)) { + if (value.equals(StatoPraticaConstants.CONFORME)) + value = StatoPraticaConstants.AUTORIZZATA; + else if (value.equals(StatoPraticaConstants.NON_CONFORME)) value = StatoPraticaConstants.NON_AUTORIZZATA; - } - value = "stato-pratica-" + value; - } else { value = "nessuno"; } @@ -328,17 +317,11 @@ public class WorkflowUtil { long groupId = controlloPratica.getGroupId(); long classPK = controlloPratica.getControlloPraticaId(); String className = ControlloPratica.class.getName(); - - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil - .fetchWorkflowInstanceLink(companyId, groupId, className, classPK); - // if (workflowInstanceLink == null) { - // throw new NoSuchWorkflowInstanceLinkException(); - // } + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( + companyId, groupId, className, classPK); Map parameters = new HashMap<>(); - ; if (workflowInstanceLink != null) { long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); - // order asc List formLogs = FormLogLocalServiceUtil.findByC_Instance(companyId, workflowInstanceId, QueryUtil.ALL_POS, QueryUtil.ALL_POS); @@ -355,6 +338,7 @@ public class WorkflowUtil { } public static void valutaEffettiInvioVariante(DettPratica dettPratica) throws Exception { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) @@ -367,5 +351,4 @@ public class WorkflowUtil { dettPratica.getDettPraticaId(), serviceContext); } } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql index b898fbf2..5c35f702 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql @@ -11,7 +11,6 @@ create table portos_bo_AllegatoManuale ( dettPraticaId LONG, avvisoId LONG, fileEntryId LONG, - oldFileEntryId LONG, descrizione STRING null ); @@ -53,8 +52,6 @@ create table portos_bo_Avviso ( fileEntryIdBase LONG, fileEntryIdInvio LONG, fileEntryIdProtocollo LONG, - oldFileEntryIdBase LONG, - oldFileEntryIdInvio LONG, dtCreateFileEntryInvio DATE null, userCodiceFiscalePrimaFirma VARCHAR(75) null, firmaInCorso BOOLEAN, @@ -75,7 +72,6 @@ create table portos_bo_Avviso ( rifiutato BOOLEAN, dtRifiuto DATE null, commentoRifiuto STRING null, - oldAvvisoId LONG, intPraticaId LONG, controlloPraticaId LONG, classPk LONG, @@ -107,8 +103,7 @@ create table portos_bo_Collaudo ( causalePagamento VARCHAR(75) null, mezzoPagamento VARCHAR(75) null, normEsenteBollo BOOLEAN, - importoBolli VARCHAR(75) null, - oldDettPraticaId LONG + importoBolli VARCHAR(75) null ); create table portos_bo_Comune ( @@ -221,16 +216,13 @@ create table portos_bo_DettPratica ( mezzoPagamentoBolli VARCHAR(75) null, dataEffettuazione DATE null, version INTEGER, - versionata BOOLEAN, status INTEGER, statusByUserId LONG, statusByUserName VARCHAR(75) null, statusDate DATE null, statusTask INTEGER, - workflowForzato BOOLEAN, soggettoSostituitoId LONG, dtInvioSignal DATE null, - oldDettPraticaId LONG, destinazione VARCHAR(10) null, ag VARCHAR(10) null, descLongIntervento STRING null, @@ -241,14 +233,11 @@ create table portos_bo_DettPratica ( localita VARCHAR(75) null, estremiCatastali STRING null, estremiPratCom STRING null, - variataDa LONG, varianteNumero LONG, - varianteSostanziale BOOLEAN, operaConforme BOOLEAN, collaudoStatico BOOLEAN, noCollaudo BOOLEAN, codiceFiscaleDelegato VARCHAR(16) null, - codiceRuoloDelegato VARCHAR(75) null, codiceFiscaleDelegatoCommittente VARCHAR(75) null, codiceFiscaleDelegatoFineLavori VARCHAR(75) null, codiceFiscaleDelegatoCollaudo VARCHAR(75) null, @@ -262,17 +251,10 @@ create table portos_bo_DettPratica ( sanatoriaEdilizia47 BOOLEAN, sanatoriaEdilizia724 BOOLEAN, sanatoriaEdilizia326 BOOLEAN, - lavoriInEconomiaCommittente BOOLEAN, - inizioLavoriContestualeOpera BOOLEAN, - dataInizioLavoriOpera DATE null, - dataInizioEsecuzioneOpera DATE null, - dataFineEsecuzioneOpera DATE null, - metratura VARCHAR(75) null, lavoriPubblici BOOLEAN, pagamentoIdOneri LONG, pagamentoIdBolli LONG, lavoriPubbliciPercentuale INTEGER, - numeroCivico VARCHAR(75) null, dcParticelle VARCHAR(75) null, dcFoglio VARCHAR(75) null, dcAllegato VARCHAR(75) null, @@ -434,6 +416,7 @@ create table portos_bo_DettPratica ( tcAltro BOOLEAN, tcAltroDescrizione STRING null, tcConDispositivi BOOLEAN, + interventoVoceP7 VARCHAR(75) null, normLavoriInProprio BOOLEAN, normLavoriNoDirettore BOOLEAN, normEsenteBollo BOOLEAN, @@ -442,24 +425,10 @@ create table portos_bo_DettPratica ( normDpr02Dep BOOLEAN, normDpr01Aut BOOLEAN, normDpr02Aut BOOLEAN, - normDpr03 BOOLEAN, - normDpr04 BOOLEAN, - normDpr05 BOOLEAN, - normDm01 BOOLEAN, - normDm02 BOOLEAN, - normDm03 BOOLEAN, normDm2018 BOOLEAN, - normDm04 BOOLEAN, - normDm05 BOOLEAN, - normDprg01 BOOLEAN, - normDprg02 BOOLEAN, normAnr BOOLEAN, - normOrd01 BOOLEAN, - normCI01 BOOLEAN, - normLTC01 BOOLEAN, normArt3com3 BOOLEAN, normArt3com4 BOOLEAN, - dpdc BOOLEAN, normSismaBonus BOOLEAN, clRischioPreInt VARCHAR(75) null, clRischioPostInt VARCHAR(75) null, @@ -480,7 +449,6 @@ create table portos_bo_DocAggiuntiva ( intPraticaId LONG, dettPraticaId LONG, fileEntryId LONG, - oldFileEntryId LONG, descrizione STRING null, feVisible BOOLEAN ); @@ -498,18 +466,15 @@ create table portos_bo_DocPratica ( className VARCHAR(75) null, intPraticaId LONG, dlFileEntryId LONG, - oldDlFileEntryId LONG, version VARCHAR(75) null, praticaValidata BOOLEAN, descLong VARCHAR(500) null, tipologia VARCHAR(10) null, sha256 VARCHAR(75) null, - md5 VARCHAR(75) null, aggiornato BOOLEAN, jsonFirmatari TEXT null, status LONG, errorCode VARCHAR(75) null, - oldDocPraticaId LONG, rimosso BOOLEAN, dettPraticaIdRimozione LONG, dtDataRimozione DATE null @@ -541,8 +506,7 @@ create table portos_bo_FineLavori ( codicePagamento VARCHAR(75) null, causalePagamento VARCHAR(75) null, mezzoPagamento VARCHAR(75) null, - importoBolli VARCHAR(75) null, - oldDettPraticaId LONG + importoBolli VARCHAR(75) null ); create table portos_bo_HistoryWorkflowAction ( @@ -604,7 +568,6 @@ create table portos_bo_IntPratica ( dtAnnullamento DATE null, docPraticaAnnullamentoId LONG, unitaOperativa INTEGER, - dtSorteggio DATE null, statoPratica VARCHAR(10) null, numeroProgetto VARCHAR(75) null, validata BOOLEAN, @@ -613,7 +576,6 @@ create table portos_bo_IntPratica ( statusDate DATE null, esitoControllo INTEGER, dtPratica DATE null, - oldIntPraticaId LONG, sospesa BOOLEAN, dtSospensione DATE null, codiceFiscaleDelegatoFineLavori VARCHAR(75) null, @@ -638,7 +600,6 @@ create table portos_bo_Pagamento ( classPk LONG, className VARCHAR(75) null, fileEntryId LONG, - oldFileEntryId LONG, tipoPagamento VARCHAR(75) null, url STRING null, codice VARCHAR(75) null, @@ -651,8 +612,7 @@ create table portos_bo_Pagamento ( otf BOOLEAN, otfCreateDate DATE null, emailPending BOOLEAN, - numeroBollettino VARCHAR(75) null, - oldPagamentoId LONG + numeroBollettino VARCHAR(75) null ); create table portos_bo_ParereGeo ( @@ -750,7 +710,6 @@ create table portos_bo_Soggetto ( dtDataRimozione DATE null, sostituitoDa LONG, soggettoSostituitoId LONG, - oldSoggettoId LONG, fileVariazioneId LONG ); @@ -784,8 +743,7 @@ create table portos_bo_Sorteggio ( tecnico VARCHAR(75) null, mesePrecedente VARCHAR(75) null, esterna BOOLEAN, - praticaEsternaId LONG, - oldSorteggioId LONG + praticaEsternaId LONG ); create table portos_bo_StoricoSoggettoPratica ( @@ -799,8 +757,7 @@ create table portos_bo_StoricoSoggettoPratica ( intPraticaId LONG, nome VARCHAR(75) null, cognome VARCHAR(75) null, - codiceFiscale VARCHAR(75) null, - oldStoricoSoggettoPraticaId LONG + codiceFiscale VARCHAR(75) null ); create table portos_bo_Tempistica ( @@ -818,8 +775,7 @@ create table portos_bo_Tempistica ( start_ LONG, stop LONG, wait LONG, - completo BOOLEAN, - oldTempisticaId LONG + completo BOOLEAN ); create table portos_bo_Territorio ( @@ -837,7 +793,6 @@ create table portos_bo_Territorio ( articolo61 BOOLEAN, dtIni DATE null, dtFin DATE null, - oldTerritorioId LONG, agMin VARCHAR(75) null, agMax VARCHAR(75) null ); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml index 8d8544d6..e4c000eb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml @@ -16,14 +16,11 @@ - -
@@ -247,16 +242,13 @@ - - - 10 @@ -289,16 +281,13 @@ 800 4000 - - 16 - @@ -312,17 +301,10 @@ - - - - - - - @@ -532,6 +514,7 @@ 4000 + @@ -540,24 +523,10 @@ - - - - - - - - - - - - - - @@ -579,7 +548,6 @@ - 4000 @@ -598,7 +566,6 @@ - @@ -608,14 +575,12 @@ 10 - - @@ -649,7 +614,6 @@ - @@ -664,19 +628,6 @@ - - - - - - - - - - - - - @@ -696,7 +647,6 @@ - 10 @@ -707,7 +657,6 @@ - @@ -718,19 +667,6 @@ - - - - - - - - - - - - - @@ -744,7 +680,6 @@ - 4000 @@ -760,7 +695,6 @@ - @@ -882,58 +816,8 @@ - - - - - - - - - - - - - - - - - - 60 - 2000 - 4000 - - - 4 - - - 2 - - - - - 10 - - - 4000 - - - - 4000 - - - 4000 - - - - - - - - - @@ -946,7 +830,6 @@ - @@ -964,7 +847,6 @@ - @@ -981,7 +863,6 @@ - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml index 4ebcbf8c..4815b997 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml @@ -27,7 +27,6 @@ - @@ -95,8 +94,6 @@ - - TIMESTAMP @@ -129,7 +126,6 @@ TIMESTAMP - @@ -179,7 +175,6 @@ - @@ -369,7 +364,6 @@ TIMESTAMP - @@ -377,12 +371,10 @@ TIMESTAMP - TIMESTAMP - @@ -393,14 +385,11 @@ - - - @@ -414,23 +403,10 @@ - - - - TIMESTAMP - - - TIMESTAMP - - - TIMESTAMP - - - @@ -594,6 +570,7 @@ + @@ -602,24 +579,10 @@ - - - - - - - - - - - - - - @@ -652,7 +615,6 @@ - @@ -681,18 +643,15 @@ - - - @@ -744,7 +703,6 @@ - @@ -774,31 +732,6 @@ - - - - - - - - - - - TIMESTAMP - - - TIMESTAMP - - - - - - - - - - - @@ -825,9 +758,6 @@ - - TIMESTAMP - @@ -840,7 +770,6 @@ TIMESTAMP - TIMESTAMP @@ -859,31 +788,6 @@ - - - - - - - - - - - TIMESTAMP - - - TIMESTAMP - - - - - - - - - - - @@ -904,7 +808,6 @@ - @@ -920,7 +823,6 @@ - @@ -1060,7 +962,6 @@ - @@ -1068,56 +969,6 @@ - - - - - - - - - - - TIMESTAMP - - - TIMESTAMP - - - - - - - TIMESTAMP - - - - - - - - - TIMESTAMP - - - - - - - - - - - - - - - - - - - - @@ -1135,7 +986,6 @@ - @@ -1167,7 +1017,6 @@ - @@ -1198,7 +1047,6 @@ TIMESTAMP - @@ -1263,18 +1111,10 @@ - -
- -
- -
- -
@@ -1291,10 +1131,6 @@
- -
- -
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml index 4d5c5228..041c3518 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml @@ -43,16 +43,10 @@ - - - - - - @@ -65,10 +59,6 @@ - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties index 9ba5639d..f177631a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties @@ -113,19 +113,9 @@ conf.geniocivile.scheduler.generadocumento = Schedulazione Generazione Documenti conf.geniocivile.scheduler.firmadocumento = Schedulazione Firma Documenti conf.geniocivile.scheduler.inviodocumento = Schedulazione Invio Documenti conf.geniocivile.scheduler.inviodocumentodax = Schedulazione Invio Documenti Dax -conf.geniocivile.scheduler.iris = Schedulazione Verifica Pagamenti #Configurazione labels -conf.geniocivile.scheduler.iris.debitorie.url = URL Verifica Pagamenti -conf.geniocivile.scheduler.iris.pagamenti.url = URL Comunicazioni Debitorie -conf.geniocivile.scheduler.iris.iuv.url = URL Generazione IUV conf.geniocivile.scheduler.iris.importobollo = Importo Bollo -conf.geniocivile.sorteggio.day.of.week = Giorno della settimana per sorteggio -conf.sismica.sorteggio.hour.of.day = Ora del sorteggio -conf.sismica.sorteggio.hour.of.day.default = 2 -conf.sismica.sorteggio.day.of.week.pubblicazione = Giorno della settimana per pubblicazione sorteggio -conf.sismica.sorteggio -conf.geniocivile.sorteggio.start.day = Giorno d'Inizio per Sorteggio conf.geniocivile.protocollazione.service.url = Protocollazione Service URL conf.geniocivile.protocollazione.export.url = Protocollazione Export URL @@ -156,6 +146,7 @@ conf.geniocivile.avviso.folder.id.manuale = Cartella Avvisi Manuali conf.geniocivile.avviso.folder.id.doc_annullamento = Cartella File Annullamento Fascicolo conf.geniocivile.avviso.folder.id.doc_pagamento = Cartella File Allegati MDB conf.geniocivile.avviso.folder.id.domanda_pdf = Cartella Template Domanda +conf.geniocivile.avviso.folder.id.viarch = Cartella Avvisi VIArch #Configurazione Templates conf.geniocivile.template.folder.id = Cartella Template @@ -186,29 +177,12 @@ conf.geniocivile.avviso.template.id.deposito.B1 = Template Ricevuta Deposito mod conf.geniocivile.avviso.template.id.deposito.C = Template Ricevuta Deposito mod. C conf.geniocivile.avviso.template.id.deposito.B2 = Template Ricevuta Deposito mod. B2 conf.geniocivile.avviso.template.id.deposito.VNS = Template Ricevuta Variante Non Sostanziale +conf.geniocivile.avviso.template.id.deposito.VIARCH1 = Template VIArch attivazione +conf.geniocivile.avviso.template.id.deposito.VIARCH2 = Template VIArch conclusione #Configurazione Allegati conf.geniocivile.attachment.folder.id = Folder Allegati -# SORTEGGIO -rs = Ricerca Sorteggi -rs-anno = Anno -rs-anno-prec = Anno Precedente -rs-comune = Comune -rs-prov = Provincia -rs-mese = Mese -rs-settimana = Settimana -rs-mese-prec = Mese Precendente -rs-committente = Committente -rs-tecnico = Tecnico -rs-prossimo = Prossimo Sorteggio: -rs-ultimo = Ultimo sorteggio: -rs-numero-estrazioni = Numero Estrazioni -rs-data-estrazione = Data Estrazione -rs-pratica = Pratica -rs-committente = Committente -rs-numero-pratiche = Numero Pratiche - # FIRME tab-avvisi-firme = Avvisi da Firmare tab-firme = Firme @@ -241,7 +215,12 @@ fascicolo-action-cambia-stato = Cambia stato fascicolo-action-cambia-titolare = Cambia titolare fascicolo-action-toggle-workflow = Cambia stato workflow fascicolo-action-seleziona-geologo = Richiedi parere endoprocedimentale -fascicolo-cancella-parere-geologo = Cancella richiesta parere endoprocedimentale +fascicolo-action-cancella-parere-geologo = Cancella richiesta parere endoprocedimentale +fascicolo-action-allega-sanzione-doc1 = Allega computo sanzione pecuniaria doc. 1 +fascicolo-action-conferma-sanzione-doc1 = Conferma computo sanzione pecuniaria doc. 1 +fascicolo-action-annulla-sanzione-doc1 = Annulla computo sanzione pecuniaria doc. 1 +fascicolo-action-allega-sanzione-doc2 = Allega computo sanzione pecuniaria doc. 2 +fascicolo-action-annulla-sanzione-doc2 = Annulla computo sanzione pecuniaria doc. 2 message-success-pratica-sospesa = Pratica sospesa con successo message-success-pratica-ripresa = Pratica ripresa con successo @@ -282,7 +261,6 @@ taskName = Attivitá label.scadenzegeniocivile.attivita = Attività label.scadenzegeniocivile.esito = Esito label.scadenzegeniocivile.dataesito = Data Esito -label.scadenzegeniocivile.sorteggiata = Sorteggiata label.scadenzegeniocivile.pratica = Pratica label.scadenzegeniocivile.istruttore = Istruttore label.scadenzegeniocivile.provenienza = Provenienza @@ -300,7 +278,6 @@ label.scadenzegeniocivile.protocollo = Protocollo label.scadenzegeniocivile.tipopratica = Tipo Pratica label.scadenzegeniocivile.provincia = Provincia label.scadenzegeniocivile.istruttore = Istruttore -label.scadenzegeniocivile.datasorteggio = Data Sorteggio label.scadenzegeniocivile.datavidimazione = Data Vidimazione label.scadenzegeniocivile.timerfermo = Timer Fermo label.scadenzegeniocivile.start = Data Invio @@ -329,10 +306,6 @@ label.admingeniocivile.zona = Zona label.admingeniocivile.territorio.dataInizio = Inizio label.admingeniocivile.territorio.dataFine = Fine -#Bug 31175 -label.admingeniocivile.sorteggi.pratica = Pratica -label.admingeniocivile.sorteggi.numeroEstrazione = Numero Estrazione - #protocollo-export protocollo-export-numero=Numero protocollo-export-utente=Mittente / Destinatario diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties index b7a270cd..11e81bf2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties @@ -31,7 +31,6 @@ stato-pratica-NC = Non conforme stato-pratica-NP = Non si rilascia parere stato-pratica-PC = Preavviso di parere contrario stato-pratica-RI = Rifiutata -stato-pratica-SO = Sorteggiata stato-pratica-SP = Sottoposta a parere stato-pratica-VA = Variata stato-pratica-VI = Vidimata @@ -42,6 +41,9 @@ stato-pratica-CI = Cambio istruttore stato-pratica-AN = Autorizzazione negata stato-pratica-VS = Variazione soggetti +stato-pratica-V1 = Apertura VIArch +stato-pratica-V2 = Chiusura VIArch + effettua-delega = Effettua Delega effettua-delega-TT = Effettua Delega Totale effettua-delega-CO = Effettua Delega Compilazione Domanda @@ -68,6 +70,7 @@ label-deleghe-tipologia-VI = Visualizzazione label-deleghe-tipologia-CL = Collaudo effettua-asseverazione = Effettua Asseverazione +label-asseverazione-tipologia-00 = Titolare Digitale label-asseverazione-tipologia-01 = Collaudatore label-asseverazione-tipologia-02 = Committente label-asseverazione-tipologia-03 = Direttore Lavori @@ -161,7 +164,7 @@ label-ambito-altro = Altro label-albo-ingegneri = Ingegneri label-albo-architetti = Architetti label-albo-geometri = Geometri -label-albo-periti_edili = Periti Editi +label-albo-periti_edili = Periti Edili label-albo-geologi = Geologi label-albo-altro = Altro label-albo-elenco = Elenco L.110/2014 - D.M. 244/2019 @@ -192,12 +195,14 @@ dp-variante = Dettagli Variante dp-variante-sostanziale = sostanziale dp-variante-non-sostanziale = non sostanziale -dp = Dettagli principali dp-ppp = Piano paesaggistico provinciale +dett-principali = Dettagli principali +dp = Piano paesaggistico provinciale +piano-paesaggistico = Piano paesaggistico provinciale dp-zona-sismica = Livello di tutela -dp-paesaggio-locale = Paesaggio locale -dp-livello-di-tutela = Livello di tutela -dp-vincoli = Vincoli +paesaggio-locale = Contesto paesaggistico +livello-di-tutela = Livello di tutela +vincoli = Vincoli dp-fascia-pericolosita = Fascia pericolosità dp-tipo-procedura = Tipo procedura dp-range-ag = Range Ag @@ -220,7 +225,7 @@ dp-normativa = Normativa tecnica di riferimento dp-nuovo-progetto = Nuovo Progetto localita = Località -via = Via +via = Localizzazione dp-allegato = Allegato dp-particelle = Particelle dp-lat= Latitudine @@ -230,7 +235,7 @@ dp-raggio = Raggio di ricerca opera-conforme = Opera conforme ### DESCRIZIONE PROGETTO E DATI CATASTALI -dp-dc = Descrizione Progetto e Dati Catastali +dp-dc = Descrizione Progetto e localizzazione desc-long-intervento = Descrizione dell'intervento dp-dc-prov = Provincia dp-dc-comune = Comune @@ -241,18 +246,16 @@ dc-particelle = Particelle estremi-catastali: Estremi Catastali estremi-prat-com = Estremi Prat. Comunale - SUE - SUAP dc-allegato = Allegato -sanatoria-edilizia-47 = L. 47/85 - L.R. 37/85 -sanatoria-edilizia-724 = L. n. 724/2004 -sanatoria-edilizia-326 = L. n. 326/2003 - L.R. 15/2004 (obbligo certificazione A17) -norm-lavori-in-proprio = il committente esegue i lavori in proprio (IN ECONOMIA) - lavori per i quali non è necessaria la nomina di un'impresa (obbligo dichiarazione A29) -norm-lavori-no-direttore = lavori per i quali non è necessaria la nomina del Direttore dei Lavori (obbligo dichiarazione A30) +sanatoria-edilizia47 = L. 47/85 - L.R. 37/85 +sanatoria-edilizia724 = L. n. 724/2004 +sanatoria-edilizia326 = L. n. 326/2003 - L.R. 15/2004 (obbligo certificazione A17) +norm-lavori-in-proprio = il committente esegue i lavori in proprio (in economia) - lavori per i quali non è necessaria la nomina di un'impresa (obbligo dichiarazione A29) +norm-lavori-no-direttore = Opere per i quali non è necessaria la nomina del Direttore dei Lavori (obbligo dichiarazione A30) lavori-pubblici = Lavori pubblici o di interesse pubblico norm-esente-bollo = esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i. norm-esente-spese = esente da spese istruttoria -#collaudo-statico = Trattandosi di opere di riparazione o intervento locale eseguibile su un edificio esistente ai sensi del D.M. 14/01/2008, punto 8.4.3, non si effettuera' il collaudo statico -#bug id #1 collaudo-statico = Trattandosi di opere di riparazione o intervento locale eseguibile su un edificio esistente ai sensi del D.M. 17/01/2018, punto 8.4, non si effettuerà il collaudo statico -no-collaudo = Opere che non necessitano di collaudo (obbligo dichiarazione A27) +no-collaudo = Opere per le quali non è necessaria la nomina del Collaudatore (obbligo dichiarazione A27) norm-art3com3 = Possono essere omessi i seguenti allegati norm-art3com3_1 = relazione geologica firmata da un geologo iscritto all'albo (A05) @@ -309,6 +312,7 @@ destinazione = Destinazione destinazione-1 = EDIFICI ORDINARI destinazione-2 = INFRASTRUTTURE o ALTRI ORDINARI destinazione-3 = ALTRI INTERVENTI (es. fotovoltaico, pali eolici, piscine e vasche di irrigazione, muri di cinta e recinzioni, etc) +destinazione-altro-intervento = Destinazione altro intervento destinazione-uso-1 = EDIFICIO ORDINARIO destinazione-uso-2 = INFRASTRUTTURA O ALTRO ORDINARIO @@ -381,14 +385,20 @@ dp-sc = Sistemi Costruttivi dp-sc-nuova = Nuova costruzione dp-sc-interventi = Interventi su costruzioni esistenti norm-dm03 = D.M. 16/01/1996 -norm-dprg01 = D -norm-dprg02 = D norm-anr = Altra normativa di riferimento ## PAGINA SOGGETTI ## +codice-fiscale-delegato = Codice Fiscale Delegato codice-fiscale-delegato-committente = Codice Fiscale Titolare Digitale codice-fiscale-delegato-fine-lavori = Codice Fiscale Delegato Fine Lavori codice-fiscale-delegato-collaudo = Codice Fiscale Delegato Collaudo +codice-fiscale-principale-committente = Codice Fiscale Committente Principale +codice-fiscale-principale-collaudatore = Codice Fiscale Collaudatore Principale +codice-fiscale-principale-progettista = Codice Fiscale Progettista Principale +codice-fiscale-principale-direttore-lavori = Codice Fiscale Direttore Lavori Principale +codice-fiscale-principale-ditta = Codice Fiscale Ditta Principale +codice-fiscale-principale-geologo = Codice Fiscale Geologo Principale +codice-fiscale-principale-archeologo = Codice Fiscale Archeologo Principale ## PAGINA DESCRIZIONE EDIFICIO ## de-piani = Numero piani totali con interrati @@ -404,7 +414,7 @@ de-proprieta = Proprietà dp-sc-ti = Tipologie Intervento dp-sc-tc = Tipologia Costruttiva -tc-in-ca = in c.a. +tc-in-c-a = in c.a. tc-in-opera = in opera tc-prefabbricato = prefabbricato tc-in-acciaio = in acciaio @@ -425,8 +435,9 @@ tc-costruzioni-esistenti = Interventi su costruzioni esistenti tc-adeguamento-sismico = Adeguamento sismico tc-miglioramento-sismico = Miglioramento sismico tc-riparazione-intervento-locale = Riparazione o intervento locale -tc-manut-ord-rest-dem = Manut. ord. e straord. - Restauro - Demolizione e ricostruzione -tc-altro-intervento = ALTRA TIPOLOGIA DI INTERVENTO +tc-manut-ord-straord = Manut. ord. e straord. - Restauro - Demolizione e ricostruzione +tc-altri-interventi = Altra tipologia di intervento +tc-altri-interventi-desc = Descrizione altra tipologia tc-nuova-costruzione-pertinenza = Nuova costruzione di pertinenza tc-intervento-opere-escavazione = Intervento che prevede opere di escavazione (obbligo A10) tc-viarch = Opera pubblica o di interesse pubblico - Viarch (obbligo A24) @@ -683,7 +694,6 @@ geo-categoria-sottosuolo-B = B geo-categoria-sottosuolo-C = C geo-categoria-sottosuolo-D = D geo-categoria-sottosuolo-E = E -#geo-categoria-sottosuolo-F = Risposta Sismica Locale geo-categoria-sottosuolo-F = RSL @@ -720,7 +730,7 @@ geo-pericolosita-geomorfica-3 = P3 geo-pericolosita-geomorfica-4 = P4 geo-pericolosita-geomorfica-NA = Non presente -geo-rischio-geomorfologico = Rischio geomorfologico PAI +geo-rischio-geomorfologico-pai = Rischio geomorfologico PAI geo-rischio-geomorfologico-1 = R1 geo-rischio-geomorfologico-2 = R2 geo-rischio-geomorfologico-3 = R3 @@ -833,7 +843,7 @@ label-documenti-tipologia-G14=Altre tipologie indagini eseguite label-documenti-tipologia-G15=Indagini di archivio label-documenti-tipologia-G16=Altri -label-documenti-tipologia-A01 = A1 - Planimetria generale +label-documenti-tipologia-A01 = A1 - Inquadramento territoriale label-documenti-tipologia-A02 = A2 - Progetto label-documenti-tipologia-A03 = A3 - Relazione tecnica generale label-documenti-tipologia-A04 = A4 - Relazione materiali impiegati @@ -899,7 +909,6 @@ mezzo-pagamento = Mezzo Pagamento mezzo-pagamento-oneri = Mezzo Pagamento Spese Istruttoria mezzo-pagamento-bolli = Mezzo Pagamento Bolli mezzo-pagamento-01 = Manuale -mezzo-pagamento-02 = IRIS codice-pagamento-oneri = Codice Pagamento Spese Istruttoria codice-pagamento-bolli = Codice Pagamento Bolli @@ -941,16 +950,14 @@ label-pagamenti-note-utente = Note utente (obbligatorie su modifica degli import label-pagamenti-importo-calcolato = Importo calcolato label-pagamenti-importo-effettivo = Importo effettivo label-pagamenti-aiuto-effettivo = Se necessario, è possibile modificare il valore dell'importo. Sarà necessario fornire una breve spiegazione del motivo nella sezione note. -label-confirm-payment-iris = Proseguendo con il pagamento IRIS la pratica non sarà più modificabile. Alla conferma del pagamento il sistema invierà automaticamente la pratica alla Soprintendenza BB.CC.AA. di riferimento. Conferma di voler proseguire con l'operazione di pagamento? -label-confirm-payment-manual = Proseguendo con il pagamento MANUALE la pratica non sarà più modificabile. Alla conferma del pagamento il sistema invierà automaticamente la pratica alla Soprintendenza BB.CC.AA. di riferimento di riferimento. Conferma di voler proseguire con l'operazione di pagamento? +label-confirm-payment-manual = Proseguendo con il pagamento MANUALE la pratica non sarà più modificabile. Alla conferma del pagamento il sistema invierà automaticamente la pratica alla Soprintendenza BB.CC.AA. di riferimento. Conferma di voler proseguire con l'operazione di pagamento? label-confirm-payment-otf = Il pagamento è IMMEDIATO.
Procedendo si dovrà necessariamente portare a termine la transazione.


ATTENZIONE:
Assicurarsi di abilitare i popup su questa pagina.
label-payment-otf-initialized = Pagamento in corso di verifica....
Qualora non sia stato effettivamente completato il sistema renderà disponibile automaticamente la rigenerazione del pagamento dopo circa 20 min. Se il problema persiste contattare il supporto al numero 800232330 qualora non sia stato effettivamente completato label-payment-otf-rigeneration = Solo nel caso in cui si è sicuri che il pagamento non sia andato a buon fine è possibile rigenerare il pagamento in autonomia. label-pagamento = Pagamento label-pagamento-spese = Pagamento Spese Istruttoria label-pagamento-bolli = Pagamento Bolli -text-pagamento-iris = Il pagamento è stato correttamente inizializzato. Cliccare sul pulsante per procedere al saldo dell'importo -text-pagamento-manuale-oneri = text-pagamento-manuale-iris +text-pagamento-manuale-oneri = text-pagamento-manuale-oneri text-pagamento-manuale-bolli = text-pagamento-manuale-bolli sostituisci-pagamento-oneri = Cambia modalità pagamento Spese Istruttoria sostituisci-pagamento-bolli = Cambia modalità pagamento Bolli @@ -962,14 +969,13 @@ text-pagamento-completato-bolli = Pagamento Bolli comp text-pagamento-nonpagabile-bolli = Pagamento Bolli non pagabile text-pagamento-rifiutato-bolli = Pagamento Bolli rifiutato text-pagamento-annullato-bolli = Pagamento Bolli annullato. Contattare il supporto.. -text-pagamento-conto-corrente = Importo da versare su
Conto Corrente Postale n. {0}
Intestato a: Cassiere della Regione Siciliana - {1}
Causale: diritti per parere reso - capitolo in entrata 1902 +#text-pagamento-conto-corrente = Importo da versare su
Conto Corrente Postale n. {0}
Intestato a: Cassiere della Regione Siciliana - {1}
Causale: diritti per parere reso - capitolo in entrata 1902 text-rigenera-pagamento = Rigenera text-rigenera-pagamento-admin = Rigenera text-annulla-pagamento-admin = Annulla ricevuta-pagamento-spese = Ricevuta Pagamento Spese istruttoria ricevuta-pagamento-bolli = Ricevuta Pagamento Bolli go-back = Indietro -go-to-iris = Vai a IRIS upload-file = Carica Ricevuta label-diritti-fissi = DIRITTI FISSI (D.A. 3319/2013;D.A. 116/2104) @@ -1019,7 +1025,6 @@ fl-table-integrazione = Integrazioni fl-table-parziale = Fine lavori parziale fl-allegati = Allegati fl-altro = Il Direttore dei lavori comunica inoltre: -#fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4.3 del D.M. 14.01.2008 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere #bug id #1 fl-collaudo = Trattandosi di opere di riparazione/intervento locale eseguite ai sensi del punto 8.4 del D.M. 17.01.2018 il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo delle opere @@ -1057,7 +1062,6 @@ no-fine-lavori = Nessuna Fine Lavori presentata al momento no-collaudi-parziali = Nessun Collaudo Parziale presentato al momento # Label COSTANTS # -label.admingeniocivile.statopratica.sorteggiata = Sorteggiata label.admingeniocivile.statopratica.sottopostaaparere = Sottoposta a parere label.admingeniocivile.statopratica.vidimata = Vidimata label.admingeniocivile.statopratica.conforme = Conforme @@ -1077,6 +1081,10 @@ label.admingeniocivile.statopratica.assegnata = Assegnata label.admingeniocivile.statopratica.attesafirma = Attesa di Firma label.admingeniocivile.statopratica.approvazione = Approvazione label.admingeniocivile.statopratica.variante = Variante +label.admingeniocivile.statopratica.viarch1 = VIArch aperto +label.admingeniocivile.statopratica.viarch2 = VIArch chiuso +label.admingeniocivile.statopratica.sanzione.doc1 = Sanzione pecuniaria doc. 1 +label.admingeniocivile.statopratica.sanzione.doc2 = Sanzione pecuniaria doc. 2 label.firma-doc = Dichiaro di aver preso visione del documento, e di sottoscriverne il contenuto ai sensi del D.Lgs. 82/2005 label.cambio-soggetti-ok = Cambio Soggetti #{0} completato con successo @@ -1172,8 +1180,6 @@ download-del-documento-inviato = File Firmato download-del-documento-protocollato = File Protocollato visualizza-i-dati = Visualizza i dati -#label.admingeniocivile.avviso.tipoDocumento.conforme = Avviso di Conformità/Autorizzazione -#label.admingeniocivile.avviso.tipoDocumento.nonconforme =Avviso di non Conformità/Autorizzazione negata label.admingeniocivile.avviso.tipoDocumento.conforme = Avviso di Conformità label.admingeniocivile.avviso.tipoDocumento.nonconforme =Avviso di non Conformità label.admingeniocivile.avviso.tipoDocumento.autorizzata = Avviso di Autorizzazione @@ -1189,7 +1195,6 @@ label.admingeniocivile.avviso.tipoDocumento.sottopostaparere = Avviso di Avvio P label.admingeniocivile.avviso.tipoDocumento.annullata = Avviso di Annullamento label.admingeniocivile.avviso.tipoDocumento.annullaistanza = Avviso di Annullamento Fascicolo label.admingeniocivile.avviso.tipoDocumento.integrazioneaccettata = Avviso di vidimazione Integrazione -#label.admingeniocivile.avviso.tipoDocumento.integrazionerifiutata = Integrazione Rifiutata label.admingeniocivile.avviso.tipoDocumento.avvisomanuale = Avviso generico label.admingeniocivile.avviso.tipoDocumento.cambioistruttore = Avviso di cambio istruttore label.admingeniocivile.avviso.tipoDocumento.variazioneSoggetto = Avviso di variazione soggetto @@ -1208,7 +1213,6 @@ label.admingeniocivile.avviso.documento.sottopostaparere = Avvio Procedimento label.admingeniocivile.avviso.documento.annullata = Annullamento label.admingeniocivile.avviso.documento.annullaistanza = Annullamento Fascicolo label.admingeniocivile.avviso.documento.integrazioneaccettata = Vidimazione Integrazione -#label.admingeniocivile.avviso.documento.integrazionerifiutata = Integrazione Rifiutata label.admingeniocivile.avviso.documento.avvisomanuale = Avviso Manuale label.admingeniocivile.avviso.documento.cambioistruttore = Cambio Istruttore @@ -1216,11 +1220,7 @@ label.admingeniocivile.avviso.documento.cambioistruttore = Cambio Istruttore verifica-delega = Verifica Completezza concludi-delega = Concludi Delega -#confirm-delega-collaudo =Il sottoscritto {0} {1}, in qualità di .... -#confirm-delega-compilazione =Il sottoscritto {0} {1}, .... confirm-delega-compilazione = Confermando si conclude l'esecuzione della delega e l'accesso in modifica alla pratica -#confirm-delega-fine-lavori =Il sottoscritto {0} {1}, in qualità di .... -#confirm-delega-firma-inserimento =Il sottoscritto {0} {1}, in qualità di .... confirm-delega-firma-inserimento = Confermando si conclude l'esecuzione della delega e l'accesso in modifica alla pratica confirm-delega-totale =Il sottoscritto {0} {1}, in qualità di .... confirm-delega-visualizzazione =Il sottoscritto {0} {1}, in qualità di .... @@ -1283,4 +1283,15 @@ tipo_procedura_P10 = 9) Certificazione di sussistenza vincoli sanatoria-edilizia = Sanatoria edilizia mappe-bbcc = Mappe BBCC -mappe-openstreetmap = OpenStreetmap \ No newline at end of file +mappe-openstreetmap = OpenStreetmap +#tipo_procedura_Q11 = 1) Autorizzazione per interventi su Beni Culturali mobili +#tipo_procedura_Q12 = 2) Autorizzazione per interventi su Beni Culturali immobili +#tipo_procedura_Q13 = 3) Verifica preventiva dell’interesse archeologico +#tipo_procedura_Q14 = 4) Autorizzazione prevista dagli strumenti urbanistici per interventi in aree e immobili non assoggettati a tutela ai sensi del D.Lgs. 42/2004 (c.d. centri storici) +#tipo_procedura_Q15 = 5) Autorizzazione per "Settori Speciali" +#tipo_procedura_Q16 = 6) Autorizzazione paesaggistica +#tipo_procedura_Q17 = 7) Autorizzazione paesaggistica per interventi di lieve entità +#tipo_procedura_Q18 = 8) Accertamento di compatibilità paesaggistica +#tipo_procedura_Q19 = 9) Condono Edilizio +sanatoria-edilizia = Sanatoria edilizia +intervento-voce-p7 = L.R. 5/2019, art. 3, allegato B: intervento alla voce B diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/default.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/default.xml index 9d46e2d1..f2aa9109 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/default.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/default.xml @@ -1,6 +1,5 @@ - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml index 8ef8bd68..3d667d21 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/intpratica.xml @@ -1,35 +1,16 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/reports.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/reports.xml index 238f330e..5a6c71ea 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/reports.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/reports.xml @@ -1,6 +1,5 @@ - = ? AND DTPRATICA < ?) AND GROUPID=? AND TIPOPRATICA='01' AND CONTROLLOOBBLIGATORIO=?; ]]> - - = ? AND DTPRATICA < ?) AND GROUPID=? AND TIPOPRATICA like ? AND controlloobbligatorio=?; ]]> - - = ? AND cont.createdate < ?) AND intp.GROUPID=? AND intp.TIPOPRATICA=?; - ]]> - - - = ? AND createdate < ?) AND GROUPID=?); ]]> - - = ? AND DTPRATICA < ?) AND GROUPID=? AND TIPOPRATICA='05'; ]]> - - - 'AL' ) as T1 on T1.intpraticaid=portos_bo_avviso.intpraticaid - order by intpraticaid,classpk asc, portos_bo_avviso.dtavviso asc - + order by intpraticaid,classpk asc, portos_bo_avviso.dtavviso asc ]]> - - - - 'AL' ) T1 left join portos_bo_sorteggio on portos_bo_sorteggio.intpraticaid=T1.intpraticaid - ]]> - - 'AL' ) as T1 on T1.intpraticaid=portos_bo_avviso.intpraticaid order by intpraticaid,classpk asc, portos_bo_avviso.dtavviso asc - ]]> - - @@ -263,9 +235,6 @@ order by intpraticaid,classpk asc, portos_bo_avviso.dtavviso asc; ]]> - - - 'AL' ) T1 left join portos_bo_sorteggio on portos_bo_sorteggio.intpraticaid=T1.intpraticaid; - ]]> - - - 'AL' ]]> - 'AL' ]]> - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/sorteggio.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/sorteggio.xml deleted file mode 100644 index 5c26b368..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/sorteggio.xml +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - = ? AND DTPRATICA < ?) - AND TERRITORIOID IN ([$TERRITORIO_IDS$]) - AND TIPOPRATICA IN ([$TIPOPRATICA_IDS$]) - AND DTSORTEGGIO IS NULL - ]]> - - - = ? AND DTPRATICA < ?) - AND TERRITORIOID IN ([$TERRITORIO_IDS$]) - AND TIPOPRATICA IN ([$TIPOPRATICA_IDS$]) - AND STATOPRATICA NOT IN ([$STATIPRATICA$]) - AND DTSORTEGGIO IS NULL - ORDER BY RANDOM() LIMIT [$N_PRATICHE$] - ]]> - - - = ? AND DTPRATICA < ?) - AND TERRITORIOID IN ([$TERRITORIO_IDS$]) - AND TIPOPRATICA IN ([$TIPOPRATICA_IDS$]) - AND STATOPRATICA NOT IN ([$STATIPRATICA$]) - AND DTSORTEGGIO IS NULL - AND FINELAVORITOTALE = FALSE - ORDER BY RANDOM() LIMIT [$N_PRATICHE$] - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/tempistica.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/tempistica.xml index 3aea389b..7d261466 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/tempistica.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/custom-sql/tempistica.xml @@ -1,6 +1,5 @@ - - - - - - - - - - - + '' AND inte.STATOPRATICA not in ('CO','NC','IN','AL','AN','AU')) ]]> - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerSorteggio.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerSorteggio.java deleted file mode 100644 index 2381ce19..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerSorteggio.java +++ /dev/null @@ -1,84 +0,0 @@ -package it.mwg.sismica.bo.scheduler; - -import it.mwg.sismica.bo.util.SorteggioPraticaUtil; -import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; -import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil; -import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; - -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; - -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.messaging.Message; -import com.liferay.portal.kernel.messaging.MessageListener; -import com.liferay.portal.kernel.messaging.MessageListenerException; -import com.liferay.portal.model.Company; -import com.liferay.portal.model.Role; -import com.liferay.portal.model.RoleConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.service.CompanyLocalServiceUtil; -import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.service.UserLocalServiceUtil; - -public class SchedulerSorteggio implements MessageListener { - - private static final Log _log = LogFactoryUtil.getLog(SchedulerSorteggio.class); - - private static final Lock lock = new ReentrantLock(); - - @Override - public void receive(Message message) throws MessageListenerException { - if (lock.tryLock()) { - Date dt = new Date(); - try { - for (Company company : CompanyLocalServiceUtil.getCompanies()) { - long companyId = company.getCompanyId(); - if (isGiornoSorteggio(companyId, dt)) { - _log.info("Sorteggio da scheduler"); - SorteggioPraticaUtil.sorteggio(companyId, dt); - - Role role = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR); - User user = UserLocalServiceUtil.getRoleUsers(role.getRoleId(), 0, 1).get(0); - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(companyId); - serviceContext.setScopeGroupId(company.getGroupId()); - serviceContext.setUserId(user.getUserId()); - - Calendar calendar = Calendar.getInstance(); - calendar.setTime(dt); - calendar.add(Calendar.DAY_OF_MONTH, 7); - - ConfigurazioneServiceUtil.storeConfig( - "conf.geniocivile.sorteggio.data.prossimo.sorteggio", new SimpleDateFormat( - "dd/MM/yyyy").format(calendar.getTime()), serviceContext); - } - } - } catch (SystemException | ParseException | PortalException e) { - _log.error("error", e); - } - lock.unlock(); - } - } - - private static boolean isGiornoSorteggio(long companyId, Date dt) throws SystemException, ParseException { - Calendar calendar = Calendar.getInstance(); - calendar.setTime(dt); - int dowOggi = calendar.get(Calendar.DAY_OF_WEEK); - int oraOggi = calendar.get(Calendar.HOUR_OF_DAY); - int dowSorteggio = Integer.parseInt(ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO)); - int oraSorteggio = Integer.parseInt(ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO)); - - return (dowOggi == dowSorteggio) && (oraOggi == oraSorteggio); - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java index bdb38e80..ff67f2ef 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java @@ -2,7 +2,6 @@ package it.mwg.sismica.bo.scheduler; import it.mwg.sismica.bo.util.SismicaUtil; -import java.util.List; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; @@ -23,11 +22,14 @@ import com.liferay.portal.service.RoleLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil; public class SchedulerWorkflow implements MessageListener { - private static final Log _log = LogFactoryUtil.getLog(SchedulerWorkflow.class); + private static final Lock lock = new ReentrantLock(); + private static final Log _log = LogFactoryUtil.getLog(SchedulerWorkflow.class); + @Override public void receive(Message message) throws MessageListenerException { + if (lock.tryLock()) { _log.info("Inizio elaborazione"); try { @@ -35,19 +37,16 @@ public class SchedulerWorkflow implements MessageListener { long companyId = company.getCompanyId(); Role role = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR); User user = UserLocalServiceUtil.getRoleUsers(role.getRoleId(), 0, 1).get(0); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); PermissionThreadLocal.setPermissionChecker(permissionChecker); - - List esito = SismicaUtil.riparaWorkflow(companyId, user.getUserId()); - for (String riga : esito) { - _log.info(riga); - } + SismicaUtil.riparaWorkflow(companyId, user.getUserId()); + SismicaUtil.integrazioniScadute(); } } catch (Exception e) { e.printStackTrace(); + } finally { + lock.unlock(); } - lock.unlock(); } } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java deleted file mode 100644 index 22544908..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java +++ /dev/null @@ -1,229 +0,0 @@ -package it.mwg.sismica.bo.startup; - -import java.sql.Connection; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; - -import com.liferay.portal.kernel.dao.jdbc.DataAccess; -import com.liferay.portal.kernel.events.ActionException; -import com.liferay.portal.kernel.events.SimpleAction; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; - -public class DatabaseUpdateAction extends SimpleAction { - - private static final Log _log = LogFactoryUtil.getLog(DatabaseUpdateAction.class.getName()); - private Connection connection; - - @Override - public void run(String[] ids) throws ActionException { - try { - connection = DataAccess.getUpgradeOptimizedConnection(); - Statement s = connection.createStatement(); - - if (!hasColumn("portos_bo_intpratica", "tipoprocedura")) { - _log.info("Aggiornamento a v2 di portos_bo_intpratica"); - s.executeUpdate("ALTER TABLE portos_bo_intpratica ADD COLUMN tipoprocedura VARCHAR(75) NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "georischiogeomorfologicopai")) { - String[] columns = new String[] { "geoclasseindagine", "geopericolositageologica", - "geopericolositageomorfica", "geopericolositasismica", "geofattibilitasismica", - "geopericolositaidraulica", "geofattibilitaidraulica", "geofattibilitageologica" }; - - for (String column : columns) { - int righe = s.executeUpdate("UPDATE portos_bo_dettpratica SET " + column + "='NA' " - + "WHERE " + column + "='0'"); - if (righe > 0) { - _log.info("Aggiornate " + righe + " righe in portos_bo_dettpratica, colonna " - + column); - } - } - - _log.info("Aggiornamento a v2 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica " - + "ADD COLUMN georischiogeomorfologicopai VARCHAR(75) NULL," - + "ADD COLUMN geopericolositaidraulicapai VARCHAR(75) NULL," - + "ADD COLUMN georischioidraulicopai VARCHAR(75) NULL"); - } - /*if (!hasColumn("portos_bo_dettpratica", "pagmiglioramentosismicosicilia")) { - _log.info("Aggiornamento a v3 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica " - + "ADD COLUMN pagmiglioramentosismicosicilia BOOL," - + "ADD COLUMN pagoperanonquantificabile BOOL," - + "ADD COLUMN pagcalcolatoadeguamentosismico VARCHAR(75) NULL," - + "ADD COLUMN pagcalcolatomiglioramentosismico VARCHAR(75) NULL," - + "ADD COLUMN pagcalcolatoriparazioneinterventolocale VARCHAR(75) NULL," - + "ADD COLUMN pagcalcolatooperanonquantificabile VARCHAR(75) NULL," - + "ADD COLUMN pageffettivoadeguamentosismico VARCHAR(75) NULL," - + "ADD COLUMN pageffettivomiglioramentosismico VARCHAR(75) NULL," - + "ADD COLUMN pageffettivoriparazioneinterventolocale VARCHAR(75) NULL," - + "ADD COLUMN pageffettivooperanonquantificabile VARCHAR(75) NULL," - + "ADD COLUMN pagnoteutente TEXT NULL"); - }*/ - - if (!hasColumn("portos_bo_dettpratica", "tcnuovacostruzionecomplessa")) { - _log.info("Aggiornamento a v4 di portos_bo_dettpratica"); - int righe = s - .executeUpdate("UPDATE portos_bo_dettpratica SET destinazione='2' WHERE destinazione='1'"); - if (righe > 0) { - _log.info("Aggiornate " + righe + " righe in portos_bo_dettpratica, colonna destinazione"); - } - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcnuovacostruzionecomplessa BOOL NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "tccostruzioniesistenti")) { - _log.info("Aggiornamento a v5 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tccostruzioniesistenti BOOL NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "paesaggiolocale")) { - _log.info("Aggiornamento a v6 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN paesaggiolocale TEXT NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN livelloditutela TEXT NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN vincoli TEXT NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcmanutordstraord BOOL NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcaltriinterventi BOOL NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcaltriinterventidesc TEXT NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "tcaltriinterventi")) { - _log.info("Aggiornamento a v7 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcaltriinterventi BOOL NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcaltriinterventidesc TEXT NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "destinazionealtrointervento")) { - _log.info("Aggiornamento a v8 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN destinazionealtrointervento TEXT NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "codicefiscaleprincipalearcheologo")) { - _log.info("Aggiornamento a v9 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN codicefiscaleprincipalearcheologo VARCHAR(75) NULL"); - } - - if (!hasColumn("portos_bo_territorio", "articolo61")) { - _log.info("Aggiornamento a v2 di portos_bo_territorio"); - s.executeUpdate("ALTER TABLE portos_bo_territorio ADD COLUMN articolo61 BOOL"); - } - - if (!hasColumn("portos_bo_sorteggio", "settimana")) { - _log.info("Aggiornamento a v2 di portos_bo_sorteggio"); - s.executeUpdate("ALTER TABLE portos_bo_sorteggio ADD COLUMN settimana INTEGER"); - } - - if (!hasColumn("portos_bo_asseverazione", "dichiarazioni")) { - _log.info("Aggiornamento a v2 di portos_bo_asseverazione"); - s.executeUpdate("ALTER TABLE portos_bo_asseverazione ADD COLUMN dichiarazioni TEXT NULL"); - } - - if (!hasColumn("portos_bo_delega", "dichiarazioni")) { - _log.info("Aggiornamento a v2 di portos_bo_delega"); - s.executeUpdate("ALTER TABLE portos_bo_delega ADD COLUMN dichiarazioni TEXT NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "nocollaudo")) { - _log.info("Aggiornamento a v8 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN nocollaudo BOOL NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "tcnuovacostruzionepertinenza")) { - _log.info("Aggiornamento a v8 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcnuovacostruzionepertinenza BOOL NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "tcinterventoopereescavazione")) { - _log.info("Aggiornamento a v8 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcinterventoopereescavazione BOOL NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "tcviarch")) { - _log.info("Aggiornamento a v8 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcviarch BOOL NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "tcoperaa25")) { - _log.info("Aggiornamento a v8 di portos_bo_dettpratica"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN tcoperaa25 BOOL NULL"); - } - - if (!hasColumn("portos_bo_soggetto", "tipoaltrosoggetto")) { - s.executeUpdate("ALTER TABLE portos_bo_soggetto ADD COLUMN tipoaltrosoggetto TEXT NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "pagSoggettiAdAutorizzazione")) { - /*s.executeUpdate("ALTER TABLE portos_bo_dettpratica " - + "DROP COLUMN pagmiglioramentosismicosicilia," - + "DROP COLUMN pagoperanonquantificabile," - + "DROP COLUMN pagAdeguamentoSismico," - + "DROP COLUMN pagMiglioramentoSismico," - + "DROP COLUMN pagMiglioramentoSismicoSicilia," - + "DROP COLUMN pagRiparazioneInterventoLocale," - + "DROP COLUMN pagOperaNonQuantificabile," - + "DROP COLUMN pagNuovaCostruzione," - + "DROP COLUMN pagVarianti," - + "DROP COLUMN pagAltro," - + "DROP COLUMN pagCalcolatoAdeguamentoSismico," - + "DROP COLUMN pagCalcolatoMiglioramentoSismico," - + "DROP COLUMN pagCalcolatoRiparazioneInterventoLocale," - + "DROP COLUMN pagCalcolatoOperaNonQuantificabile," - + "DROP COLUMN pagEffettivoAdeguamentoSismico," - + "DROP COLUMN pagEffettivoMiglioramentoSismico," - + "DROP COLUMN pagEffettivoRiparazioneInterventoLocale," - + "DROP COLUMN pagEffettivoOperaNonQuantificabile," - + "DROP COLUMN pagNoteUtente"); */ - - s.executeUpdate("ALTER TABLE portos_bo_dettpratica " - + "ADD COLUMN pagsoggettiadautorizzazione DOUBLE NULL," - + "ADD COLUMN paginterventirestauromanufatti DOUBLE NULL," - + "ADD COLUMN pagaltricasiculturali DOUBLE NULL," - + "ADD COLUMN paglottizzazioni DOUBLE NULL," - + "ADD COLUMN paggrandistrutture DOUBLE NULL," - + "ADD COLUMN pagcondotte DOUBLE NULL," - + "ADD COLUMN pagpalificazioni DOUBLE NULL," - + "ADD COLUMN pagimpiantieolici DOUBLE NULL," - + "ADD COLUMN pagnuoverealizzazioni DOUBLE NULL," - + "ADD COLUMN pagimmobilipreesistenti DOUBLE NULL," - + "ADD COLUMN pagmanifestipubblicitari DOUBLE NULL," - + "ADD COLUMN pagpareridimassima DOUBLE NULL," - + "ADD COLUMN pagaltricasipaesaggistici DOUBLE NULL," - + "ADD COLUMN pagvariantipareriresi DOUBLE NULL," - + "ADD COLUMN pagrilascioattestazioni DOUBLE NULL," - + "ADD COLUMN pagconsultazioniarchivio DOUBLE NULL"); - } - - if (!hasColumn("portos_bo_pagamento", "numerobollettino")) { - s.executeUpdate("ALTER TABLE portos_bo_pagamento ADD COLUMN numerobollettino VARCHAR(75) NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "sanatoriaedilizia47")) { - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN sanatoriaedilizia47 BOOL NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN sanatoriaedilizia724 BOOL NULL"); - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN sanatoriaedilizia326 BOOL NULL"); - } - - if (!hasColumn("portos_bo_dettpratica", "normlavorinodirettore")) { - s.executeUpdate("ALTER TABLE portos_bo_dettpratica ADD COLUMN normlavorinodirettore BOOL NULL"); - } - - } catch (SQLException e) { - _log.error("Errore di accesso al database: ", e); - throw new ActionException(e); - } - } - - private boolean hasColumn(String table, String column) { - boolean result = true; - ResultSet rs = null; - try { - Statement s = connection.createStatement(); - rs = s.executeQuery("SELECT " + column + " FROM " + table + " WHERE false"); - rs.getMetaData().getColumnName(1); - } catch (SQLException e) { - result = false; - } - return result; - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/CarichiLavoroUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/CarichiLavoroUtil.java new file mode 100644 index 00000000..5aed8d00 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/CarichiLavoroUtil.java @@ -0,0 +1,24 @@ +package it.mwg.sismica.bo.util; + +import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean; + +import java.util.Map; + +public class CarichiLavoroUtil { + + public static void incrementaCarico(Map carichi, String istruttore, boolean concluso) { + + if (!istruttore.isEmpty()) { + if (!carichi.containsKey(istruttore)) { + carichi.put(istruttore, new CarichiLavoroBean()); + } + CarichiLavoroBean carico = carichi.get(istruttore); + carico.incTotali(); + if (concluso) { + carico.incConclusi(); + } else { + carico.incInCorso(); + } + } + } +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java index 450c50e5..7b1dc78b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java @@ -20,7 +20,6 @@ import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil; @@ -39,7 +38,6 @@ import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; @@ -155,18 +153,21 @@ import com.liferay.sync.model.SyncDLObject; import com.liferay.sync.service.SyncDLObjectLocalServiceUtil; public class ManutenzioneDatabase { - private static final Log _log = LogFactoryUtil.getLog(ManutenzioneDatabase.class); + private static final int SLICE = 1000; + private static final Log _log = LogFactoryUtil.getLog(ManutenzioneDatabase.class); + public static List pulisci(ServiceContext serviceContext, String mode) throws SystemException, PortalException { List esito = new ArrayList<>(); long companyId = serviceContext.getCompanyId(); - + if (mode.contains("!Workflow=")) { + esito.addAll(SismicaUtil.riparaWorkflow(mode.replaceAll(".*?!Workflow=([^!]*)!", "$1"))); + } if (mode.contains("!UnitaOperative!")) { esito.addAll(fixUnitaOperative()); } - if (mode.contains("!Pulisci!")) { esito.addAll(puliziaDocumentLibrary(companyId)); esitoLog( @@ -175,8 +176,8 @@ public class ManutenzioneDatabase { ConfigurazioneConstants.ATTACHMENT_FOLDER_ID))); esitoLog( esito, - puliziaAllegati(companyId, ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, - AvvisoUtil.getAllTipoDocumentoFolderProps().get(StatoPraticaConstants.CONFORME)))); + puliziaAllegati(companyId, ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, AvvisoUtil + .getAllTipoDocumentoFolderProps().get(StatoPraticaConstants.CONFORME)))); if (mode.contains("!IntPratica!")) { esitoLog(esito, svuotaIntPraticaDettPratica()); } @@ -185,19 +186,19 @@ public class ManutenzioneDatabase { } esito.addAll(svuotaDatabase(companyId)); if (mode.contains("!Reset!")) { - ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", - serviceContext); + ConfigurazioneLocalServiceUtil.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext); } clearCache(); _log.info("Elaborazione completata correttamente."); } - // if (mode.contains("!Integrazioni!")) { - // SismicaUtil.integrazioniScadute(); - // } - // if (mode.startsWith("!Workflow!")) { - // String[] pezzi = StringUtil.split(mode, '!'); - // esito.addAll(SismicaUtil.aggiungiWorkflow(pezzi[2], pezzi[3])); - // } + if (mode.contains("!Gestione!")) { + esito.addAll(SismicaUtil.gestionePratiche()); + } + if (mode.contains("!Integrazioni!")) { + esito.addAll(SismicaUtil.integrazioniScadute()); + } + // if(mode.startsWith("!Workflow!")){String[] pezzi=StringUtil.split(mode, + // '!');esito.addAll(SismicaUtil.aggiungiWorkflow(pezzi[2],pezzi[3]));} return esito; } @@ -220,8 +221,8 @@ public class ManutenzioneDatabase { pratiche = IntPraticaLocalServiceUtil.getIntPraticas(start, start + SLICE); if (pratiche.size() > 0) { for (IntPratica pratica : pratiche) { - List controlli = ControlloPraticaLocalServiceUtil - .findByIntPratica(pratica.getIntPraticaId()); + List controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica + .getIntPraticaId()); if (controlli.size() > 0) { ControlloPratica controllo = controlli.get(controlli.size() - 1); long companyId = controllo.getCompanyId(); @@ -229,8 +230,8 @@ public class ManutenzioneDatabase { List logs = null; try { WorkflowInstanceLink workflowInstancelink = WorkflowInstanceLinkLocalServiceUtil - .getWorkflowInstanceLink(companyId, groupId, - ControlloPratica.class.getName(), controllo.getPrimaryKey()); + .getWorkflowInstanceLink(companyId, groupId, ControlloPratica.class.getName(), + controllo.getPrimaryKey()); long workflowInstanceId = workflowInstancelink.getWorkflowInstanceId(); // WorkflowInstance workflowInstance = // WorkflowInstanceManagerUtil @@ -262,10 +263,10 @@ public class ManutenzioneDatabase { if ((0 != destinazione) && (destinazione != pratica.getUnitaOperativa())) { esitoLog( esito, - "Pratica " + pratica.getNumeroProgetto() + "/" - + pratica.getIntPraticaId() + ", " - + pratica.getUnitaOperativa() + " -> " + destinazione - + " (" + userId + ")"); + "Pratica " + pratica.getNumeroProgetto() + StringPool.SLASH + + pratica.getIntPraticaId() + StringPool.COMMA_AND_SPACE + + pratica.getUnitaOperativa() + " -> " + destinazione + " (" + + userId + StringPool.CLOSE_PARENTHESIS); pratica.setUnitaOperativa(destinazione); IntPraticaLocalServiceUtil.updateIntPratica(pratica); } @@ -336,14 +337,12 @@ public class ManutenzioneDatabase { if (Validator.isNotNull(parent)) { parentFolderNames.add(parent.getName()); if (parent.getFolderId() == allegatiFolderId) { - long[] ids = StringUtil.split(folder.getName(), "_", 0L); + long[] ids = StringUtil.split(folder.getName(), StringPool.UNDERLINE, 0L); if ((ids.length == 2) && (ids[0] == ids[1])) { - if (!esiste(DETTPRATICA_CLASS_NAME, ids[0]) - && !esiste(DOCPRATICA_CLASS_NAME, ids[0]) + if (!esiste(DETTPRATICA_CLASS_NAME, ids[0]) && !esiste(DOCPRATICA_CLASS_NAME, ids[0]) && !esiste(ALLEGATOMANUALE_CLASS_NAME, ids[0]) && !esiste(ASSEVERAZIONE_CLASS_NAME, ids[0]) - && !esiste(AVVISO_CLASS_NAME, ids[0]) - && !esiste(COLLAUDO_CLASS_NAME, ids[0]) + && !esiste(AVVISO_CLASS_NAME, ids[0]) && !esiste(COLLAUDO_CLASS_NAME, ids[0]) && !esiste(CONTROLLOPRATICA_CLASS_NAME, ids[0]) && !esiste(DELEGA_CLASS_NAME, ids[0]) && !esiste(DOCAGGIUNTIVA_CLASS_NAME, ids[0]) @@ -351,8 +350,7 @@ public class ManutenzioneDatabase { && !esiste(INTPRATICA_CLASS_NAME, ids[0]) && !esiste(PAGAMENTO_CLASS_NAME, ids[0]) && !esiste(PAREREGEOLOGO_CLASS_NAME, ids[0]) - && !esiste(SOGGETTO_CLASS_NAME, ids[0]) - && !esiste(SORTEGGIO_CLASS_NAME, ids[0])) { + && !esiste(SOGGETTO_CLASS_NAME, ids[0])) { _log.info("Cancello la cartella " + folder.getName()); DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); cancellati++; @@ -367,8 +365,7 @@ public class ManutenzioneDatabase { emailId = Long.parseLong(folder.getName()); } catch (NumberFormatException e) { } - if (Validator.isNotNull(emailId) - && String.valueOf(emailId).equals(folder.getName()) + if (Validator.isNotNull(emailId) && String.valueOf(emailId).equals(folder.getName()) && !esiste(EMAIL_CLASS_NAME, emailId)) { _log.info("Cancello la cartella " + folder.getName()); DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); @@ -408,8 +405,7 @@ public class ManutenzioneDatabase { return result; } - private static String puliziaAllegati(long companyId, long folderId) throws SystemException, - PortalException { + private static String puliziaAllegati(long companyId, long folderId) throws SystemException, PortalException { List avvisiFileEntries = avvisiFileEntries(); long repositoryId = DLAppLocalServiceUtil.getFolder(folderId).getRepositoryId(); int start = 0; @@ -462,7 +458,8 @@ public class ManutenzioneDatabase { } break; default: - _log.info("Tipo sconosciuto " + tipo + " (" + fileEntry.getTitle() + ")"); + _log.info("Tipo sconosciuto " + tipo + " (" + fileEntry.getTitle() + + StringPool.CLOSE_PARENTHESIS); break; } } else { @@ -961,8 +958,7 @@ public class ManutenzioneDatabase { List resourcePermissions = null; do { int rimossi = 0; - resourcePermissions = ResourcePermissionLocalServiceUtil.getResourcePermissions(start, start - + SLICE); + resourcePermissions = ResourcePermissionLocalServiceUtil.getResourcePermissions(start, start + SLICE); for (ResourcePermission resourcePermission : resourcePermissions) { long classPK = 0; try { @@ -1026,12 +1022,11 @@ public class ManutenzioneDatabase { List storicoSoggettiPratiche = null; do { int rimossi = 0; - storicoSoggettiPratiche = StoricoSoggettoPraticaLocalServiceUtil.getStoricoSoggettoPraticas( - start, start + SLICE); + storicoSoggettiPratiche = StoricoSoggettoPraticaLocalServiceUtil.getStoricoSoggettoPraticas(start, start + + SLICE); for (StoricoSoggettoPratica storicoSoggettoPratica : storicoSoggettiPratiche) { if (!esiste(INTPRATICA_CLASS_NAME, storicoSoggettoPratica.getIntPraticaId())) { - StoricoSoggettoPraticaLocalServiceUtil - .deleteStoricoSoggettoPratica(storicoSoggettoPratica); + StoricoSoggettoPraticaLocalServiceUtil.deleteStoricoSoggettoPratica(storicoSoggettoPratica); cancellati++; rimossi++; } @@ -1242,8 +1237,6 @@ public class ManutenzioneDatabase { RoleLocalServiceUtil.getRole(classPK); } else if (SOGGETTO_CLASS_NAME.equals(className)) { SoggettoLocalServiceUtil.getSoggetto(classPK); - } else if (SORTEGGIO_CLASS_NAME.equals(className)) { - SorteggioLocalServiceUtil.getSorteggio(classPK); } else if (USER_CLASS_NAME.equals(className)) { UserLocalServiceUtil.getUser(classPK); } else if (USERPERSONALSITE_CLASS_NAME.equals(className)) { @@ -1258,7 +1251,7 @@ public class ManutenzioneDatabase { WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, classPK); } } else { - if (className.contains(".")) { + if (className.contains(StringPool.PERIOD)) { switch (className) { case "com.liferay.portlet.blogs": case "com.liferay.portlet.documentlibrary": @@ -1331,7 +1324,6 @@ public class ManutenzioneDatabase { private static final String PASSWORDPOLICY_CLASS_NAME = PasswordPolicy.class.getName(); private static final String ROLE_CLASS_NAME = Role.class.getName(); private static final String SOGGETTO_CLASS_NAME = Soggetto.class.getName(); - private static final String SORTEGGIO_CLASS_NAME = Sorteggio.class.getName(); private static final String USER_CLASS_NAME = User.class.getName(); private static final String USERPERSONALSITE_CLASS_NAME = UserPersonalSite.class.getName(); private static final String WIKINODE_CLASS_NAME = WikiNode.class.getName(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java index 60372c23..64c47680 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java @@ -1,7 +1,7 @@ /** * * @author Salvatore La Manna, Manifattura Web Group per Regione Siciliana - * + * */ package it.mwg.sismica.bo.util; @@ -11,6 +11,7 @@ import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.scheduler.SchedulerPratiche; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; @@ -18,9 +19,9 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.Constants; +import it.tref.liferay.portos.bo.util.WorkflowConstants; import java.io.Serializable; import java.text.ParseException; @@ -34,9 +35,14 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; +import com.liferay.counter.service.CounterLocalServiceUtil; +import com.liferay.portal.kernel.dao.orm.Disjunction; +import com.liferay.portal.kernel.dao.orm.DynamicQuery; 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.json.JSONFactoryUtil; import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; @@ -44,45 +50,58 @@ import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowException; import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; import com.liferay.portal.kernel.workflow.WorkflowInstance; import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; import com.liferay.portal.kernel.workflow.WorkflowTask; import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; +import com.liferay.portal.model.Role; +import com.liferay.portal.model.RoleConstants; import com.liferay.portal.model.User; +import com.liferay.portal.model.WorkflowInstanceLink; +import com.liferay.portal.service.RoleLocalServiceUtil; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.definition.LogType; +import com.liferay.portal.workflow.kaleo.model.KaleoInstance; +import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; +import com.liferay.portal.workflow.kaleo.model.KaleoLog; +import com.liferay.portal.workflow.kaleo.model.KaleoNode; import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoLogLocalServiceUtil; +import com.liferay.portal.workflow.kaleo.service.KaleoTaskAssignmentInstanceLocalServiceUtil; import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; -import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLAppServiceUtil; public class SismicaUtil { private final static Log _log = LogFactoryUtil.getLog(SismicaUtil.class); private static final SimpleDateFormat dfmt = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); - private static final SimpleDateFormat sdfGiornoDB = new SimpleDateFormat("yyyy-MM-dd"); + public static final SimpleDateFormat sdfGiornoDB = new SimpleDateFormat("yyyy-MM-dd"); private final static int SLICE = 200; public static Date[] getWeekInterval(int dow) { + return getWeekInterval(dow, Calendar.getInstance().getTime()); } public static Date[] getWeekInterval(int dow, Date base) { + Calendar reference = Calendar.getInstance(); reference.setTime(base); reference.set(Calendar.HOUR_OF_DAY, 0); reference.set(Calendar.MINUTE, 0); reference.set(Calendar.SECOND, 0); reference.set(Calendar.MILLISECOND, 0); - reference.add(Calendar.DAY_OF_WEEK, Calendar.MONDAY - reference.get(Calendar.DAY_OF_WEEK)); reference.add(Calendar.MILLISECOND, -1); Date end = reference.getTime(); - reference.add(Calendar.MILLISECOND, 1); reference.add(Calendar.DAY_OF_MONTH, -7); Date start = reference.getTime(); @@ -94,6 +113,7 @@ public class SismicaUtil { } public static Date stringToDate(String str) { + Date date = null; try { date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(str); @@ -107,6 +127,7 @@ public class SismicaUtil { } public static Long daysBetween(Date start, Date end) { + if (Validator.isNotNull(start) && Validator.isNotNull(end)) { try { start = sdfGiornoDB.parse(sdfGiornoDB.format(start)); @@ -118,7 +139,193 @@ public class SismicaUtil { return null; } + public static List integrazioniScadute() throws SystemException, PortalException { + + List esito = new ArrayList<>(); + esitoLog(esito, "Controllo integrazioni/preavvisi scaduti"); + final int giorniIntegrazione = 40; + final int giorniPreavviso = 20; + final long taskId = 21642; + final String taskName = "Esito"; + final long nodeId = 21639; + final String nodeName = "Esito"; + final String validCurrentNodeName = "signal_cittadino"; + final String commento = "Pratica riassegnata automaticamente dal sistema per scadenza dei termini di integrazione"; + Calendar calendar = Calendar.getInstance(); + calendar.set(Calendar.HOUR, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.SECOND, 0); + calendar.add(Calendar.DAY_OF_YEAR, -giorniIntegrazione); + Map date = new HashMap<>(); + date.put(StatoPraticaConstants.INTEGRAZIONE, calendar.getTime()); + calendar.add(Calendar.DAY_OF_YEAR, giorniIntegrazione - giorniPreavviso); + date.put(StatoPraticaConstants.PREAVVISO_CONTRARIO, calendar.getTime()); + DynamicQuery query = IntPraticaLocalServiceUtil.dynamicQuery(); + Disjunction or = RestrictionsFactoryUtil.disjunction(); + or.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.INTEGRAZIONE)); + or.add(RestrictionsFactoryUtil.eq("statoPratica", StatoPraticaConstants.PREAVVISO_CONTRARIO)); + query.add(or); + Map scadute = new HashMap<>(); + scadute.put(StatoPraticaConstants.INTEGRAZIONE, 0); + scadute.put(StatoPraticaConstants.PREAVVISO_CONTRARIO, 0); + @SuppressWarnings("unchecked") + List pratiche = IntPraticaLocalServiceUtil.dynamicQuery(query); + for (IntPratica pratica : pratiche) { + Date dtUltimoAvviso = null; + String stato = pratica.getStatoPratica().toUpperCase(); + List avvisi = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(pratica.getIntPraticaId(), + stato); + for (Avviso avviso : avvisi) { + if (avviso.getTipoAvviso().equalsIgnoreCase(AvvisoUtil.TIPO_AVVISO_FIRMA) + && avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO) && !avviso.getAnnullato() + && !avviso.getRifiutato() && !avviso.getErrore() + && (Validator.isNull(dtUltimoAvviso) || dtUltimoAvviso.before(avviso.getDtInvio()))) { + dtUltimoAvviso = avviso.getDtInvio(); + } + } + if (Validator.isNotNull(dtUltimoAvviso) && dtUltimoAvviso.before(date.get(stato))) { + scadute.put(stato, scadute.get(stato) + 1); + esito.addAll(riassegnaAlTecnico(pratica, commento, validCurrentNodeName, taskId, taskName, nodeId, + nodeName)); + } + } + return esito; + } + + private static List riassegnaAlTecnico(IntPratica pratica, String comment, String validCurrentNodeName, + long taskId, String taskName, long nodeId, String nodeName) throws SystemException, PortalException { + + List esito = new ArrayList<>(); + List controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status( + pratica.getIntPraticaId(), WorkflowConstants.STATUS_PENDING); + if (1 == controlli.size()) { + ControlloPratica controllo = controlli.get(0); + long companyId = controllo.getCompanyId(); + long groupId = controllo.getGroupId(); + long tecnicoUserId = pratica.getStatusByUserId(); + WorkflowInstanceLink instanceLink = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink(companyId, + groupId, ControlloPratica.class.getName(), controllo.getPrimaryKey()); + KaleoInstance instance = KaleoInstanceLocalServiceUtil.getKaleoInstance(instanceLink + .getWorkflowInstanceId()); + KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil.getKaleoInstanceToken(instance + .getRootKaleoInstanceTokenId()); + if (Validator.isNull(validCurrentNodeName) + || validCurrentNodeName.equals(instanceToken.getCurrentKaleoNodeName())) { + Date adesso = new Date(); + Role adminRole = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR); + User adminUser = UserLocalServiceUtil.getRoleUsers(adminRole.getRoleId(), 0, 1).get(0); + ServiceContext scAdmin = new ServiceContext(); + scAdmin.setCompanyId(companyId); + scAdmin.setScopeGroupId(groupId); + scAdmin.setUserId(adminUser.getUserId()); + ServiceContext scTecnico = new ServiceContext(); + scTecnico.setCompanyId(companyId); + scTecnico.setScopeGroupId(groupId); + scTecnico.setUserId(tecnicoUserId); + List taskInstanceTokens = KaleoTaskInstanceTokenLocalServiceUtil + .getKaleoTaskInstanceTokens(instance.getKaleoInstanceId(), true, 0, 1, + OrderByComparatorFactoryUtil.create("KaleoTaskInstanceToken", + "kaleoTaskInstanceTokenId", false), scTecnico); + if (taskInstanceTokens.size() > 0) { + @SuppressWarnings("unchecked") + Map workflowContext = (Map) JSONFactoryUtil + .deserialize(taskInstanceTokens.get(0).getWorkflowContext()); + long definitionId = taskInstanceTokens.get(0).getKaleoDefinitionId(); + User tecnicoUser = UserLocalServiceUtil.getUser(tecnicoUserId); + KaleoTaskInstanceToken taskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil + .createKaleoTaskInstanceToken(CounterLocalServiceUtil.increment()); + taskInstanceToken.setGroupId(groupId); + taskInstanceToken.setCompanyId(companyId); + taskInstanceToken.setUserId(adminUser.getUserId()); + taskInstanceToken.setUserName(adminUser.getFullName()); + taskInstanceToken.setCreateDate(adesso); + taskInstanceToken.setModifiedDate(adesso); + taskInstanceToken.setKaleoDefinitionId(definitionId); + taskInstanceToken.setKaleoInstanceId(instance.getKaleoInstanceId()); + taskInstanceToken.setKaleoInstanceTokenId(instanceToken.getKaleoInstanceTokenId()); + taskInstanceToken.setKaleoTaskId(taskId); + taskInstanceToken.setKaleoTaskName(taskName); + taskInstanceToken.setClassName(ControlloPratica.class.getName()); + taskInstanceToken.setClassPK(controllo.getPrimaryKey()); + taskInstanceToken.setWorkflowContext(JSONFactoryUtil.serialize(workflowContext)); + KaleoTaskAssignmentInstanceLocalServiceUtil.addKaleoTaskAssignmentInstance(groupId, + taskInstanceToken, User.class.getName(), tecnicoUserId, scAdmin); + KaleoTaskInstanceTokenLocalServiceUtil.updateKaleoTaskInstanceToken(taskInstanceToken); + KaleoLog log = KaleoLogLocalServiceUtil.createKaleoLog(CounterLocalServiceUtil.increment()); + log.setUserId(adminUser.getUserId()); + log.setUserName(adminUser.getFullName()); + log.setCompanyId(companyId); + log.setCreateDate(adesso); + log.setModifiedDate(adesso); + log.setKaleoClassName(KaleoNode.class.getName()); + log.setKaleoClassPK(nodeId); + log.setKaleoDefinitionId(definitionId); + log.setKaleoInstanceId(instance.getKaleoInstanceId()); + log.setKaleoInstanceTokenId(instanceToken.getKaleoInstanceTokenId()); + log.setKaleoTaskInstanceTokenId(taskInstanceToken.getKaleoTaskInstanceTokenId()); + log.setKaleoNodeName(nodeName); + log.setCurrentAssigneeClassName(User.class.getName()); + log.setCurrentAssigneeClassPK(tecnicoUserId); + log.setType(LogType.TASK_ASSIGNMENT.name()); + log.setComment(comment); + log.setStartDate(adesso); + log.setWorkflowContext(JSONFactoryUtil.serialize(workflowContext)); + KaleoLogLocalServiceUtil.updateKaleoLog(log); + instanceToken.setCurrentKaleoNodeId(nodeId); + instanceToken.setCurrentKaleoNodeName(nodeName); + KaleoInstanceTokenLocalServiceUtil.updateKaleoInstanceToken(instanceToken); + pratica.setStatoPratica(StatoPraticaConstants.SOTTOPOSTA_A_PARERE); + IntPraticaLocalServiceUtil.updateIntPratica(pratica); + esitoLog(esito, "Riassegnato workflow instance " + instance.getKaleoInstanceId() + " per pratica " + + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + "), istruttore " + + tecnicoUser.getFullName()); + } else { + esitoLog( + esito, + "Errore su integrazione. Pratica " + pratica.getNumeroProgetto() + " (" + + pratica.getIntPraticaId() + "), controllo " + controllo.getControlloPraticaId() + + ", taskInstanceToken = " + taskInstanceTokens.size()); + } + } + } else { + esitoLog(esito, + "Errore su integrazione. Pratica " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + + "), numero di controlli = " + controlli.size()); + } + return esito; + } + + public static List riparaWorkflow(String numeroProgetto) throws SystemException, PortalException { + + List esito = new ArrayList<>(); + IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto); + long intPraticaId = pratica.getIntPraticaId(); + long companyId = pratica.getCompanyId(); + long groupId = pratica.getGroupId(); + long userId = pratica.getUserId(); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); + long dettPraticaId = dettPratica.getDettPraticaId(); + if (Validator.isNull(pratica)) { + esitoLog(esito, "Progetto " + numeroProgetto + " non trovato"); + return esito; + } + // STATUS_APPROVED STATUS_DENIED STATUS_DRAFT STATUS_INACTIVE STATUS_PENDING + List controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, + WorkflowConstants.STATUS_PENDING); + if (0 == controlli.size()) { + esitoLog(esito, "Aggiungo controllo pratica"); + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(companyId); + serviceContext.setScopeGroupId(dettPraticaId); + serviceContext.setUserId(userId); + ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, true, + serviceContext); + } + return esito; + } + public static Long daysBetween(String start, String end) { + Long diff = null; try { diff = daysBetween(sdfGiornoDB.parse(start), sdfGiornoDB.parse(end)); @@ -128,10 +335,12 @@ public class SismicaUtil { } public static Long daysPast(Date start) { + return daysBetween(start, new Date()); } public static Long daysPast(String start) { + Long diff = null; try { diff = daysBetween(sdfGiornoDB.parse(start), new Date()); @@ -141,6 +350,7 @@ public class SismicaUtil { } public static boolean isLong(String s) { + try { Long.parseLong(s); } catch (NumberFormatException e) { @@ -150,8 +360,8 @@ public class SismicaUtil { } public static List reIndexFascicoli(long companyId) { - List esito = new ArrayList<>(); + List esito = new ArrayList<>(); int start = 0; List pratiche = null; do { @@ -168,11 +378,12 @@ public class SismicaUtil { _log.info("Reindicizzate " + start + " pratiche"); } } while (pratiche.size() > 0); - esito.add("" + start + " pratiche reindicizzate."); + esitoLog(esito, "" + start + " pratiche reindicizzate."); return esito; } public static List riparaWorkflow(long companyId, long userId) { + List esito = new ArrayList<>(); esito.addAll(riparaConformita(companyId)); esito.addAll(riparaAssegnazioniAlRuolo(companyId, userId)); @@ -181,37 +392,73 @@ public class SismicaUtil { try { esito.addAll(riparaDocumenti(companyId)); } catch (SystemException | PortalException e) { - esito.add("Errore durante l'elaborazione: " + e.getMessage()); + esitoLog(esito, "Errore durante l'elaborazione: " + e.getMessage()); } return esito; } - private static List riparaAssegnazioniAlRuolo(long companyId, long userId) { + public static List gestionePratiche() { List esito = new ArrayList<>(); - esito.add("Controllo assegnazioni al ruolo"); + esitoLog(esito, "Gestione pratiche"); + int start = 0; + List pratiche = null; + try { + do { + pratiche = IntPraticaLocalServiceUtil.getIntPraticas(start, start + SLICE); + for (IntPratica pratica : pratiche) { + if (Validator.isNotNull(pratica.getNumeroProgetto()) + && (0 == ControlloPraticaLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId()) + .size())) { + DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(pratica + .getIntPraticaId()); + if (Validator.isNotNull(dettPratica)) { + esitoLog( + esito, + "Gestione pratica " + pratica.getNumeroProgetto() + " (id " + + pratica.getIntPraticaId() + ")"); + dettPratica.setGestita(false); + DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setCompanyId(dettPratica.getCompanyId()); + serviceContext.setScopeGroupId(dettPratica.getGroupId()); + serviceContext.setUserId(dettPratica.getUserId()); + SchedulerPratiche.avvioWorkflow(dettPratica, dettPratica.getUserId(), serviceContext); + } + } + } + start += pratiche.size(); + } while (pratiche.size() > 0); + } catch (Exception e) { + esitoLog(esito, "Errore durante l'elaborazione " + e.getMessage()); + } + return esito; + } + + private static List riparaAssegnazioniAlRuolo(long companyId, long userId) { + List esito = new ArrayList<>(); + esitoLog(esito, "Controllo assegnazioni al ruolo"); int start = 0; List tasks = null; do { try { - tasks = WorkflowTaskManagerUtil - .getWorkflowTasks(companyId, false, start, start + SLICE, null); + tasks = WorkflowTaskManagerUtil.getWorkflowTasks(companyId, false, start, start + SLICE, null); } catch (WorkflowException e) { - esito.add("Errore durante il recupero dei task: " + e.getMessage()); + esitoLog(esito, "Errore durante il recupero dei task: " + e.getMessage()); tasks = new ArrayList<>(); } start += SLICE; for (WorkflowTask task : tasks) { WorkflowInstance instance; try { - instance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, - task.getWorkflowInstanceId()); + instance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, task.getWorkflowInstanceId()); } catch (WorkflowException e) { - esito.add("Errore durante il recupero di WorkflowInstance per WorkflowTask " - + task.getWorkflowTaskId() + ": " + e.getMessage()); + esitoLog( + esito, + "Errore durante il recupero di WorkflowInstance per WorkflowTask " + + task.getWorkflowTaskId() + ": " + e.getMessage()); return esito; } - long assigneeId = task.getAssigneeUserId(); boolean nonAssegnato = ((assigneeId == 0) || (assigneeId == -1)); if (nonAssegnato && (instance.getState().equals("Esito"))) { @@ -224,7 +471,7 @@ public class SismicaUtil { try { controllo = ControlloPraticaLocalServiceUtil.getControlloPratica(classPK); } catch (PortalException | SystemException e) { - esito.add("Errore durante il recupero del ControlloPratica " + classPK + esitoLog(esito, "Errore durante il recupero del ControlloPratica " + classPK + ", WorkflowTask " + task.getWorkflowTaskId() + ": " + e.getMessage()); return esito; } @@ -232,32 +479,34 @@ public class SismicaUtil { try { pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo.getIntPraticaId()); } catch (PortalException | SystemException e) { - esito.add("Errore durante il recupero di IntPratica " - + controllo.getIntPraticaId() + ", ControlloPratica " + classPK - + ", WorkflowTask " + task.getWorkflowTaskId() + ": " + e.getMessage()); + esitoLog(esito, "Errore durante il recupero di IntPratica " + controllo.getIntPraticaId() + + ", ControlloPratica " + classPK + ", WorkflowTask " + task.getWorkflowTaskId() + + ": " + e.getMessage()); return esito; } User user = null; try { user = UserLocalServiceUtil.getUser(pratica.getStatusByUserId()); } catch (PortalException | SystemException e) { - esito.add("Errore durante il recupero dell'utente " + pratica.getStatusByUserId()); + esitoLog(esito, "Errore durante il recupero dell'utente " + pratica.getStatusByUserId()); return esito; } - esito.add("Pratica non assegnabile " + pratica.getNumeroProgetto() + " (" - + pratica.getIntPraticaId() + ") - Kaleo disallineato WorkflowInstance " - + instance.getWorkflowInstanceId() + ", riassegno a " + user.getFirstName() - + " " + user.getLastName()); + esitoLog( + esito, + "Pratica non assegnabile " + pratica.getNumeroProgetto() + " (" + + pratica.getIntPraticaId() + ") - Kaleo disallineato WorkflowInstance " + + instance.getWorkflowInstanceId() + ", riassegno a " + user.getFirstName() + + StringPool.SPACE + user.getLastName()); try { WorkflowTaskManagerUtil.assignWorkflowTaskToUser(companyId, userId, task.getWorkflowTaskId(), pratica.getStatusByUserId(), - "Riassegnazione automatica da sistema per recupero workflow", - task.getDueDate(), instance.getWorkflowContext()); + "Riassegnazione automatica da sistema per recupero workflow", task.getDueDate(), + instance.getWorkflowContext()); } catch (WorkflowException e) { - esito.add("Errore durante la riassegnazione: " + e.getMessage()); + esitoLog(esito, "Errore durante la riassegnazione: " + e.getMessage()); } } else { - esito.add("La classe del task è " + taskClass); + esitoLog(esito, "La classe del task è " + taskClass); } } } @@ -266,8 +515,9 @@ public class SismicaUtil { } private static List riparaConformita(long companyId) { + List esito = new ArrayList<>(); - esito.add("Riparazione avvisi di conformità"); + esitoLog(esito, "Riparazione avvisi di conformità"); List pratiche = null; int start = 0; @@ -275,56 +525,54 @@ public class SismicaUtil { try { pratiche = IntPraticaLocalServiceUtil.getIntPraticas(start, start + SLICE); } catch (SystemException e) { - esito.add("Errore caricamento intPratiche: " + e.getMessage()); + esitoLog(esito, "Errore caricamento intPratiche: " + e.getMessage()); } start += SLICE; List avvisi = null; for (IntPratica pratica : pratiche) { String stato = pratica.getStatoPratica(); if (Validator.isNotNull(stato) && Validator.isNotNull(pratica.getTipoProcedura()) - && pratica.getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_DEPOSITO)) { + && pratica.getTipoPratica().equals(Constants.TIPO_PRATICA_DEPOSITO)) { try { - avvisi = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento( - pratica.getIntPraticaId(), StatoPraticaConstants.CONFORME); + avvisi = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(pratica.getIntPraticaId(), + StatoPraticaConstants.CONFORME); } catch (SystemException e) { - esito.add("Errore caricamento avvisi: " + e.getMessage()); + esitoLog(esito, "Errore caricamento avvisi: " + e.getMessage()); } List totali = null; try { - totali = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(), - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + totali = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(), QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); } catch (SystemException e) { totali = new ArrayList<>(); } if ((avvisi.size() == 0) && stato.equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) { List controlli = null; try { - controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica - .getIntPraticaId()); + controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId()); } catch (SystemException e) { controlli = new ArrayList<>(); } - if (pratica.getStatoPratica().equals(StatoPraticaConstants.VIDIMATA) - && (controlli.size() == 0)) { - esito.add("Progetto: " + pratica.getNumeroProgetto() + " (" - + pratica.getIntPraticaId() + "), procedura=" - + pratica.getTipoProcedura() + ", avvisi=" + totali.size() + ", stato=" - + pratica.getStatoPratica() + ", controlli=" + controlli.size()); + if (pratica.getStatoPratica().equals(StatoPraticaConstants.VIDIMATA) && (controlli.size() == 0)) { + esitoLog( + esito, + "Progetto: " + pratica.getNumeroProgetto() + " (" + pratica.getIntPraticaId() + + "), procedura=" + pratica.getTipoProcedura() + ", avvisi=" + + totali.size() + ", stato=" + pratica.getStatoPratica() + ", controlli=" + + controlli.size()); DettPratica dettPratica; try { - dettPratica = DettPraticaLocalServiceUtil - .getLastCompletedByIntPratica(pratica.getIntPraticaId()); + dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(pratica + .getIntPraticaId()); } catch (SystemException e) { dettPratica = null; } - if (Validator.isNotNull(dettPratica)) { ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(dettPratica.getCompanyId()); serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setUserId(dettPratica.getUserId()); - ControlloPratica controllo; try { controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( @@ -340,16 +588,13 @@ public class SismicaUtil { ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo); } catch (SystemException e) { } - long fileEntryIdTemplate; try { - fileEntryIdTemplate = ConfigurazioneLocalServiceUtil - .findByC_ChiaveLong(companyId, - "conf.geniocivile.avviso.template.id.deposito.B2"); + fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( + companyId, "conf.geniocivile.avviso.template.id.deposito.B2"); } catch (SystemException e) { fileEntryIdTemplate = 0; } - if (Validator.isNotNull(fileEntryIdTemplate)) { try { pratica.setStatoPratica(StatoPraticaConstants.CONFORME); @@ -362,7 +607,7 @@ public class SismicaUtil { } } else if ((totali.size() == 2) && (avvisi.size() > 0) && stato.equalsIgnoreCase(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) { - esito.add("Rendo conforme: " + pratica.getNumeroProgetto()); + esitoLog(esito, "Rendo conforme: " + pratica.getNumeroProgetto()); pratica.setStatoPratica(StatoPraticaConstants.CONFORME); try { IntPraticaLocalServiceUtil.updateIntPratica(pratica); @@ -376,17 +621,16 @@ public class SismicaUtil { } private static List riparaContextWorkflow(long companyId) { - List esito = new ArrayList<>(); - esito.add("Riparazione context workflow"); + List esito = new ArrayList<>(); + esitoLog(esito, "Riparazione context workflow"); int start = 0; List tasks = null; do { try { - tasks = WorkflowTaskManagerUtil - .getWorkflowTasks(companyId, false, start, start + SLICE, null); + tasks = WorkflowTaskManagerUtil.getWorkflowTasks(companyId, false, start, start + SLICE, null); } catch (WorkflowException e) { - esito.add("Errore durante il recupero dei task: " + e.getMessage()); + esitoLog(esito, "Errore durante il recupero dei task: " + e.getMessage()); tasks = new ArrayList<>(); } start += SLICE; @@ -398,67 +642,64 @@ public class SismicaUtil { } private static List checkWorkflow(long companyId, WorkflowTask workflowTask) { - List esito = new ArrayList<>(); + List esito = new ArrayList<>(); try { WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, workflowTask.getWorkflowInstanceId()); Map workflowContext = workflowInstance.getWorkflowContext(); String className = (String) workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME); if (Validator.isNull(className)) { - esito.add("WorkflowInstance " + workflowInstance.getWorkflowInstanceId() + ", WorkflowTask " + esitoLog(esito, "WorkflowInstance " + workflowInstance.getWorkflowInstanceId() + ", WorkflowTask " + workflowTask.getWorkflowTaskId() + " non ha la classe"); Map attributes = workflowTask.getOptionalAttributes(); String taskClass = (String) attributes.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_NAME); if (taskClass.equals(ControlloPratica.class.getName())) { - long classPK = GetterUtil.getLong((String) attributes - .get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)); + long classPK = GetterUtil + .getLong((String) attributes.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)); try { - ControlloPratica controllo = ControlloPraticaLocalServiceUtil - .getControlloPratica(classPK); + ControlloPratica controllo = ControlloPraticaLocalServiceUtil.getControlloPratica(classPK); try { - IntPratica pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo - .getIntPraticaId()); - esito.add("La pratica numero " + pratica.getNumeroProgetto() - + " non è lavorabile"); + IntPratica pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo.getIntPraticaId()); + esitoLog(esito, "La pratica numero " + pratica.getNumeroProgetto() + " non è lavorabile"); try { WorkflowInstanceManagerUtil.updateWorkflowContext(companyId, workflowInstance.getWorkflowInstanceId(), attributes); - esito.add("> Riparazione riuscita"); + esitoLog(esito, "> Riparazione riuscita"); } catch (WorkflowException e) { - esito.add("> Errore durante riparazione."); + esitoLog(esito, "> Errore durante riparazione."); } } catch (PortalException | SystemException e) { - esito.add("Errore di caricamento IntPratica " + controllo.getIntPraticaId() - + " (" + e.getMessage() + ")"); + esitoLog(esito, "Errore di caricamento IntPratica " + controllo.getIntPraticaId() + " (" + + e.getMessage() + StringPool.CLOSE_PARENTHESIS); } } catch (PortalException | SystemException e) { - esito.add("Errore di caricamento ControlloPratica " + classPK + " (" + e.getMessage() - + ")"); + esitoLog(esito, "Errore di caricamento ControlloPratica " + classPK + " (" + e.getMessage() + + StringPool.CLOSE_PARENTHESIS); } } } } catch (WorkflowException e) { - esito.add("WorkflowInstance non caricato: " + workflowTask.getWorkflowInstanceId() + " (" - + e.getMessage() + ")"); + esitoLog(esito, + "WorkflowInstance non caricato: " + workflowTask.getWorkflowInstanceId() + " (" + e.getMessage() + + StringPool.CLOSE_PARENTHESIS); } return esito; } private static List creaWorkflowMancanti(long companyId) { - List esito = new ArrayList<>(); - esito.add("Creazione workflow mancanti"); + List esito = new ArrayList<>(); + esitoLog(esito, "Creazione workflow mancanti"); List tokens = new ArrayList<>(); try { - for (KaleoTaskInstanceToken token : KaleoTaskInstanceTokenLocalServiceUtil - .getKaleoTaskInstanceTokens(QueryUtil.ALL_POS, QueryUtil.ALL_POS)) { + for (KaleoTaskInstanceToken token : KaleoTaskInstanceTokenLocalServiceUtil.getKaleoTaskInstanceTokens( + QueryUtil.ALL_POS, QueryUtil.ALL_POS)) { if (token.getClassName().equals(ControlloPratica.class.getName())) tokens.add(token.getClassPK()); } } catch (SystemException e) { } - int start = 0; List pratiche = null; do { @@ -474,8 +715,7 @@ public class SismicaUtil { && (pratica.getStatus() == WorkflowConstants.STATUS_PENDING)) { List controlli = null; try { - controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica - .getIntPraticaId()); + controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId()); } catch (SystemException e) { controlli = new ArrayList<>(); } @@ -491,19 +731,15 @@ public class SismicaUtil { serviceContext.setCompanyId(last.getCompanyId()); serviceContext.setScopeGroupId(last.getGroupId()); serviceContext.setUserId(last.getUserId()); - Map workflowContext = new HashMap(); - - esito.add("id: " + pratica.getIntPraticaId() + ", numero: " - + pratica.getNumeroProgetto()); + esitoLog(esito, "id: " + pratica.getIntPraticaId() + ", numero: " + pratica.getNumeroProgetto()); try { - WorkflowHandlerRegistryUtil.startWorkflowInstance(last.getCompanyId(), - last.getGroupId(), last.getUserId(), ControlloPratica.class.getName(), - last.getPrimaryKey(), last, serviceContext, workflowContext); + WorkflowHandlerRegistryUtil.startWorkflowInstance(last.getCompanyId(), last.getGroupId(), + last.getUserId(), ControlloPratica.class.getName(), last.getPrimaryKey(), last, + serviceContext, workflowContext); } catch (PortalException | SystemException e) { - esito.add("Errore " + e.getMessage()); + esitoLog(esito, "Errore " + e.getMessage()); } - } } } @@ -517,9 +753,9 @@ public class SismicaUtil { private static final Date inizio = stringToDate("2019-12-31"); private static List riparaDocumenti(long companyId) throws SystemException, PortalException { - List esito = new ArrayList(); - esito.add("Riparazione generazione documenti"); + List esito = new ArrayList(); + esitoLog(esito, "Riparazione generazione documenti"); initTemplate(companyId); List intPratiche = null; int index = 0; @@ -527,7 +763,7 @@ public class SismicaUtil { try { intPratiche = IntPraticaLocalServiceUtil.getIntPraticas(index, index + SLICE); } catch (SystemException e) { - esito.add("Errore caricamento intPratiche: " + e.getMessage()); + esitoLog(esito, "Errore caricamento intPratiche: " + e.getMessage()); } for (IntPratica intPratica : intPratiche) { esito.addAll(verificaAvvisi(intPratica)); @@ -538,13 +774,13 @@ public class SismicaUtil { } private static void initTemplate(long companyId) throws SystemException, PortalException { + templateById = new LinkedHashMap<>(); templateByKey = new LinkedHashMap<>(); templateIdByKey = new LinkedHashMap<>(); Map elenco = AvvisoUtil.getAllTipoDocumentoFileTemplateProps(); for (Entry template : elenco.entrySet()) { - long fileEntryId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, - template.getValue()); + long fileEntryId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, template.getValue()); if (fileEntryId != 0) { FileEntry fileEntry = DLAppServiceUtil.getFileEntry(fileEntryId); templateById.put(fileEntryId, fileEntry.getTitle()); @@ -555,18 +791,17 @@ public class SismicaUtil { } private static List verificaAvvisi(IntPratica intPratica) { + List esito = new ArrayList(); if (Validator.isNotNull(intPratica.getStatoPratica()) && !intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { long intPraticaId = intPratica.getIntPraticaId(); - List controlli = null; try { controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(intPraticaId); } catch (SystemException e) { controlli = new ArrayList(); } - ControlloPratica controllo = null; ServiceContext serviceContext = null; if (controlli.size() > 0) { @@ -585,16 +820,13 @@ public class SismicaUtil { } serviceContext.setUserId(intPratica.getUserId()); } - List avvisi = getAvvisiPratica(intPraticaId); List avvisiFermi = new ArrayList<>(); List avvisiInviati = new ArrayList<>(); - Date ultimaData = null; for (Avviso avviso : avvisi) { if ((ultimaData == null) || avviso.getModifiedDate().after(ultimaData)) ultimaData = avviso.getModifiedDate(); - if (!avviso.getAnnullato()) { String template = templateById.get(avviso.getFileEntryIdTemplate()); if (avviso.getDtAvviso().after(inizio) && !avviso.getAnnullato() @@ -607,7 +839,6 @@ public class SismicaUtil { } } } - if ((ultimaData != null) && (new Date().getTime() - ultimaData.getTime() > 7200000)) { for (Avviso avviso : avvisiFermi) { long templateId = avviso.getFileEntryIdTemplate(); @@ -628,28 +859,27 @@ public class SismicaUtil { case StatoPraticaConstants.VIDIMATA: if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { esito.addAll(addStoricoAvvisi(intPratica, avvisi)); - esito.add("Invio " + template + " (" + controlli.size() + " controlli)"); + esitoLog(esito, "Invio " + template + " (" + controlli.size() + " controlli)"); try { if (Validator.isNull(controllo)) { controllo = aggiungiControlloPratica(intPratica); - esito.add(intPratica.getNumeroProgetto() - + " aggiunto ControlloPratica " + esitoLog(esito, intPratica.getNumeroProgetto() + " aggiunto ControlloPratica " + controllo.getControlloPraticaId()); } - AvvisoLocalServiceUtil.addAvviso(intPraticaId, "", avviso.getDtAvviso(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, avviso.getTipoDocumento(), - templateId, controllo.getDettPraticaId(), + AvvisoLocalServiceUtil.addAvviso(intPraticaId, StringPool.BLANK, + avviso.getDtAvviso(), AvvisoUtil.TIPO_AVVISO_DIRETTO, + avviso.getTipoDocumento(), templateId, controllo.getDettPraticaId(), DettPratica.class.getName(), controllo.getControlloPraticaId(), serviceContext); } catch (Exception e) { - esito.add("Errore durante l'invio: " + e.getMessage()); + esitoLog(esito, "Errore durante l'invio: " + e.getMessage()); } } break; default: if (avviso.getTipoAvviso().equals(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { esito.addAll(addStoricoAvvisi(intPratica, avvisi)); - esito.add("Procederei all'invio di avviso " + template); + esitoLog(esito, "Procederei all'invio di avviso " + template); } break; } @@ -662,29 +892,29 @@ public class SismicaUtil { private static ControlloPratica aggiungiControlloPratica(IntPratica intPratica) throws PortalException, SystemException { - DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica - .getIntPraticaId()); + DettPratica dettPratica = DettPraticaLocalServiceUtil + .getLastCompletedByIntPratica(intPratica.getIntPraticaId()); ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(dettPratica.getCompanyId()); serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setUserId(dettPratica.getUserId()); - - ControlloPratica controllo = ControlloPraticaLocalServiceUtil.addControlloPratica( - intPratica.getGroupId(), intPratica.getUserId(), intPratica.getIntPraticaId(), - dettPratica.getDettPraticaId(), false, serviceContext); + ControlloPratica controllo = ControlloPraticaLocalServiceUtil.addControlloPratica(intPratica.getGroupId(), + intPratica.getUserId(), intPratica.getIntPraticaId(), dettPratica.getDettPraticaId(), false, + serviceContext); return controllo; } private static List getAvvisiPratica(long intPraticaId) { + List avvisi = null; try { avvisi = AvvisoLocalServiceUtil.findByIntPratica( intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - OrderByComparatorFactoryUtil.getOrderByComparatorFactory().create("portos_bo_Avviso", - "dtAvviso", true)); + OrderByComparatorFactoryUtil.getOrderByComparatorFactory().create("portos_bo_Avviso", "dtAvviso", + true)); } catch (SystemException e) { _log.error("Errore recupero avvisi" + e.getMessage()); avvisi = new ArrayList(); @@ -693,81 +923,58 @@ public class SismicaUtil { } private static List addStoricoAvvisi(IntPratica intPratica, List avvisi) { - List esito = new ArrayList(); - String tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, - "tipo-pratica-" + intPratica.getTipoPratica()); - esito.add("intPraticaId=" + intPratica.getIntPraticaId() + ", numeroProgetto=" - + intPratica.getNumeroProgetto() + ", procedura=" + intPratica.getTipoProcedura() - + ", stato=" + intPratica.getStatoPratica() + ", tipo=" + tipoPratica + ", data=" - + dfmt.format(intPratica.getCreateDate()) + ", modificata=" - + dfmt.format(intPratica.getModifiedDate()) + ""); + List esito = new ArrayList(); + String tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-" + intPratica.getTipoPratica()); + esitoLog( + esito, + "intPraticaId=" + intPratica.getIntPraticaId() + ", numeroProgetto=" + + intPratica.getNumeroProgetto() + ", procedura=" + intPratica.getTipoProcedura() + ", stato=" + + intPratica.getStatoPratica() + ", tipo=" + tipoPratica + ", data=" + + dfmt.format(intPratica.getCreateDate()) + ", modificata=" + + dfmt.format(intPratica.getModifiedDate()) + ""); for (Avviso avviso : avvisi) { String template = templateById.get(avviso.getFileEntryIdTemplate()); - if (template == null) + if (template == null) { template = templateByKey.get(avviso.getTipoDocumento()); - ; + } boolean inviato = avviso.getInviato().equalsIgnoreCase(AvvisoUtil.DOCUMENTO_INVIATO); - esito.add(dfmt.format(avviso.getDtAvviso()) + " Avviso " + template + " " - + (inviato ? "inviato " + dfmt.format(avviso.getDtInvio()) : "non inviato") - + " - tipo avviso " + avviso.getTipoAvviso() + " - tipo documento " - + avviso.getTipoDocumento()); + esitoLog( + esito, + dfmt.format(avviso.getDtAvviso()) + " Avviso " + template + " " + + (inviato ? "inviato " + dfmt.format(avviso.getDtInvio()) : "non inviato") + + " - tipo avviso " + avviso.getTipoAvviso() + " - tipo documento " + + avviso.getTipoDocumento()); } return esito; } public static List inviaComunicazione(long companyId) throws SystemException, PortalException { - List esito = new ArrayList<>(); + List esito = new ArrayList<>(); long templateId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, AvvisoUtil .getAllTipoDocumentoFileTemplateProps().get("DPVNS")); - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(templateId); - String templateTitle = fileEntry.getTitle(); - int inizio = 0; List pratiche = null; do { pratiche = IntPraticaLocalServiceUtil.getIntPraticas(inizio, inizio + SLICE); for (IntPratica pratica : pratiche) { if (!pratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) { - List avvisi = AvvisoLocalServiceUtil.findByIntPratica_Inviato( - pratica.getIntPraticaId(), AvvisoUtil.DOCUMENTO_INVIATO, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, + List avvisi = AvvisoLocalServiceUtil.findByIntPratica_Inviato(pratica.getIntPraticaId(), + AvvisoUtil.DOCUMENTO_INVIATO, QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil.create("portos_bo_avviso", "createDate", false)); List varianti = new ArrayList<>(); int inviate = 0; boolean autorizzata = false; boolean annullata = false; - boolean conforme = false; boolean collaudo = false; boolean fineLavori = false; for (Avviso avviso : avvisi) { if (!avviso.getAnnullato()) { - if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA) - && avviso.getClassName().equals(DettPratica.class.getName())) { - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso - .getClassPk()); - if (dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE) - && !dettPratica.getVarianteSostanziale()) { - if (!autorizzata && !conforme) { - fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso - .getFileEntryIdTemplate()); - if (!fileEntry.getTitle().equals(templateTitle)) { - varianti.add(avviso); - } else { - inviate++; - } - } - } - } else if (avviso.getTipoDocumento().equalsIgnoreCase( - StatoPraticaConstants.ANNULLA_ISTANZA)) { + if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.ANNULLA_ISTANZA)) { annullata = true; - } else if (avviso.getTipoDocumento().equalsIgnoreCase( - StatoPraticaConstants.CONFORME)) { - conforme = true; - } else if (avviso.getTipoDocumento().equalsIgnoreCase( - StatoPraticaConstants.AUTORIZZATA)) { + } else if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.AUTORIZZATA)) { autorizzata = true; } else if (avviso.getClassName().equals(Collaudo.class.getName())) { collaudo = true; @@ -776,35 +983,28 @@ public class SismicaUtil { } } } - if ((varianti.size() > 0) - && (varianti.size() != inviate) - && !annullata - && !collaudo - && !fineLavori - && (pratica.getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_DEPOSITO) || autorizzata)) { + if ((varianti.size() > 0) && (varianti.size() != inviate) && !annullata && !collaudo && !fineLavori + && (pratica.getTipoPratica().equals(Constants.TIPO_PRATICA_DEPOSITO) || autorizzata)) { String tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-" + pratica.getTipoPratica()); - List controlli = ControlloPraticaLocalServiceUtil - .findByIntPratica(pratica.getIntPraticaId()); + List controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica + .getIntPraticaId()); if (controlli.size() > 0) { - esito.add("Pratica " + tipoPratica + " " + pratica.getNumeroProgetto() + " (" - + pratica.getIntPraticaId() + ") invio vidimazione per " - + varianti.size() + " varianti non sostanziali, già inviate " + inviate); + esitoLog(esito, "Pratica " + tipoPratica + StringPool.SPACE + pratica.getNumeroProgetto() + + " (" + pratica.getIntPraticaId() + ") invio vidimazione per " + varianti.size() + + " varianti non sostanziali, già inviate " + inviate); for (Avviso avviso : varianti) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso .getClassPk()); - ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setUserId(dettPratica.getUserId()); - AvvisoLocalServiceUtil.addAvviso(pratica.getIntPraticaId(), "Attestazione di deposito variante", new Date(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, - templateId, avviso.getClassPk(), avviso.getClassName(), controlli - .get(controlli.size() - 1).getControlloPraticaId(), - serviceContext); + AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, templateId, + avviso.getClassPk(), avviso.getClassName(), controlli.get(controlli.size() - 1) + .getControlloPraticaId(), serviceContext); } } } @@ -814,4 +1014,11 @@ public class SismicaUtil { } while (pratiche.size() > 0); return esito; } + + private static List esitoLog(List esito, String msg) { + + esito.add(msg); + _log.info(msg); + return esito; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java deleted file mode 100644 index 9848d123..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SorteggioPraticaUtil.java +++ /dev/null @@ -1,67 +0,0 @@ -package it.mwg.sismica.bo.util; - -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Date; -import java.util.List; -import org.apache.commons.lang.time.DateUtils; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.repository.model.Folder; -import com.liferay.portal.model.Company; -import com.liferay.portal.service.CompanyLocalServiceUtil; -import com.liferay.portlet.documentlibrary.model.DLFolderConstants; -import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; - -public class SorteggioPraticaUtil { - - public static final String DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm:ss"; - - private static final String FOLDER_SORTEGGIO = "Report_Sorteggio"; - - public static List sorteggio(long companyId, Date dtSorteggio) throws PortalException, - SystemException { - - List esito = new ArrayList<>(); - return esito; - } - - private static String reportFileName(long companyId, Date dtSorteggio) { - Calendar calSorteggio = DateUtils.toCalendar(dtSorteggio); - String anno = String.valueOf(calSorteggio.get(Calendar.YEAR)); - int settimana = calSorteggio.get(Calendar.WEEK_OF_YEAR); - return reportFileName(companyId, anno, settimana); - } - - private static String reportFileName(long companyId, String anno, int settimana) { - return "Sorteggio_" + settimana + "_" + anno + "_" + companyId; - } - - public static FileEntry getFileEntrySorteggio(long companyId, long groupId, Date dtSorteggio) - throws PortalException, SystemException { - - Company company = CompanyLocalServiceUtil.getCompany(companyId); - - Folder folder = DLAppLocalServiceUtil.getFolder(company.getGroupId(), - DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, FOLDER_SORTEGGIO); - String fileName = reportFileName(companyId, dtSorteggio); - - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(groupId, folder.getFolderId(), fileName); - - return fileEntry; - } - - public static FileEntry getFileEntrySorteggio(long companyId, long groupId, int settimana, String anno) - throws PortalException, SystemException { - - Company company = CompanyLocalServiceUtil.getCompany(companyId); - - Folder folder = DLAppLocalServiceUtil.getFolder(company.getGroupId(), - DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, FOLDER_SORTEGGIO); - String fileName = reportFileName(companyId, anno, settimana); - - return DLAppLocalServiceUtil.getFileEntry(groupId, folder.getFolderId(), fileName); - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRenderer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRenderer.java index c5e8564b..bf7044e9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRenderer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRenderer.java @@ -26,124 +26,114 @@ import com.liferay.portlet.asset.model.BaseAssetRenderer; public class ControlloPraticaAssetRenderer extends BaseAssetRenderer { - public ControlloPraticaAssetRenderer(ControlloPratica entry) { - _entry = entry; - } - - public String getClassName() { - return ControlloPratica.class.getName(); - } + public ControlloPraticaAssetRenderer(ControlloPratica entry) { - public long getClassPK() { - return _entry.getControlloPraticaId(); - } + _entry = entry; + } - public long getGroupId() { - return _entry.getGroupId(); - } + @Override + public String getClassName() { - public String getSummary(Locale locale) { - return String.valueOf(_entry.getControlloPraticaId()); - } + return ControlloPratica.class.getName(); + } - public String getTitle(Locale locale) { - return String.valueOf(_entry.getControlloPraticaId()); - } + @Override + public long getClassPK() { - @Override - public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, - LiferayPortletResponse liferayPortletResponse) throws Exception { + return _entry.getControlloPraticaId(); + } - PortletURL portletURL = - liferayPortletResponse.createLiferayPortletURL(getControlPanelPlid(liferayPortletRequest), - PortletKeys.FASCICOLO, PortletRequest.ACTION_PHASE); + @Override + public long getGroupId() { - portletURL.setParameter("name", "viewControlloPratica"); - portletURL.setParameter("entryId", String.valueOf(_entry.getControlloPraticaId())); + return _entry.getGroupId(); + } - return portletURL; - } + @Override + public String getSummary(Locale locale) { - @Override - public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, - LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception { + return String.valueOf(_entry.getControlloPraticaId()); + } - // PortletURL portletURL = - // liferayPortletResponse.createLiferayPortletURL(getPlid(liferayPortletRequest), - // PortletKeys.FASCICOLO, - // PortletRequest.ACTION_PHASE); - // - // portletURL.setWindowState(WindowState.MAXIMIZED); - // - // portletURL.setParameter("name", "viewControlloPratica"); - // portletURL.setParameter("entryId", String.valueOf(_entry.getControlloPraticaId())); + @Override + public String getTitle(Locale locale) { - return FascicoloURLUtil.getFascicoloViewURL(_entry.getCompanyId(), _entry.getIntPraticaId()); - } + return String.valueOf(_entry.getControlloPraticaId()); + } - @Override - public boolean isPreviewInContext() { - return true; - } + @Override + public PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, + LiferayPortletResponse liferayPortletResponse) throws Exception { - public long getUserId() { - return _entry.getUserId(); - } + PortletURL portletURL = liferayPortletResponse.createLiferayPortletURL( + getControlPanelPlid(liferayPortletRequest), PortletKeys.FASCICOLO, PortletRequest.ACTION_PHASE); + portletURL.setParameter("name", "viewControlloPratica"); + portletURL.setParameter("entryId", String.valueOf(_entry.getControlloPraticaId())); + return portletURL; + } - public String getUserName() { - return _entry.getUserName(); - } + @Override + public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, + LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception { - public String getUuid() { - return _entry.getUuid(); - } + return FascicoloURLUtil.getFascicoloViewURL(_entry.getCompanyId(), _entry.getIntPraticaId()); + } - @Override - public boolean hasEditPermission(PermissionChecker permissionChecker) { - // try { - // return DettPraticaEntryPermission.contains(permissionChecker, _entry.getDettPraticaId(), - // ActionKeys.UPDATE); - // } catch (Exception e) { - // } - return false; - } + @Override + public boolean isPreviewInContext() { - @Override - public boolean hasViewPermission(PermissionChecker permissionChecker) { - // try { - // return DettPraticaEntryPermission.contains(permissionChecker, _entry.getDettPraticaId(), - // ActionKeys.VIEW); - // } catch (Exception e) { - // } - return true; - } + return true; + } - public String render(RenderRequest renderRequest, RenderResponse renderResponse, String template) throws Exception { + @Override + public long getUserId() { + return _entry.getUserId(); + } - renderRequest.setAttribute("controlloPratica", _entry); + @Override + public String getUserName() { - return "/html/asset/controllopratica/full_content.jsp"; + return _entry.getUserName(); + } - } + @Override + public String getUuid() { - protected long getPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException, SystemException { + return _entry.getUuid(); + } - HttpServletRequest request = liferayPortletRequest.getHttpServletRequest(); + @Override + public boolean hasEditPermission(PermissionChecker permissionChecker) { - ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); + return false; + } - Layout layout = themeDisplay.getLayout(); + @Override + public boolean hasViewPermission(PermissionChecker permissionChecker) { - long plid = PortalUtil.getPlidFromPortletId(layout.getGroupId(), layout.isPrivateLayout(), PortletKeys.FASCICOLO); + return true; + } - if (plid == LayoutConstants.DEFAULT_PLID) { - plid = layout.getPlid(); - } + @Override + public String render(RenderRequest renderRequest, RenderResponse renderResponse, String template) throws Exception { - return plid; - } + renderRequest.setAttribute("controlloPratica", _entry); + return "/html/asset/controllopratica/full_content.jsp"; + } - private ControlloPratica _entry; + protected long getPlid(LiferayPortletRequest liferayPortletRequest) throws PortalException, SystemException { + HttpServletRequest request = liferayPortletRequest.getHttpServletRequest(); + ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); + Layout layout = themeDisplay.getLayout(); + long plid = PortalUtil.getPlidFromPortletId(layout.getGroupId(), layout.isPrivateLayout(), + PortletKeys.FASCICOLO); + if (plid == LayoutConstants.DEFAULT_PLID) { + plid = layout.getPlid(); + } + return plid; + } + + private ControlloPratica _entry; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRendererFactory.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRendererFactory.java index b1f2fbb8..e44d474f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRendererFactory.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRendererFactory.java @@ -1,6 +1,5 @@ package it.tref.liferay.portos.bo.asset; - import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; @@ -11,23 +10,25 @@ import com.liferay.portlet.asset.model.BaseAssetRendererFactory; public class ControlloPraticaAssetRendererFactory extends BaseAssetRendererFactory { - public static final String CLASS_NAME = ControlloPratica.class.getName(); - - public static final String TYPE = "issue"; + public static final String CLASS_NAME = ControlloPratica.class.getName(); + public static final String TYPE = "issue"; - public AssetRenderer getAssetRenderer(long classPK, int type) throws PortalException, SystemException { + @Override + public AssetRenderer getAssetRenderer(long classPK, int type) throws PortalException, SystemException { - ControlloPratica entry = ControlloPraticaLocalServiceUtil.getControlloPratica(classPK); + ControlloPratica entry = ControlloPraticaLocalServiceUtil.getControlloPratica(classPK); + return new ControlloPraticaAssetRenderer(entry); + } - return new ControlloPraticaAssetRenderer(entry); - } + @Override + public String getClassName() { - public String getClassName() { - return CLASS_NAME; - } + return CLASS_NAME; + } - public String getType() { - return TYPE; - } + @Override + public String getType() { + return TYPE; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java index f7824df0..e38ef0aa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java @@ -16,9 +16,6 @@ import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.util.ParamUtil; -/** - * Servlet implementation class GeosismaRequestServlet - */ @WebServlet("/GeosismaRequest") public class GeosismaRequestServlet extends HttpServlet { private static final long serialVersionUID = 1L; @@ -31,163 +28,109 @@ public class GeosismaRequestServlet extends HttpServlet { } /** - * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse - * response) + * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ - protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, - IOException { + @Override + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("application/json"); PrintWriter out = response.getWriter(); - boolean isTipoPratica = ParamUtil.getBoolean(request, "isTipoPratica", false); boolean isStatoPratica = ParamUtil.getBoolean(request, "isStatoPratica", false); - JSONObject json = JSONFactoryUtil.createJSONObject(); - if (isTipoPratica) { - JSONArray array = JSONFactoryUtil.createJSONArray(); - JSONObject jsonDeposito = JSONFactoryUtil.createJSONObject(); jsonDeposito.put("chiave", "deposito"); jsonDeposito.put("valore", "Deposito"); array.put(jsonDeposito); - JSONObject jsonAutorizzazione = JSONFactoryUtil.createJSONObject(); jsonAutorizzazione.put("chiave", "autorizzazione"); jsonAutorizzazione.put("valore", "Autorizzazione"); array.put(jsonAutorizzazione); - JSONObject jsonControlloObbligatorio = JSONFactoryUtil.createJSONObject(); jsonControlloObbligatorio.put("chiave", "controlloObbligatorio"); jsonControlloObbligatorio.put("valore", "Controllo Obbligatorio"); array.put(jsonControlloObbligatorio); - - JSONObject jsonSorteggiate = JSONFactoryUtil.createJSONObject(); - jsonSorteggiate.put("chiave", "sorteggiata"); - jsonSorteggiate.put("valore", "Sorteggiata"); - array.put(jsonSorteggiate); - json.put("tipoPratica", array); - } else if (isStatoPratica) { - JSONArray array = JSONFactoryUtil.createJSONArray(); - JSONObject vidimata = JSONFactoryUtil.createJSONObject(); vidimata.put("chiave", StatoPraticaConstants.VIDIMATA); vidimata.put("valore", "Vidimata"); array.put(vidimata); - JSONObject conforme = JSONFactoryUtil.createJSONObject(); conforme.put("chiave", StatoPraticaConstants.CONFORME); conforme.put("valore", "Conforme"); array.put(conforme); - JSONObject autorizzata = JSONFactoryUtil.createJSONObject(); autorizzata.put("chiave", StatoPraticaConstants.AUTORIZZATA); autorizzata.put("valore", "Autorizzata"); array.put(autorizzata); - JSONObject fineLavori = JSONFactoryUtil.createJSONObject(); fineLavori.put("chiave", StatoPraticaConstants.FINE_LAVORI); fineLavori.put("valore", "Fine Lavori"); array.put(fineLavori); - JSONObject collaudo = JSONFactoryUtil.createJSONObject(); collaudo.put("chiave", StatoPraticaConstants.COLLAUDO); collaudo.put("valore", "Collaudo"); array.put(collaudo); - json.put("statoPratica", array); - } - out.print(json.toString()); - out.flush(); - } - /** - * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse - * response) - */ + // @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("application/json"); PrintWriter out = response.getWriter(); - boolean isTipoPratica = ParamUtil.getBoolean(request, "isTipoPratica", false); boolean isStatoPratica = ParamUtil.getBoolean(request, "isStatoPratica", false); - JSONObject json = JSONFactoryUtil.createJSONObject(); - if (isTipoPratica) { - JSONArray array = JSONFactoryUtil.createJSONArray(); - JSONObject jsonDeposito = JSONFactoryUtil.createJSONObject(); jsonDeposito.put("chiave", "deposito"); jsonDeposito.put("valore", "Deposito"); array.put(jsonDeposito); - JSONObject jsonAutorizzazione = JSONFactoryUtil.createJSONObject(); jsonAutorizzazione.put("chiave", "autorizzazione"); jsonAutorizzazione.put("valore", "Autorizzazione"); array.put(jsonAutorizzazione); - JSONObject jsonControlloObbligatorio = JSONFactoryUtil.createJSONObject(); jsonControlloObbligatorio.put("chiave", "controlloObbligatorio"); jsonControlloObbligatorio.put("valore", "Controllo Obbligatorio"); array.put(jsonControlloObbligatorio); - - JSONObject jsonSorteggiate = JSONFactoryUtil.createJSONObject(); - jsonSorteggiate.put("chiave", "sorteggiata"); - jsonSorteggiate.put("valore", "Sorteggiata"); - array.put(jsonSorteggiate); - json.put("tipoPratica", array); - } else if (isStatoPratica) { - JSONArray array = JSONFactoryUtil.createJSONArray(); - JSONObject vidimata = JSONFactoryUtil.createJSONObject(); vidimata.put("chiave", StatoPraticaConstants.VIDIMATA); vidimata.put("valore", "Vidimata"); array.put(vidimata); - JSONObject conforme = JSONFactoryUtil.createJSONObject(); conforme.put("chiave", StatoPraticaConstants.CONFORME); conforme.put("valore", "Conforme"); array.put(conforme); - JSONObject autorizzata = JSONFactoryUtil.createJSONObject(); autorizzata.put("chiave", StatoPraticaConstants.AUTORIZZATA); autorizzata.put("valore", "Autorizzata"); array.put(autorizzata); - JSONObject fineLavori = JSONFactoryUtil.createJSONObject(); fineLavori.put("chiave", StatoPraticaConstants.FINE_LAVORI); fineLavori.put("valore", "Fine Lavori"); array.put(fineLavori); - JSONObject collaudo = JSONFactoryUtil.createJSONObject(); collaudo.put("chiave", StatoPraticaConstants.COLLAUDO); collaudo.put("valore", "Collaudo"); array.put(collaudo); - json.put("statoPratica", array); - } - out.print(json.toString()); - out.flush(); - } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/hook/CfOrganizationMembershipPolicy.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/hook/CfOrganizationMembershipPolicy.java deleted file mode 100644 index 8ac1f3b4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/hook/CfOrganizationMembershipPolicy.java +++ /dev/null @@ -1,80 +0,0 @@ -package it.tref.liferay.portos.bo.hook; - -import it.tref.liferay.portos.bo.shared.util.Constants; - -import java.io.Serializable; -import java.util.Arrays; -import java.util.List; -import java.util.Map; - -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.model.Company; -import com.liferay.portal.model.Group; -import com.liferay.portal.model.Organization; -import com.liferay.portal.model.User; -import com.liferay.portal.security.membershippolicy.BaseOrganizationMembershipPolicy; -import com.liferay.portal.service.CompanyLocalServiceUtil; -import com.liferay.portal.service.GroupLocalServiceUtil; -import com.liferay.portal.service.UserLocalServiceUtil; -import com.liferay.portlet.asset.model.AssetCategory; -import com.liferay.portlet.asset.model.AssetTag; - -public class CfOrganizationMembershipPolicy extends BaseOrganizationMembershipPolicy { - - private static Log _log = LogFactoryUtil.getLog(CfOrganizationMembershipPolicy.class); - - @Override - public void checkMembership(long[] userIds, long[] addOrganizationIds, long[] removeOrganizationIds) {} - - @Override - public boolean isMembershipAllowed(long userId, long groupId) { - - try { - Group group = GroupLocalServiceUtil.getGroup(groupId); - Company company = CompanyLocalServiceUtil.getCompany(group.getCompanyId()); - String allowedCF = (String) company.getExpandoBridge().getAttribute(Constants.CF_ORGANIZATION_MEMBERSHIP, false); - - List allowedCFs = Arrays.asList(allowedCF.split("\\,")); - - User user = UserLocalServiceUtil.getUser(userId); - if (allowedCFs.contains(user.getScreenName())) { - return true; - } - - } catch (PortalException | SystemException e) { - _log.error(e, e); - } - - return false; - } - - @Override - public boolean isMembershipRequired(long userId, long groupId) { - return false; - } - - @Override - public boolean isRoleAllowed(long userId, long groupId, long roleId) { - return true; - } - - @Override - public boolean isRoleRequired(long userId, long groupId, long roleId) { - return false; - } - - @Override - public void propagateMembership(long[] userIds, long[] addOrganizationIds, long[] removeOrganizationIds) {} - - @Override - public void verifyPolicy(Organization organization) {} - - @Override - public void verifyPolicy(Organization organization, Organization oldOrganization, - List oldAssetCategories, List oldAssetTags, - Map oldExpandoAttributes) {} - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java index 88541f97..6a862672 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java @@ -6,7 +6,6 @@ import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; @@ -14,7 +13,6 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaActionableDynamicQuery; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; @@ -44,6 +42,7 @@ import com.liferay.portal.kernel.search.SearchException; import com.liferay.portal.kernel.search.Summary; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowInstance; import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; @@ -93,166 +92,113 @@ public class ControlloPraticaIndexer extends BaseIndexer { protected void doDelete(Object obj) throws Exception { if (Validator.isNotNull(obj)) { - ControlloPratica controlloPratica = (ControlloPratica) obj; deleteDocument(controlloPratica.getCompanyId(), controlloPratica.getControlloPraticaId()); - } else { _log.warn("Received a null ControlloPratica to delete in input."); } - } @Override protected Document doGetDocument(Object obj) throws Exception { Document document = null; - if (Validator.isNotNull(obj)) { - ControlloPratica controlloPratica = (ControlloPratica) obj; ControlloPratica controlloPraticaFromDB = ControlloPraticaLocalServiceUtil .getControlloPratica(controlloPratica.getControlloPraticaId()); - if (_log.isDebugEnabled()) { _log.debug("Indexing ControlloPratica: " + controlloPratica.getControlloPraticaId()); } - document = getBaseModelDocument(PORTLET_ID, controlloPratica); - document.addKeyword("entryClassName", ControlloPratica.class.getName()); - - document.addKeyword(PortosIndexField.CONTROLLO_PRATICA_ID, - controlloPraticaFromDB.getControlloPraticaId()); - + document.addKeyword(PortosIndexField.CONTROLLO_PRATICA_ID, controlloPraticaFromDB.getControlloPraticaId()); document.addKeyword(PortosIndexField.DETT_PRATICA_ID, controlloPraticaFromDB.getDettPraticaId()); document.addKeyword(PortosIndexField.PARERE_GEOLOGO, controlloPraticaFromDB.getParereGeologo()); document.addKeyword(PortosIndexField.STATUS, controlloPraticaFromDB.getStatus()); document.addKeyword(PortosIndexField.STATUS_BY_USERID, controlloPraticaFromDB.getStatusByUserId()); - document.addKeyword(PortosIndexField.STATUS_BY_USERNAME, - controlloPraticaFromDB.getStatusByUserName()); + document.addKeyword(PortosIndexField.STATUS_BY_USERNAME, controlloPraticaFromDB.getStatusByUserName()); if (controlloPraticaFromDB.getStatusDate() != null) { document.addKeyword(PortosIndexField.STATUS_DATE, DATE_FORMAT.format(controlloPraticaFromDB.getStatusDate())); } else { document.addKeyword(PortosIndexField.STATUS_DATE, 0); } - document.addKeyword(PortosIndexField.DATA_INIZIO_PROCEDIMENTO, DATE_FORMAT.format(controlloPraticaFromDB.getCreateDate())); - document.addKeywordSortable(PortosIndexField.DATA_INIZIO_PROCEDIMENTO, DATE_FORMAT.format(controlloPraticaFromDB.getCreateDate())); - - document.addDate(PortosIndexField.DATA_INIZIO_PROCEDIMENTO, - controlloPraticaFromDB.getCreateDate()); - + document.addDate(PortosIndexField.DATA_INIZIO_PROCEDIMENTO, controlloPraticaFromDB.getCreateDate()); // Indicizzo i campi relarivi a IntPratica document.addKeyword(PortosIndexField.INT_PRATICA_ID, controlloPraticaFromDB.getIntPraticaId()); - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPraticaFromDB - .getIntPraticaId()); + IntPratica intPratica = IntPraticaLocalServiceUtil + .fetchIntPratica(controlloPraticaFromDB.getIntPraticaId()); if (Validator.isNotNull(intPratica)) { - if (intPratica.getStatusByUserId() != 0L) { document.addKeyword(PortosIndexField.ISTRUTTORE_USER_ID, intPratica.getStatusByUserId()); User userIstruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); - if (userIstruttore != null) { - document.addKeyword(PortosIndexField.ISTRUTTORE_FULL_NAME, userIstruttore - .getFullName().toUpperCase()); + if (Validator.isNotNull(userIstruttore)) { + document.addKeyword(PortosIndexField.ISTRUTTORE_FULL_NAME, userIstruttore.getFullName() + .toUpperCase()); } } - if (intPratica.getUserId() != 0L) { User proprietarioDigitale = UserLocalServiceUtil.fetchUser(intPratica.getUserId()); - if (proprietarioDigitale != null) { - document.addKeyword(PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, - proprietarioDigitale.getFullName().toUpperCase()); + if (Validator.isNotNull(proprietarioDigitale)) { + document.addKeyword(PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, proprietarioDigitale + .getFullName().toUpperCase()); } } - // Informazioni sullo stato della pratica - - boolean variata = false; - int countVariantiForIntPratica = DettPraticaLocalServiceUtil - .countVariateByIntPratica(intPratica.getIntPraticaId()); - if (countVariantiForIntPratica > 0) { - variata = true; - } + boolean variata = DettPraticaLocalServiceUtil.countVariateByIntPratica(intPratica.getIntPraticaId()) > 0; document.addKeyword(PortosIndexField.VARIATA, variata); - document.addKeyword(PortosIndexField.COLLAUDO_COMPLETATO, intPratica.getCollaudoTotale()); document.addKeyword(PortosIndexField.COLLAUDO_PARZIALE, intPratica.getCollaudoParziale()); document.addKeyword(PortosIndexField.FINE_LAVORI_COMPLETATI, intPratica.getFineLavoriTotale()); document.addKeyword(PortosIndexField.FINE_LAVORI_PARZIALI, intPratica.getFineLavoriParziale()); document.addKeyword(PortosIndexField.SOTTOPOSTO_A_PARERE, checkSottopostaAParere(intPratica.getIntPraticaId())); - document.addKeyword(PortosIndexField.LAVORAZIONE_SORTEGGIATA, - checkLavorazioneSorteggiata(intPratica.getIntPraticaId())); - document.addKeyword(PortosIndexField.TIPO_PRATICA, intPratica.getTipoPratica()); document.addKeywordSortable(PortosIndexField.TIPO_PRATICA, intPratica.getTipoPratica()); - document.addKeyword(PortosIndexField.NUMERO_PROGETTO, - Integer.valueOf(intPratica.getNumeroProgetto())); - document.addNumber(PortosIndexField.NUMERO_PROGETTO, - Integer.valueOf(intPratica.getNumeroProgetto())); + document.addKeyword(PortosIndexField.NUMERO_PROGETTO, Integer.valueOf(intPratica.getNumeroProgetto())); + document.addNumber(PortosIndexField.NUMERO_PROGETTO, Integer.valueOf(intPratica.getNumeroProgetto())); document.addNumberSortable(PortosIndexField.NUMERO_PROGETTO, Integer.valueOf(intPratica.getNumeroProgetto())); document.addKeyword(PortosIndexField.STATO_PRATICA, intPratica.getStatoPratica()); - - boolean sorteggiata = SorteggioLocalServiceUtil - .findByIntPratica(intPratica.getIntPraticaId()) != null; - document.addKeyword("sorteggiata", sorteggiata); document.addKeyword("controlloObbligatorio", intPratica.isControlloObbligatorio()); - if (Validator.isNotNull(intPratica.getTipoProcedura())) { document.addKeyword(PortosIndexField.TIPO_PROCEDURA, intPratica.getTipoProcedura()); } document.addKeyword(PortosIndexField.UNITA_OPERATIVA, intPratica.getUnitaOperativa()); - // Prendo l ultimo DettPratica legato a IntPratica DettPratica lastDettPratica = DettPraticaLocalServiceUtil .getLastCompletedByIntPraticaAndProtocolloNotEmpty(intPratica.getIntPraticaId()); - if (Validator.isNull(lastDettPratica)) { lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica .getIntPraticaId()); } - if (Validator.isNotNull(lastDettPratica)) { - document.addKeyword("nuovaCostruzione", lastDettPratica.getTcNuovaCostruzione()); document.addKeyword("adeguamentoSismico", lastDettPratica.getTcAdeguamentoSismico()); document.addKeyword("miglioramentoSismico", lastDettPratica.getTcMiglioramentoSismico()); - document.addKeyword("interventoLocale", - lastDettPratica.getTcRiparazioneInterventoLocale()); - - if (lastDettPratica.getProtocollo() != null - && !lastDettPratica.getProtocollo().equals("")) { + document.addKeyword("interventoLocale", lastDettPratica.getTcRiparazioneInterventoLocale()); + if (Validator.isNotNull(lastDettPratica.getProtocollo())) { document.addKeyword(PortosIndexField.PROTOCOLLO, Long.parseLong(lastDettPratica.getProtocollo())); - document.addNumber(PortosIndexField.PROTOCOLLO, - Long.parseLong(lastDettPratica.getProtocollo())); + document.addNumber(PortosIndexField.PROTOCOLLO, Long.parseLong(lastDettPratica.getProtocollo())); document.addNumberSortable(PortosIndexField.PROTOCOLLO, Long.parseLong(lastDettPratica.getProtocollo())); } - - if (lastDettPratica.getVia() != null && !lastDettPratica.getVia().equals("")) { + if (Validator.isNotNull(lastDettPratica.getVia())) { document.addKeyword(PortosIndexField.INDIRIZZO, lastDettPratica.getVia()); } - - if (lastDettPratica.getLocalita() != null && !lastDettPratica.getLocalita().equals("")) { + if (Validator.isNotNull(lastDettPratica.getLocalita())) { document.addKeyword(PortosIndexField.LOCALITA, lastDettPratica.getLocalita()); } - if (Validator.isNotNull(lastDettPratica.getDescLongIntervento())) { - document.addText(PortosIndexField.DESC_INTERVENTO, - lastDettPratica.getDescLongIntervento()); - document.addKeyword(PortosIndexField.DESC_INTERVENTO, - lastDettPratica.getDescLongIntervento()); - - document.addKeyword(PortosIndexField.NUOVA_COSTRUZIONE, - lastDettPratica.getTcNuovaCostruzione()); + document.addText(PortosIndexField.DESC_INTERVENTO, lastDettPratica.getDescLongIntervento()); + document.addKeyword(PortosIndexField.DESC_INTERVENTO, lastDettPratica.getDescLongIntervento()); + document.addKeyword(PortosIndexField.NUOVA_COSTRUZIONE, lastDettPratica.getTcNuovaCostruzione()); document.addKeyword(PortosIndexField.ADEGUAMENTO_SISMICO, lastDettPratica.getTcAdeguamentoSismico()); document.addKeyword(PortosIndexField.MIGLIORAMENTO_SISMICO, @@ -261,7 +207,6 @@ public class ControlloPraticaIndexer extends BaseIndexer { lastDettPratica.getTcRiparazioneInterventoLocale()); } } - // Gestione pratica aperta/chiusa fine lavori if (intPratica.getCollaudoTotale()) { document.addKeyword(PortosIndexField.PRATICA_APERTA, false); @@ -274,171 +219,112 @@ public class ControlloPraticaIndexer extends BaseIndexer { } else { document.addKeyword(PortosIndexField.PRATICA_APERTA, true); } - if (intPratica.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) { document.addKeyword(PortosIndexField.PRATICA_APERTA, true); } - // Prendo la lista dei soggetti committenti legati a IntPratica List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( intPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE); - if (Validator.isNotNull(committenti) && committenti.size() > 0) { - - // Creao una stringa contenente tutti i codFisc legati alla - // IntPratica separati da , + // Creo una stringa contenente tutti i codFisc legati alla IntPratica separati da , List listaSoggetti = new ArrayList(); for (Soggetto soggetto : committenti) { - - // listaSoggetti.add(soggetto.getCodiceFiscale().toUpperCase()); - listaSoggetti.add(soggetto.getNome().toUpperCase() + " " + listaSoggetti.add(soggetto.getNome().toUpperCase() + StringPool.SPACE + soggetto.getCognome().toUpperCase()); } - - document.addKeyword(PortosIndexField.SOGGETTI_INTERESSATI, - listaSoggetti.toArray(new String[0])); + document.addKeyword(PortosIndexField.SOGGETTI_INTERESSATI, listaSoggetti.toArray(new String[0])); document.addKeyword(PortosIndexField.COMMITTENTI, listaSoggetti.toArray(new String[0])); } - // Soggetti Interconnessi List listSoggettiInterconnessi = SoggettoLocalServiceUtil .getSoggettiByIntPraticaId_DtRimozioneNull(intPratica.getIntPraticaId()); - if (listSoggettiInterconnessi != null && !listSoggettiInterconnessi.isEmpty()) { - List listaStringata = new ArrayList(); - for (Soggetto sog : listSoggettiInterconnessi) { - listaStringata - .add(sog.getNome().toUpperCase() + " " + sog.getCognome().toUpperCase()); + listaStringata.add(sog.getNome().toUpperCase() + StringPool.SPACE + + sog.getCognome().toUpperCase()); } - - document.addKeyword(PortosIndexField.SOGGETTI_INTERCONNESSI, - listaStringata.toArray(new String[0])); + document.addKeyword(PortosIndexField.SOGGETTI_INTERCONNESSI, listaStringata.toArray(new String[0])); } - // Prendo dati relativi al Territorio if (Validator.isNotNull(intPratica.getTerritorioId())) { - - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica - .getTerritorioId()); - + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); if (Validator.isNotNull(territorio)) { - if (Validator.isNotNull(territorio.getComuneId())) { - Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId()); if (Validator.isNotNull(comune)) { - document.addKeyword(PortosIndexField.COMUNE_ID, comune.getComuneId()); - document.addKeyword(PortosIndexField.COMUNE_DENOMINAZIONE, - comune.getDenominazione()); - + document.addKeyword(PortosIndexField.COMUNE_DENOMINAZIONE, comune.getDenominazione()); } - if (Validator.isNotNull(territorio.getCodiceProvincia())) { - - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C( - territorio.getCompanyId(), territorio.getCodiceProvincia()); - + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), + territorio.getCodiceProvincia()); if (Validator.isNotNull(provincia)) { - - document.addKeyword(PortosIndexField.PROVINCIA_ID, - provincia.getProvinciaId()); + document.addKeyword(PortosIndexField.PROVINCIA_ID, provincia.getProvinciaId()); document.addKeyword(PortosIndexField.PROVINCIA_CODICE, provincia.getCodiceProvincia()); - document.addKeyword(PortosIndexField.PROVINCIA_NAME, - provincia.getProvincia()); - + document.addKeyword(PortosIndexField.PROVINCIA_NAME, provincia.getProvincia()); } - } - } - } - } - } - // Indicizzazione campi da Kaleo - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil - .fetchWorkflowInstanceLink(controlloPraticaFromDB.getCompanyId(), - controlloPraticaFromDB.getGroupId(), ControlloPratica.class.getName(), - controlloPraticaFromDB.getPrimaryKey()); - + WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( + controlloPraticaFromDB.getCompanyId(), controlloPraticaFromDB.getGroupId(), + ControlloPratica.class.getName(), controlloPraticaFromDB.getPrimaryKey()); if (Validator.isNotNull(workflowInstanceLink)) { long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance( controlloPraticaFromDB.getCompanyId(), workflowInstanceId); - if (Validator.isNotNull(workflowInstance)) { - document.addKeyword(PortosIndexField.WORKFLOW_STATE, workflowInstance.getState()); - - List listaTask = WorkflowTaskManagerUtil - .getWorkflowTasksByWorkflowInstance(controlloPraticaFromDB.getCompanyId(), null, - workflowInstance.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - + List listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance( + controlloPraticaFromDB.getCompanyId(), null, workflowInstance.getWorkflowInstanceId(), + false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); if (Validator.isNotNull(listaTask) && !listaTask.isEmpty()) { WorkflowTask task = listaTask.get(0); - if (task.getAssigneeUserId() != 0L && task.getAssigneeUserId() != -1) { - document.addKeyword(PortosIndexField.TASK_ASSIGNEE_USER_ID, - task.getAssigneeUserId()); + document.addKeyword(PortosIndexField.TASK_ASSIGNEE_USER_ID, task.getAssigneeUserId()); } else if (workflowInstance.getState().equals("Esito")) { _log.warn("Fascicolo Disallineato su Kaleo : assenza assegnazione istruttore | kaleoInstanceId=" + workflowInstance.getWorkflowInstanceId()); } - if (Validator.isNotNull(task.getWorkflowTaskAssignees()) && !task.getWorkflowTaskAssignees().isEmpty()) { List roleIdsAssignee = new ArrayList(); - for (WorkflowTaskAssignee taskAssignee : task.getWorkflowTaskAssignees()) { if (taskAssignee.getAssigneeClassName().equals(Role.class.getName())) { roleIdsAssignee.add("R" + taskAssignee.getAssigneeClassPK() + "G" + controlloPraticaFromDB.getGroupId()); } } - document.addKeyword(PortosIndexField.TASK_ASSIGNEE_ROLE_IDS, roleIdsAssignee.toArray(new String[0])); } - document.addKeyword(PortosIndexField.WORKFLOW_DEFINITION_NAME, workflowInstance.getWorkflowDefinitionName()); document.addKeyword(PortosIndexField.WORKFLOW_DEFINITION_VERSION, workflowInstance.getWorkflowDefinitionVersion()); document.addKeyword(PortosIndexField.TASK_NAME, task.getName()); - document.addKeywordSortable(PortosIndexField.TASK_NAME, task.getName()); - } } } - } else { - _log.warn("Received a null ControlloPratica in input."); } - return document; - } @Override protected Document getBaseModelDocument(String portletId, BaseModel baseModel) throws SystemException { Document document = newDocument(); - String className = baseModel.getModelClassName(); - long classPK = 0; long resourcePrimKey = 0; - if (baseModel instanceof ResourcedModel) { ResourcedModel resourcedModel = (ResourcedModel) baseModel; classPK = resourcedModel.getResourcePrimKey(); @@ -446,53 +332,36 @@ public class ControlloPraticaIndexer extends BaseIndexer { } else { classPK = GetterUtil.getLong(baseModel.getPrimaryKeyObj()); } - document.addUID(portletId, classPK, className); - document.addKeyword(Field.ENTRY_CLASS_NAME, className); document.addKeyword(Field.ENTRY_CLASS_PK, classPK); document.addKeyword(Field.PORTLET_ID, portletId); - if (resourcePrimKey > 0) { document.addKeyword(Field.ROOT_ENTRY_CLASS_PK, resourcePrimKey); } - if (baseModel instanceof AuditedModel) { AuditedModel auditedModel = (AuditedModel) baseModel; - document.addKeyword(Field.COMPANY_ID, auditedModel.getCompanyId()); document.addDate(Field.CREATE_DATE, auditedModel.getCreateDate()); document.addDate(Field.MODIFIED_DATE, auditedModel.getModifiedDate()); - document.addKeyword(Field.USER_ID, auditedModel.getUserId()); - String userName = PortalUtil.getUserName(auditedModel.getUserId(), auditedModel.getUserName()); - document.addKeyword(Field.USER_NAME, userName, true); - } - GroupedModel groupedModel = null; - if (baseModel instanceof GroupedModel) { groupedModel = (GroupedModel) baseModel; - document.addKeyword(Field.GROUP_ID, getSiteGroupId(groupedModel.getGroupId())); document.addKeyword(Field.SCOPE_GROUP_ID, groupedModel.getGroupId()); } - if ((groupedModel != null) && (baseModel instanceof TrashedModel)) { TrashedModel trashedModel = (TrashedModel) baseModel; - if (trashedModel.isInTrash()) { addTrashFields(document, trashedModel); } } - addAssetFields(document, className, classPK); - return document; - } @Override @@ -500,14 +369,11 @@ public class ControlloPraticaIndexer extends BaseIndexer { throws Exception { if (Validator.isNotNull(document)) { - - String title = document.get(""); - String content = document.get(""); + String title = document.get(StringPool.BLANK); + String content = document.get(StringPool.BLANK); String controlloPraticaId = document.get(PortosIndexField.CONTROLLO_PRATICA_ID); - portletURL.setParameter("struts_action", "/web/TODO"); portletURL.setParameter("intPraticaId", controlloPraticaId); - return new Summary(title, content, portletURL); } else { _log.warn("Received a null document in input."); @@ -519,12 +385,9 @@ public class ControlloPraticaIndexer extends BaseIndexer { protected void doReindex(Object obj) throws Exception { if (Validator.isNotNull(obj)) { - ControlloPratica controlloPratica = (ControlloPratica) obj; Document document = getDocument(controlloPratica); - SearchEngineUtil.updateDocument(getSearchEngineId(), controlloPratica.getCompanyId(), document, - false); - + SearchEngineUtil.updateDocument(getSearchEngineId(), controlloPratica.getCompanyId(), document, false); } else { _log.warn("Received a null ControlloPratica in input."); } @@ -537,11 +400,9 @@ public class ControlloPraticaIndexer extends BaseIndexer { if (ids != null && ids.length > 0) { long companyId = GetterUtil.getLong(ids[0]); reindexControlloPratica(companyId); - } else { _log.warn("Received a null or empty set of ids."); } - } protected void reindexControlloPratica(long companyId) throws PortalException, SystemException { @@ -549,7 +410,6 @@ public class ControlloPraticaIndexer extends BaseIndexer { ActionableDynamicQuery actionableDynamicQuery = new ControlloPraticaActionableDynamicQuery() { @Override protected void performAction(Object object) throws PortalException { - if (object != null) { ControlloPratica controlloPratica = (ControlloPratica) object; if (controlloPratica != null) { @@ -571,9 +431,7 @@ public class ControlloPraticaIndexer extends BaseIndexer { } } } - }; - actionableDynamicQuery.setCompanyId(companyId); actionableDynamicQuery.setSearchEngineId(getSearchEngineId()); actionableDynamicQuery.performActions(); @@ -584,32 +442,11 @@ public class ControlloPraticaIndexer extends BaseIndexer { ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(id); doReindex(controlloPratica); - } private boolean checkSottopostaAParere(long intPraticaId) throws SystemException, PortalException { return WorkflowUtil.isWorkflowDisattivabile(intPraticaId); - // List lista = - // ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, - // WorkflowConstants.STATUS_APPROVED); - // - // if (Validator.isNotNull(lista) && !lista.isEmpty()) { - // return true; - // } else { - // return false; - // } - - } - - private boolean checkLavorazioneSorteggiata(long intPraticaId) throws SystemException { - - Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPraticaId); - if (Validator.isNotNull(sorteggio)) { - return true; - } else { - return false; - } } @Override @@ -617,5 +454,4 @@ public class ControlloPraticaIndexer extends BaseIndexer { return PORTLET_ID; } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java index 68ece9c5..2c8e2f8f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java @@ -6,7 +6,6 @@ import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; @@ -14,7 +13,6 @@ import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.persistence.IntPraticaActionableDynamicQuery; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; @@ -44,6 +42,7 @@ import com.liferay.portal.kernel.search.SearchException; import com.liferay.portal.kernel.search.Summary; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.AuditedModel; import com.liferay.portal.model.BaseModel; @@ -85,73 +84,51 @@ public class IntPraticaIndexer extends BaseIndexer { protected void doDelete(Object obj) throws Exception { if (Validator.isNotNull(obj)) { - IntPratica intPratica = (IntPratica) obj; deleteDocument(intPratica.getCompanyId(), intPratica.getIntPraticaId()); - } else { _log.warn("Received a null IntPratica to delete in input."); } } - /* - * Manifattura Web Group per Regione Siciliana - * - * Modifiche per rendere i campi di testo ricercabili per parole contenute e - * non per corrispondenza esatta. - */ + // Manifattura Web Group per Regione Siciliana Modifiche per rendere i campi di testo ricercabili per parole + // contenute e non per corrispondenza esatta. @Override protected Document doGetDocument(Object obj) throws Exception { Document document = null; - if (Validator.isNotNull(obj)) { - IntPratica intPratica = (IntPratica) obj; IntPratica intPraticaFromDB = IntPraticaServiceUtil.getIntPratica(intPratica.getIntPraticaId()); - if (_log.isDebugEnabled()) { _log.debug("Indicizzo la pratica " - + (Validator.isNull(intPratica.getNumeroProgetto()) ? "" : intPratica - .getNumeroProgetto() + ", ") + "id " + intPratica.getIntPraticaId()); + + (Validator.isNull(intPratica.getNumeroProgetto()) ? StringPool.BLANK : intPratica + .getNumeroProgetto() + StringPool.COMMA_AND_SPACE) + "id " + + intPratica.getIntPraticaId()); } - document = getBaseModelDocument(PORTLET_ID, intPratica); - document.addKeyword("entryClassName", IntPratica.class.getName()); - - // Prendo l ultimo DettPratica legato a IntPratica + // Prendo l'ultimo DettPratica legato a IntPratica DettPratica lastDettPratica = DettPraticaLocalServiceUtil .getLastCompletedByIntPraticaAndProtocolloNotEmpty(intPraticaFromDB.getIntPraticaId()); - if (Validator.isNull(lastDettPratica)) { - lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica - .getIntPraticaId()); + lastDettPratica = DettPraticaLocalServiceUtil + .getLastCompletedByIntPratica(intPratica.getIntPraticaId()); } - // Aggiunta field custom per la ricerca document.addKeyword(Field.PORTLET_ID, getPortletId()); - if (Validator.isNotNull(intPraticaFromDB.getDtPratica())) { document.addKeyword(PortosIndexField.DATA_RICHIESTA, DATE_FORMAT.format(intPraticaFromDB.getDtPratica())); - - document.addKeyword(PortosIndexField.DT_PRATICA, - DATE_FORMAT.format(intPraticaFromDB.getDtPratica())); - + document.addKeyword(PortosIndexField.DT_PRATICA, DATE_FORMAT.format(intPraticaFromDB.getDtPratica())); document.addKeywordSortable(PortosIndexField.DT_PRATICA, DATE_FORMAT.format(intPraticaFromDB.getDtPratica())); - document.addDate(PortosIndexField.DT_PRATICA, intPraticaFromDB.getDtPratica()); - } else { document.addKeyword(PortosIndexField.DT_PRATICA, 0); } - document.addKeyword(PortosIndexField.INT_PRATICA_ID, intPraticaFromDB.getIntPraticaId()); - - if (intPraticaFromDB.getNumeroProgetto() != null - && !intPraticaFromDB.getNumeroProgetto().equals("")) { + if (Validator.isNotNull(intPraticaFromDB.getNumeroProgetto())) { document.addKeyword(PortosIndexField.NUMERO_PROGETTO, Integer.valueOf(intPraticaFromDB.getNumeroProgetto())); document.addNumber(PortosIndexField.NUMERO_PROGETTO, @@ -159,38 +136,26 @@ public class IntPraticaIndexer extends BaseIndexer { document.addNumberSortable(PortosIndexField.NUMERO_PROGETTO, Integer.valueOf(intPraticaFromDB.getNumeroProgetto())); } - if (lastDettPratica != null) { - document.addKeyword("nuovaCostruzione", lastDettPratica.getTcNuovaCostruzione()); document.addKeyword("adeguamentoSismico", lastDettPratica.getTcAdeguamentoSismico()); document.addKeyword("miglioramentoSismico", lastDettPratica.getTcMiglioramentoSismico()); document.addKeyword("interventoLocale", lastDettPratica.getTcRiparazioneInterventoLocale()); - - if (lastDettPratica.getProtocollo() != null && !lastDettPratica.getProtocollo().equals("")) { - document.addKeyword(PortosIndexField.PROTOCOLLO, - Long.parseLong(lastDettPratica.getProtocollo())); - document.addNumber(PortosIndexField.PROTOCOLLO, - Long.parseLong(lastDettPratica.getProtocollo())); + if (Validator.isNotNull(lastDettPratica.getProtocollo())) { + document.addKeyword(PortosIndexField.PROTOCOLLO, Long.parseLong(lastDettPratica.getProtocollo())); + document.addNumber(PortosIndexField.PROTOCOLLO, Long.parseLong(lastDettPratica.getProtocollo())); document.addNumberSortable(PortosIndexField.PROTOCOLLO, Long.parseLong(lastDettPratica.getProtocollo())); } - - if (lastDettPratica.getVia() != null && !lastDettPratica.getVia().equals("")) { + if (Validator.isNotNull(lastDettPratica.getVia())) { document.addText(PortosIndexField.INDIRIZZO, lastDettPratica.getVia()); } - - if (lastDettPratica.getLocalita() != null && !lastDettPratica.getLocalita().equals("")) { + if (Validator.isNotNull(lastDettPratica.getLocalita())) { document.addText(PortosIndexField.LOCALITA, lastDettPratica.getLocalita()); } - } - boolean sorteggiata = SorteggioLocalServiceUtil.findByIntPratica(intPraticaFromDB - .getIntPraticaId()) != null; - document.addKeyword("sorteggiata", sorteggiata); document.addKeyword("controlloObbligatorio", intPraticaFromDB.isControlloObbligatorio()); - // Gestione pratica aperta/chiusa fine lavori if (intPraticaFromDB.getCollaudoTotale()) { document.addKeyword(PortosIndexField.PRATICA_APERTA, false); @@ -203,42 +168,25 @@ public class IntPraticaIndexer extends BaseIndexer { } else { document.addKeyword(PortosIndexField.PRATICA_APERTA, true); } - if (intPraticaFromDB.getStatoPratica().equals(StatoPraticaConstants.INTEGRAZIONE)) { document.addKeyword(PortosIndexField.PRATICA_APERTA, true); } - document.addKeyword(PortosIndexField.STATUS, intPraticaFromDB.getStatus()); - if (intPraticaFromDB.getStatusDate() != null) { - document.addKeyword(PortosIndexField.STATUS_DATE, - DATE_FORMAT.format(intPraticaFromDB.getStatusDate())); + document.addKeyword(PortosIndexField.STATUS_DATE, DATE_FORMAT.format(intPraticaFromDB.getStatusDate())); } - // LAVORAZIONE STATO PRATICA - if (intPraticaFromDB.getStatoPratica() != null && !intPraticaFromDB.getStatoPratica().equals("")) { + if (Validator.isNotNull(intPraticaFromDB.getStatoPratica())) { document.addKeyword(PortosIndexField.STATO_PRATICA, intPraticaFromDB.getStatoPratica()); } - - boolean variata = false; - int countVariantiForIntPratica = DettPraticaLocalServiceUtil.countVariateByIntPratica(intPratica - .getIntPraticaId()); - if (countVariantiForIntPratica > 0) { - variata = true; - } + boolean variata = DettPraticaLocalServiceUtil.countVariateByIntPratica(intPratica.getIntPraticaId()) > 0; document.addKeyword(PortosIndexField.VARIATA, variata); - document.addKeyword(PortosIndexField.COLLAUDO_COMPLETATO, intPraticaFromDB.getCollaudoTotale()); document.addKeyword(PortosIndexField.COLLAUDO_PARZIALE, intPraticaFromDB.getCollaudoParziale()); - document.addKeyword(PortosIndexField.FINE_LAVORI_COMPLETATI, - intPraticaFromDB.getFineLavoriTotale()); - document.addKeyword(PortosIndexField.FINE_LAVORI_PARZIALI, - intPraticaFromDB.getFineLavoriParziale()); + document.addKeyword(PortosIndexField.FINE_LAVORI_COMPLETATI, intPraticaFromDB.getFineLavoriTotale()); + document.addKeyword(PortosIndexField.FINE_LAVORI_PARZIALI, intPraticaFromDB.getFineLavoriParziale()); document.addKeyword(PortosIndexField.SOTTOPOSTO_A_PARERE, checkSottopostaAParere(intPraticaFromDB.getIntPraticaId())); - document.addKeyword(PortosIndexField.LAVORAZIONE_SORTEGGIATA, - checkLavorazioneSorteggiata(intPraticaFromDB.getIntPraticaId())); - // Gestione Istruttore if (Validator.isNotNull(intPraticaFromDB.getStatusByUserId())) { document.addKeyword(PortosIndexField.ISTRUTTORE_USER_ID, intPraticaFromDB.getStatusByUserId()); @@ -246,14 +194,12 @@ public class IntPraticaIndexer extends BaseIndexer { UserLocalServiceUtil.getUser(intPraticaFromDB.getStatusByUserId()).getScreenName() .toUpperCase()); } - if (intPratica.getStatusByUserId() != 0L) { User userIstruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (userIstruttore != null) { document.addText(PortosIndexField.ISTRUTTORE_FULL_NAME, userIstruttore.getFullName()); } } - if (intPratica.getUserId() != 0L) { User proprietarioDigitale = UserLocalServiceUtil.fetchUser(intPratica.getUserId()); if (proprietarioDigitale != null) { @@ -261,94 +207,65 @@ public class IntPraticaIndexer extends BaseIndexer { proprietarioDigitale.getFullName()); } } - // Prendo la lista dei soggetti committenti legati a IntPratica List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( intPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE); - if (lastDettPratica != null) { if (Validator.isNotNull(lastDettPratica.getDescLongIntervento())) { - document.addText(PortosIndexField.DESC_INTERVENTO, - lastDettPratica.getDescLongIntervento()); + document.addText(PortosIndexField.DESC_INTERVENTO, lastDettPratica.getDescLongIntervento()); } - - document.addKeyword(PortosIndexField.NUOVA_COSTRUZIONE, - lastDettPratica.getTcNuovaCostruzione()); - document.addKeyword(PortosIndexField.ADEGUAMENTO_SISMICO, - lastDettPratica.getTcAdeguamentoSismico()); - document.addKeyword(PortosIndexField.MIGLIORAMENTO_SISMICO, - lastDettPratica.getTcMiglioramentoSismico()); + document.addKeyword(PortosIndexField.NUOVA_COSTRUZIONE, lastDettPratica.getTcNuovaCostruzione()); + document.addKeyword(PortosIndexField.ADEGUAMENTO_SISMICO, lastDettPratica.getTcAdeguamentoSismico()); + document.addKeyword(PortosIndexField.MIGLIORAMENTO_SISMICO, lastDettPratica.getTcMiglioramentoSismico()); document.addKeyword(PortosIndexField.RIPARAZIONE_INTERVENTO_LOCALE, lastDettPratica.getTcRiparazioneInterventoLocale()); - } - // Gestione GroupId preso da territorio - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPraticaFromDB - .getTerritorioId()); + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPraticaFromDB.getTerritorioId()); if (Validator.isNotNull(territorio)) { document.addKeyword(Field.GROUP_ID, territorio.getGroupId()); } else { document.addKeyword(Field.GROUP_ID, intPraticaFromDB.getGroupId()); } - if (Validator.isNotNull(territorio)) { - if (Validator.isNotNull(territorio.getComuneId())) { - Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId()); if (Validator.isNotNull(comune)) { document.addKeyword(PortosIndexField.COMUNE_ID, comune.getComuneId()); document.addKeyword(PortosIndexField.COMUNE_DENOMINAZIONE, comune.getDenominazione()); } - if (Validator.isNotNull(territorio.getCodiceProvincia())) { - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - if (Validator.isNotNull(provincia)) { - document.addKeyword(PortosIndexField.PROVINCIA_ID, provincia.getProvinciaId()); - document.addKeyword(PortosIndexField.PROVINCIA_CODICE, - provincia.getCodiceProvincia()); + document.addKeyword(PortosIndexField.PROVINCIA_CODICE, provincia.getCodiceProvincia()); document.addKeyword(PortosIndexField.PROVINCIA_NAME, provincia.getProvincia()); - } } } } - document.addKeyword(PortosIndexField.TIPO_PRATICA, intPraticaFromDB.getTipoPratica()); document.addKeywordSortable(PortosIndexField.TIPO_PRATICA, intPraticaFromDB.getTipoPratica()); - // Gestione Parere Geologo List listaParereGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId( - intPratica.getIntPraticaId(), -1, 1); - + intPratica.getIntPraticaId(), 0, 1); if (Validator.isNotNull(listaParereGeologo) && !listaParereGeologo.isEmpty()) { - document.addKeyword(PortosIndexField.PARERE_GEOLOGO, "true"); + document.addKeyword(PortosIndexField.PARERE_GEOLOGO, StringPool.TRUE); } else { - document.addKeyword(PortosIndexField.PARERE_GEOLOGO, "false"); + document.addKeyword(PortosIndexField.PARERE_GEOLOGO, StringPool.FALSE); } - // Gestione pratica sospesa document.addKeyword(PortosIndexField.STATUS_SOSPESA, intPraticaFromDB.isSospesa()); - - // Gestione Diverse tipologie di IntPratica - - // MIEI PROGETTI && ARCHIVIO PROGETTI + // Gestione Diverse tipologie di IntPratica MIEI PROGETTI && ARCHIVIO PROGETTI document.addKeyword(Field.USER_ID, intPraticaFromDB.getUserId()); - // ALTRI PROGETTI if (Validator.isNotNull(committenti) && committenti.size() > 0) { - - // Creao una stringa contenente tutti i codFisc legati alla - // IntPratica separati da , + // Creo una stringa contenente tutti i codFisc legati alla IntPratica separati da , List listaSoggetti = new ArrayList(); for (Soggetto soggetto : committenti) { if (Validator.isNotNull(soggetto.getCognome())) { - listaSoggetti.add(soggetto.getNome() + " " + soggetto.getCognome()); + listaSoggetti.add(soggetto.getNome() + StringPool.SPACE + soggetto.getCognome()); } if (Validator.isNotNull(soggetto.getDenominazione())) { listaSoggetti.add(soggetto.getDenominazione()); @@ -356,7 +273,6 @@ public class IntPraticaIndexer extends BaseIndexer { } document.addText(PortosIndexField.COMMITTENTI, listaSoggetti.toArray(new String[0])); } - // Prendo la lista dei direttori dei lavori List direttoriLavori = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( intPratica.getIntPraticaId(), TipoSoggettoUtil.DIRETTORE_LAVORI); @@ -367,7 +283,6 @@ public class IntPraticaIndexer extends BaseIndexer { } document.addKeyword(PortosIndexField.DIRETTORE_LAVORI, direttori.toArray(new String[0])); } - // Prendo la lista dei collaudatori List collaudatoriList = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( intPratica.getIntPraticaId(), TipoSoggettoUtil.COLLAUDATORE); @@ -378,45 +293,32 @@ public class IntPraticaIndexer extends BaseIndexer { } document.addKeyword(PortosIndexField.COLLAUDATORI, collaudatori.toArray(new String[0])); } - if (intPraticaFromDB.getStatus() != WorkflowConstants.STATUS_ANY && intPraticaFromDB.getStatus() != WorkflowConstants.STATUS_INCOMPLETE) { - String codiceFiscaleTitolare = UserLocalServiceUtil.getUser(intPraticaFromDB.getUserId()) .getScreenName(); - List listaSoggetti = new ArrayList(); List soggettiInteressati = SoggettoLocalServiceUtil.getValidByIntPratica(intPratica .getIntPraticaId()); for (Soggetto soggetto : soggettiInteressati) { - if (!soggetto.getCodiceFiscale().equalsIgnoreCase(codiceFiscaleTitolare)) { listaSoggetti.add(soggetto.getCodiceFiscale().toUpperCase()); } - } - - document.addKeyword(PortosIndexField.SOGGETTI_INTERESSATI, - listaSoggetti.toArray(new String[0])); + document.addKeyword(PortosIndexField.SOGGETTI_INTERESSATI, listaSoggetti.toArray(new String[0])); } - // Soggetti connessi alla intPratica List listSoggettiInterconnessi = SoggettoLocalServiceUtil .getSoggettiByIntPraticaId_DtRimozioneNull(intPraticaFromDB.getIntPraticaId()); - if (listSoggettiInterconnessi != null && !listSoggettiInterconnessi.isEmpty()) { - List listaStringata = new ArrayList(); - for (Soggetto sog : listSoggettiInterconnessi) { if (Validator.isNotNull(sog.getCognome())) - listaStringata.add(sog.getNome() + " " + sog.getCognome()); + listaStringata.add(sog.getNome() + StringPool.SPACE + sog.getCognome()); if (Validator.isNotNull(sog.getDenominazione())) listaStringata.add(sog.getDenominazione()); } - - document.addText(PortosIndexField.SOGGETTI_INTERCONNESSI, - listaStringata.toArray(new String[0])); + document.addText(PortosIndexField.SOGGETTI_INTERCONNESSI, listaStringata.toArray(new String[0])); } } else { _log.warn("Received a null IntPratica in input."); @@ -429,32 +331,25 @@ public class IntPraticaIndexer extends BaseIndexer { throws Exception { if (Validator.isNotNull(document)) { - - String title = document.get(""); - String content = document.get(""); + String title = document.get(StringPool.BLANK); + String content = document.get(StringPool.BLANK); String intPraticaId = document.get(PortosIndexField.INT_PRATICA_ID); - portletURL.setParameter("struts_action", "/web/TODO"); portletURL.setParameter("intPraticaId", intPraticaId); - return new Summary(title, content, portletURL); } else { _log.warn("Received a null document in input."); return new Summary("---", "---", portletURL); } - } @Override protected Document getBaseModelDocument(String portletId, BaseModel baseModel) throws SystemException { Document document = newDocument(); - String className = baseModel.getModelClassName(); - long classPK = 0; long resourcePrimKey = 0; - if (baseModel instanceof ResourcedModel) { ResourcedModel resourcedModel = (ResourcedModel) baseModel; classPK = resourcedModel.getResourcePrimKey(); @@ -462,65 +357,44 @@ public class IntPraticaIndexer extends BaseIndexer { } else { classPK = GetterUtil.getLong(baseModel.getPrimaryKeyObj()); } - document.addUID(portletId, classPK, className); - document.addKeyword(Field.ENTRY_CLASS_NAME, className); document.addKeyword(Field.ENTRY_CLASS_PK, classPK); document.addKeyword(Field.PORTLET_ID, portletId); - if (resourcePrimKey > 0) { document.addKeyword(Field.ROOT_ENTRY_CLASS_PK, resourcePrimKey); } - if (baseModel instanceof AuditedModel) { AuditedModel auditedModel = (AuditedModel) baseModel; - document.addKeyword(Field.COMPANY_ID, auditedModel.getCompanyId()); document.addDate(Field.CREATE_DATE, auditedModel.getCreateDate()); document.addDate(Field.MODIFIED_DATE, auditedModel.getModifiedDate()); - document.addKeyword(Field.USER_ID, auditedModel.getUserId()); - String userName = PortalUtil.getUserName(auditedModel.getUserId(), auditedModel.getUserName()); - document.addKeyword(Field.USER_NAME, userName, true); - } - GroupedModel groupedModel = null; - if (baseModel instanceof GroupedModel) { groupedModel = (GroupedModel) baseModel; - - // document.addKeyword(Field.GROUP_ID, - // getSiteGroupId(groupedModel.getGroupId())); document.addKeyword(Field.SCOPE_GROUP_ID, groupedModel.getGroupId()); } - if ((groupedModel != null) && (baseModel instanceof TrashedModel)) { TrashedModel trashedModel = (TrashedModel) baseModel; - if (trashedModel.isInTrash()) { addTrashFields(document, trashedModel); } } - addAssetFields(document, className, classPK); - return document; - } @Override protected void doReindex(Object obj) throws Exception { if (Validator.isNotNull(obj)) { - IntPratica intPratica = (IntPratica) obj; Document document = getDocument(intPratica); SearchEngineUtil.updateDocument(getSearchEngineId(), intPratica.getCompanyId(), document, false); - } else { _log.warn("Received a null IntPratica in input."); } @@ -533,11 +407,9 @@ public class IntPraticaIndexer extends BaseIndexer { if (ids != null && ids.length > 0) { long companyId = GetterUtil.getLong(ids[0]); reindexIntPratica(companyId); - } else { _log.warn("Received a null or empty set of ids."); } - } protected void reindexIntPratica(long companyId) throws PortalException, SystemException { @@ -545,7 +417,6 @@ public class IntPraticaIndexer extends BaseIndexer { ActionableDynamicQuery actionableDynamicQuery = new IntPraticaActionableDynamicQuery() { @Override protected void performAction(Object object) throws PortalException { - if (object != null) { IntPratica intPratica = (IntPratica) object; if (intPratica != null) { @@ -572,7 +443,6 @@ public class IntPraticaIndexer extends BaseIndexer { } }; - actionableDynamicQuery.setCompanyId(companyId); actionableDynamicQuery.setSearchEngineId(getSearchEngineId()); actionableDynamicQuery.performActions(); @@ -583,7 +453,6 @@ public class IntPraticaIndexer extends BaseIndexer { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(id); doReindex(intPratica); - } @Override @@ -595,26 +464,5 @@ public class IntPraticaIndexer extends BaseIndexer { private boolean checkSottopostaAParere(long intPraticaId) throws SystemException, PortalException { return WorkflowUtil.isWorkflowDisattivabile(intPraticaId); - // List lista = - // ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId, - // WorkflowConstants.STATUS_APPROVED); - // - // if (Validator.isNotNull(lista) && !lista.isEmpty()) { - // return true; - // } else { - // return false; - // } - } - - private boolean checkLavorazioneSorteggiata(long intPraticaId) throws SystemException { - - Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPraticaId); - if (Validator.isNotNull(sorteggio)) { - return true; - } else { - return false; - } - } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisCommonUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisCommonUtil.java deleted file mode 100644 index ebea8dfe..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisCommonUtil.java +++ /dev/null @@ -1,114 +0,0 @@ -package it.tref.liferay.portos.bo.iris; - -import it.tref.liferay.portos.bo.model.Pagamento; -import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; - -import java.io.StringWriter; -import java.lang.reflect.Method; - -import javax.xml.namespace.QName; - -import org.apache.axis.MessageContext; -import org.apache.axis.description.TypeDesc; -import org.apache.axis.encoding.SerializationContext; -import org.apache.axis.encoding.ser.BeanSerializer; -import org.apache.axis.server.AxisServer; -import org.apache.commons.lang.StringUtils; -import org.xml.sax.helpers.AttributesImpl; - -import com.liferay.counter.service.CounterLocalServiceUtil; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.util.portlet.PortletProps; - - -public abstract class IrisCommonUtil { - - private final static String COUNTER_CODICE_PENDENZA = Pagamento.class.getName() + "CodicePendenza"; - private final static String PREFIX_CODICE_PENDENZA = "GC"; - - /* - * Keys - */ - private final static String TIPO_PENDENZA_SPESE_ISTRUTTORIA = "geniocivile.iris.speseistruttoria.tipopendenza"; - private final static String DESCRIZIONE_CAUSALE_SPESE_ISTRUTTORIA = - "geniocivile.iris.speseistruttoria.descrizionecausale"; - - private final static String TIPO_PENDENZA_BOLLI = "geniocivile.iris.bolli.tipopendenza"; - private final static String DESCRIZIONE_CAUSALE_BOLLI = "geniocivile.iris.bolli.descrizionecausale"; - - /* - * KO - */ - private final static String TIPO_PAGAMENTO_ERROR = "geniocivile.iris.error.tipopagamento.notallowed"; - - - public static String createCodicePendenza() throws SystemException { - long count = CounterLocalServiceUtil.increment(COUNTER_CODICE_PENDENZA); - return PREFIX_CODICE_PENDENZA + StringUtils.leftPad(String.valueOf(count), 20, '0'); - } - - public static String getDescrizioneCausale(String tipoPagamento) throws SystemException { - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - return PortletProps.get(DESCRIZIONE_CAUSALE_SPESE_ISTRUTTORIA); - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - return PortletProps.get(DESCRIZIONE_CAUSALE_BOLLI); - } - throw new SystemException(TIPO_PAGAMENTO_ERROR); - } - - public static String getTipoPendenza(String tipoPagamento) throws SystemException { - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - return TIPO_PENDENZA_SPESE_ISTRUTTORIA; - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - return TIPO_PENDENZA_BOLLI; - } - throw new SystemException(TIPO_PAGAMENTO_ERROR); - } - - public static String serializeAxisObject(final Object obj, final boolean removeNamespaces, final boolean prettyPrint) - throws Exception { - final StringWriter outStr = new StringWriter(); - final TypeDesc typeDesc = getAxisTypeDesc(obj); - QName qname = typeDesc.getXmlType(); - String lname = qname.getLocalPart(); - if (lname.startsWith(">") && lname.length() > 1) - lname = lname.substring(1); - - qname = removeNamespaces ? new QName(lname) : new QName(qname.getNamespaceURI(), lname); - final AxisServer server = new AxisServer(); - final BeanSerializer ser = new BeanSerializer(obj.getClass(), qname, typeDesc); - final SerializationContext ctx = new SerializationContext(outStr, new MessageContext(server)); - ctx.setSendDecl(false); - ctx.setDoMultiRefs(false); - ctx.setPretty(prettyPrint); - try { - ser.serialize(qname, new AttributesImpl(), obj, ctx); - } catch (final Exception e) { - throw new Exception("Unable to serialize object " + obj.getClass().getName(), e); - } - - String xml = outStr.toString(); - - if (removeNamespaces) { - // remove any namespace attributes - xml = xml.replaceAll(" xmlns[:=].*?\".*?\"", "").replaceAll(" xsi:type=\".*?\"", ""); - } - - return (xml); - } - - - private static TypeDesc getAxisTypeDesc(final Object obj) throws Exception { - final Class objClass = obj.getClass(); - try { - final Method methodGetTypeDesc = objClass.getMethod("getTypeDesc", new Class[] {}); - final TypeDesc typeDesc = (TypeDesc) methodGetTypeDesc.invoke(obj, new Object[] {}); - return (typeDesc); - } catch (final Exception e) { - throw new Exception("Unable to get Axis TypeDesc for " + objClass.getName(), e); - } - } - - - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisComunicaPosizioniDebitorie.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisComunicaPosizioniDebitorie.java deleted file mode 100644 index 4b783c6c..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisComunicaPosizioniDebitorie.java +++ /dev/null @@ -1,582 +0,0 @@ -package it.tref.liferay.portos.bo.iris; - -import it.tasgroup.idp.generazioneiuv.ElencoIdentificativiType; -import it.tasgroup.idp.generazioneiuv.FaultType; -import it.tasgroup.idp.generazioneiuv.GeneraLottoIUVRequest; -import it.tasgroup.idp.generazioneiuv.GeneraLottoIUVResponseType; -import it.tasgroup.idp.generazioneiuv.GenerazioneIUV; -import it.tasgroup.idp.generazioneiuv.GenerazioneIUVService; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.Destinatario; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.DettaglioPagamentoInsertReplace; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.IdpAllineamentoPendenzeOTF; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.Mittente; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.Pendenza; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.PendenzaInsertReplace; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.PendenzaInsertReplaceInfoPagamento; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.Riscossore; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.Versione; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.VoceImporto; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.Dettaglio; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.Esito; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.IdpBodyType; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.IdpEsitoOTF; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.IdpOTFType; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.StatoMessaggio; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.E2EReceiver; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.E2ESender; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.HeaderE2E; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.HeaderTRT; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.IdpHeader; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.IdpOTF; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.TRTReceiver; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.TRTSender; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.Allegato; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.ContentType; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.StatoPagamento; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.StatoPendenza; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.TipoDestinatario; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.TipoOperazione; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInclude.TipoPagamento; -import it.toscana.rete.cart.www.servizi.iris_1_1.proxy.ComunicazionePosizioniDebitorieOTF; -import it.toscana.rete.cart.www.servizi.iris_1_1.proxy.ComunicazionePosizioniDebitorieOTFProxy; -import it.tref.liferay.portos.bo.model.Pagamento; -import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; -import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; -import it.tref.liferay.portos.bo.util.AvvisoUtil; -import it.tref.liferay.portos.report.shared.constants.ReportConstants; -import it.tref.liferay.portos.report.shared.dto.ReportDto; -import it.tref.liferay.portos.report.shared.dto.ReportResultDto; -import it.tref.liferay.portos.report.shared.util.ReportUtil; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.math.BigDecimal; -import java.math.RoundingMode; -import java.net.MalformedURLException; -import java.net.URL; -import java.rmi.RemoteException; -import java.util.ArrayList; -import java.util.Calendar; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.xml.ws.BindingProvider; - -import org.apache.axis.client.Call; -import org.apache.axis.client.Stub; -import org.apache.axis.types.URI; -import org.apache.axis.types.URI.MalformedURIException; -import org.apache.axis.types.Year; -import org.apache.commons.codec.digest.DigestUtils; -import org.apache.commons.lang.StringUtils; - -import com.liferay.counter.service.CounterLocalServiceUtil; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.util.FileUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; -import com.liferay.util.portlet.PortletProps; - -public abstract class IrisComunicaPosizioniDebitorie { - - private static final Log _log = - LogFactoryUtil.getLog(IrisComunicaPosizioniDebitorie.class); - - private final static String SERVICE_IDP_ALLINEAMENTO_PENDENZE = "IdpAllineamentoPendenze"; - - private final static String COUNTER_MSG_ID = Pagamento.class.getName() + "MsgID"; - - private final static String SUFFIX_VOCE_SPESE_ISTRUTTORIA = "_S"; - private final static String SUFFIX_VOCE_BOLLI = "_B"; - - private final static String TIPO_VOCE_SPESE_ISTRUTTORIA = "ISTRUTTORIA_GC"; - private final static String DESCRIZIONE_VOCE_SPESE_ISTRUTTORIA = "Importo Spese Istruttoria"; - private final static String CAUSALE_PAGAMENTO_SPESE_ISTRUTTORIA = "Pagamento Spese Istruttoria"; - - private final static String TIPO_VOCE_BOLLI = "BOLLI_GC"; - private final static String DESCRIZIONE_VOCE_BOLLI = "Importo Bolli"; - private final static String CAUSALE_PAGAMENTO_BOLLI = "Pagamento Bolli"; - - // Enum IRIS - private final static String DIVISA_EUR = "EUR"; - private static final String ALLEGATO_MBD_TITLE = "DatiMBD.txt"; - - /* - * Keys - */ - private final static String TIPO_PENDENZA_SPESE_ISTRUTTORIA = "geniocivile.iris.speseistruttoria.tipopendenza"; - private final static String TIPO_PENDENZA_BOLLI = "geniocivile.iris.bolli.tipopendenza"; - - private final static String RECEIVER_ID = "geniocivile.iris.receiver.id"; - private final static String RECEIVER_SYS = "geniocivile.iris.receiver.sys"; - - private final static String SENDER_ID_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.sender.id"; - private final static String SENDER_SYS_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.sender.sys"; - private final static String SENDER_ID_BOLLI = "geniocivile.iris.bolli.sender.id"; - private final static String SENDER_SYS_BOLLI = "geniocivile.iris.bolli.sender.sys"; - - private final static String MITTENTE_ID = "geniocivile.iris.mittente.id"; - private final static String MITTENTE_DESCRIZIONE = "geniocivile.iris.mittente.descrizione"; - - private final static String RISCOSSORE = "geniocivile.iris.bolli.riscossore.id"; - private final static String RISCOSSORE_RIFERIMENTO = "geniocivile.iris.bolli.riscossore.riferimento"; - - private final static String USERNAME_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.username"; - private final static String PASSWORD_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.password"; - - private final static String USERNAME_BOLLI = "geniocivile.iris.bolli.username"; - private final static String PASSWORD_BOLLI = "geniocivile.iris.bolli.password"; - - /* - * IUV - */ - private final static String SENDER_ID_IUV = "geniocivile.iris.iuv.sender.id"; - - /* - * KO - */ - private final static String TIPO_PAGAMENTO_ERROR = "geniocivile.iris.error.tipopagamento.notallowed"; - private final static String IUV_URL_ERROR = "geniocivile.iris.error.iuv.url"; - private final static String IUV_FAULT_ERROR = "geniocivile.iris.error.iuv.fault"; - - - public static IdpOTFType comunicaPosizioniDebitorieOTF(long companyId, long groupId, long userId, String codice, - String causale, String codiceFiscale, String tipoPagamento, List importi, - List iuvs, String urlBack, String urlCancel, String provincia) throws SystemException { - - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - return comunicaPosizioniDebitorieOTFSpese(companyId, groupId, codice, causale, codiceFiscale, importi, urlBack, - urlCancel); - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - return comunicaPosizioniDebitorieOTFBolli(companyId, groupId, userId, codice, causale, codiceFiscale, importi, - iuvs, urlBack, urlCancel, provincia); - } else { - throw new SystemException(TIPO_PAGAMENTO_ERROR); - } - } - - private static IdpOTFType comunicaPosizioniDebitorieOTFSpese(long companyId, long groupId, String codice, - String causale, String codiceFiscale, List importiSpeseIstruttoria, String urlBack, String urlCancel) - throws SystemException { - - IdpOTFType idpOTFType = null; - - // String endpoint = - // ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - // ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL); - - try { - - causale += StringPool.SEMICOLON + "CF_SOGGETTO=" + codiceFiscale; - Calendar now = Calendar.getInstance(); - - IdpHeader idpHeader = getIdpHeader(SERVICE_IDP_ALLINEAMENTO_PENDENZE, PagamentoConstants.PAGAMENTO_ONERI); - - boolean offlinePaymentMethods = true; - IdpOTF idpOTF = new IdpOTF(new URI(urlBack), new URI(urlCancel), offlinePaymentMethods); - - String idPendenza = codice; - String tipoPendenza = PortletProps.get(TIPO_PENDENZA_SPESE_ISTRUTTORIA); - - Mittente mittente = new Mittente(PortletProps.get(MITTENTE_ID), PortletProps.get(MITTENTE_DESCRIZIONE)); - - Destinatario[] destinatari = {new Destinatario(codiceFiscale, "CITTADINO", TipoDestinatario.Cittadino)}; - - Calendar calScadenza = Calendar.getInstance(); - calScadenza.add(Calendar.DATE, 3); - Date dataScadenza = calScadenza.getTime(); - - // deve essere successiva alla data di scadenza - Calendar calFineValidita = Calendar.getInstance(); - calFineValidita.add(Calendar.DATE, 3); - Date dataFineValidita = calFineValidita.getTime(); - - BigDecimal importoTotale = new BigDecimal(0).setScale(2, RoundingMode.CEILING); - - List pagamenti = new ArrayList<>(); - if (!importiSpeseIstruttoria.isEmpty()) { - for (int i = 0; i < importiSpeseIstruttoria.size(); i++) { - - if (!importiSpeseIstruttoria.get(i).equals("0.00")) { - - BigDecimal importoSpeseBigDecimal = - new BigDecimal(importiSpeseIstruttoria.get(i)).setScale(2, RoundingMode.CEILING); - importoTotale = importoTotale.add(importoSpeseBigDecimal); - - VoceImporto voceImportoSpeseIstruttoria = - new VoceImporto(idPendenza + SUFFIX_VOCE_SPESE_ISTRUTTORIA, DESCRIZIONE_VOCE_SPESE_ISTRUTTORIA, - importoSpeseBigDecimal, null, null, TIPO_VOCE_SPESE_ISTRUTTORIA); - - DettaglioPagamentoInsertReplace dettaglioPagamentoSpeseIstruttoria = - new DettaglioPagamentoInsertReplace(idPendenza, null, dataScadenza, now.getTime(), dataFineValidita, - StatoPagamento.value1, importoSpeseBigDecimal, new VoceImporto[] {voceImportoSpeseIstruttoria}, - null, null, CAUSALE_PAGAMENTO_SPESE_ISTRUTTORIA, null); - - DettaglioPagamentoInsertReplace[] dettaglioPagamenti = - new DettaglioPagamentoInsertReplace[] {dettaglioPagamentoSpeseIstruttoria}; - pagamenti.add(new PendenzaInsertReplaceInfoPagamento(TipoPagamento.value2, dettaglioPagamenti)); - } - - } - } - - PendenzaInsertReplaceInfoPagamento[] tmpArray = new PendenzaInsertReplaceInfoPagamento[0]; - PendenzaInsertReplaceInfoPagamento[] infoPagamenti = pagamenti.toArray(tmpArray); - - Calendar dataPrescrizione = Calendar.getInstance(); - dataPrescrizione.add(Calendar.DATE, 3); - - // data modifica ente = data creazione = data emissione - PendenzaInsertReplace insert = - new PendenzaInsertReplace(causale, null, now, now, dataPrescrizione, new Year(now.get(Calendar.YEAR)), now, - StatoPendenza.Aperta, importoTotale, DIVISA_EUR, infoPagamenti, null); - - String note = causale + StringPool.SEMICOLON + "COD_PAGAMENTO=" + codice; - - Pendenza[] idpBody = new Pendenza[1]; - // prima cartella pagamento = true => Adesso sarà false? - idpBody[0] = - new Pendenza(idPendenza, tipoPendenza, TipoOperazione.Insert, mittente, destinatari, false, note, insert, - null, null, null); - - idpOTFType = getResponse(companyId, idpHeader, idpOTF, idpBody, PagamentoConstants.PAGAMENTO_ONERI); - - } catch (MalformedURIException e) { - _log.error("Errore", e); - } - - return idpOTFType; - } - - private static IdpOTFType comunicaPosizioniDebitorieOTFBolli(long companyId, long groupId, long userId, - String codice, String causale, String codiceFiscale, List importiBolli, - List iuvs, String urlBack, String urlCancel, String siglaProvincia) - throws SystemException { - - IdpOTFType idpOTFType = null; - - try { - causale += StringPool.SEMICOLON + "CF_SOGGETTO=" + codiceFiscale; - Calendar now = Calendar.getInstance(); - - // idp1:IdpHeader - IdpHeader idpHeader = getIdpHeader(SERVICE_IDP_ALLINEAMENTO_PENDENZE, PagamentoConstants.PAGAMENTO_BOLLI); - - // boolean offlinePaymentMethods = true; // dovrebbe essere false? - boolean offlinePaymentMethods = false; // dovrebbe essere false? - // idp1:IdpOTF - IdpOTF idpOTF = new IdpOTF(new URI(urlBack), new URI(urlCancel), offlinePaymentMethods); - - // idp:IdpBody - String idPendenza = codice; - String tipoPendenza = PortletProps.get(TIPO_PENDENZA_BOLLI); - - Mittente mittente = new Mittente(PortletProps.get(MITTENTE_ID), PortletProps.get(MITTENTE_DESCRIZIONE)); - - Destinatario[] destinatari = {new Destinatario(codiceFiscale, "CITTADINO", TipoDestinatario.Cittadino)}; - - Calendar calScadenza = Calendar.getInstance(); - calScadenza.add(Calendar.DATE, 3); - Date dataScadenza = calScadenza.getTime(); - - // deve essere successiva alla data di scadenza - Calendar calFineValidita = Calendar.getInstance(); - calFineValidita.add(Calendar.DATE, 3); - Date dataFineValidita = calFineValidita.getTime(); - - Riscossore riscossore = new Riscossore(PortletProps.get(RISCOSSORE), PortletProps.get(RISCOSSORE_RIFERIMENTO)); - - BigDecimal importoTotale = new BigDecimal(0).setScale(2, RoundingMode.CEILING); - - - PendenzaInsertReplaceInfoPagamento infoPagmento = new PendenzaInsertReplaceInfoPagamento(); - infoPagmento.setTipoPagamento(TipoPagamento.value2); - - List dettaglioPagamenti = new ArrayList(); - if (!importiBolli.isEmpty()) { - - for (int i = 0; i < importiBolli.size(); i++) { - - if (!importiBolli.get(i).equals("0")) { - BigDecimal importoBolliBigDecimal = new BigDecimal(importiBolli.get(i)).setScale(2, RoundingMode.CEILING); - importoTotale = importoTotale.add(importoBolliBigDecimal); - - VoceImporto voceImporto = - new VoceImporto(idPendenza + SUFFIX_VOCE_BOLLI, DESCRIZIONE_VOCE_BOLLI, importoBolliBigDecimal, null, - null, TIPO_VOCE_BOLLI); - VoceImporto[] voceImporti = {voceImporto}; - - Allegato allegato = new Allegato(); - allegato.setTipo(ContentType.Documento); - allegato.setTitolo(ALLEGATO_MBD_TITLE); - allegato.setCodifica("TEXT"); - try { - byte[] allegatoMDB = generaAllegatoMBD(companyId, userId, siglaProvincia); - // non serve encodarlo. Lo fa da sé - // allegato.setContenuto(Base64.encodeBase64(allegatoMDB)); - allegato.setContenuto(allegatoMDB); - } catch (PortalException | IOException e) { - _log.error(e, e); - } - Allegato[] allegati = {allegato}; - - DettaglioPagamentoInsertReplace dettaglioPagamentoBollo = - new DettaglioPagamentoInsertReplace(iuvs.get(i).getIdentificativoUnivocoVersamento(), null, - dataScadenza, now.getTime(), dataFineValidita, StatoPagamento.value1, importoBolliBigDecimal, - voceImporti, null, allegati, CAUSALE_PAGAMENTO_BOLLI, null); - - - dettaglioPagamenti.add(dettaglioPagamentoBollo); - } - - } - } - DettaglioPagamentoInsertReplace[] tmpArray = new DettaglioPagamentoInsertReplace[0]; - infoPagmento.setDettaglioPagamento(dettaglioPagamenti.toArray(tmpArray)); - - PendenzaInsertReplaceInfoPagamento[] infoPagamenti = new PendenzaInsertReplaceInfoPagamento[] {infoPagmento}; - - Calendar dataPrescrizione = Calendar.getInstance(); - dataPrescrizione.add(Calendar.DATE, 3); - - // data modifica ente = data creazione = data emissione - PendenzaInsertReplace insert = - new PendenzaInsertReplace(causale, riscossore, now, now, dataPrescrizione, new Year(now.get(Calendar.YEAR)), - now, StatoPendenza.Aperta, importoTotale, DIVISA_EUR, infoPagamenti, null); - - - String note = causale + StringPool.SEMICOLON + "COD_PAGAMENTO=" + codice; - - Pendenza[] idpBody = new Pendenza[1]; - idpBody[0] = - new Pendenza(idPendenza, tipoPendenza, TipoOperazione.Insert, mittente, destinatari, true, note, insert, - null, null, null); - - idpOTFType = getResponse(companyId, idpHeader, idpOTF, idpBody, PagamentoConstants.PAGAMENTO_BOLLI); - - } catch (MalformedURIException e) { - _log.error("Errore", e); - } - - return idpOTFType; - } - - private static byte[] generaAllegatoMBD(long companyId, long userId, String siglaProvincia) throws SystemException, - PortalException, IOException { - - String tipoDocumento = "PG"; - String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoDocumento); - long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate); - String propertiesFolder = AvvisoUtil.getAllTipoDocumentoFolderProps().get(tipoDocumento); - long fileEntryIdFolder = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesFolder); - - String fileName = - StringUtils.leftPad(String.valueOf(tipoDocumento), 10, '0') + StringPool.UNDERLINE + System.currentTimeMillis(); - - ReportDto reportDto = new ReportDto(); - reportDto.setFileEntryIds(new long[] {fileEntryIdTemplate}); - reportDto.setFolderId(fileEntryIdFolder); - reportDto.setFileName(fileName); - reportDto.setHeader(""); - reportDto.setHeaderHeight(1); - reportDto.setFooter(""); - reportDto.setFooterHeight(1); - Map parameters = new HashMap(); - parameters.put("html", "File pagamento di prova"); - reportDto.setParameters(parameters); - // reportDto.setShowNumberOfPage(true); - reportDto.setType(ReportConstants.ReportType.VELOCITY_TO_PDF.toString()); - - ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, null); - long fileEntryId = result.getFileEntryIds()[0]; - - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); - - String sha256 = DigestUtils.sha256Hex(fileEntry.getContentStream()); - // String mbdContent = - // "TIPO=01" + StringPool.SEMICOLON + "PROV=" + siglaProvincia + StringPool.SEMICOLON + "HASH=" - // + sha256; - String mbdContent = "TIPO=01;PROV=FI;HASH=74D14F8F9FD55E3BD62A345DB648D9B5FEA9DFB9D645628FD4DAF99372997338"; - - String[] fileParts = ALLEGATO_MBD_TITLE.split("\\."); - File allegatoMDB = FileUtil.createTempFile(fileParts[0], "." + fileParts[1]); - FileWriter writer = new FileWriter(allegatoMDB); - writer.write(mbdContent); - writer.close(); - - // DLAppLocalServiceUtil.deleteFileEntry(fileEntryId); - - return FileUtil.getBytes(allegatoMDB); - - } - - private static IdpOTFType getResponse(long companyId, IdpHeader idpHeader, IdpOTF idpOTF, Pendenza[] idpBody, - String tipoPagamento) { - - IdpOTFType idpOTFType = null; - - try { - - String endpoint = - ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL); - - IdpAllineamentoPendenzeOTF idpAllineamentoPendenzeOTF = - new IdpAllineamentoPendenzeOTF(idpHeader, idpOTF, idpBody, Versione.value3); - - ComunicazionePosizioniDebitorieOTFProxy comunicazionePosizioniDebitorieOTFProxy = - new ComunicazionePosizioniDebitorieOTFProxy(endpoint); - - ComunicazionePosizioniDebitorieOTF comunicazionePosizioniDebitorieOTF = - comunicazionePosizioniDebitorieOTFProxy.getComunicazionePosizioniDebitorieOTF(); - - try { - _log.info(IrisCommonUtil.serializeAxisObject(idpAllineamentoPendenzeOTF, true, false)); - } catch (Exception e) { - e.printStackTrace(); - } - - String username = StringPool.BLANK; - String password = StringPool.BLANK; - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - - username = PortletProps.get(USERNAME_SPESEISTRUTTORIA); - password = PortletProps.get(PASSWORD_SPESEISTRUTTORIA); - - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - - username = PortletProps.get(USERNAME_BOLLI); - password = PortletProps.get(PASSWORD_BOLLI); - - } - - ((Stub) comunicazionePosizioniDebitorieOTF)._setProperty(Call.USERNAME_PROPERTY, username); - ((Stub) comunicazionePosizioniDebitorieOTF)._setProperty(Call.PASSWORD_PROPERTY, password); - - - IdpEsitoOTF risposta = - comunicazionePosizioniDebitorieOTF.idpAllineamentoPendenzeEnteOTF(idpAllineamentoPendenzeOTF); - - - IdpBodyType idpBodyType = risposta.getIdpBody(); - try { - _log.info(IrisCommonUtil.serializeAxisObject(risposta, true, false)); - } catch (Exception e) { - e.printStackTrace(); - } - - if (idpBodyType.getInfoMessaggio().getStato().equals(StatoMessaggio.value1)) { - idpOTFType = risposta.getIdpOTF(); - } else { - - StringBuilder sbBuilder = new StringBuilder(); - - for (Dettaglio dettaglio : idpBodyType.getInfoDettaglio()) { - for (Esito esito : dettaglio.getEsiti()) { - sbBuilder.append(esito.getCodice()); - sbBuilder.append(StringPool.SPACE); - sbBuilder.append(esito.getDescrizione()); - sbBuilder.append(StringPool.NEW_LINE); - } - } - _log.error("Errore sistema IRIS: Comunicazione Posizione Debitorie OTF " + sbBuilder.toString()); - - } - - - } catch (SystemException e) { - _log.error("Errore", e); - } catch (RemoteException e) { - _log.error("Errore", e); - } - - return idpOTFType; - - } - - public static List generaIUV(long companyId, int numeroBolli) throws SystemException { - - String endpoint = - ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL); - if (Validator.isNull(endpoint)) { - throw new SystemException(IUV_URL_ERROR); - } - - GeneraLottoIUVRequest generaLottoIUVRequest = new GeneraLottoIUVRequest(); - generaLottoIUVRequest.setIdentificativoDominio(PortletProps.get(SENDER_ID_IUV)); - generaLottoIUVRequest.setTipoDebito(PortletProps.get(TIPO_PENDENZA_BOLLI)); - generaLottoIUVRequest.setDimensioneLotto(numeroBolli); - - try { - GenerazioneIUVService iuvService = new GenerazioneIUVService(new URL(endpoint)); - GenerazioneIUV port = iuvService.getGenerazioneIUVSOAP(); - - BindingProvider bindingProvider = (BindingProvider) port; - bindingProvider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint); - - GeneraLottoIUVResponseType generaLottoIUV = port.generaLottoIUV(generaLottoIUVRequest); - - FaultType fault = generaLottoIUV.getFault(); - if (Validator.isNotNull(fault)) { - throw new SystemException(PortletProps.get(IUV_FAULT_ERROR) + StringPool.SPACE + fault.getFaultCode() - + StringPool.COLON + fault.getFaultString()); - } - return generaLottoIUV.getBody().getElencoIdentificativi(); - - } catch (MalformedURLException e) { - _log.error(e, e); - } - - return Collections.emptyList(); - - } - - private static IdpHeader getIdpHeader(String serviceName, String tipoPagamento) throws SystemException { - - String msgIdTRT = String.valueOf(CounterLocalServiceUtil.increment(COUNTER_MSG_ID)); - String msgIdE2E = String.valueOf(CounterLocalServiceUtil.increment(COUNTER_MSG_ID)); - Calendar XMLCrtDt = Calendar.getInstance(); - - String senderId = StringPool.BLANK; - String senderSys = StringPool.BLANK; - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - - senderId = PortletProps.get(SENDER_ID_SPESEISTRUTTORIA); - senderSys = PortletProps.get(SENDER_SYS_SPESEISTRUTTORIA); - - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - - senderId = PortletProps.get(SENDER_ID_BOLLI); - senderSys = PortletProps.get(SENDER_SYS_BOLLI); - - } - - String receiverId = PortletProps.get(RECEIVER_ID); - String receiverSys = PortletProps.get(RECEIVER_SYS); - - - TRTSender sender = new TRTSender(senderId, senderSys); - TRTReceiver receiver = new TRTReceiver(receiverId, receiverSys); - HeaderTRT TRT = new HeaderTRT(serviceName, msgIdTRT, XMLCrtDt, sender, receiver); - - E2ESender e2Esender = new E2ESender(senderId, senderSys); - E2EReceiver e2Ereceiver = new E2EReceiver(receiverId, receiverSys); - HeaderE2E e2E = new HeaderE2E(serviceName, msgIdE2E, XMLCrtDt, e2Esender, e2Ereceiver); - - IdpHeader idpHeader = new IdpHeader(TRT, e2E); - - return idpHeader; - } - - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisVerificaPagamenti.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisVerificaPagamenti.java deleted file mode 100644 index 8616af33..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/iris/IrisVerificaPagamenti.java +++ /dev/null @@ -1,152 +0,0 @@ -package it.tref.liferay.portos.bo.iris; - -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpAllineamentoPendenze.Versione; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.IdpEsitoVerifica; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.InformazioniPagamentoType; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.E2EReceiver; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.E2ESender; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.HeaderE2E; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.HeaderTRT; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.IdpHeader; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.TRTReceiver; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpHeader.TRTSender; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInformativaPagamento.IdPagamento; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInformativaPagamento.IdpVerificaStatoPagamento; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpInformativaPagamento.IdpVerificaStatoPagamentoIdpBody; -import it.toscana.rete.cart.www.servizi.iris_1_1.proxy.VerificaStatoPagamento; -import it.toscana.rete.cart.www.servizi.iris_1_1.proxy.VerificaStatoPagamentoProxy; -import it.tref.liferay.portos.bo.model.Pagamento; -import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; -import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; - -import java.rmi.RemoteException; -import java.util.Calendar; - -import org.apache.axis.client.Call; -import org.apache.axis.client.Stub; - -import com.liferay.counter.service.CounterLocalServiceUtil; -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.util.portlet.PortletProps; - -public abstract class IrisVerificaPagamenti { - - private static final Log _log = LogFactoryUtil.getLog(IrisVerificaPagamenti.class); - - private final static String SERVICE_IDP_INFORMATIVA_PAGAMENTO = "IdpInformativaPagamento"; - - private final static String COUNTER_MSG_ID = Pagamento.class.getName() + "MsgID"; - - private final static String RECEIVER_ID = "geniocivile.iris.receiver.id"; - private final static String RECEIVER_SYS = "geniocivile.iris.receiver.sys"; - - private final static String SENDER_ID_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.sender.id"; - private final static String SENDER_SYS_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.sender.sys"; - private final static String SENDER_ID_BOLLI = "geniocivile.iris.bolli.sender.id"; - private final static String SENDER_SYS_BOLLI = "geniocivile.iris.bolli.sender.sys"; - - private final static String USERNAME_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.username"; - private final static String PASSWORD_SPESEISTRUTTORIA = "geniocivile.iris.speseistruttoria.password"; - - private final static String USERNAME_BOLLI = "geniocivile.iris.bolli.username"; - private final static String PASSWORD_BOLLI = "geniocivile.iris.bolli.password"; - - - public static InformazioniPagamentoType[] verificaPagamenti(long companyId, long groupId, String codice, - String tipoPagamento) throws SystemException { - InformazioniPagamentoType[] statoPagamentoType = null; - String endpoint = - ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL); - try { - IdpHeader idpHeader = getIdpHeader(SERVICE_IDP_INFORMATIVA_PAGAMENTO, tipoPagamento); - String tipoPendenza = PortletProps.get(IrisCommonUtil.getTipoPendenza(tipoPagamento)); - IdPagamento pagamento = new IdPagamento(codice); - pagamento.setTipoPendenza(tipoPendenza); - IdPagamento[] idPagamenti = {pagamento}; - // andrà aggiunto in versione 01.03-03 idp:richiestainformazionipagamento = true - IdpVerificaStatoPagamentoIdpBody idpBody = new IdpVerificaStatoPagamentoIdpBody(idPagamenti, true); - - - VerificaStatoPagamentoProxy verificaStatoPagamentoProxy = new VerificaStatoPagamentoProxy(endpoint); - VerificaStatoPagamento verificaStatoPagamento = verificaStatoPagamentoProxy.getVerificaStatoPagamento(); - - IdpVerificaStatoPagamento idpVerificaStatoPagamento = - new IdpVerificaStatoPagamento(idpHeader, idpBody, Versione.value4.getValue()); - - String username = StringPool.BLANK; - String password = StringPool.BLANK; - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - username = PortletProps.get(USERNAME_SPESEISTRUTTORIA); - password = PortletProps.get(PASSWORD_SPESEISTRUTTORIA); - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - username = PortletProps.get(USERNAME_BOLLI); - password = PortletProps.get(PASSWORD_BOLLI); - } - - // try { - // _log.info(IrisCommonUtil.serializeAxisObject(idpVerificaStatoPagamento, true, false)); - // } catch (Exception e) { - // e.printStackTrace(); - // } - - ((Stub) verificaStatoPagamento)._setProperty(Call.USERNAME_PROPERTY, username); - ((Stub) verificaStatoPagamento)._setProperty(Call.PASSWORD_PROPERTY, password); - - IdpEsitoVerifica ritorno = verificaStatoPagamento.idpVerificaStatoPagamenti(idpVerificaStatoPagamento); - // try { - // _log.info(IrisCommonUtil.serializeAxisObject(ritorno, true, false)); - // } catch (Exception e) { - // e.printStackTrace(); - // } - statoPagamentoType = ritorno.getIdpBody().getInformazioniPagamento(); - - } catch (RemoteException e) { - _log.error("Errore", e); - } - return statoPagamentoType; - } - - private static IdpHeader getIdpHeader(String serviceName, String tipoPagamento) throws SystemException { - - String msgIdTRT = String.valueOf(CounterLocalServiceUtil.increment(COUNTER_MSG_ID)); - String msgIdE2E = String.valueOf(CounterLocalServiceUtil.increment(COUNTER_MSG_ID)); - Calendar XMLCrtDt = Calendar.getInstance(); - - String senderId = StringPool.BLANK; - String senderSys = StringPool.BLANK; - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - - senderId = PortletProps.get(SENDER_ID_SPESEISTRUTTORIA); - senderSys = PortletProps.get(SENDER_SYS_SPESEISTRUTTORIA); - - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - - senderId = PortletProps.get(SENDER_ID_BOLLI); - senderSys = PortletProps.get(SENDER_SYS_BOLLI); - - } - - String receiverId = PortletProps.get(RECEIVER_ID); - String receiverSys = PortletProps.get(RECEIVER_SYS); - - - TRTSender sender = new TRTSender(senderId, senderSys); - TRTReceiver receiver = new TRTReceiver(receiverId, receiverSys); - HeaderTRT TRT = new HeaderTRT(serviceName, msgIdTRT, XMLCrtDt, sender, receiver); - - E2ESender e2Esender = new E2ESender(senderId, senderSys); - E2EReceiver e2Ereceiver = new E2EReceiver(receiverId, receiverSys); - HeaderE2E e2E = new HeaderE2E(serviceName, msgIdE2E, XMLCrtDt, e2Esender, e2Ereceiver); - - IdpHeader idpHeader = new IdpHeader(TRT, e2E); - - return idpHeader; - } - - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeCacheModel.java index b6fdd87d..347c82a3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeCacheModel.java @@ -38,7 +38,7 @@ public class AllegatoManualeCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(29); + StringBundler sb = new StringBundler(27); sb.append("{uuid="); sb.append(uuid); @@ -64,8 +64,6 @@ public class AllegatoManualeCacheModel implements CacheModel, sb.append(avvisoId); sb.append(", fileEntryId="); sb.append(fileEntryId); - sb.append(", oldFileEntryId="); - sb.append(oldFileEntryId); sb.append(", descrizione="); sb.append(descrizione); sb.append("}"); @@ -114,7 +112,6 @@ public class AllegatoManualeCacheModel implements CacheModel, allegatoManualeImpl.setDettPraticaId(dettPraticaId); allegatoManualeImpl.setAvvisoId(avvisoId); allegatoManualeImpl.setFileEntryId(fileEntryId); - allegatoManualeImpl.setOldFileEntryId(oldFileEntryId); if (descrizione == null) { allegatoManualeImpl.setDescrizione(StringPool.BLANK); @@ -142,7 +139,6 @@ public class AllegatoManualeCacheModel implements CacheModel, dettPraticaId = objectInput.readLong(); avvisoId = objectInput.readLong(); fileEntryId = objectInput.readLong(); - oldFileEntryId = objectInput.readLong(); descrizione = objectInput.readUTF(); } @@ -174,7 +170,6 @@ public class AllegatoManualeCacheModel implements CacheModel, objectOutput.writeLong(dettPraticaId); objectOutput.writeLong(avvisoId); objectOutput.writeLong(fileEntryId); - objectOutput.writeLong(oldFileEntryId); if (descrizione == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -196,6 +191,5 @@ public class AllegatoManualeCacheModel implements CacheModel, public long dettPraticaId; public long avvisoId; public long fileEntryId; - public long oldFileEntryId; public String descrizione; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeImpl.java index d342abd1..76f99226 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeImpl.java @@ -1,34 +1,34 @@ /** * 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) + * 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 + * 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.bo.model.impl; /** - * The extended model implementation for the AllegatoManuale service. Represents a row in the "portos_bo_AllegatoManuale" database table, with each column mapped to a property of this class. + * The extended model implementation for the AllegatoManuale service. Represents a row in the + * "portos_bo_AllegatoManuale" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class AllegatoManualeImpl extends AllegatoManualeBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a allegato manuale model instance should use the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a allegato manuale model + * instance should use the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface instead. */ public AllegatoManualeImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeModelImpl.java index afb755ad..51a20e5b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeModelImpl.java @@ -79,10 +79,9 @@ public class AllegatoManualeModelImpl extends BaseModelImpl { "dettPraticaId", Types.BIGINT }, { "avvisoId", Types.BIGINT }, { "fileEntryId", Types.BIGINT }, - { "oldFileEntryId", Types.BIGINT }, { "descrizione", Types.VARCHAR } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_AllegatoManuale (uuid_ VARCHAR(75) null,allegatoManualeId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,dettPraticaId LONG,avvisoId LONG,fileEntryId LONG,oldFileEntryId LONG,descrizione STRING null)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_AllegatoManuale (uuid_ VARCHAR(75) null,allegatoManualeId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,dettPraticaId LONG,avvisoId LONG,fileEntryId LONG,descrizione STRING null)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_AllegatoManuale"; public static final String ORDER_BY_JPQL = " ORDER BY allegatoManuale.allegatoManualeId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_AllegatoManuale.allegatoManualeId ASC"; @@ -130,7 +129,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl model.setDettPraticaId(soapModel.getDettPraticaId()); model.setAvvisoId(soapModel.getAvvisoId()); model.setFileEntryId(soapModel.getFileEntryId()); - model.setOldFileEntryId(soapModel.getOldFileEntryId()); model.setDescrizione(soapModel.getDescrizione()); return model; @@ -209,7 +207,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("avvisoId", getAvvisoId()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("descrizione", getDescrizione()); return attributes; @@ -289,12 +286,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String descrizione = (String)attributes.get("descrizione"); if (descrizione != null) { @@ -510,17 +501,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl _fileEntryId = fileEntryId; } - @JSON - @Override - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - } - @JSON @Override public String getDescrizione() { @@ -586,7 +566,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl allegatoManualeImpl.setDettPraticaId(getDettPraticaId()); allegatoManualeImpl.setAvvisoId(getAvvisoId()); allegatoManualeImpl.setFileEntryId(getFileEntryId()); - allegatoManualeImpl.setOldFileEntryId(getOldFileEntryId()); allegatoManualeImpl.setDescrizione(getDescrizione()); allegatoManualeImpl.resetOriginalValues(); @@ -715,8 +694,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl allegatoManualeCacheModel.fileEntryId = getFileEntryId(); - allegatoManualeCacheModel.oldFileEntryId = getOldFileEntryId(); - allegatoManualeCacheModel.descrizione = getDescrizione(); String descrizione = allegatoManualeCacheModel.descrizione; @@ -730,7 +707,7 @@ public class AllegatoManualeModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(29); + StringBundler sb = new StringBundler(27); sb.append("{uuid="); sb.append(getUuid()); @@ -756,8 +733,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl sb.append(getAvvisoId()); sb.append(", fileEntryId="); sb.append(getFileEntryId()); - sb.append(", oldFileEntryId="); - sb.append(getOldFileEntryId()); sb.append(", descrizione="); sb.append(getDescrizione()); sb.append("}"); @@ -767,7 +742,7 @@ public class AllegatoManualeModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(46); + StringBundler sb = new StringBundler(43); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.AllegatoManuale"); @@ -821,10 +796,6 @@ public class AllegatoManualeModelImpl extends BaseModelImpl "fileEntryId"); - sb.append( - "oldFileEntryId"); sb.append( "descrizione private boolean _setOriginalDettPraticaId; private long _avvisoId; private long _fileEntryId; - private long _oldFileEntryId; private String _descrizione; private long _columnBitmask; private AllegatoManuale _escapedModel; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java index bffb0367..befa24df 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java @@ -1,14 +1,12 @@ /** * 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) + * 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 + * 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. */ @@ -25,33 +23,32 @@ import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONDeserializer; import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; /** - * The extended model implementation for the Asseverazione service. Represents a - * row in the "portos_bo_Asseverazione" database table, with each - * column mapped to a property of this class. + * The extended model implementation for the Asseverazione service. Represents a row in the + * "portos_bo_Asseverazione" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.Asseverazione} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Asseverazione} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class AsseverazioneImpl extends AsseverazioneBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a - * asseverazione model instance should use the {@link - * it.tref.liferay.portos.bo.model.Asseverazione} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a asseverazione model instance + * should use the {@link it.tref.liferay.portos.bo.model.Asseverazione} interface instead. */ public AsseverazioneImpl() { } + @Override public Map getDichiarazioniMap() { + JSONDeserializer> deserializer = JSONFactoryUtil.createJSONDeserializer(); String dichiarazioni = getDichiarazioni(); if (Validator.isNull(dichiarazioni)) { @@ -60,8 +57,10 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl { return deserializer.deserialize(dichiarazioni); } + @Override public String getModello() throws PortalException, SystemException { - String modello = ""; + + String modello = StringPool.BLANK; switch (this.getTipologia()) { case TipoSoggettoUtil.COLLAUDATORE: modello = "AS-COL"; @@ -79,9 +78,8 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl { modello = "AS-GEO"; break; case TipoSoggettoUtil.PROGETTISTA: - Soggetto soggetto = SoggettoLocalServiceUtil - .getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(this.getIntPraticaId(), - this.getCodiceFiscale(), this.getTipologia()); + Soggetto soggetto = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto( + this.getIntPraticaId(), this.getCodiceFiscale(), this.getTipologia()); if (soggetto.getAmbitoProfessione().equals("architettonico")) { modello = "AS-PRA"; } else { @@ -93,4 +91,4 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl { } return modello; } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoCacheModel.java index 045ab446..b667a8df 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoCacheModel.java @@ -37,7 +37,7 @@ import java.util.Date; public class AvvisoCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(87); + StringBundler sb = new StringBundler(81); sb.append("{uuid="); sb.append(uuid); @@ -71,10 +71,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { sb.append(fileEntryIdInvio); sb.append(", fileEntryIdProtocollo="); sb.append(fileEntryIdProtocollo); - sb.append(", oldFileEntryIdBase="); - sb.append(oldFileEntryIdBase); - sb.append(", oldFileEntryIdInvio="); - sb.append(oldFileEntryIdInvio); sb.append(", dtCreateFileEntryInvio="); sb.append(dtCreateFileEntryInvio); sb.append(", userCodiceFiscalePrimaFirma="); @@ -115,8 +111,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { sb.append(dtRifiuto); sb.append(", commentoRifiuto="); sb.append(commentoRifiuto); - sb.append(", oldAvvisoId="); - sb.append(oldAvvisoId); sb.append(", intPraticaId="); sb.append(intPraticaId); sb.append(", controlloPraticaId="); @@ -200,8 +194,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { avvisoImpl.setFileEntryIdBase(fileEntryIdBase); avvisoImpl.setFileEntryIdInvio(fileEntryIdInvio); avvisoImpl.setFileEntryIdProtocollo(fileEntryIdProtocollo); - avvisoImpl.setOldFileEntryIdBase(oldFileEntryIdBase); - avvisoImpl.setOldFileEntryIdInvio(oldFileEntryIdInvio); if (dtCreateFileEntryInvio == Long.MIN_VALUE) { avvisoImpl.setDtCreateFileEntryInvio(null); @@ -306,7 +298,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { avvisoImpl.setCommentoRifiuto(commentoRifiuto); } - avvisoImpl.setOldAvvisoId(oldAvvisoId); avvisoImpl.setIntPraticaId(intPraticaId); avvisoImpl.setControlloPraticaId(controlloPraticaId); avvisoImpl.setClassPk(classPk); @@ -341,8 +332,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { fileEntryIdBase = objectInput.readLong(); fileEntryIdInvio = objectInput.readLong(); fileEntryIdProtocollo = objectInput.readLong(); - oldFileEntryIdBase = objectInput.readLong(); - oldFileEntryIdInvio = objectInput.readLong(); dtCreateFileEntryInvio = objectInput.readLong(); userCodiceFiscalePrimaFirma = objectInput.readUTF(); firmaInCorso = objectInput.readBoolean(); @@ -363,7 +352,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { rifiutato = objectInput.readBoolean(); dtRifiuto = objectInput.readLong(); commentoRifiuto = objectInput.readUTF(); - oldAvvisoId = objectInput.readLong(); intPraticaId = objectInput.readLong(); controlloPraticaId = objectInput.readLong(); classPk = objectInput.readLong(); @@ -422,8 +410,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { objectOutput.writeLong(fileEntryIdBase); objectOutput.writeLong(fileEntryIdInvio); objectOutput.writeLong(fileEntryIdProtocollo); - objectOutput.writeLong(oldFileEntryIdBase); - objectOutput.writeLong(oldFileEntryIdInvio); objectOutput.writeLong(dtCreateFileEntryInvio); if (userCodiceFiscalePrimaFirma == null) { @@ -491,7 +477,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { objectOutput.writeUTF(commentoRifiuto); } - objectOutput.writeLong(oldAvvisoId); objectOutput.writeLong(intPraticaId); objectOutput.writeLong(controlloPraticaId); objectOutput.writeLong(classPk); @@ -520,8 +505,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { public long fileEntryIdBase; public long fileEntryIdInvio; public long fileEntryIdProtocollo; - public long oldFileEntryIdBase; - public long oldFileEntryIdInvio; public long dtCreateFileEntryInvio; public String userCodiceFiscalePrimaFirma; public boolean firmaInCorso; @@ -542,7 +525,6 @@ public class AvvisoCacheModel implements CacheModel, Externalizable { public boolean rifiutato; public long dtRifiuto; public String commentoRifiuto; - public long oldAvvisoId; public long intPraticaId; public long controlloPraticaId; public long classPk; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoImpl.java index aeee0166..2b48c296 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -20,6 +20,7 @@ import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; @@ -30,114 +31,109 @@ import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.util.LocaleUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.util.DLUtil; /** - * The extended model implementation for the Avviso service. Represents a row in - * the "portos_bo_Avviso" database table, with each column mapped to a - * property of this class. + * The extended model implementation for the Avviso service. Represents a row in the "portos_bo_Avviso" + * database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.Avviso} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Avviso} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class AvvisoImpl extends AvvisoBaseImpl { - /** - * - */ - private static final long serialVersionUID = -2350602144741897095L; - /* - * NOTE FOR DEVELOPERS: Never reference this class directly. All methods - * that expect a avviso model instance should use the {@link - * it.tref.liferay.portos.bo.model.Avviso} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a avviso model instance should + * use the {@link it.tref.liferay.portos.bo.model.Avviso} interface instead. */ - public AvvisoImpl() { - - } - + @Override public String getFullDescription() throws PortalException, SystemException { String tipoDocumento = AvvisoUtil.getAllTipoDocumento().containsKey(this.getTipoDocumento()) ? AvvisoUtil .getAllTipoDocumento().get(this.getTipoDocumento()) : "label.admingeniocivile.avviso.tipoDocumento.avvisomanuale"; - String fullDescription = LanguageUtil.get(LocaleUtil.ITALIAN, tipoDocumento); - + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId()); + switch (intPratica.getTipoProcedura()) { + case Constants.PROCEDURA_P3: + switch (this.getTipoDocumento()) { + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + return "Avviso di " + + LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-" + StatoPraticaConstants.VIARCH_APERTO); + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + return "Avviso di " + + LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-" + StatoPraticaConstants.VIARCH_CHIUSO); + } + break; + } if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) { - if (this.getClassName().equals(DettPratica.class.getName())) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(this.getClassPk()); - if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica - .getTipoIntegrazione())) { - fullDescription += " di " - + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-12") + ""; + if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { + fullDescription += " di " + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-12") + + ""; } else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica .getTipoIntegrazione())) { - fullDescription += " di " - + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-05") + " n° " - + dettPratica.getIntegrazione() + ""; + fullDescription += " di " + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-05") + + " n° " + dettPratica.getIntegrazione() + ""; } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - fullDescription += " di " - + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-13") + " n° " - + dettPratica.getVarianteNumero() + ""; + fullDescription += " di " + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-13") + + " n° " + dettPratica.getVarianteNumero() + ""; } } else if (this.getClassName().equals(FineLavori.class.getName())) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(this.getClassPk()); fullDescription += " di " - + LanguageUtil.get(LocaleUtil.ITALIAN, - "label-integrazione-" + (fineLavori.getParziale() ? "09" : "07")) + " n° " - + fineLavori.getNumero() + ""; + + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" + + (fineLavori.getParziale() ? "09" : "07")) + " n° " + fineLavori.getNumero() + + "
"; } else if (this.getClassName().equals(Collaudo.class.getName())) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(this.getClassPk()); fullDescription += " di " - + LanguageUtil.get(LocaleUtil.ITALIAN, - "label-integrazione-" + (collaudo.getParziale() ? "10" : "08")) + " n° " - + collaudo.getNumero() + ""; + + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" + + (collaudo.getParziale() ? "10" : "08")) + " n° " + collaudo.getNumero() + ""; } - - } else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.CONFORME)) { - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId()); - - return LanguageUtil.get( - LocaleUtil.ITALIAN, - AvvisoUtil.getAllTipoDocumento().get( - PraticaUtil.getStatoPraticaCode(StatoPraticaConstants.CONFORME, intPratica))); - - } else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) { - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId()); + } else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.CONFORME) + || this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) { return LanguageUtil.get( LocaleUtil.ITALIAN, AvvisoUtil.getAllTipoDocumento().get( - PraticaUtil.getStatoPraticaCode(StatoPraticaConstants.NON_CONFORME, intPratica))); + PraticaUtil.getStatoPraticaCode(this.getTipoDocumento(), intPratica))); } - return fullDescription; } - public String getDescriptionOggettoProtocollo() throws PortalException, SystemException { - + @Override + public String getDescriptionOggettoProtocollo(String tipoProcedura) throws PortalException, SystemException { + + if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_P3)) { + switch (this.getTipoDocumento()) { + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + return LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-" + StatoPraticaConstants.VIARCH_APERTO); + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + return LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-" + StatoPraticaConstants.VIARCH_CHIUSO); + } + } String tipoDocumento = AvvisoUtil.getAllTipoDocumento().containsKey(this.getTipoDocumento()) ? AvvisoUtil .getAllTipoDocumento().get(this.getTipoDocumento()) : "label.admingeniocivile.avviso.tipoDocumento.avvisomanuale"; - String fullDescription = LanguageUtil.get(LocaleUtil.ITALIAN, tipoDocumento); - if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) { - if (this.getClassName().equals(DettPratica.class.getName())) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(this.getClassPk()); - if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica - .getTipoIntegrazione())) { - fullDescription += " di " + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-12") - + ""; + if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { + fullDescription += " di " + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-12"); } else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica .getTipoIntegrazione())) { fullDescription += " di " + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-05"); @@ -147,24 +143,20 @@ public class AvvisoImpl extends AvvisoBaseImpl { } else if (this.getClassName().equals(FineLavori.class.getName())) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(this.getClassPk()); fullDescription += " di " - + LanguageUtil.get(LocaleUtil.ITALIAN, - "label-integrazione-" + (fineLavori.getParziale() ? "09" : "07")); - + + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" + + (fineLavori.getParziale() ? "09" : "07")); } else if (this.getClassName().equals(Collaudo.class.getName())) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(this.getClassPk()); fullDescription += " di " - + LanguageUtil.get(LocaleUtil.ITALIAN, - "label-integrazione-" + (collaudo.getParziale() ? "10" : "08")); + + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" + + (collaudo.getParziale() ? "10" : "08")); } - } else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.CONFORME)) { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId()); - return LanguageUtil.get( LocaleUtil.ITALIAN, AvvisoUtil.getAllTipoDocumento().get( PraticaUtil.getStatoPraticaCode(StatoPraticaConstants.CONFORME, intPratica))); - } else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId()); return LanguageUtil.get( @@ -172,40 +164,57 @@ public class AvvisoImpl extends AvvisoBaseImpl { AvvisoUtil.getAllTipoDocumento().get( PraticaUtil.getStatoPraticaCode(StatoPraticaConstants.NON_CONFORME, intPratica))); } + return fullDescription.replace("Avviso di ", StringPool.BLANK); + } - return fullDescription.replace("Avviso di ", ""); + @Override + public String getDescriptionOggettoProtocollo() throws PortalException, SystemException { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + return getDescriptionOggettoProtocollo(intPratica.getTipoProcedura()); } + @Override public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException { if (Validator.isNotNull(getFileEntryIdInvio())) { - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getFileEntryIdInvio()); - - return DLUtil - .getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); + return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); } return null; } - public String translateTipoDocumento() throws PortalException, SystemException { - + @Override + public String translateTipoDocumento(String tipoProcedura) throws PortalException, SystemException { + + if (tipoProcedura.equalsIgnoreCase(Constants.PROCEDURA_P3)) { + switch (this.getTipoDocumento()) { + case StatoPraticaConstants.AUTORIZZATA: + case StatoPraticaConstants.CONFORME: + return LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-" + StatoPraticaConstants.VIARCH_APERTO); + case StatoPraticaConstants.NON_AUTORIZZATA: + case StatoPraticaConstants.NON_CONFORME: + return LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-" + StatoPraticaConstants.VIARCH_CHIUSO); + } + } String tipoDocumento = AvvisoUtil.getAllTipoDocumento().containsKey(this.getTipoDocumento()) ? AvvisoUtil .getAllTipoDocumento().get(this.getTipoDocumento()) : "label.admingeniocivile.avviso.tipoDocumento.avvisomanuale"; - if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.CONFORME)) { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId()); tipoDocumento = AvvisoUtil.getAllTipoDocumento().get( PraticaUtil.getStatoPraticaCode(StatoPraticaConstants.CONFORME, intPratica)); - } else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId()); tipoDocumento = AvvisoUtil.getAllTipoDocumento().get( PraticaUtil.getStatoPraticaCode(StatoPraticaConstants.NON_CONFORME, intPratica)); } - return tipoDocumento; + } + + @Override + public String translateTipoDocumento() throws PortalException, SystemException { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + return translateTipoDocumento(intPratica.getTipoProcedura()); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoModelImpl.java index 6a3b098c..786d470d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoModelImpl.java @@ -84,8 +84,6 @@ public class AvvisoModelImpl extends BaseModelImpl { "fileEntryIdBase", Types.BIGINT }, { "fileEntryIdInvio", Types.BIGINT }, { "fileEntryIdProtocollo", Types.BIGINT }, - { "oldFileEntryIdBase", Types.BIGINT }, - { "oldFileEntryIdInvio", Types.BIGINT }, { "dtCreateFileEntryInvio", Types.TIMESTAMP }, { "userCodiceFiscalePrimaFirma", Types.VARCHAR }, { "firmaInCorso", Types.BOOLEAN }, @@ -106,13 +104,12 @@ public class AvvisoModelImpl extends BaseModelImpl { "rifiutato", Types.BOOLEAN }, { "dtRifiuto", Types.TIMESTAMP }, { "commentoRifiuto", Types.VARCHAR }, - { "oldAvvisoId", Types.BIGINT }, { "intPraticaId", Types.BIGINT }, { "controlloPraticaId", Types.BIGINT }, { "classPk", Types.BIGINT }, { "className", Types.VARCHAR } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Avviso (uuid_ VARCHAR(75) null,avvisoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,descLong STRING null,dtAvviso DATE null,tipoAvviso VARCHAR(10) null,tipoDocumento VARCHAR(75) null,fileEntryIdTemplate LONG,fileEntryIdBase LONG,fileEntryIdInvio LONG,fileEntryIdProtocollo LONG,oldFileEntryIdBase LONG,oldFileEntryIdInvio LONG,dtCreateFileEntryInvio DATE null,userCodiceFiscalePrimaFirma VARCHAR(75) null,firmaInCorso BOOLEAN,transactionIdPrimaFirma VARCHAR(75) null,inviato VARCHAR(75) null,dtInvio DATE null,annullato BOOLEAN,errore BOOLEAN,signal BOOLEAN,dtInvioSignal DATE null,tempistica BOOLEAN,dtTempistica DATE null,jsonParameters TEXT null,protocollo VARCHAR(75) null,dtProtocollo DATE null,oggettoProtocollo TEXT null,inviatoTecnico BOOLEAN,rifiutato BOOLEAN,dtRifiuto DATE null,commentoRifiuto STRING null,oldAvvisoId LONG,intPraticaId LONG,controlloPraticaId LONG,classPk LONG,className VARCHAR(75) null)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Avviso (uuid_ VARCHAR(75) null,avvisoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,descLong STRING null,dtAvviso DATE null,tipoAvviso VARCHAR(10) null,tipoDocumento VARCHAR(75) null,fileEntryIdTemplate LONG,fileEntryIdBase LONG,fileEntryIdInvio LONG,fileEntryIdProtocollo LONG,dtCreateFileEntryInvio DATE null,userCodiceFiscalePrimaFirma VARCHAR(75) null,firmaInCorso BOOLEAN,transactionIdPrimaFirma VARCHAR(75) null,inviato VARCHAR(75) null,dtInvio DATE null,annullato BOOLEAN,errore BOOLEAN,signal BOOLEAN,dtInvioSignal DATE null,tempistica BOOLEAN,dtTempistica DATE null,jsonParameters TEXT null,protocollo VARCHAR(75) null,dtProtocollo DATE null,oggettoProtocollo TEXT null,inviatoTecnico BOOLEAN,rifiutato BOOLEAN,dtRifiuto DATE null,commentoRifiuto STRING null,intPraticaId LONG,controlloPraticaId LONG,classPk LONG,className VARCHAR(75) null)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Avviso"; public static final String ORDER_BY_JPQL = " ORDER BY avviso.dtAvviso DESC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Avviso.dtAvviso DESC"; @@ -134,11 +131,10 @@ public class AvvisoModelImpl extends BaseModelImpl public static long GROUPID_COLUMN_BITMASK = 8L; public static long INTPRATICAID_COLUMN_BITMASK = 16L; public static long INVIATO_COLUMN_BITMASK = 32L; - public static long OLDAVVISOID_COLUMN_BITMASK = 64L; - public static long PROTOCOLLO_COLUMN_BITMASK = 128L; - public static long TIPODOCUMENTO_COLUMN_BITMASK = 256L; - public static long UUID_COLUMN_BITMASK = 512L; - public static long DTAVVISO_COLUMN_BITMASK = 1024L; + public static long PROTOCOLLO_COLUMN_BITMASK = 64L; + public static long TIPODOCUMENTO_COLUMN_BITMASK = 128L; + public static long UUID_COLUMN_BITMASK = 256L; + public static long DTAVVISO_COLUMN_BITMASK = 512L; /** * Converts the soap model instance into a normal model instance. @@ -169,8 +165,6 @@ public class AvvisoModelImpl extends BaseModelImpl model.setFileEntryIdBase(soapModel.getFileEntryIdBase()); model.setFileEntryIdInvio(soapModel.getFileEntryIdInvio()); model.setFileEntryIdProtocollo(soapModel.getFileEntryIdProtocollo()); - model.setOldFileEntryIdBase(soapModel.getOldFileEntryIdBase()); - model.setOldFileEntryIdInvio(soapModel.getOldFileEntryIdInvio()); model.setDtCreateFileEntryInvio(soapModel.getDtCreateFileEntryInvio()); model.setUserCodiceFiscalePrimaFirma(soapModel.getUserCodiceFiscalePrimaFirma()); model.setFirmaInCorso(soapModel.getFirmaInCorso()); @@ -191,7 +185,6 @@ public class AvvisoModelImpl extends BaseModelImpl model.setRifiutato(soapModel.getRifiutato()); model.setDtRifiuto(soapModel.getDtRifiuto()); model.setCommentoRifiuto(soapModel.getCommentoRifiuto()); - model.setOldAvvisoId(soapModel.getOldAvvisoId()); model.setIntPraticaId(soapModel.getIntPraticaId()); model.setControlloPraticaId(soapModel.getControlloPraticaId()); model.setClassPk(soapModel.getClassPk()); @@ -276,8 +269,6 @@ public class AvvisoModelImpl extends BaseModelImpl attributes.put("fileEntryIdBase", getFileEntryIdBase()); attributes.put("fileEntryIdInvio", getFileEntryIdInvio()); attributes.put("fileEntryIdProtocollo", getFileEntryIdProtocollo()); - attributes.put("oldFileEntryIdBase", getOldFileEntryIdBase()); - attributes.put("oldFileEntryIdInvio", getOldFileEntryIdInvio()); attributes.put("dtCreateFileEntryInvio", getDtCreateFileEntryInvio()); attributes.put("userCodiceFiscalePrimaFirma", getUserCodiceFiscalePrimaFirma()); @@ -299,7 +290,6 @@ public class AvvisoModelImpl extends BaseModelImpl attributes.put("rifiutato", getRifiutato()); attributes.put("dtRifiuto", getDtRifiuto()); attributes.put("commentoRifiuto", getCommentoRifiuto()); - attributes.put("oldAvvisoId", getOldAvvisoId()); attributes.put("intPraticaId", getIntPraticaId()); attributes.put("controlloPraticaId", getControlloPraticaId()); attributes.put("classPk", getClassPk()); @@ -407,18 +397,6 @@ public class AvvisoModelImpl extends BaseModelImpl setFileEntryIdProtocollo(fileEntryIdProtocollo); } - Long oldFileEntryIdBase = (Long)attributes.get("oldFileEntryIdBase"); - - if (oldFileEntryIdBase != null) { - setOldFileEntryIdBase(oldFileEntryIdBase); - } - - Long oldFileEntryIdInvio = (Long)attributes.get("oldFileEntryIdInvio"); - - if (oldFileEntryIdInvio != null) { - setOldFileEntryIdInvio(oldFileEntryIdInvio); - } - Date dtCreateFileEntryInvio = (Date)attributes.get( "dtCreateFileEntryInvio"); @@ -542,12 +520,6 @@ public class AvvisoModelImpl extends BaseModelImpl setCommentoRifiuto(commentoRifiuto); } - Long oldAvvisoId = (Long)attributes.get("oldAvvisoId"); - - if (oldAvvisoId != null) { - setOldAvvisoId(oldAvvisoId); - } - Long intPraticaId = (Long)attributes.get("intPraticaId"); if (intPraticaId != null) { @@ -828,28 +800,6 @@ public class AvvisoModelImpl extends BaseModelImpl _fileEntryIdProtocollo = fileEntryIdProtocollo; } - @JSON - @Override - public long getOldFileEntryIdBase() { - return _oldFileEntryIdBase; - } - - @Override - public void setOldFileEntryIdBase(long oldFileEntryIdBase) { - _oldFileEntryIdBase = oldFileEntryIdBase; - } - - @JSON - @Override - public long getOldFileEntryIdInvio() { - return _oldFileEntryIdInvio; - } - - @Override - public void setOldFileEntryIdInvio(long oldFileEntryIdInvio) { - _oldFileEntryIdInvio = oldFileEntryIdInvio; - } - @JSON @Override public Date getDtCreateFileEntryInvio() { @@ -1161,29 +1111,6 @@ public class AvvisoModelImpl extends BaseModelImpl _commentoRifiuto = commentoRifiuto; } - @JSON - @Override - public long getOldAvvisoId() { - return _oldAvvisoId; - } - - @Override - public void setOldAvvisoId(long oldAvvisoId) { - _columnBitmask |= OLDAVVISOID_COLUMN_BITMASK; - - if (!_setOriginalOldAvvisoId) { - _setOriginalOldAvvisoId = true; - - _originalOldAvvisoId = _oldAvvisoId; - } - - _oldAvvisoId = oldAvvisoId; - } - - public long getOriginalOldAvvisoId() { - return _originalOldAvvisoId; - } - @JSON @Override public long getIntPraticaId() { @@ -1322,8 +1249,6 @@ public class AvvisoModelImpl extends BaseModelImpl avvisoImpl.setFileEntryIdBase(getFileEntryIdBase()); avvisoImpl.setFileEntryIdInvio(getFileEntryIdInvio()); avvisoImpl.setFileEntryIdProtocollo(getFileEntryIdProtocollo()); - avvisoImpl.setOldFileEntryIdBase(getOldFileEntryIdBase()); - avvisoImpl.setOldFileEntryIdInvio(getOldFileEntryIdInvio()); avvisoImpl.setDtCreateFileEntryInvio(getDtCreateFileEntryInvio()); avvisoImpl.setUserCodiceFiscalePrimaFirma(getUserCodiceFiscalePrimaFirma()); avvisoImpl.setFirmaInCorso(getFirmaInCorso()); @@ -1344,7 +1269,6 @@ public class AvvisoModelImpl extends BaseModelImpl avvisoImpl.setRifiutato(getRifiutato()); avvisoImpl.setDtRifiuto(getDtRifiuto()); avvisoImpl.setCommentoRifiuto(getCommentoRifiuto()); - avvisoImpl.setOldAvvisoId(getOldAvvisoId()); avvisoImpl.setIntPraticaId(getIntPraticaId()); avvisoImpl.setControlloPraticaId(getControlloPraticaId()); avvisoImpl.setClassPk(getClassPk()); @@ -1417,10 +1341,6 @@ public class AvvisoModelImpl extends BaseModelImpl avvisoModelImpl._originalProtocollo = avvisoModelImpl._protocollo; - avvisoModelImpl._originalOldAvvisoId = avvisoModelImpl._oldAvvisoId; - - avvisoModelImpl._setOriginalOldAvvisoId = false; - avvisoModelImpl._originalIntPraticaId = avvisoModelImpl._intPraticaId; avvisoModelImpl._setOriginalIntPraticaId = false; @@ -1523,10 +1443,6 @@ public class AvvisoModelImpl extends BaseModelImpl avvisoCacheModel.fileEntryIdProtocollo = getFileEntryIdProtocollo(); - avvisoCacheModel.oldFileEntryIdBase = getOldFileEntryIdBase(); - - avvisoCacheModel.oldFileEntryIdInvio = getOldFileEntryIdInvio(); - Date dtCreateFileEntryInvio = getDtCreateFileEntryInvio(); if (dtCreateFileEntryInvio != null) { @@ -1653,8 +1569,6 @@ public class AvvisoModelImpl extends BaseModelImpl avvisoCacheModel.commentoRifiuto = null; } - avvisoCacheModel.oldAvvisoId = getOldAvvisoId(); - avvisoCacheModel.intPraticaId = getIntPraticaId(); avvisoCacheModel.controlloPraticaId = getControlloPraticaId(); @@ -1674,7 +1588,7 @@ public class AvvisoModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(87); + StringBundler sb = new StringBundler(81); sb.append("{uuid="); sb.append(getUuid()); @@ -1708,10 +1622,6 @@ public class AvvisoModelImpl extends BaseModelImpl sb.append(getFileEntryIdInvio()); sb.append(", fileEntryIdProtocollo="); sb.append(getFileEntryIdProtocollo()); - sb.append(", oldFileEntryIdBase="); - sb.append(getOldFileEntryIdBase()); - sb.append(", oldFileEntryIdInvio="); - sb.append(getOldFileEntryIdInvio()); sb.append(", dtCreateFileEntryInvio="); sb.append(getDtCreateFileEntryInvio()); sb.append(", userCodiceFiscalePrimaFirma="); @@ -1752,8 +1662,6 @@ public class AvvisoModelImpl extends BaseModelImpl sb.append(getDtRifiuto()); sb.append(", commentoRifiuto="); sb.append(getCommentoRifiuto()); - sb.append(", oldAvvisoId="); - sb.append(getOldAvvisoId()); sb.append(", intPraticaId="); sb.append(getIntPraticaId()); sb.append(", controlloPraticaId="); @@ -1769,7 +1677,7 @@ public class AvvisoModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(133); + StringBundler sb = new StringBundler(124); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Avviso"); @@ -1839,14 +1747,6 @@ public class AvvisoModelImpl extends BaseModelImpl "fileEntryIdProtocollo"); - sb.append( - "oldFileEntryIdBase"); - sb.append( - "oldFileEntryIdInvio"); sb.append( "dtCreateFileEntryInvio "commentoRifiuto"); - sb.append( - "oldAvvisoId"); sb.append( "intPraticaId private long _fileEntryIdBase; private long _fileEntryIdInvio; private long _fileEntryIdProtocollo; - private long _oldFileEntryIdBase; - private long _oldFileEntryIdInvio; private Date _dtCreateFileEntryInvio; private String _userCodiceFiscalePrimaFirma; private boolean _firmaInCorso; @@ -2002,9 +1896,6 @@ public class AvvisoModelImpl extends BaseModelImpl private boolean _rifiutato; private Date _dtRifiuto; private String _commentoRifiuto; - private long _oldAvvisoId; - private long _originalOldAvvisoId; - private boolean _setOriginalOldAvvisoId; private long _intPraticaId; private long _originalIntPraticaId; private boolean _setOriginalIntPraticaId; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoCacheModel.java index 0376f6f6..abad7ca5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoCacheModel.java @@ -37,7 +37,7 @@ import java.util.Date; public class CollaudoCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(51); sb.append("{uuid="); sb.append(uuid); @@ -89,8 +89,6 @@ public class CollaudoCacheModel implements CacheModel, Externalizable sb.append(normEsenteBollo); sb.append(", importoBolli="); sb.append(importoBolli); - sb.append(", oldDettPraticaId="); - sb.append(oldDettPraticaId); sb.append("}"); return sb.toString(); @@ -214,8 +212,6 @@ public class CollaudoCacheModel implements CacheModel, Externalizable collaudoImpl.setImportoBolli(importoBolli); } - collaudoImpl.setOldDettPraticaId(oldDettPraticaId); - collaudoImpl.resetOriginalValues(); return collaudoImpl; @@ -248,7 +244,6 @@ public class CollaudoCacheModel implements CacheModel, Externalizable mezzoPagamento = objectInput.readUTF(); normEsenteBollo = objectInput.readBoolean(); importoBolli = objectInput.readUTF(); - oldDettPraticaId = objectInput.readLong(); } @Override @@ -338,8 +333,6 @@ public class CollaudoCacheModel implements CacheModel, Externalizable else { objectOutput.writeUTF(importoBolli); } - - objectOutput.writeLong(oldDettPraticaId); } public String uuid; @@ -367,5 +360,4 @@ public class CollaudoCacheModel implements CacheModel, Externalizable public String mezzoPagamento; public boolean normEsenteBollo; public String importoBolli; - public long oldDettPraticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java index a6882d67..0ddda0f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -28,18 +28,17 @@ import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; /** - * The extended model implementation for the Collaudo service. Represents a row - * in the "portos_bo_Collaudo" database table, with each column mapped - * to a property of this class. + * The extended model implementation for the Collaudo service. Represents a row in the "portos_bo_Collaudo" + * database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.Collaudo} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Collaudo} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class CollaudoImpl extends CollaudoBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -48,64 +47,41 @@ public class CollaudoImpl extends CollaudoBaseImpl { * model instance should use the {@link * it.tref.liferay.portos.bo.model.Collaudo} interface instead. */ - - /** - * - */ - private static final long serialVersionUID = -6015747485641141721L; - private static final Log _log = LogFactoryUtil.getLog(CollaudoImpl.class); - public CollaudoImpl() { } + private static final Log _log = LogFactoryUtil.getLog(CollaudoImpl.class); + @Override public String getTitle(Locale locale) { StringBuilder sb = new StringBuilder(); - try { - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); - // sb.append("Progetto "); if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { sb.append("Deposito "); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { sb.append("Autorizzazione "); } sb.append("n. "); - if (Validator.isNotNull(getProtocollo())) { - sb.append(intPratica.getNumeroProgetto()); - - // TODO da decidere che data, per adesso si mette quella di - // creazione il numero protocollo sbagliato dovrebbe essere il - // primo - sb.append(" del "); - sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica())); - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); - sb.append(" id "); - sb.append(intPratica.getIntPraticaId()); - + sb.append(intPratica.getNumeroProgetto()) + .append(" del ") + // TODO da decidere che data, per adesso si mette quella di creazione il numero protocollo + // sbagliato dovrebbe essere il primo + .append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica())) + .append(" - id ").append(intPratica.getIntPraticaId()); } else { if (Validator.isNotNull(intPratica.getNumeroProgetto())) { - sb.append(intPratica.getNumeroProgetto()); - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); + sb.append(intPratica.getNumeroProgetto()).append(StringPool.SPACE).append(StringPool.DASH) + .append(StringPool.SPACE); } - sb.append(getCollaudoId()); - sb.append(" (Temporaneo) "); - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); - sb.append(" id "); - sb.append(intPratica.getIntPraticaId()); + sb.append(getCollaudoId()).append(" (Temporaneo) - id ").append(intPratica.getIntPraticaId()); } - - } catch (PortalException e) { - _log.error(e, e); - } catch (SystemException e) { + } catch (PortalException | SystemException e) { _log.error(e, e); } - return sb.toString(); - } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoModelImpl.java index cd49c204..db45f3a9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoModelImpl.java @@ -91,10 +91,9 @@ public class CollaudoModelImpl extends BaseModelImpl { "causalePagamento", Types.VARCHAR }, { "mezzoPagamento", Types.VARCHAR }, { "normEsenteBollo", Types.BOOLEAN }, - { "importoBolli", Types.VARCHAR }, - { "oldDettPraticaId", Types.BIGINT } + { "importoBolli", Types.VARCHAR } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Collaudo (uuid_ VARCHAR(75) null,collaudoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,parziale BOOLEAN,completata BOOLEAN,gestita BOOLEAN,numero LONG,codiceFiscaleDelegato VARCHAR(75) null,dataEffettuazione DATE null,dataCollaudo DATE null,noteCollaudo STRING null,pagamentoId LONG,codicePagamento VARCHAR(75) null,causalePagamento VARCHAR(75) null,mezzoPagamento VARCHAR(75) null,normEsenteBollo BOOLEAN,importoBolli VARCHAR(75) null,oldDettPraticaId LONG)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Collaudo (uuid_ VARCHAR(75) null,collaudoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,parziale BOOLEAN,completata BOOLEAN,gestita BOOLEAN,numero LONG,codiceFiscaleDelegato VARCHAR(75) null,dataEffettuazione DATE null,dataCollaudo DATE null,noteCollaudo STRING null,pagamentoId LONG,codicePagamento VARCHAR(75) null,causalePagamento VARCHAR(75) null,mezzoPagamento VARCHAR(75) null,normEsenteBollo BOOLEAN,importoBolli VARCHAR(75) null)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Collaudo"; public static final String ORDER_BY_JPQL = " ORDER BY collaudo.collaudoId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Collaudo.collaudoId ASC"; @@ -115,11 +114,10 @@ public class CollaudoModelImpl extends BaseModelImpl public static long COMPLETATA_COLUMN_BITMASK = 4L; public static long GROUPID_COLUMN_BITMASK = 8L; public static long INTPRATICAID_COLUMN_BITMASK = 16L; - public static long OLDDETTPRATICAID_COLUMN_BITMASK = 32L; - public static long PARZIALE_COLUMN_BITMASK = 64L; - public static long PROTOCOLLO_COLUMN_BITMASK = 128L; - public static long UUID_COLUMN_BITMASK = 256L; - public static long COLLAUDOID_COLUMN_BITMASK = 512L; + public static long PARZIALE_COLUMN_BITMASK = 32L; + public static long PROTOCOLLO_COLUMN_BITMASK = 64L; + public static long UUID_COLUMN_BITMASK = 128L; + public static long COLLAUDOID_COLUMN_BITMASK = 256L; /** * Converts the soap model instance into a normal model instance. @@ -159,7 +157,6 @@ public class CollaudoModelImpl extends BaseModelImpl model.setMezzoPagamento(soapModel.getMezzoPagamento()); model.setNormEsenteBollo(soapModel.getNormEsenteBollo()); model.setImportoBolli(soapModel.getImportoBolli()); - model.setOldDettPraticaId(soapModel.getOldDettPraticaId()); return model; } @@ -249,7 +246,6 @@ public class CollaudoModelImpl extends BaseModelImpl attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("normEsenteBollo", getNormEsenteBollo()); attributes.put("importoBolli", getImportoBolli()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); return attributes; } @@ -406,12 +402,6 @@ public class CollaudoModelImpl extends BaseModelImpl if (importoBolli != null) { setImportoBolli(importoBolli); } - - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } } @JSON @@ -852,29 +842,6 @@ public class CollaudoModelImpl extends BaseModelImpl _importoBolli = importoBolli; } - @JSON - @Override - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _columnBitmask |= OLDDETTPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalOldDettPraticaId) { - _setOriginalOldDettPraticaId = true; - - _originalOldDettPraticaId = _oldDettPraticaId; - } - - _oldDettPraticaId = oldDettPraticaId; - } - - public long getOriginalOldDettPraticaId() { - return _originalOldDettPraticaId; - } - @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -937,7 +904,6 @@ public class CollaudoModelImpl extends BaseModelImpl collaudoImpl.setMezzoPagamento(getMezzoPagamento()); collaudoImpl.setNormEsenteBollo(getNormEsenteBollo()); collaudoImpl.setImportoBolli(getImportoBolli()); - collaudoImpl.setOldDettPraticaId(getOldDettPraticaId()); collaudoImpl.resetOriginalValues(); @@ -1016,10 +982,6 @@ public class CollaudoModelImpl extends BaseModelImpl collaudoModelImpl._originalCodiceFiscaleDelegato = collaudoModelImpl._codiceFiscaleDelegato; - collaudoModelImpl._originalOldDettPraticaId = collaudoModelImpl._oldDettPraticaId; - - collaudoModelImpl._setOriginalOldDettPraticaId = false; - collaudoModelImpl._columnBitmask = 0; } @@ -1167,14 +1129,12 @@ public class CollaudoModelImpl extends BaseModelImpl collaudoCacheModel.importoBolli = null; } - collaudoCacheModel.oldDettPraticaId = getOldDettPraticaId(); - return collaudoCacheModel; } @Override public String toString() { - StringBundler sb = new StringBundler(53); + StringBundler sb = new StringBundler(51); sb.append("{uuid="); sb.append(getUuid()); @@ -1226,8 +1186,6 @@ public class CollaudoModelImpl extends BaseModelImpl sb.append(getNormEsenteBollo()); sb.append(", importoBolli="); sb.append(getImportoBolli()); - sb.append(", oldDettPraticaId="); - sb.append(getOldDettPraticaId()); sb.append("}"); return sb.toString(); @@ -1235,7 +1193,7 @@ public class CollaudoModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(82); + StringBundler sb = new StringBundler(79); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Collaudo"); @@ -1341,10 +1299,6 @@ public class CollaudoModelImpl extends BaseModelImpl "importoBolli"); - sb.append( - "oldDettPraticaId"); sb.append(""); @@ -1394,9 +1348,6 @@ public class CollaudoModelImpl extends BaseModelImpl private String _mezzoPagamento; private boolean _normEsenteBollo; private String _importoBolli; - private long _oldDettPraticaId; - private long _originalOldDettPraticaId; - private boolean _setOriginalOldDettPraticaId; private long _columnBitmask; private Collaudo _escapedModel; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java index 1ce836e8..9c06fec8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java @@ -15,20 +15,22 @@ package it.tref.liferay.portos.bo.model.impl; /** - * The extended model implementation for the Comune service. Represents a row in the "portos_amm_Comune" database table, with each column mapped to a property of this class. + * The extended model implementation for the Comune service. Represents a row in the "portos_amm_Comune" + * database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ComuneImpl extends ComuneBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a comune model instance should use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comune model instance should + * use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead. */ public ComuneImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComunicazioneImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComunicazioneImpl.java index 05c80b7c..184122e6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComunicazioneImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComunicazioneImpl.java @@ -15,20 +15,22 @@ package it.tref.liferay.portos.bo.model.impl; /** - * The extended model implementation for the Comunicazione service. Represents a row in the "portos_bo_Comunicazione" database table, with each column mapped to a property of this class. + * The extended model implementation for the Comunicazione service. Represents a row in the + * "portos_bo_Comunicazione" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ComunicazioneImpl extends ComunicazioneBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a comunicazione model instance should use the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comunicazione model instance + * should use the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface instead. */ public ComunicazioneImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ConfigurazioneImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ConfigurazioneImpl.java index 44bbcddd..40bb5efc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ConfigurazioneImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ConfigurazioneImpl.java @@ -15,20 +15,22 @@ package it.tref.liferay.portos.bo.model.impl; /** - * The extended model implementation for the Configurazione service. Represents a row in the "portos_bo_Configurazione" database table, with each column mapped to a property of this class. + * The extended model implementation for the Configurazione service. Represents a row in the + * "portos_bo_Configurazione" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ConfigurazioneImpl extends ConfigurazioneBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a configurazione model instance should use the {@link it.tref.liferay.portos.bo.model.Configurazione} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a configurazione model instance + * should use the {@link it.tref.liferay.portos.bo.model.Configurazione} interface instead. */ public ConfigurazioneImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java index a6a001d6..1942838f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java @@ -14,21 +14,37 @@ package it.tref.liferay.portos.bo.model.impl; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; + +import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; + /** - * The extended model implementation for the ControlloPratica service. Represents a row in the "portos_bo_ControlloPratica" database table, with each column mapped to a property of this class. + * The extended model implementation for the ControlloPratica service. Represents a row in the + * "portos_bo_ControlloPratica" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ControlloPraticaImpl extends ControlloPraticaBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a controllo pratica model instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a controllo pratica model + * instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead. */ public ControlloPraticaImpl() { } -} \ No newline at end of file + + public int getUnitaOperativa() { + + try { + return IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()).getUnitaOperativa(); + } catch (PortalException | SystemException e) { + return 0; + } + } +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java index b6d0a0bf..f984bd1e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java @@ -22,18 +22,17 @@ import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.util.Validator; /** - * The extended model implementation for the Delega service. Represents a row in - * the "portos_bo_Delega" database table, with each column mapped to a - * property of this class. + * The extended model implementation for the Delega service. Represents a row in the "portos_bo_Delega" + * database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.Delega} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Delega} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DelegaImpl extends DelegaBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -47,6 +46,7 @@ public class DelegaImpl extends DelegaBaseImpl { @Override public Map getDichiarazioniMap() { + JSONDeserializer> deserializer = JSONFactoryUtil.createJSONDeserializer(); String dichiarazioni = getDichiarazioni(); if (Validator.isNull(dichiarazioni)) { @@ -54,4 +54,4 @@ public class DelegaImpl extends DelegaBaseImpl { } return deserializer.deserialize(dichiarazioni); } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java index c5e31ed6..267ce07d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaCacheModel.java @@ -38,7 +38,7 @@ public class DettPraticaCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(541); + StringBundler sb = new StringBundler(489); sb.append("{uuid="); sb.append(uuid); @@ -90,8 +90,6 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(dataEffettuazione); sb.append(", version="); sb.append(version); - sb.append(", versionata="); - sb.append(versionata); sb.append(", status="); sb.append(status); sb.append(", statusByUserId="); @@ -102,14 +100,10 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(statusDate); sb.append(", statusTask="); sb.append(statusTask); - sb.append(", workflowForzato="); - sb.append(workflowForzato); sb.append(", soggettoSostituitoId="); sb.append(soggettoSostituitoId); sb.append(", dtInvioSignal="); sb.append(dtInvioSignal); - sb.append(", oldDettPraticaId="); - sb.append(oldDettPraticaId); sb.append(", destinazione="); sb.append(destinazione); sb.append(", ag="); @@ -130,12 +124,8 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(estremiCatastali); sb.append(", estremiPratCom="); sb.append(estremiPratCom); - sb.append(", variataDa="); - sb.append(variataDa); sb.append(", varianteNumero="); sb.append(varianteNumero); - sb.append(", varianteSostanziale="); - sb.append(varianteSostanziale); sb.append(", operaConforme="); sb.append(operaConforme); sb.append(", collaudoStatico="); @@ -144,8 +134,6 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(noCollaudo); sb.append(", codiceFiscaleDelegato="); sb.append(codiceFiscaleDelegato); - sb.append(", codiceRuoloDelegato="); - sb.append(codiceRuoloDelegato); sb.append(", codiceFiscaleDelegatoCommittente="); sb.append(codiceFiscaleDelegatoCommittente); sb.append(", codiceFiscaleDelegatoFineLavori="); @@ -172,18 +160,6 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(sanatoriaEdilizia724); sb.append(", sanatoriaEdilizia326="); sb.append(sanatoriaEdilizia326); - sb.append(", lavoriInEconomiaCommittente="); - sb.append(lavoriInEconomiaCommittente); - sb.append(", inizioLavoriContestualeOpera="); - sb.append(inizioLavoriContestualeOpera); - sb.append(", dataInizioLavoriOpera="); - sb.append(dataInizioLavoriOpera); - sb.append(", dataInizioEsecuzioneOpera="); - sb.append(dataInizioEsecuzioneOpera); - sb.append(", dataFineEsecuzioneOpera="); - sb.append(dataFineEsecuzioneOpera); - sb.append(", metratura="); - sb.append(metratura); sb.append(", lavoriPubblici="); sb.append(lavoriPubblici); sb.append(", pagamentoIdOneri="); @@ -192,8 +168,6 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(pagamentoIdBolli); sb.append(", lavoriPubbliciPercentuale="); sb.append(lavoriPubbliciPercentuale); - sb.append(", numeroCivico="); - sb.append(numeroCivico); sb.append(", dcParticelle="); sb.append(dcParticelle); sb.append(", dcFoglio="); @@ -516,6 +490,8 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(tcAltroDescrizione); sb.append(", tcConDispositivi="); sb.append(tcConDispositivi); + sb.append(", interventoVoceP7="); + sb.append(interventoVoceP7); sb.append(", normLavoriInProprio="); sb.append(normLavoriInProprio); sb.append(", normLavoriNoDirettore="); @@ -532,42 +508,14 @@ public class DettPraticaCacheModel implements CacheModel, sb.append(normDpr01Aut); sb.append(", normDpr02Aut="); sb.append(normDpr02Aut); - sb.append(", normDpr03="); - sb.append(normDpr03); - sb.append(", normDpr04="); - sb.append(normDpr04); - sb.append(", normDpr05="); - sb.append(normDpr05); - sb.append(", normDm01="); - sb.append(normDm01); - sb.append(", normDm02="); - sb.append(normDm02); - sb.append(", normDm03="); - sb.append(normDm03); sb.append(", normDm2018="); sb.append(normDm2018); - sb.append(", normDm04="); - sb.append(normDm04); - sb.append(", normDm05="); - sb.append(normDm05); - sb.append(", normDprg01="); - sb.append(normDprg01); - sb.append(", normDprg02="); - sb.append(normDprg02); sb.append(", normAnr="); sb.append(normAnr); - sb.append(", normOrd01="); - sb.append(normOrd01); - sb.append(", normCI01="); - sb.append(normCI01); - sb.append(", normLTC01="); - sb.append(normLTC01); sb.append(", normArt3com3="); sb.append(normArt3com3); sb.append(", normArt3com4="); sb.append(normArt3com4); - sb.append(", dpdc="); - sb.append(dpdc); sb.append(", normSismaBonus="); sb.append(normSismaBonus); sb.append(", clRischioPreInt="); @@ -713,7 +661,6 @@ public class DettPraticaCacheModel implements CacheModel, } dettPraticaImpl.setVersion(version); - dettPraticaImpl.setVersionata(versionata); dettPraticaImpl.setStatus(status); dettPraticaImpl.setStatusByUserId(statusByUserId); @@ -732,7 +679,6 @@ public class DettPraticaCacheModel implements CacheModel, } dettPraticaImpl.setStatusTask(statusTask); - dettPraticaImpl.setWorkflowForzato(workflowForzato); dettPraticaImpl.setSoggettoSostituitoId(soggettoSostituitoId); if (dtInvioSignal == Long.MIN_VALUE) { @@ -742,8 +688,6 @@ public class DettPraticaCacheModel implements CacheModel, dettPraticaImpl.setDtInvioSignal(new Date(dtInvioSignal)); } - dettPraticaImpl.setOldDettPraticaId(oldDettPraticaId); - if (destinazione == null) { dettPraticaImpl.setDestinazione(StringPool.BLANK); } @@ -814,9 +758,7 @@ public class DettPraticaCacheModel implements CacheModel, dettPraticaImpl.setEstremiPratCom(estremiPratCom); } - dettPraticaImpl.setVariataDa(variataDa); dettPraticaImpl.setVarianteNumero(varianteNumero); - dettPraticaImpl.setVarianteSostanziale(varianteSostanziale); dettPraticaImpl.setOperaConforme(operaConforme); dettPraticaImpl.setCollaudoStatico(collaudoStatico); dettPraticaImpl.setNoCollaudo(noCollaudo); @@ -828,13 +770,6 @@ public class DettPraticaCacheModel implements CacheModel, dettPraticaImpl.setCodiceFiscaleDelegato(codiceFiscaleDelegato); } - if (codiceRuoloDelegato == null) { - dettPraticaImpl.setCodiceRuoloDelegato(StringPool.BLANK); - } - else { - dettPraticaImpl.setCodiceRuoloDelegato(codiceRuoloDelegato); - } - if (codiceFiscaleDelegatoCommittente == null) { dettPraticaImpl.setCodiceFiscaleDelegatoCommittente(StringPool.BLANK); } @@ -908,52 +843,11 @@ public class DettPraticaCacheModel implements CacheModel, dettPraticaImpl.setSanatoriaEdilizia47(sanatoriaEdilizia47); dettPraticaImpl.setSanatoriaEdilizia724(sanatoriaEdilizia724); dettPraticaImpl.setSanatoriaEdilizia326(sanatoriaEdilizia326); - dettPraticaImpl.setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); - dettPraticaImpl.setInizioLavoriContestualeOpera(inizioLavoriContestualeOpera); - - if (dataInizioLavoriOpera == Long.MIN_VALUE) { - dettPraticaImpl.setDataInizioLavoriOpera(null); - } - else { - dettPraticaImpl.setDataInizioLavoriOpera(new Date( - dataInizioLavoriOpera)); - } - - if (dataInizioEsecuzioneOpera == Long.MIN_VALUE) { - dettPraticaImpl.setDataInizioEsecuzioneOpera(null); - } - else { - dettPraticaImpl.setDataInizioEsecuzioneOpera(new Date( - dataInizioEsecuzioneOpera)); - } - - if (dataFineEsecuzioneOpera == Long.MIN_VALUE) { - dettPraticaImpl.setDataFineEsecuzioneOpera(null); - } - else { - dettPraticaImpl.setDataFineEsecuzioneOpera(new Date( - dataFineEsecuzioneOpera)); - } - - if (metratura == null) { - dettPraticaImpl.setMetratura(StringPool.BLANK); - } - else { - dettPraticaImpl.setMetratura(metratura); - } - dettPraticaImpl.setLavoriPubblici(lavoriPubblici); dettPraticaImpl.setPagamentoIdOneri(pagamentoIdOneri); dettPraticaImpl.setPagamentoIdBolli(pagamentoIdBolli); dettPraticaImpl.setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); - if (numeroCivico == null) { - dettPraticaImpl.setNumeroCivico(StringPool.BLANK); - } - else { - dettPraticaImpl.setNumeroCivico(numeroCivico); - } - if (dcParticelle == null) { dettPraticaImpl.setDcParticelle(StringPool.BLANK); } @@ -1503,6 +1397,14 @@ public class DettPraticaCacheModel implements CacheModel, } dettPraticaImpl.setTcConDispositivi(tcConDispositivi); + + if (interventoVoceP7 == null) { + dettPraticaImpl.setInterventoVoceP7(StringPool.BLANK); + } + else { + dettPraticaImpl.setInterventoVoceP7(interventoVoceP7); + } + dettPraticaImpl.setNormLavoriInProprio(normLavoriInProprio); dettPraticaImpl.setNormLavoriNoDirettore(normLavoriNoDirettore); dettPraticaImpl.setNormEsenteBollo(normEsenteBollo); @@ -1511,24 +1413,10 @@ public class DettPraticaCacheModel implements CacheModel, dettPraticaImpl.setNormDpr02Dep(normDpr02Dep); dettPraticaImpl.setNormDpr01Aut(normDpr01Aut); dettPraticaImpl.setNormDpr02Aut(normDpr02Aut); - dettPraticaImpl.setNormDpr03(normDpr03); - dettPraticaImpl.setNormDpr04(normDpr04); - dettPraticaImpl.setNormDpr05(normDpr05); - dettPraticaImpl.setNormDm01(normDm01); - dettPraticaImpl.setNormDm02(normDm02); - dettPraticaImpl.setNormDm03(normDm03); dettPraticaImpl.setNormDm2018(normDm2018); - dettPraticaImpl.setNormDm04(normDm04); - dettPraticaImpl.setNormDm05(normDm05); - dettPraticaImpl.setNormDprg01(normDprg01); - dettPraticaImpl.setNormDprg02(normDprg02); dettPraticaImpl.setNormAnr(normAnr); - dettPraticaImpl.setNormOrd01(normOrd01); - dettPraticaImpl.setNormCI01(normCI01); - dettPraticaImpl.setNormLTC01(normLTC01); dettPraticaImpl.setNormArt3com3(normArt3com3); dettPraticaImpl.setNormArt3com4(normArt3com4); - dettPraticaImpl.setDpdc(dpdc); dettPraticaImpl.setNormSismaBonus(normSismaBonus); if (clRischioPreInt == null) { @@ -1588,16 +1476,13 @@ public class DettPraticaCacheModel implements CacheModel, mezzoPagamentoBolli = objectInput.readUTF(); dataEffettuazione = objectInput.readLong(); version = objectInput.readInt(); - versionata = objectInput.readBoolean(); status = objectInput.readInt(); statusByUserId = objectInput.readLong(); statusByUserName = objectInput.readUTF(); statusDate = objectInput.readLong(); statusTask = objectInput.readInt(); - workflowForzato = objectInput.readBoolean(); soggettoSostituitoId = objectInput.readLong(); dtInvioSignal = objectInput.readLong(); - oldDettPraticaId = objectInput.readLong(); destinazione = objectInput.readUTF(); ag = objectInput.readUTF(); descLongIntervento = objectInput.readUTF(); @@ -1608,14 +1493,11 @@ public class DettPraticaCacheModel implements CacheModel, localita = objectInput.readUTF(); estremiCatastali = objectInput.readUTF(); estremiPratCom = objectInput.readUTF(); - variataDa = objectInput.readLong(); varianteNumero = objectInput.readLong(); - varianteSostanziale = objectInput.readBoolean(); operaConforme = objectInput.readBoolean(); collaudoStatico = objectInput.readBoolean(); noCollaudo = objectInput.readBoolean(); codiceFiscaleDelegato = objectInput.readUTF(); - codiceRuoloDelegato = objectInput.readUTF(); codiceFiscaleDelegatoCommittente = objectInput.readUTF(); codiceFiscaleDelegatoFineLavori = objectInput.readUTF(); codiceFiscaleDelegatoCollaudo = objectInput.readUTF(); @@ -1629,17 +1511,10 @@ public class DettPraticaCacheModel implements CacheModel, sanatoriaEdilizia47 = objectInput.readBoolean(); sanatoriaEdilizia724 = objectInput.readBoolean(); sanatoriaEdilizia326 = objectInput.readBoolean(); - lavoriInEconomiaCommittente = objectInput.readBoolean(); - inizioLavoriContestualeOpera = objectInput.readBoolean(); - dataInizioLavoriOpera = objectInput.readLong(); - dataInizioEsecuzioneOpera = objectInput.readLong(); - dataFineEsecuzioneOpera = objectInput.readLong(); - metratura = objectInput.readUTF(); lavoriPubblici = objectInput.readBoolean(); pagamentoIdOneri = objectInput.readLong(); pagamentoIdBolli = objectInput.readLong(); lavoriPubbliciPercentuale = objectInput.readInt(); - numeroCivico = objectInput.readUTF(); dcParticelle = objectInput.readUTF(); dcFoglio = objectInput.readUTF(); dcAllegato = objectInput.readUTF(); @@ -1801,6 +1676,7 @@ public class DettPraticaCacheModel implements CacheModel, tcAltro = objectInput.readBoolean(); tcAltroDescrizione = objectInput.readUTF(); tcConDispositivi = objectInput.readBoolean(); + interventoVoceP7 = objectInput.readUTF(); normLavoriInProprio = objectInput.readBoolean(); normLavoriNoDirettore = objectInput.readBoolean(); normEsenteBollo = objectInput.readBoolean(); @@ -1809,24 +1685,10 @@ public class DettPraticaCacheModel implements CacheModel, normDpr02Dep = objectInput.readBoolean(); normDpr01Aut = objectInput.readBoolean(); normDpr02Aut = objectInput.readBoolean(); - normDpr03 = objectInput.readBoolean(); - normDpr04 = objectInput.readBoolean(); - normDpr05 = objectInput.readBoolean(); - normDm01 = objectInput.readBoolean(); - normDm02 = objectInput.readBoolean(); - normDm03 = objectInput.readBoolean(); normDm2018 = objectInput.readBoolean(); - normDm04 = objectInput.readBoolean(); - normDm05 = objectInput.readBoolean(); - normDprg01 = objectInput.readBoolean(); - normDprg02 = objectInput.readBoolean(); normAnr = objectInput.readBoolean(); - normOrd01 = objectInput.readBoolean(); - normCI01 = objectInput.readBoolean(); - normLTC01 = objectInput.readBoolean(); normArt3com3 = objectInput.readBoolean(); normArt3com4 = objectInput.readBoolean(); - dpdc = objectInput.readBoolean(); normSismaBonus = objectInput.readBoolean(); clRischioPreInt = objectInput.readUTF(); clRischioPostInt = objectInput.readUTF(); @@ -1939,7 +1801,6 @@ public class DettPraticaCacheModel implements CacheModel, objectOutput.writeLong(dataEffettuazione); objectOutput.writeInt(version); - objectOutput.writeBoolean(versionata); objectOutput.writeInt(status); objectOutput.writeLong(statusByUserId); @@ -1952,10 +1813,8 @@ public class DettPraticaCacheModel implements CacheModel, objectOutput.writeLong(statusDate); objectOutput.writeInt(statusTask); - objectOutput.writeBoolean(workflowForzato); objectOutput.writeLong(soggettoSostituitoId); objectOutput.writeLong(dtInvioSignal); - objectOutput.writeLong(oldDettPraticaId); if (destinazione == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -2027,9 +1886,7 @@ public class DettPraticaCacheModel implements CacheModel, objectOutput.writeUTF(estremiPratCom); } - objectOutput.writeLong(variataDa); objectOutput.writeLong(varianteNumero); - objectOutput.writeBoolean(varianteSostanziale); objectOutput.writeBoolean(operaConforme); objectOutput.writeBoolean(collaudoStatico); objectOutput.writeBoolean(noCollaudo); @@ -2041,13 +1898,6 @@ public class DettPraticaCacheModel implements CacheModel, objectOutput.writeUTF(codiceFiscaleDelegato); } - if (codiceRuoloDelegato == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(codiceRuoloDelegato); - } - if (codiceFiscaleDelegatoCommittente == null) { objectOutput.writeUTF(StringPool.BLANK); } @@ -2121,31 +1971,11 @@ public class DettPraticaCacheModel implements CacheModel, objectOutput.writeBoolean(sanatoriaEdilizia47); objectOutput.writeBoolean(sanatoriaEdilizia724); objectOutput.writeBoolean(sanatoriaEdilizia326); - objectOutput.writeBoolean(lavoriInEconomiaCommittente); - objectOutput.writeBoolean(inizioLavoriContestualeOpera); - objectOutput.writeLong(dataInizioLavoriOpera); - objectOutput.writeLong(dataInizioEsecuzioneOpera); - objectOutput.writeLong(dataFineEsecuzioneOpera); - - if (metratura == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(metratura); - } - objectOutput.writeBoolean(lavoriPubblici); objectOutput.writeLong(pagamentoIdOneri); objectOutput.writeLong(pagamentoIdBolli); objectOutput.writeInt(lavoriPubbliciPercentuale); - if (numeroCivico == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(numeroCivico); - } - if (dcParticelle == null) { objectOutput.writeUTF(StringPool.BLANK); } @@ -2689,6 +2519,14 @@ public class DettPraticaCacheModel implements CacheModel, } objectOutput.writeBoolean(tcConDispositivi); + + if (interventoVoceP7 == null) { + objectOutput.writeUTF(StringPool.BLANK); + } + else { + objectOutput.writeUTF(interventoVoceP7); + } + objectOutput.writeBoolean(normLavoriInProprio); objectOutput.writeBoolean(normLavoriNoDirettore); objectOutput.writeBoolean(normEsenteBollo); @@ -2697,24 +2535,10 @@ public class DettPraticaCacheModel implements CacheModel, objectOutput.writeBoolean(normDpr02Dep); objectOutput.writeBoolean(normDpr01Aut); objectOutput.writeBoolean(normDpr02Aut); - objectOutput.writeBoolean(normDpr03); - objectOutput.writeBoolean(normDpr04); - objectOutput.writeBoolean(normDpr05); - objectOutput.writeBoolean(normDm01); - objectOutput.writeBoolean(normDm02); - objectOutput.writeBoolean(normDm03); objectOutput.writeBoolean(normDm2018); - objectOutput.writeBoolean(normDm04); - objectOutput.writeBoolean(normDm05); - objectOutput.writeBoolean(normDprg01); - objectOutput.writeBoolean(normDprg02); objectOutput.writeBoolean(normAnr); - objectOutput.writeBoolean(normOrd01); - objectOutput.writeBoolean(normCI01); - objectOutput.writeBoolean(normLTC01); objectOutput.writeBoolean(normArt3com3); objectOutput.writeBoolean(normArt3com4); - objectOutput.writeBoolean(dpdc); objectOutput.writeBoolean(normSismaBonus); if (clRischioPreInt == null) { @@ -2768,16 +2592,13 @@ public class DettPraticaCacheModel implements CacheModel, public String mezzoPagamentoBolli; public long dataEffettuazione; public int version; - public boolean versionata; public int status; public long statusByUserId; public String statusByUserName; public long statusDate; public int statusTask; - public boolean workflowForzato; public long soggettoSostituitoId; public long dtInvioSignal; - public long oldDettPraticaId; public String destinazione; public String ag; public String descLongIntervento; @@ -2788,14 +2609,11 @@ public class DettPraticaCacheModel implements CacheModel, public String localita; public String estremiCatastali; public String estremiPratCom; - public long variataDa; public long varianteNumero; - public boolean varianteSostanziale; public boolean operaConforme; public boolean collaudoStatico; public boolean noCollaudo; public String codiceFiscaleDelegato; - public String codiceRuoloDelegato; public String codiceFiscaleDelegatoCommittente; public String codiceFiscaleDelegatoFineLavori; public String codiceFiscaleDelegatoCollaudo; @@ -2809,17 +2627,10 @@ public class DettPraticaCacheModel implements CacheModel, public boolean sanatoriaEdilizia47; public boolean sanatoriaEdilizia724; public boolean sanatoriaEdilizia326; - public boolean lavoriInEconomiaCommittente; - public boolean inizioLavoriContestualeOpera; - public long dataInizioLavoriOpera; - public long dataInizioEsecuzioneOpera; - public long dataFineEsecuzioneOpera; - public String metratura; public boolean lavoriPubblici; public long pagamentoIdOneri; public long pagamentoIdBolli; public int lavoriPubbliciPercentuale; - public String numeroCivico; public String dcParticelle; public String dcFoglio; public String dcAllegato; @@ -2981,6 +2792,7 @@ public class DettPraticaCacheModel implements CacheModel, public boolean tcAltro; public String tcAltroDescrizione; public boolean tcConDispositivi; + public String interventoVoceP7; public boolean normLavoriInProprio; public boolean normLavoriNoDirettore; public boolean normEsenteBollo; @@ -2989,24 +2801,10 @@ public class DettPraticaCacheModel implements CacheModel, public boolean normDpr02Dep; public boolean normDpr01Aut; public boolean normDpr02Aut; - public boolean normDpr03; - public boolean normDpr04; - public boolean normDpr05; - public boolean normDm01; - public boolean normDm02; - public boolean normDm03; public boolean normDm2018; - public boolean normDm04; - public boolean normDm05; - public boolean normDprg01; - public boolean normDprg02; public boolean normAnr; - public boolean normOrd01; - public boolean normCI01; - public boolean normLTC01; public boolean normArt3com3; public boolean normArt3com4; - public boolean dpdc; public boolean normSismaBonus; public String clRischioPreInt; public String clRischioPostInt; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java index f9611d99..0915d89c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java @@ -1,31 +1,23 @@ /** * 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 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. + * 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.bo.model.impl; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; -import it.tref.liferay.portos.bo.util.PraticaUtil; -import java.sql.Types; -import java.text.Format; import java.text.SimpleDateFormat; -import java.util.HashMap; import java.util.Locale; -import java.util.Map; - -import org.codehaus.jettison.json.JSONObject; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; @@ -33,933 +25,113 @@ import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; -import com.liferay.portal.kernel.util.HtmlUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.TimeZoneUtil; import com.liferay.portal.kernel.util.Validator; /** - * The extended model implementation for the DettPratica service. Represents a - * row in the "portos_bo_DettPratica" database table, with each column - * mapped to a property of this class. + * The extended model implementation for the DettPratica service. Represents a row in the + * "portos_bo_DettPratica" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.DettPratica} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.DettPratica} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DettPraticaImpl extends DettPraticaBaseImpl { - /** - * - */ - private static final long serialVersionUID = 7101706124058496133L; /* - * NOTE FOR DEVELOPERS: Never reference this class directly. All methods - * that expect a dett pratica model instance should use the {@link - * it.tref.liferay.portos.bo.model.DettPratica} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a dett pratica model instance + * should use the {@link it.tref.liferay.portos.bo.model.DettPratica} interface instead. */ + private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); private static final Log _log = LogFactoryUtil.getLog(DettPraticaImpl.class); public DettPraticaImpl() { - } + @Override public String getTitle(Locale locale) { StringBuilder sb = new StringBuilder(); IntPratica intPratica = null; - try { - intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); - // sb.append("Progetto "); if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { sb.append("Deposito "); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { sb.append("Autorizzazione "); } sb.append("n. "); - if (Validator.isNotNull(getProtocollo())) { - sb.append(intPratica.getNumeroProgetto()); - - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - // TODO da decidere che data, per adesso si mette quella di - // creazione il numero protocollo sbagliato dovrebbe essere il - // primo - sb.append(" del "); - sb.append(sdf.format(intPratica.getDtPratica())); + // TODO da decidere che data, per adesso si mette quella di creazione il numero protocollo sbagliato + // dovrebbe essere il primo + sb.append(intPratica.getNumeroProgetto()).append(" del ").append(sdf.format(intPratica.getDtPratica())); } else { if (Validator.isNotNull(intPratica.getNumeroProgetto())) { - sb.append(intPratica.getNumeroProgetto()); - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); + sb.append(intPratica.getNumeroProgetto()).append(StringPool.SPACE).append(StringPool.DASH) + .append(StringPool.SPACE); } - sb.append(getDettPraticaId()); - sb.append(" (Temporaneo) "); + sb.append(getDettPraticaId()).append(" (Temporaneo) "); } - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); - sb.append(" id "); - sb.append(intPratica.getIntPraticaId()); + sb.append(" - id ").append(intPratica.getIntPraticaId()); } catch (PortalException | SystemException e) { _log.error("Error on IntPratidaId=" + intPratica.getIntPraticaId(), e); } return sb.toString(); } + @Override public String getTitle() { return getTitle(LocaleUtil.getSiteDefault()); } + @Override public String getFullDescription() { StringBuilder sb = new StringBuilder(); - if (Validator.isNotNull(getTipoIntegrazione())) { - sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), "label-integrazione-" - + getTipoIntegrazione())); - } else { + if (Validator.isNull(getTipoIntegrazione())) { sb.append("Pratica"); + } else { + sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), "label-integrazione-" + getTipoIntegrazione())); } if (Validator.isNotNull(getVarianteNumero())) { - sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), " #" + getVarianteNumero())); + sb.append(StringPool.SPACE).append(StringPool.POUND).append(getVarianteNumero()); } else if (Validator.isNotNull(getIntegrazione())) { - sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), " #" + getIntegrazione())); + sb.append(StringPool.SPACE).append(StringPool.POUND).append(getIntegrazione()); } if (Validator.isNotNull(getProtocollo())) { - sb.append(" protocollo "); - sb.append(getProtocollo()); - sb.append(" del "); - sb.append(FastDateFormatFactoryUtil.getDate(LocaleUtil.getSiteDefault()).format( - getDataEffettuazione())); - + sb.append(" protocollo ") + .append(getProtocollo()) + .append(" del ") + .append(FastDateFormatFactoryUtil.getDate(LocaleUtil.getSiteDefault()).format( + getDataEffettuazione())); } - sb.append(" ("); - sb.append(getTitle()); - sb.append(")"); + sb.append(StringPool.SPACE).append(StringPool.OPEN_PARENTHESIS).append(getTitle()) + .append(StringPool.CLOSE_PARENTHESIS); return sb.toString(); } - // ADT BUG BO ID = 18 + @Override public String getMiddleDescription() { StringBuilder sb = new StringBuilder(); - if (Validator.isNotNull(getTipoIntegrazione())) { - sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), "label-integrazione-" - + getTipoIntegrazione())); - } else { + if (Validator.isNull(getTipoIntegrazione())) { sb.append("Pratica"); + } else { + sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), "label-integrazione-" + getTipoIntegrazione())); } if (Validator.isNotNull(getVarianteNumero())) { - sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), " #" + getVarianteNumero())); + sb.append(StringPool.SPACE).append(StringPool.POUND).append(getVarianteNumero()); } else if (Validator.isNotNull(getIntegrazione())) { - sb.append(LanguageUtil.get(LocaleUtil.getSiteDefault(), " #" + getIntegrazione())); + sb.append(StringPool.SPACE).append(StringPool.POUND).append(getIntegrazione()); } - sb.append(" ("); - sb.append(getTitle()); - sb.append(")"); + sb.append(StringPool.SPACE).append(StringPool.OPEN_PARENTHESIS).append(getTitle()) + .append(StringPool.CLOSE_PARENTHESIS); return sb.toString(); } - - public String serializeToVersioning() throws NoSuchFieldException, SecurityException { - - StringBuilder sb = new StringBuilder(); - - sb.append(StringPool.OPEN_CURLY_BRACE); - sb.append(StringPool.QUOTE + "version" + StringPool.QUOTE + StringPool.COLON) - .append(StringPool.QUOTE + Constants.DETTPRATICA_VERSION_IMPL + StringPool.QUOTE - + StringPool.COMMA) - .append(StringPool.QUOTE + "fields" + StringPool.QUOTE + StringPool.COLON) - .append(StringPool.OPEN_BRACKET); - - // sb.append(StringPool.OPEN_CURLY_BRACE); - // sb.append(StringPool.QUOTE + "name" + StringPool.QUOTE + - // StringPool.COLON) - // .append(StringPool.QUOTE + "id" + - // StringPool.QUOTE).append(StringPool.COMMA) - // .append(StringPool.QUOTE + "class" + StringPool.QUOTE + - // StringPool.COLON) - // .append(StringPool.QUOTE + "java.lang.Long" + - // StringPool.QUOTE).append(StringPool.COMMA) - // .append(StringPool.QUOTE + "value" + StringPool.QUOTE + - // StringPool.COLON) - // .append(StringPool.QUOTE + getDettPraticaId() + StringPool.QUOTE); - // sb.append(StringPool.CLOSE_CURLY_BRACE); - // sb.append(StringPool.COMMA); - - Map modelAttributes = getModelValues(); - String privateUuid = "uuid_"; - Object[][] columns = DettPraticaModelImpl.TABLE_COLUMNS; - for (Object[] column_x : columns) { - String property = (String) column_x[0]; - if (privateUuid.equals(property)) { - property = "uuid"; - } - - int type = (int) column_x[1]; - String className = StringPool.BLANK; - - switch (type) { - case Types.VARCHAR: - className = String.class.getCanonicalName(); - break; - case Types.BOOLEAN: - // className = Boolean.class.getCanonicalName(); - className = String.class.getCanonicalName(); - break; - case Types.INTEGER: - className = Integer.class.getCanonicalName(); - break; - case Types.BIGINT: - className = Long.class.getCanonicalName(); - break; - case Types.TIMESTAMP: - // className = Date.class.getCanonicalName(); - className = String.class.getCanonicalName(); - break; - - default: - break; - } - - Object value = modelAttributes.get(property); - // if (Date.class.getName().equals(className)) { - // if (Validator.isNotNull(value)) { - // value = ((Date) value).getTime(); - // } - // } - - sb.append(StringPool.OPEN_CURLY_BRACE); - sb.append(StringPool.QUOTE + "name" + StringPool.QUOTE + StringPool.COLON) - .append(StringPool.QUOTE + property + StringPool.QUOTE) - .append(StringPool.COMMA) - .append(StringPool.QUOTE + "class" + StringPool.QUOTE + StringPool.COLON) - .append(StringPool.QUOTE + className + StringPool.QUOTE) - .append(StringPool.COMMA) - .append(StringPool.QUOTE + "value" + StringPool.QUOTE + StringPool.COLON) - .append(JSONObject.quote(String.valueOf(value)).replaceAll("(\n|\r|\r\n|\n\r)", - StringPool.SPACE)); - - // Vecchio Utilizzo - // HtmlUtil.escapeXPathAttribute(String.valueOf(value)).replaceAll("(\n|\r|\r\n|\n\r)", - // StringPool.SPACE)); - - sb.append(StringPool.CLOSE_CURLY_BRACE); - sb.append(StringPool.COMMA); - - } - - sb.setLength(sb.length() - 1); - - sb.append(StringPool.CLOSE_BRACKET); - sb.append(StringPool.CLOSE_CURLY_BRACE); - - return sb.toString(); - } - - public String serializeToVersioningPage() throws NoSuchFieldException, SecurityException { - - StringBuilder sb = new StringBuilder(); - - sb.append(StringPool.OPEN_CURLY_BRACE) - .append(StringPool.QUOTE + "fields" + StringPool.QUOTE + StringPool.COLON) - .append(StringPool.OPEN_BRACKET); - - Object[][] columns = DettPraticaModelImpl.TABLE_COLUMNS; - for (Object[] column_x : columns) { - - String property = (String) column_x[0]; - if (!PraticaUtil.getDettPraticaHiddenFields().contains(property)) { - sb.append(StringPool.QUOTE + property + StringPool.QUOTE).append(StringPool.COMMA); - } - } - - sb.setLength(sb.length() - 1); - - sb.append(StringPool.CLOSE_BRACKET); - sb.append(StringPool.CLOSE_CURLY_BRACE); - - return sb.toString(); - } - - private Map getModelValues() { - - Map attributes = new HashMap(); - Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(LocaleUtil.getSiteDefault(), - TimeZoneUtil.getDefault()); - - attributes.put("uuid", getUuid()); - attributes.put("dettPraticaId", getDettPraticaId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("intPraticaId", getIntPraticaId()); - attributes.put("integrazione", getIntegrazione()); - attributes.put("protocollo", getProtocollo()); - attributes.put("tipoIntegrazione", getTipoIntegrazione()); - attributes.put("completa", getCompleta() ? "true" : "false"); - attributes.put("gestita", getGestita() ? "true" : "false"); - attributes.put("importoSpeseIstruttoria", - Validator.isNotNull(getImportoSpeseIstruttoria()) ? getImportoSpeseIstruttoria() + "€" - : StringPool.BLANK); - attributes.put("codicePagamentoOneri", getCodicePagamentoOneri()); - attributes.put("causalePagamentoOneri", getCausalePagamentoOneri()); - attributes.put( - "mezzoPagamentoOneri", - Validator.isNotNull(getMezzoPagamentoOneri()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "mezzo-pagamento-" + getMezzoPagamentoOneri()) : StringPool.BLANK); - attributes.put("importoBolli", Validator.isNotNull(getImportoBolli()) ? getImportoBolli() + "€" - : StringPool.BLANK); - attributes.put("codicePagamentoBolli", getCodicePagamentoBolli()); - attributes.put("causalePagamentoBolli", getCausalePagamentoBolli()); - attributes.put( - "mezzoPagamentoBolli", - Validator.isNotNull(getMezzoPagamentoBolli()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "mezzo-pagamento-" + getMezzoPagamentoBolli()) : StringPool.BLANK); - - attributes.put( - "dataEffettuazione", - Validator.isNotNull(getDataEffettuazione()) ? dateFormatDateTime - .format(getDataEffettuazione()) : StringPool.BLANK); - attributes.put("version", getVersion()); - attributes.put("versionata", getVersionata() ? "true" : "false"); - attributes.put("status", getStatus()); - attributes.put("statusByUserId", getStatusByUserId()); - attributes.put("statusByUserName", getStatusByUserName()); - attributes.put("statusDate", - Validator.isNotNull(getStatusDate()) ? dateFormatDateTime.format(getStatusDate()) - : StringPool.BLANK); - attributes.put("statusTask", getStatusTask()); - attributes.put("workflowForzato", getWorkflowForzato() ? "true" : "false"); - attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); - attributes.put("dtInvioSignal", - Validator.isNotNull(getDtInvioSignal()) ? dateFormatDateTime.format(getDtInvioSignal()) - : StringPool.BLANK); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); - attributes.put( - "destinazione", - Validator.isNotNull(getDestinazione()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "destinazione-" + getDestinazione()) : StringPool.BLANK); - attributes.put("ag", getAg()); - attributes.put("descLongIntervento", getDescLongIntervento()); - attributes.put("via", getVia()); - attributes.put("localita", getLocalita()); - attributes.put("estremiCatastali", getEstremiCatastali()); - attributes.put("estremiPratCom", getEstremiPratCom()); - attributes.put("variataDa", getVariataDa()); - attributes.put("varianteNumero", getVarianteNumero()); - attributes.put("varianteSostanziale", getVarianteSostanziale() ? "true" : "false"); - attributes.put("operaConforme", - getOperaConforme() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("collaudoStatico", - getCollaudoStatico() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("codiceFiscaleDelegato", getCodiceFiscaleDelegato()); - attributes.put("codiceRuoloDelegato", getCodiceRuoloDelegato()); - attributes.put("codiceFiscaleDelegatoCommittente", getCodiceFiscaleDelegatoCommittente()); - attributes.put("codiceFiscaleDelegatoFineLavori", getCodiceFiscaleDelegatoFineLavori()); - attributes.put("codiceFiscaleDelegatoCollaudo", getCodiceFiscaleDelegatoCollaudo()); - attributes.put("codiceFiscalePrincipaleCommittente", getCodiceFiscalePrincipaleCommittente()); - attributes.put("codiceFiscalePrincipaleCollaudatore", getCodiceFiscalePrincipaleCollaudatore()); - attributes.put("codiceFiscalePrincipaleProgettista", getCodiceFiscalePrincipaleProgettista()); - attributes.put("codiceFiscalePrincipaleDirettoreLavori", getCodiceFiscalePrincipaleDirettoreLavori()); - attributes.put("codiceFiscalePrincipaleDitta", getCodiceFiscalePrincipaleDitta()); - attributes.put("codiceFiscalePrincipaleGeologo", getCodiceFiscalePrincipaleGeologo()); - attributes.put("lavoriInEconomiaCommittente", getLavoriInEconomiaCommittente() ? "true" : "false"); - attributes.put("inizioLavoriContestualeOpera", getInizioLavoriContestualeOpera() ? "true" : "false"); - attributes.put( - "dataInizioLavoriOpera", - Validator.isNotNull(getDataInizioLavoriOpera()) ? dateFormatDateTime - .format(getDataInizioLavoriOpera()) : StringPool.BLANK); - attributes.put( - "dataInizioEsecuzioneOpera", - Validator.isNotNull(getDataInizioEsecuzioneOpera()) ? dateFormatDateTime - .format(getDataInizioEsecuzioneOpera()) : StringPool.BLANK); - attributes.put( - "dataFineEsecuzioneOpera", - Validator.isNotNull(getDataFineEsecuzioneOpera()) ? dateFormatDateTime - .format(getDataFineEsecuzioneOpera()) : StringPool.BLANK); - attributes.put("metratura", getMetratura()); - attributes.put("lavoriPubblici", getLavoriPubblici() ? "true" : "false"); - attributes.put("pagamentoIdOneri", getPagamentoIdOneri()); - attributes.put("pagamentoIdBolli", getPagamentoIdBolli()); - attributes.put("lavoriPubbliciPercentuale", getLavoriPubbliciPercentuale()); - attributes.put("numeroCivico", getNumeroCivico()); - attributes.put("dcParticelle", !getDcParticelle().equalsIgnoreCase("|||") ? getDcParticelle() - : StringPool.BLANK); - attributes.put("dcFoglio", getDcFoglio()); - attributes.put("dcAllegato", getDcAllegato()); - attributes.put( - "dePiani", - Validator.isNotNull(getDePiani()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-piani-" - + getDePiani()) : StringPool.BLANK); - attributes.put( - "deAltezza", - Validator.isNotNull(getDeAltezza()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-altezza-" + getDeAltezza()) : StringPool.BLANK); - attributes.put( - "deInterrati", - Validator.isNotNull(getDeInterrati()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-interrati-" + getDeInterrati()) : StringPool.BLANK); - attributes.put( - "deSuperficie", - Validator.isNotNull(getDeSuperficie()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-superficie-" + getDeSuperficie()) : StringPool.BLANK); - attributes.put( - "deCostruzione", - Validator.isNotNull(getDeCostruzione()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-costruzione-" + getDeCostruzione()) : StringPool.BLANK); - attributes.put( - "deRistrutturazione", - Validator.isNotNull(getDeRistrutturazione()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-ristrutturazione-" + getDeRistrutturazione()) : StringPool.BLANK); - attributes.put( - "deUso", - Validator.isNotNull(getDeUso()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), "de-uso-" - + getDeUso()) : StringPool.BLANK); - attributes.put("dePubblica", getDePubblica()); - attributes.put("dePrivata", getDePrivata()); - attributes.put( - "deUtilizzazione", - Validator.isNotNull(getDeUtilizzazione()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-utilizzazione-" + getDeUtilizzazione()) : StringPool.BLANK); - attributes.put( - "dePosizioneEdificio", - Validator.isNotNull(getDePosizioneEdificio()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-posizione-edificio-" + getDePosizioneEdificio()) : StringPool.BLANK); - attributes.put("deInfStradalePonte", - getDeInfStradalePonte() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("deInfStradaleStrada", - getDeInfStradaleStrada() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("deInfStradaleAltro", - getDeInfStradaleAltro() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("deInfIdraulicaLong", - getDeInfIdraulicaLong() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("deInfIdraulicaTrasv", - getDeInfIdraulicaTrasv() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("deInfIdraulicaAltro", - getDeInfIdraulicaAltro() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "deInfOperaAccStradale", - getDeInfOperaAccStradale() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "deInfOperaAccIdraulica", - getDeInfOperaAccIdraulica() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("deInfOperaAccAltro", - getDeInfOperaAccAltro() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "deInfAltraInfrastruttura", - getDeInfAltraInfrastruttura() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("deInfAltro", getDeInfAltro() ? "true" : "false"); - attributes.put( - "deInfAltroDesc", - Validator.isNotNull(getDeInfAltroDesc()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "de-inf-altro-desc-" + getDeInfAltroDesc()) : StringPool.BLANK); - attributes.put( - "dccFondazioni", - Validator.isNotNull(getDccFondazioni()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "dcc-fondazioni-" + getDccFondazioni()) : StringPool.BLANK); - attributes.put( - "dccStruttureEleMuraturePietrame", - getDccStruttureEleMuraturePietrame() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureEleMuratureLaterizio", - getDccStruttureEleMuratureLaterizio() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureEleMuratureMisto", - getDccStruttureEleMuratureMisto() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureEleMuratureStoriche", - getDccStruttureEleMuratureStoriche() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureEleAcciaio", - Validator.isNotNull(getDccStruttureEleAcciaio()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "dcc-strutture-ele-acciaio-" - + getDccStruttureEleAcciaio()) : StringPool.BLANK); - attributes.put( - "dccStruttureEleCA", - Validator.isNotNull(getDccStruttureEleCA()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "dcc-strutture-ele-c-a-" + getDccStruttureEleCA()) : StringPool.BLANK); - attributes.put( - "dccStruttureEleLegno", - Validator.isNotNull(getDccStruttureEleLegno()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "dcc-strutture-ele-legno-" + getDccStruttureEleLegno()) - : StringPool.BLANK); - attributes.put( - "dccStruttureEleMistoCA", - getDccStruttureEleMistoCA() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureEleMistoAcciaio", - getDccStruttureEleMistoAcciaio() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureEleMistoMuratura", - getDccStruttureEleMistoMuratura() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureEleMistoLegno", - getDccStruttureEleMistoLegno() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccStruttureElePrefabbricato", - getDccStruttureElePrefabbricato() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("dccStruttureEleAltro", - getDccStruttureEleAltro() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("dccStruttureEleAltroDescrizione", getDccStruttureEleAltroDescrizione()); - attributes.put( - "dccOrizzontamentiCAAcciaio", - getDccOrizzontamentiCAAcciaio() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOrizzontamentiLegno", - getDccOrizzontamentiLegno() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOrizzontamentiLegnoCA", - getDccOrizzontamentiLegnoCA() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOrizzontamentiLamieraGrecata", - getDccOrizzontamentiLamieraGrecata() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOrizzontamentiVolte", - getDccOrizzontamentiVolte() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOrizzontamentiAltro", - getDccOrizzontamentiAltro() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes - .put("dccOrizzontamenti", - Validator.isNotNull(getDccOrizzontamentiAltroDescrizione()) ? getDccOrizzontamentiAltroDescrizione() - : StringPool.BLANK); - attributes.put( - "dccCopertura", - Validator.isNotNull(getDccCopertura()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "dcc-copertura-" + getDccCopertura()) : StringPool.BLANK); - attributes.put( - "dccCoperturaCAAcciaio", - getDccCoperturaCAAcciaio() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("dccCoperturaLegno", - getDccCoperturaLegno() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("dccCoperturaLegnoCA", - getDccCoperturaLegnoCA() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "dccCoperturaLamieraGrecata", - getDccCoperturaLamieraGrecata() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("dccCoperturaPannelli", - getDccCoperturaPannelli() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "dccCoperturaPVCTelonati", - getDccCoperturaPVCTelonati() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("dccCoperturaLeggere", - getDccCoperturaLeggere() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("dccCoperturaAltro", - getDccCoperturaAltro() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("dccCoperturaAltroDesrizione", getDccCoperturaAltroDesrizione()); - attributes.put( - "dccElemNonStrutLaterizio", - getDccElemNonStrutLaterizio() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccElemNonStrutCartongesso", - getDccElemNonStrutCartongesso() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccElemNonStrutCalcestruzzo", - getDccElemNonStrutCalcestruzzo() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("dccElemNonStrutLegno", - getDccElemNonStrutLegno() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("dccElemNonStrutAltro", - getDccElemNonStrutAltro() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("dccElemNonStrutAltroDescrizione", getDccElemNonStrutAltroDescrizione()); - attributes.put( - "dccOpereDiRinforzoInsCatene", - getDccOpereDiRinforzoInsCatene() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoInsCordoli", - getDccOpereDiRinforzoInsCordoli() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoIniArmate", - getDccOpereDiRinforzoIniArmate() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoPlaccaggi", - getDccOpereDiRinforzoPlaccaggi() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoIrrSolai", - getDccOpereDiRinforzoIrrSolai() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoRinforziFRP", - getDccOpereDiRinforzoRinforziFRP() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoTelaiECerchiature", - getDccOpereDiRinforzoTelaiECerchiature() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoInsRompitratta", - getDccOpereDiRinforzoInsRompitratta() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "dccOpereDiRinforzoAltro", - getDccOpereDiRinforzoAltro() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("dccOpereDiRinforzoAltroDescrizione", getDccOpereDiRinforzoAltroDescrizione()); - attributes.put( - "geoClasseIndagine", - Validator.isNotNull(getGeoClasseIndagine()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-classe-indagine-" + getGeoClasseIndagine()) : StringPool.BLANK); - attributes.put( - "geoCategoriaSottosuolo", - Validator.isNotNull(getGeoCategoriaSottosuolo()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-categoria-sottosuolo-" - + getGeoCategoriaSottosuolo()) : StringPool.BLANK); - attributes.put( - "geoCategoriaTopografica", - Validator.isNotNull(getGeoCategoriaTopografica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-categoria-topografica-" - + getGeoCategoriaTopografica()) : StringPool.BLANK); - attributes.put( - "geoConsolidamento", - Validator.isNotNull(getGeoConsolidamento()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-consolidamento-" + getGeoConsolidamento()) : StringPool.BLANK); - attributes.put( - "geoPericolositaGeologica", - Validator.isNotNull(getGeoPericolositaGeologica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-pericolosita-geologica-" - + getGeoPericolositaGeologica()) : StringPool.BLANK); - attributes.put( - "geoRischioGeomorfologicoPai", - Validator.isNotNull(getGeoRischioGeomorfologicoPai()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-rischio-geomorfologico-" - + getGeoRischioGeomorfologicoPai()) : StringPool.BLANK); - attributes.put( - "geoPericolositaIdraulicaPai", - Validator.isNotNull(getGeoPericolositaIdraulicaPai()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-pericolosita-idraulica-pai-" - + getGeoPericolositaIdraulicaPai()) : StringPool.BLANK); - attributes.put( - "geoRischioIdraulicoPai", - Validator.isNotNull(getGeoRischioIdraulicoPai()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-rischio-idraulico-pai-" - + getGeoRischioIdraulicoPai()) : StringPool.BLANK); - attributes.put( - "geoPericolositaSismica", - Validator.isNotNull(getGeoPericolositaSismica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-pericolosita-sismica-" - + getGeoPericolositaSismica()) : StringPool.BLANK); - attributes.put( - "geoPericolositaIdraulica", - Validator.isNotNull(getGeoPericolositaIdraulica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-pericolosita-idraulica-" - + getGeoPericolositaIdraulica()) : StringPool.BLANK); - attributes.put( - "geoPericolositaGeomorfica", - Validator.isNotNull(getGeoPericolositaGeomorfica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-pericolosita-geomorfica-" - + getGeoPericolositaGeomorfica()) : StringPool.BLANK); - attributes.put( - "geoFattibilitaGeologica", - Validator.isNotNull(getGeoFattibilitaGeologica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-fattibilita-geologica-" - + getGeoFattibilitaGeologica()) : StringPool.BLANK); - attributes.put( - "geoFattibilitaSismica", - Validator.isNotNull(getGeoFattibilitaSismica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-fattibilita-sismica-" + getGeoFattibilitaSismica()) - : StringPool.BLANK); - attributes.put( - "geoFattibilitaIdraulica", - Validator.isNotNull(getGeoFattibilitaIdraulica()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-fattibilita-idraulica-" - + getGeoFattibilitaIdraulica()) : StringPool.BLANK); - attributes.put( - "geoOperaRilevante", - Validator.isNotNull(getGeoOperaRilevante()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-opera-rilevante-" + getGeoOperaRilevante()) : StringPool.BLANK); - attributes.put( - "geoOpereDiSostegno", - Validator.isNotNull(getGeoOpereDiSostegno()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "geo-opere-di-sostegno-" + getGeoOpereDiSostegno()) : StringPool.BLANK); - attributes - .put("geoOpereInSotterranea", - Validator.isNotNull(getGeoOpereInSotterranea()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-opere-in-sotterranea-" - + getGeoOpereInSotterranea()) : StringPool.BLANK); - attributes.put( - "geoPresenzaPrescrizioni", - Validator.isNotNull(getGeoPresenzaPrescrizioni()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-presenza-prescrizioni-" - + getGeoPresenzaPrescrizioni()) : StringPool.BLANK); - attributes.put("geoNotePrescrizioni", getGeoNotePrescrizioni()); - attributes.put("geoNoteIndagini", getGeoNoteIndagini()); - attributes.put( - "geoEvidenzeGeomorfiche", - Validator.isNotNull(getGeoEvidenzeGeomorfiche()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-evidenze-geomorfiche-" - + getGeoEvidenzeGeomorfiche()) : StringPool.BLANK); - attributes.put( - "geoEvidenzeGeologiche", - Validator.isNotNull(getGeoEvidenzeGeologiche()) ? LanguageUtil.get( - LocaleUtil.getSiteDefault(), "geo-evidenze-geologiche-" + getGeoEvidenzeGeologiche()) - : StringPool.BLANK); - attributes.put("geoDtRelazione", - Validator.isNotNull(getGeoDtRelazione()) ? dateFormatDateTime.format(getGeoDtRelazione()) - : StringPool.BLANK); - attributes.put("pagNuoveCostruzioni", - getPagNuoveCostruzioni() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("pagAdeguamentoSismico", getPagAdeguamentoSismico()); - attributes.put("pagMiglioramentoSismico", getPagMiglioramentoSismico()); - attributes.put( - "pagRiparazioneInterventoLocale", - getPagRiparazioneInterventoLocale() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("pagNuovaCostruzione", getPagNuovaCostruzione()); - attributes.put("pagVarianti", - getPagVarianti() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("pagAltro", getPagAltro()); - attributes.put("note", getNote()); - attributes.put("noteUfficio", getNoteUfficio()); - attributes.put("localizzazioneGeografica", getLocalizzazioneGeografica()); - attributes.put("tcNuovaCostruzione", - getTcNuovaCostruzione() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("tcAdeguamentoSismico", - getTcAdeguamentoSismico() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "tcMiglioramentoSismico", - getTcMiglioramentoSismico() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "tcRiparazioneInterventoLocale", - getTcRiparazioneInterventoLocale() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put( - "tcInCA", - getTcInCA() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "tcInOpera", - getTcInOpera() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put("tcPrefabbricato", - getTcPrefabbricato() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("tcInAcciaio", - getTcInAcciaio() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "tcMista", - getTcMista() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put("tcInMuratura", - getTcInMuratura() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "tcInMuraturaOrdinaria", - getTcInMuraturaOrdinaria() ? HtmlUtil - .escape("") : HtmlUtil - .escape("")); - attributes.put("tcInMuraturaArmata", - getTcInMuraturaArmata() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("tcInMuraturaMista", - getTcInMuraturaMista() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "tcInLegno", - getTcInLegno() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "tcAltro", - getTcAltro() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put("tcAltroDescrizione", getTcAltroDescrizione()); - attributes.put("tcConDispositivi", - getTcConDispositivi() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normLavoriInProprio", - getNormLavoriInProprio() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normEsenteBollo", - getNormEsenteBollo() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normEsenteSpese", - getNormEsenteSpese() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normDpr01Dep", - getNormDpr01Dep() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normDpr02Dep", - getNormDpr02Dep() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normDpr01Aut", - getNormDpr01Aut() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normDpr02Aut", - getNormDpr02Aut() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "normDpr03", - getNormDpr03() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normDpr04", - getNormDpr04() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normDpr05", - getNormDpr05() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normDm01", - getNormDm01() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normDm02", - getNormDm02() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normDm03", - getNormDm03() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normDm04", - getNormDm04() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normDm05", - getNormDm05() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put("normDprg01", - getNormDprg01() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normDprg02", - getNormDprg02() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "normAnr", - getNormAnr() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normOrd01", - getNormOrd01() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normCI01", - getNormCI01() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put( - "normLTC01", - getNormLTC01() ? HtmlUtil.escape("") : HtmlUtil - .escape("")); - attributes.put("normArt3com3", - getNormArt3com3() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normArt3com4", - getNormArt3com4() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put("normSismaBonus", - getNormSismaBonus() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "clRischioPreInt", - Validator.isNotNull(getClRischioPreInt()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "cl-rischio-pre-int-" + getClRischioPreInt()) : StringPool.BLANK); - attributes.put( - "clRischioPosInt", - Validator.isNotNull(getClRischioPostInt()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "cl-rischio-post-int-" + getClRischioPostInt()) : StringPool.BLANK); - attributes.put("intervFinPub", - getIntervFinPub() ? HtmlUtil.escape("") - : HtmlUtil.escape("")); - attributes.put( - "intervFinPubDesc", - Validator.isNotNull(getIntervFinPubDesc()) ? LanguageUtil.get(LocaleUtil.getSiteDefault(), - "interv-fin-pub-desc") : StringPool.BLANK); - attributes.put("dpdc", getDpdc() ? "true" : "false"); - - return attributes; - } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java index 5466e9e0..9bae9a3d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaModelImpl.java @@ -93,16 +93,13 @@ public class DettPraticaModelImpl extends BaseModelImpl { "mezzoPagamentoBolli", Types.VARCHAR }, { "dataEffettuazione", Types.TIMESTAMP }, { "version", Types.INTEGER }, - { "versionata", Types.BOOLEAN }, { "status", Types.INTEGER }, { "statusByUserId", Types.BIGINT }, { "statusByUserName", Types.VARCHAR }, { "statusDate", Types.TIMESTAMP }, { "statusTask", Types.INTEGER }, - { "workflowForzato", Types.BOOLEAN }, { "soggettoSostituitoId", Types.BIGINT }, { "dtInvioSignal", Types.TIMESTAMP }, - { "oldDettPraticaId", Types.BIGINT }, { "destinazione", Types.VARCHAR }, { "ag", Types.VARCHAR }, { "descLongIntervento", Types.VARCHAR }, @@ -113,14 +110,11 @@ public class DettPraticaModelImpl extends BaseModelImpl { "localita", Types.VARCHAR }, { "estremiCatastali", Types.VARCHAR }, { "estremiPratCom", Types.VARCHAR }, - { "variataDa", Types.BIGINT }, { "varianteNumero", Types.BIGINT }, - { "varianteSostanziale", Types.BOOLEAN }, { "operaConforme", Types.BOOLEAN }, { "collaudoStatico", Types.BOOLEAN }, { "noCollaudo", Types.BOOLEAN }, { "codiceFiscaleDelegato", Types.VARCHAR }, - { "codiceRuoloDelegato", Types.VARCHAR }, { "codiceFiscaleDelegatoCommittente", Types.VARCHAR }, { "codiceFiscaleDelegatoFineLavori", Types.VARCHAR }, { "codiceFiscaleDelegatoCollaudo", Types.VARCHAR }, @@ -134,17 +128,10 @@ public class DettPraticaModelImpl extends BaseModelImpl { "sanatoriaEdilizia47", Types.BOOLEAN }, { "sanatoriaEdilizia724", Types.BOOLEAN }, { "sanatoriaEdilizia326", Types.BOOLEAN }, - { "lavoriInEconomiaCommittente", Types.BOOLEAN }, - { "inizioLavoriContestualeOpera", Types.BOOLEAN }, - { "dataInizioLavoriOpera", Types.TIMESTAMP }, - { "dataInizioEsecuzioneOpera", Types.TIMESTAMP }, - { "dataFineEsecuzioneOpera", Types.TIMESTAMP }, - { "metratura", Types.VARCHAR }, { "lavoriPubblici", Types.BOOLEAN }, { "pagamentoIdOneri", Types.BIGINT }, { "pagamentoIdBolli", Types.BIGINT }, { "lavoriPubbliciPercentuale", Types.INTEGER }, - { "numeroCivico", Types.VARCHAR }, { "dcParticelle", Types.VARCHAR }, { "dcFoglio", Types.VARCHAR }, { "dcAllegato", Types.VARCHAR }, @@ -306,6 +293,7 @@ public class DettPraticaModelImpl extends BaseModelImpl { "tcAltro", Types.BOOLEAN }, { "tcAltroDescrizione", Types.VARCHAR }, { "tcConDispositivi", Types.BOOLEAN }, + { "interventoVoceP7", Types.VARCHAR }, { "normLavoriInProprio", Types.BOOLEAN }, { "normLavoriNoDirettore", Types.BOOLEAN }, { "normEsenteBollo", Types.BOOLEAN }, @@ -314,24 +302,10 @@ public class DettPraticaModelImpl extends BaseModelImpl { "normDpr02Dep", Types.BOOLEAN }, { "normDpr01Aut", Types.BOOLEAN }, { "normDpr02Aut", Types.BOOLEAN }, - { "normDpr03", Types.BOOLEAN }, - { "normDpr04", Types.BOOLEAN }, - { "normDpr05", Types.BOOLEAN }, - { "normDm01", Types.BOOLEAN }, - { "normDm02", Types.BOOLEAN }, - { "normDm03", Types.BOOLEAN }, { "normDm2018", Types.BOOLEAN }, - { "normDm04", Types.BOOLEAN }, - { "normDm05", Types.BOOLEAN }, - { "normDprg01", Types.BOOLEAN }, - { "normDprg02", Types.BOOLEAN }, { "normAnr", Types.BOOLEAN }, - { "normOrd01", Types.BOOLEAN }, - { "normCI01", Types.BOOLEAN }, - { "normLTC01", Types.BOOLEAN }, { "normArt3com3", Types.BOOLEAN }, { "normArt3com4", Types.BOOLEAN }, - { "dpdc", Types.BOOLEAN }, { "normSismaBonus", Types.BOOLEAN }, { "clRischioPreInt", Types.VARCHAR }, { "clRischioPostInt", Types.VARCHAR }, @@ -339,7 +313,7 @@ public class DettPraticaModelImpl extends BaseModelImpl { "intervFinPubDesc", Types.VARCHAR }, { "suap", Types.BOOLEAN } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_DettPratica (uuid_ VARCHAR(75) null,dettPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,integrazione LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,tipoIntegrazione VARCHAR(10) null,completa BOOLEAN,gestita BOOLEAN,importoSpeseIstruttoria VARCHAR(75) null,codicePagamentoOneri VARCHAR(75) null,causalePagamentoOneri VARCHAR(75) null,mezzoPagamentoOneri VARCHAR(75) null,importoBolli VARCHAR(75) null,codicePagamentoBolli VARCHAR(75) null,causalePagamentoBolli VARCHAR(75) null,mezzoPagamentoBolli VARCHAR(75) null,dataEffettuazione DATE null,version INTEGER,versionata BOOLEAN,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,statusTask INTEGER,workflowForzato BOOLEAN,soggettoSostituitoId LONG,dtInvioSignal DATE null,oldDettPraticaId LONG,destinazione VARCHAR(10) null,ag VARCHAR(10) null,descLongIntervento STRING null,paesaggioLocale STRING null,livelloDiTutela STRING null,vincoli STRING null,via VARCHAR(75) null,localita VARCHAR(75) null,estremiCatastali STRING null,estremiPratCom STRING null,variataDa LONG,varianteNumero LONG,varianteSostanziale BOOLEAN,operaConforme BOOLEAN,collaudoStatico BOOLEAN,noCollaudo BOOLEAN,codiceFiscaleDelegato VARCHAR(16) null,codiceRuoloDelegato VARCHAR(75) null,codiceFiscaleDelegatoCommittente VARCHAR(75) null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,codiceFiscalePrincipaleCommittente VARCHAR(75) null,codiceFiscalePrincipaleCollaudatore VARCHAR(75) null,codiceFiscalePrincipaleProgettista VARCHAR(75) null,codiceFiscalePrincipaleDirettoreLavori VARCHAR(75) null,codiceFiscalePrincipaleDitta VARCHAR(75) null,codiceFiscalePrincipaleGeologo VARCHAR(75) null,codiceFiscalePrincipaleArcheologo VARCHAR(75) null,sanatoriaEdilizia47 BOOLEAN,sanatoriaEdilizia724 BOOLEAN,sanatoriaEdilizia326 BOOLEAN,lavoriInEconomiaCommittente BOOLEAN,inizioLavoriContestualeOpera BOOLEAN,dataInizioLavoriOpera DATE null,dataInizioEsecuzioneOpera DATE null,dataFineEsecuzioneOpera DATE null,metratura VARCHAR(75) null,lavoriPubblici BOOLEAN,pagamentoIdOneri LONG,pagamentoIdBolli LONG,lavoriPubbliciPercentuale INTEGER,numeroCivico VARCHAR(75) null,dcParticelle VARCHAR(75) null,dcFoglio VARCHAR(75) null,dcAllegato VARCHAR(75) null,dePiani VARCHAR(75) null,deAltezza VARCHAR(75) null,deInterrati VARCHAR(75) null,deSuperficie VARCHAR(75) null,deCostruzione VARCHAR(75) null,deRistrutturazione VARCHAR(75) null,deUso VARCHAR(75) null,dePubblica VARCHAR(75) null,dePrivata VARCHAR(75) null,deUtilizzazione VARCHAR(75) null,dePosizioneEdificio VARCHAR(75) null,deInfStradalePonte BOOLEAN,deInfStradaleStrada BOOLEAN,deInfStradaleAltro BOOLEAN,deInfIdraulicaLong BOOLEAN,deInfIdraulicaTrasv BOOLEAN,deInfIdraulicaAltro BOOLEAN,deInfOperaAccStradale BOOLEAN,deInfOperaAccIdraulica BOOLEAN,deInfOperaAccAltro BOOLEAN,deInfAltraInfrastruttura BOOLEAN,deInfAltro BOOLEAN,deInfAltroDesc STRING null,dccFondazioni VARCHAR(75) null,destinazioneAltroIntervento VARCHAR(75) null,dccStruttureEleMuraturePietrame BOOLEAN,dccStruttureEleMuratureLaterizio BOOLEAN,dccStruttureEleMuratureMisto BOOLEAN,dccStruttureEleMuratureStoriche BOOLEAN,dccStruttureEleAcciaio VARCHAR(75) null,dccStruttureEleCA VARCHAR(75) null,dccStruttureEleLegno VARCHAR(75) null,dccStruttureEleMistoCA BOOLEAN,dccStruttureEleMistoAcciaio BOOLEAN,dccStruttureEleMistoMuratura BOOLEAN,dccStruttureEleMistoLegno BOOLEAN,dccStruttureElePrefabbricato BOOLEAN,dccStruttureEleAltro BOOLEAN,dccStruttureEleAltroDescrizione STRING null,dccOrizzontamentiCAAcciaio BOOLEAN,dccOrizzontamentiLegno BOOLEAN,dccOrizzontamentiLegnoCA BOOLEAN,dccOrizzontamentiLamieraGrecata BOOLEAN,dccOrizzontamentiVolte BOOLEAN,dccOrizzontamentiAltro BOOLEAN,dccOrizzontamentiAltroDescrizione STRING null,dccCopertura VARCHAR(75) null,dccCoperturaCAAcciaio BOOLEAN,dccCoperturaLegno BOOLEAN,dccCoperturaLegnoCA BOOLEAN,dccCoperturaLamieraGrecata BOOLEAN,dccCoperturaPannelli BOOLEAN,dccCoperturaPVCTelonati BOOLEAN,dccCoperturaLeggere BOOLEAN,dccCoperturaAltro BOOLEAN,dccCoperturaAltroDesrizione STRING null,dccElemNonStrutLaterizio BOOLEAN,dccElemNonStrutCartongesso BOOLEAN,dccElemNonStrutCalcestruzzo BOOLEAN,dccElemNonStrutLegno BOOLEAN,dccElemNonStrutAltro BOOLEAN,dccElemNonStrutAltroDescrizione STRING null,dccOpereDiRinforzoInsCatene BOOLEAN,dccOpereDiRinforzoInsCordoli BOOLEAN,dccOpereDiRinforzoIniArmate BOOLEAN,dccOpereDiRinforzoPlaccaggi BOOLEAN,dccOpereDiRinforzoIrrSolai BOOLEAN,dccOpereDiRinforzoRinforziFRP BOOLEAN,dccOpereDiRinforzoTelaiECerchiature BOOLEAN,dccOpereDiRinforzoInsRompitratta BOOLEAN,dccOpereDiRinforzoAltro BOOLEAN,dccOpereDiRinforzoAltroDescrizione STRING null,geoClasseIndagine VARCHAR(75) null,geoCategoriaSottosuolo VARCHAR(75) null,geoCategoriaTopografica VARCHAR(75) null,geoConsolidamento VARCHAR(75) null,geoPericolositaGeologica VARCHAR(75) null,geoPericolositaSismica VARCHAR(75) null,geoPericolositaIdraulica VARCHAR(75) null,geoPericolositaGeomorfica VARCHAR(75) null,geoRischioGeomorfologicoPai VARCHAR(75) null,geoPericolositaIdraulicaPai VARCHAR(75) null,geoRischioIdraulicoPai VARCHAR(75) null,geoFattibilitaGeologica VARCHAR(75) null,geoFattibilitaSismica VARCHAR(75) null,geoFattibilitaIdraulica VARCHAR(75) null,geoOperaRilevante VARCHAR(75) null,geoOpereDiSostegno VARCHAR(75) null,geoOpereInSotterranea VARCHAR(75) null,geoPresenzaPrescrizioni VARCHAR(75) null,geoNotePrescrizioni STRING null,geoNoteIndagini STRING null,geoEvidenzeGeomorfiche VARCHAR(75) null,geoEvidenzeGeologiche VARCHAR(75) null,geoDtRelazione DATE null,pagSoggettiAdAutorizzazione DOUBLE,pagInterventiRestauroManufatti DOUBLE,pagAltriCasiCulturali DOUBLE,pagLottizzazioni DOUBLE,pagGrandiStrutture DOUBLE,pagCondotte DOUBLE,pagPalificazioni DOUBLE,pagImpiantiEolici DOUBLE,pagNuoveRealizzazioni DOUBLE,pagImmobiliPreesistenti DOUBLE,pagManifestiPubblicitari DOUBLE,pagPareriDiMassima DOUBLE,pagAltriCasiPaesaggistici DOUBLE,pagVariantiPareriResi DOUBLE,pagRilascioAttestazioni DOUBLE,pagConsultazioniArchivio DOUBLE,pagNuoveCostruzioni BOOLEAN,pagAdeguamentoSismico INTEGER,pagMiglioramentoSismico INTEGER,pagMiglioramentoSismicoSicilia BOOLEAN,pagRiparazioneInterventoLocale BOOLEAN,pagOperaNonQuantificabile BOOLEAN,pagNuovaCostruzione INTEGER,pagVarianti BOOLEAN,pagAltro INTEGER,pagCalcolatoAdeguamentoSismico VARCHAR(75) null,pagCalcolatoMiglioramentoSismico VARCHAR(75) null,pagCalcolatoRiparazioneInterventoLocale VARCHAR(75) null,pagCalcolatoOperaNonQuantificabile VARCHAR(75) null,pagEffettivoAdeguamentoSismico VARCHAR(75) null,pagEffettivoMiglioramentoSismico VARCHAR(75) null,pagEffettivoRiparazioneInterventoLocale VARCHAR(75) null,pagEffettivoOperaNonQuantificabile VARCHAR(75) null,pagNoteUtente TEXT null,note STRING null,noteUfficio STRING null,localizzazioneGeografica VARCHAR(75) null,tcNuovaCostruzione BOOLEAN,tcNuovaCostruzioneComplessa BOOLEAN,tcAdeguamentoSismico BOOLEAN,tcMiglioramentoSismico BOOLEAN,tcRiparazioneInterventoLocale BOOLEAN,tcCostruzioniEsistenti BOOLEAN,tcManutOrdStraord BOOLEAN,tcNuovaCostruzionePertinenza BOOLEAN,tcInterventoOpereEscavazione BOOLEAN,tcViarch BOOLEAN,tcOperaA25 BOOLEAN,tcAltriInterventi BOOLEAN,tcAltriInterventiDesc VARCHAR(75) null,tcInCA BOOLEAN,tcInOpera BOOLEAN,tcPrefabbricato BOOLEAN,tcInAcciaio BOOLEAN,tcMista BOOLEAN,tcInMuratura BOOLEAN,tcInMuraturaOrdinaria BOOLEAN,tcInMuraturaArmata BOOLEAN,tcInMuraturaMista BOOLEAN,tcInLegno BOOLEAN,tcAltro BOOLEAN,tcAltroDescrizione STRING null,tcConDispositivi BOOLEAN,normLavoriInProprio BOOLEAN,normLavoriNoDirettore BOOLEAN,normEsenteBollo BOOLEAN,normEsenteSpese BOOLEAN,normDpr01Dep BOOLEAN,normDpr02Dep BOOLEAN,normDpr01Aut BOOLEAN,normDpr02Aut BOOLEAN,normDpr03 BOOLEAN,normDpr04 BOOLEAN,normDpr05 BOOLEAN,normDm01 BOOLEAN,normDm02 BOOLEAN,normDm03 BOOLEAN,normDm2018 BOOLEAN,normDm04 BOOLEAN,normDm05 BOOLEAN,normDprg01 BOOLEAN,normDprg02 BOOLEAN,normAnr BOOLEAN,normOrd01 BOOLEAN,normCI01 BOOLEAN,normLTC01 BOOLEAN,normArt3com3 BOOLEAN,normArt3com4 BOOLEAN,dpdc BOOLEAN,normSismaBonus BOOLEAN,clRischioPreInt VARCHAR(75) null,clRischioPostInt VARCHAR(75) null,intervFinPub BOOLEAN,intervFinPubDesc STRING null,suap BOOLEAN)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_DettPratica (uuid_ VARCHAR(75) null,dettPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,integrazione LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,tipoIntegrazione VARCHAR(10) null,completa BOOLEAN,gestita BOOLEAN,importoSpeseIstruttoria VARCHAR(75) null,codicePagamentoOneri VARCHAR(75) null,causalePagamentoOneri VARCHAR(75) null,mezzoPagamentoOneri VARCHAR(75) null,importoBolli VARCHAR(75) null,codicePagamentoBolli VARCHAR(75) null,causalePagamentoBolli VARCHAR(75) null,mezzoPagamentoBolli VARCHAR(75) null,dataEffettuazione DATE null,version INTEGER,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,statusTask INTEGER,soggettoSostituitoId LONG,dtInvioSignal DATE null,destinazione VARCHAR(10) null,ag VARCHAR(10) null,descLongIntervento STRING null,paesaggioLocale STRING null,livelloDiTutela STRING null,vincoli STRING null,via VARCHAR(75) null,localita VARCHAR(75) null,estremiCatastali STRING null,estremiPratCom STRING null,varianteNumero LONG,operaConforme BOOLEAN,collaudoStatico BOOLEAN,noCollaudo BOOLEAN,codiceFiscaleDelegato VARCHAR(16) null,codiceFiscaleDelegatoCommittente VARCHAR(75) null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,codiceFiscalePrincipaleCommittente VARCHAR(75) null,codiceFiscalePrincipaleCollaudatore VARCHAR(75) null,codiceFiscalePrincipaleProgettista VARCHAR(75) null,codiceFiscalePrincipaleDirettoreLavori VARCHAR(75) null,codiceFiscalePrincipaleDitta VARCHAR(75) null,codiceFiscalePrincipaleGeologo VARCHAR(75) null,codiceFiscalePrincipaleArcheologo VARCHAR(75) null,sanatoriaEdilizia47 BOOLEAN,sanatoriaEdilizia724 BOOLEAN,sanatoriaEdilizia326 BOOLEAN,lavoriPubblici BOOLEAN,pagamentoIdOneri LONG,pagamentoIdBolli LONG,lavoriPubbliciPercentuale INTEGER,dcParticelle VARCHAR(75) null,dcFoglio VARCHAR(75) null,dcAllegato VARCHAR(75) null,dePiani VARCHAR(75) null,deAltezza VARCHAR(75) null,deInterrati VARCHAR(75) null,deSuperficie VARCHAR(75) null,deCostruzione VARCHAR(75) null,deRistrutturazione VARCHAR(75) null,deUso VARCHAR(75) null,dePubblica VARCHAR(75) null,dePrivata VARCHAR(75) null,deUtilizzazione VARCHAR(75) null,dePosizioneEdificio VARCHAR(75) null,deInfStradalePonte BOOLEAN,deInfStradaleStrada BOOLEAN,deInfStradaleAltro BOOLEAN,deInfIdraulicaLong BOOLEAN,deInfIdraulicaTrasv BOOLEAN,deInfIdraulicaAltro BOOLEAN,deInfOperaAccStradale BOOLEAN,deInfOperaAccIdraulica BOOLEAN,deInfOperaAccAltro BOOLEAN,deInfAltraInfrastruttura BOOLEAN,deInfAltro BOOLEAN,deInfAltroDesc STRING null,dccFondazioni VARCHAR(75) null,destinazioneAltroIntervento VARCHAR(75) null,dccStruttureEleMuraturePietrame BOOLEAN,dccStruttureEleMuratureLaterizio BOOLEAN,dccStruttureEleMuratureMisto BOOLEAN,dccStruttureEleMuratureStoriche BOOLEAN,dccStruttureEleAcciaio VARCHAR(75) null,dccStruttureEleCA VARCHAR(75) null,dccStruttureEleLegno VARCHAR(75) null,dccStruttureEleMistoCA BOOLEAN,dccStruttureEleMistoAcciaio BOOLEAN,dccStruttureEleMistoMuratura BOOLEAN,dccStruttureEleMistoLegno BOOLEAN,dccStruttureElePrefabbricato BOOLEAN,dccStruttureEleAltro BOOLEAN,dccStruttureEleAltroDescrizione STRING null,dccOrizzontamentiCAAcciaio BOOLEAN,dccOrizzontamentiLegno BOOLEAN,dccOrizzontamentiLegnoCA BOOLEAN,dccOrizzontamentiLamieraGrecata BOOLEAN,dccOrizzontamentiVolte BOOLEAN,dccOrizzontamentiAltro BOOLEAN,dccOrizzontamentiAltroDescrizione STRING null,dccCopertura VARCHAR(75) null,dccCoperturaCAAcciaio BOOLEAN,dccCoperturaLegno BOOLEAN,dccCoperturaLegnoCA BOOLEAN,dccCoperturaLamieraGrecata BOOLEAN,dccCoperturaPannelli BOOLEAN,dccCoperturaPVCTelonati BOOLEAN,dccCoperturaLeggere BOOLEAN,dccCoperturaAltro BOOLEAN,dccCoperturaAltroDesrizione STRING null,dccElemNonStrutLaterizio BOOLEAN,dccElemNonStrutCartongesso BOOLEAN,dccElemNonStrutCalcestruzzo BOOLEAN,dccElemNonStrutLegno BOOLEAN,dccElemNonStrutAltro BOOLEAN,dccElemNonStrutAltroDescrizione STRING null,dccOpereDiRinforzoInsCatene BOOLEAN,dccOpereDiRinforzoInsCordoli BOOLEAN,dccOpereDiRinforzoIniArmate BOOLEAN,dccOpereDiRinforzoPlaccaggi BOOLEAN,dccOpereDiRinforzoIrrSolai BOOLEAN,dccOpereDiRinforzoRinforziFRP BOOLEAN,dccOpereDiRinforzoTelaiECerchiature BOOLEAN,dccOpereDiRinforzoInsRompitratta BOOLEAN,dccOpereDiRinforzoAltro BOOLEAN,dccOpereDiRinforzoAltroDescrizione STRING null,geoClasseIndagine VARCHAR(75) null,geoCategoriaSottosuolo VARCHAR(75) null,geoCategoriaTopografica VARCHAR(75) null,geoConsolidamento VARCHAR(75) null,geoPericolositaGeologica VARCHAR(75) null,geoPericolositaSismica VARCHAR(75) null,geoPericolositaIdraulica VARCHAR(75) null,geoPericolositaGeomorfica VARCHAR(75) null,geoRischioGeomorfologicoPai VARCHAR(75) null,geoPericolositaIdraulicaPai VARCHAR(75) null,geoRischioIdraulicoPai VARCHAR(75) null,geoFattibilitaGeologica VARCHAR(75) null,geoFattibilitaSismica VARCHAR(75) null,geoFattibilitaIdraulica VARCHAR(75) null,geoOperaRilevante VARCHAR(75) null,geoOpereDiSostegno VARCHAR(75) null,geoOpereInSotterranea VARCHAR(75) null,geoPresenzaPrescrizioni VARCHAR(75) null,geoNotePrescrizioni STRING null,geoNoteIndagini STRING null,geoEvidenzeGeomorfiche VARCHAR(75) null,geoEvidenzeGeologiche VARCHAR(75) null,geoDtRelazione DATE null,pagSoggettiAdAutorizzazione DOUBLE,pagInterventiRestauroManufatti DOUBLE,pagAltriCasiCulturali DOUBLE,pagLottizzazioni DOUBLE,pagGrandiStrutture DOUBLE,pagCondotte DOUBLE,pagPalificazioni DOUBLE,pagImpiantiEolici DOUBLE,pagNuoveRealizzazioni DOUBLE,pagImmobiliPreesistenti DOUBLE,pagManifestiPubblicitari DOUBLE,pagPareriDiMassima DOUBLE,pagAltriCasiPaesaggistici DOUBLE,pagVariantiPareriResi DOUBLE,pagRilascioAttestazioni DOUBLE,pagConsultazioniArchivio DOUBLE,pagNuoveCostruzioni BOOLEAN,pagAdeguamentoSismico INTEGER,pagMiglioramentoSismico INTEGER,pagMiglioramentoSismicoSicilia BOOLEAN,pagRiparazioneInterventoLocale BOOLEAN,pagOperaNonQuantificabile BOOLEAN,pagNuovaCostruzione INTEGER,pagVarianti BOOLEAN,pagAltro INTEGER,pagCalcolatoAdeguamentoSismico VARCHAR(75) null,pagCalcolatoMiglioramentoSismico VARCHAR(75) null,pagCalcolatoRiparazioneInterventoLocale VARCHAR(75) null,pagCalcolatoOperaNonQuantificabile VARCHAR(75) null,pagEffettivoAdeguamentoSismico VARCHAR(75) null,pagEffettivoMiglioramentoSismico VARCHAR(75) null,pagEffettivoRiparazioneInterventoLocale VARCHAR(75) null,pagEffettivoOperaNonQuantificabile VARCHAR(75) null,pagNoteUtente TEXT null,note STRING null,noteUfficio STRING null,localizzazioneGeografica VARCHAR(75) null,tcNuovaCostruzione BOOLEAN,tcNuovaCostruzioneComplessa BOOLEAN,tcAdeguamentoSismico BOOLEAN,tcMiglioramentoSismico BOOLEAN,tcRiparazioneInterventoLocale BOOLEAN,tcCostruzioniEsistenti BOOLEAN,tcManutOrdStraord BOOLEAN,tcNuovaCostruzionePertinenza BOOLEAN,tcInterventoOpereEscavazione BOOLEAN,tcViarch BOOLEAN,tcOperaA25 BOOLEAN,tcAltriInterventi BOOLEAN,tcAltriInterventiDesc VARCHAR(75) null,tcInCA BOOLEAN,tcInOpera BOOLEAN,tcPrefabbricato BOOLEAN,tcInAcciaio BOOLEAN,tcMista BOOLEAN,tcInMuratura BOOLEAN,tcInMuraturaOrdinaria BOOLEAN,tcInMuraturaArmata BOOLEAN,tcInMuraturaMista BOOLEAN,tcInLegno BOOLEAN,tcAltro BOOLEAN,tcAltroDescrizione STRING null,tcConDispositivi BOOLEAN,interventoVoceP7 VARCHAR(75) null,normLavoriInProprio BOOLEAN,normLavoriNoDirettore BOOLEAN,normEsenteBollo BOOLEAN,normEsenteSpese BOOLEAN,normDpr01Dep BOOLEAN,normDpr02Dep BOOLEAN,normDpr01Aut BOOLEAN,normDpr02Aut BOOLEAN,normDm2018 BOOLEAN,normAnr BOOLEAN,normArt3com3 BOOLEAN,normArt3com4 BOOLEAN,normSismaBonus BOOLEAN,clRischioPreInt VARCHAR(75) null,clRischioPostInt VARCHAR(75) null,intervFinPub BOOLEAN,intervFinPubDesc STRING null,suap BOOLEAN)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_DettPratica"; public static final String ORDER_BY_JPQL = " ORDER BY dettPratica.dettPraticaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_DettPratica.dettPraticaId ASC"; @@ -359,11 +333,10 @@ public class DettPraticaModelImpl extends BaseModelImpl public static long COMPLETA_COLUMN_BITMASK = 2L; public static long GROUPID_COLUMN_BITMASK = 4L; public static long INTPRATICAID_COLUMN_BITMASK = 8L; - public static long OLDDETTPRATICAID_COLUMN_BITMASK = 16L; - public static long PROTOCOLLO_COLUMN_BITMASK = 32L; - public static long TIPOINTEGRAZIONE_COLUMN_BITMASK = 64L; - public static long UUID_COLUMN_BITMASK = 128L; - public static long DETTPRATICAID_COLUMN_BITMASK = 256L; + public static long PROTOCOLLO_COLUMN_BITMASK = 16L; + public static long TIPOINTEGRAZIONE_COLUMN_BITMASK = 32L; + public static long UUID_COLUMN_BITMASK = 64L; + public static long DETTPRATICAID_COLUMN_BITMASK = 128L; /** * Converts the soap model instance into a normal model instance. @@ -403,16 +376,13 @@ public class DettPraticaModelImpl extends BaseModelImpl model.setMezzoPagamentoBolli(soapModel.getMezzoPagamentoBolli()); model.setDataEffettuazione(soapModel.getDataEffettuazione()); model.setVersion(soapModel.getVersion()); - model.setVersionata(soapModel.getVersionata()); model.setStatus(soapModel.getStatus()); model.setStatusByUserId(soapModel.getStatusByUserId()); model.setStatusByUserName(soapModel.getStatusByUserName()); model.setStatusDate(soapModel.getStatusDate()); model.setStatusTask(soapModel.getStatusTask()); - model.setWorkflowForzato(soapModel.getWorkflowForzato()); model.setSoggettoSostituitoId(soapModel.getSoggettoSostituitoId()); model.setDtInvioSignal(soapModel.getDtInvioSignal()); - model.setOldDettPraticaId(soapModel.getOldDettPraticaId()); model.setDestinazione(soapModel.getDestinazione()); model.setAg(soapModel.getAg()); model.setDescLongIntervento(soapModel.getDescLongIntervento()); @@ -423,14 +393,11 @@ public class DettPraticaModelImpl extends BaseModelImpl model.setLocalita(soapModel.getLocalita()); model.setEstremiCatastali(soapModel.getEstremiCatastali()); model.setEstremiPratCom(soapModel.getEstremiPratCom()); - model.setVariataDa(soapModel.getVariataDa()); model.setVarianteNumero(soapModel.getVarianteNumero()); - model.setVarianteSostanziale(soapModel.getVarianteSostanziale()); model.setOperaConforme(soapModel.getOperaConforme()); model.setCollaudoStatico(soapModel.getCollaudoStatico()); model.setNoCollaudo(soapModel.getNoCollaudo()); model.setCodiceFiscaleDelegato(soapModel.getCodiceFiscaleDelegato()); - model.setCodiceRuoloDelegato(soapModel.getCodiceRuoloDelegato()); model.setCodiceFiscaleDelegatoCommittente(soapModel.getCodiceFiscaleDelegatoCommittente()); model.setCodiceFiscaleDelegatoFineLavori(soapModel.getCodiceFiscaleDelegatoFineLavori()); model.setCodiceFiscaleDelegatoCollaudo(soapModel.getCodiceFiscaleDelegatoCollaudo()); @@ -444,17 +411,10 @@ public class DettPraticaModelImpl extends BaseModelImpl model.setSanatoriaEdilizia47(soapModel.getSanatoriaEdilizia47()); model.setSanatoriaEdilizia724(soapModel.getSanatoriaEdilizia724()); model.setSanatoriaEdilizia326(soapModel.getSanatoriaEdilizia326()); - model.setLavoriInEconomiaCommittente(soapModel.getLavoriInEconomiaCommittente()); - model.setInizioLavoriContestualeOpera(soapModel.getInizioLavoriContestualeOpera()); - model.setDataInizioLavoriOpera(soapModel.getDataInizioLavoriOpera()); - model.setDataInizioEsecuzioneOpera(soapModel.getDataInizioEsecuzioneOpera()); - model.setDataFineEsecuzioneOpera(soapModel.getDataFineEsecuzioneOpera()); - model.setMetratura(soapModel.getMetratura()); model.setLavoriPubblici(soapModel.getLavoriPubblici()); model.setPagamentoIdOneri(soapModel.getPagamentoIdOneri()); model.setPagamentoIdBolli(soapModel.getPagamentoIdBolli()); model.setLavoriPubbliciPercentuale(soapModel.getLavoriPubbliciPercentuale()); - model.setNumeroCivico(soapModel.getNumeroCivico()); model.setDcParticelle(soapModel.getDcParticelle()); model.setDcFoglio(soapModel.getDcFoglio()); model.setDcAllegato(soapModel.getDcAllegato()); @@ -616,6 +576,7 @@ public class DettPraticaModelImpl extends BaseModelImpl model.setTcAltro(soapModel.getTcAltro()); model.setTcAltroDescrizione(soapModel.getTcAltroDescrizione()); model.setTcConDispositivi(soapModel.getTcConDispositivi()); + model.setInterventoVoceP7(soapModel.getInterventoVoceP7()); model.setNormLavoriInProprio(soapModel.getNormLavoriInProprio()); model.setNormLavoriNoDirettore(soapModel.getNormLavoriNoDirettore()); model.setNormEsenteBollo(soapModel.getNormEsenteBollo()); @@ -624,24 +585,10 @@ public class DettPraticaModelImpl extends BaseModelImpl model.setNormDpr02Dep(soapModel.getNormDpr02Dep()); model.setNormDpr01Aut(soapModel.getNormDpr01Aut()); model.setNormDpr02Aut(soapModel.getNormDpr02Aut()); - model.setNormDpr03(soapModel.getNormDpr03()); - model.setNormDpr04(soapModel.getNormDpr04()); - model.setNormDpr05(soapModel.getNormDpr05()); - model.setNormDm01(soapModel.getNormDm01()); - model.setNormDm02(soapModel.getNormDm02()); - model.setNormDm03(soapModel.getNormDm03()); model.setNormDm2018(soapModel.getNormDm2018()); - model.setNormDm04(soapModel.getNormDm04()); - model.setNormDm05(soapModel.getNormDm05()); - model.setNormDprg01(soapModel.getNormDprg01()); - model.setNormDprg02(soapModel.getNormDprg02()); model.setNormAnr(soapModel.getNormAnr()); - model.setNormOrd01(soapModel.getNormOrd01()); - model.setNormCI01(soapModel.getNormCI01()); - model.setNormLTC01(soapModel.getNormLTC01()); model.setNormArt3com3(soapModel.getNormArt3com3()); model.setNormArt3com4(soapModel.getNormArt3com4()); - model.setDpdc(soapModel.getDpdc()); model.setNormSismaBonus(soapModel.getNormSismaBonus()); model.setClRischioPreInt(soapModel.getClRischioPreInt()); model.setClRischioPostInt(soapModel.getClRischioPostInt()); @@ -737,16 +684,13 @@ public class DettPraticaModelImpl extends BaseModelImpl attributes.put("mezzoPagamentoBolli", getMezzoPagamentoBolli()); attributes.put("dataEffettuazione", getDataEffettuazione()); attributes.put("version", getVersion()); - attributes.put("versionata", getVersionata()); attributes.put("status", getStatus()); attributes.put("statusByUserId", getStatusByUserId()); attributes.put("statusByUserName", getStatusByUserName()); attributes.put("statusDate", getStatusDate()); attributes.put("statusTask", getStatusTask()); - attributes.put("workflowForzato", getWorkflowForzato()); attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); attributes.put("dtInvioSignal", getDtInvioSignal()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); attributes.put("destinazione", getDestinazione()); attributes.put("ag", getAg()); attributes.put("descLongIntervento", getDescLongIntervento()); @@ -757,14 +701,11 @@ public class DettPraticaModelImpl extends BaseModelImpl attributes.put("localita", getLocalita()); attributes.put("estremiCatastali", getEstremiCatastali()); attributes.put("estremiPratCom", getEstremiPratCom()); - attributes.put("variataDa", getVariataDa()); attributes.put("varianteNumero", getVarianteNumero()); - attributes.put("varianteSostanziale", getVarianteSostanziale()); attributes.put("operaConforme", getOperaConforme()); attributes.put("collaudoStatico", getCollaudoStatico()); attributes.put("noCollaudo", getNoCollaudo()); attributes.put("codiceFiscaleDelegato", getCodiceFiscaleDelegato()); - attributes.put("codiceRuoloDelegato", getCodiceRuoloDelegato()); attributes.put("codiceFiscaleDelegatoCommittente", getCodiceFiscaleDelegatoCommittente()); attributes.put("codiceFiscaleDelegatoFineLavori", @@ -788,21 +729,11 @@ public class DettPraticaModelImpl extends BaseModelImpl attributes.put("sanatoriaEdilizia47", getSanatoriaEdilizia47()); attributes.put("sanatoriaEdilizia724", getSanatoriaEdilizia724()); attributes.put("sanatoriaEdilizia326", getSanatoriaEdilizia326()); - attributes.put("lavoriInEconomiaCommittente", - getLavoriInEconomiaCommittente()); - attributes.put("inizioLavoriContestualeOpera", - getInizioLavoriContestualeOpera()); - attributes.put("dataInizioLavoriOpera", getDataInizioLavoriOpera()); - attributes.put("dataInizioEsecuzioneOpera", - getDataInizioEsecuzioneOpera()); - attributes.put("dataFineEsecuzioneOpera", getDataFineEsecuzioneOpera()); - attributes.put("metratura", getMetratura()); attributes.put("lavoriPubblici", getLavoriPubblici()); attributes.put("pagamentoIdOneri", getPagamentoIdOneri()); attributes.put("pagamentoIdBolli", getPagamentoIdBolli()); attributes.put("lavoriPubbliciPercentuale", getLavoriPubbliciPercentuale()); - attributes.put("numeroCivico", getNumeroCivico()); attributes.put("dcParticelle", getDcParticelle()); attributes.put("dcFoglio", getDcFoglio()); attributes.put("dcAllegato", getDcAllegato()); @@ -1012,6 +943,7 @@ public class DettPraticaModelImpl extends BaseModelImpl attributes.put("tcAltro", getTcAltro()); attributes.put("tcAltroDescrizione", getTcAltroDescrizione()); attributes.put("tcConDispositivi", getTcConDispositivi()); + attributes.put("interventoVoceP7", getInterventoVoceP7()); attributes.put("normLavoriInProprio", getNormLavoriInProprio()); attributes.put("normLavoriNoDirettore", getNormLavoriNoDirettore()); attributes.put("normEsenteBollo", getNormEsenteBollo()); @@ -1020,24 +952,10 @@ public class DettPraticaModelImpl extends BaseModelImpl attributes.put("normDpr02Dep", getNormDpr02Dep()); attributes.put("normDpr01Aut", getNormDpr01Aut()); attributes.put("normDpr02Aut", getNormDpr02Aut()); - attributes.put("normDpr03", getNormDpr03()); - attributes.put("normDpr04", getNormDpr04()); - attributes.put("normDpr05", getNormDpr05()); - attributes.put("normDm01", getNormDm01()); - attributes.put("normDm02", getNormDm02()); - attributes.put("normDm03", getNormDm03()); attributes.put("normDm2018", getNormDm2018()); - attributes.put("normDm04", getNormDm04()); - attributes.put("normDm05", getNormDm05()); - attributes.put("normDprg01", getNormDprg01()); - attributes.put("normDprg02", getNormDprg02()); attributes.put("normAnr", getNormAnr()); - attributes.put("normOrd01", getNormOrd01()); - attributes.put("normCI01", getNormCI01()); - attributes.put("normLTC01", getNormLTC01()); attributes.put("normArt3com3", getNormArt3com3()); attributes.put("normArt3com4", getNormArt3com4()); - attributes.put("dpdc", getDpdc()); attributes.put("normSismaBonus", getNormSismaBonus()); attributes.put("clRischioPreInt", getClRischioPreInt()); attributes.put("clRischioPostInt", getClRischioPostInt()); @@ -1207,12 +1125,6 @@ public class DettPraticaModelImpl extends BaseModelImpl setVersion(version); } - Boolean versionata = (Boolean)attributes.get("versionata"); - - if (versionata != null) { - setVersionata(versionata); - } - Integer status = (Integer)attributes.get("status"); if (status != null) { @@ -1243,12 +1155,6 @@ public class DettPraticaModelImpl extends BaseModelImpl setStatusTask(statusTask); } - Boolean workflowForzato = (Boolean)attributes.get("workflowForzato"); - - if (workflowForzato != null) { - setWorkflowForzato(workflowForzato); - } - Long soggettoSostituitoId = (Long)attributes.get("soggettoSostituitoId"); if (soggettoSostituitoId != null) { @@ -1261,12 +1167,6 @@ public class DettPraticaModelImpl extends BaseModelImpl setDtInvioSignal(dtInvioSignal); } - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } - String destinazione = (String)attributes.get("destinazione"); if (destinazione != null) { @@ -1327,25 +1227,12 @@ public class DettPraticaModelImpl extends BaseModelImpl setEstremiPratCom(estremiPratCom); } - Long variataDa = (Long)attributes.get("variataDa"); - - if (variataDa != null) { - setVariataDa(variataDa); - } - Long varianteNumero = (Long)attributes.get("varianteNumero"); if (varianteNumero != null) { setVarianteNumero(varianteNumero); } - Boolean varianteSostanziale = (Boolean)attributes.get( - "varianteSostanziale"); - - if (varianteSostanziale != null) { - setVarianteSostanziale(varianteSostanziale); - } - Boolean operaConforme = (Boolean)attributes.get("operaConforme"); if (operaConforme != null) { @@ -1371,13 +1258,6 @@ public class DettPraticaModelImpl extends BaseModelImpl setCodiceFiscaleDelegato(codiceFiscaleDelegato); } - String codiceRuoloDelegato = (String)attributes.get( - "codiceRuoloDelegato"); - - if (codiceRuoloDelegato != null) { - setCodiceRuoloDelegato(codiceRuoloDelegato); - } - String codiceFiscaleDelegatoCommittente = (String)attributes.get( "codiceFiscaleDelegatoCommittente"); @@ -1469,47 +1349,6 @@ public class DettPraticaModelImpl extends BaseModelImpl setSanatoriaEdilizia326(sanatoriaEdilizia326); } - Boolean lavoriInEconomiaCommittente = (Boolean)attributes.get( - "lavoriInEconomiaCommittente"); - - if (lavoriInEconomiaCommittente != null) { - setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); - } - - Boolean inizioLavoriContestualeOpera = (Boolean)attributes.get( - "inizioLavoriContestualeOpera"); - - if (inizioLavoriContestualeOpera != null) { - setInizioLavoriContestualeOpera(inizioLavoriContestualeOpera); - } - - Date dataInizioLavoriOpera = (Date)attributes.get( - "dataInizioLavoriOpera"); - - if (dataInizioLavoriOpera != null) { - setDataInizioLavoriOpera(dataInizioLavoriOpera); - } - - Date dataInizioEsecuzioneOpera = (Date)attributes.get( - "dataInizioEsecuzioneOpera"); - - if (dataInizioEsecuzioneOpera != null) { - setDataInizioEsecuzioneOpera(dataInizioEsecuzioneOpera); - } - - Date dataFineEsecuzioneOpera = (Date)attributes.get( - "dataFineEsecuzioneOpera"); - - if (dataFineEsecuzioneOpera != null) { - setDataFineEsecuzioneOpera(dataFineEsecuzioneOpera); - } - - String metratura = (String)attributes.get("metratura"); - - if (metratura != null) { - setMetratura(metratura); - } - Boolean lavoriPubblici = (Boolean)attributes.get("lavoriPubblici"); if (lavoriPubblici != null) { @@ -1535,12 +1374,6 @@ public class DettPraticaModelImpl extends BaseModelImpl setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); } - String numeroCivico = (String)attributes.get("numeroCivico"); - - if (numeroCivico != null) { - setNumeroCivico(numeroCivico); - } - String dcParticelle = (String)attributes.get("dcParticelle"); if (dcParticelle != null) { @@ -2616,6 +2449,12 @@ public class DettPraticaModelImpl extends BaseModelImpl setTcConDispositivi(tcConDispositivi); } + String interventoVoceP7 = (String)attributes.get("interventoVoceP7"); + + if (interventoVoceP7 != null) { + setInterventoVoceP7(interventoVoceP7); + } + Boolean normLavoriInProprio = (Boolean)attributes.get( "normLavoriInProprio"); @@ -2666,96 +2505,18 @@ public class DettPraticaModelImpl extends BaseModelImpl setNormDpr02Aut(normDpr02Aut); } - Boolean normDpr03 = (Boolean)attributes.get("normDpr03"); - - if (normDpr03 != null) { - setNormDpr03(normDpr03); - } - - Boolean normDpr04 = (Boolean)attributes.get("normDpr04"); - - if (normDpr04 != null) { - setNormDpr04(normDpr04); - } - - Boolean normDpr05 = (Boolean)attributes.get("normDpr05"); - - if (normDpr05 != null) { - setNormDpr05(normDpr05); - } - - Boolean normDm01 = (Boolean)attributes.get("normDm01"); - - if (normDm01 != null) { - setNormDm01(normDm01); - } - - Boolean normDm02 = (Boolean)attributes.get("normDm02"); - - if (normDm02 != null) { - setNormDm02(normDm02); - } - - Boolean normDm03 = (Boolean)attributes.get("normDm03"); - - if (normDm03 != null) { - setNormDm03(normDm03); - } - Boolean normDm2018 = (Boolean)attributes.get("normDm2018"); if (normDm2018 != null) { setNormDm2018(normDm2018); } - Boolean normDm04 = (Boolean)attributes.get("normDm04"); - - if (normDm04 != null) { - setNormDm04(normDm04); - } - - Boolean normDm05 = (Boolean)attributes.get("normDm05"); - - if (normDm05 != null) { - setNormDm05(normDm05); - } - - Boolean normDprg01 = (Boolean)attributes.get("normDprg01"); - - if (normDprg01 != null) { - setNormDprg01(normDprg01); - } - - Boolean normDprg02 = (Boolean)attributes.get("normDprg02"); - - if (normDprg02 != null) { - setNormDprg02(normDprg02); - } - Boolean normAnr = (Boolean)attributes.get("normAnr"); if (normAnr != null) { setNormAnr(normAnr); } - Boolean normOrd01 = (Boolean)attributes.get("normOrd01"); - - if (normOrd01 != null) { - setNormOrd01(normOrd01); - } - - Boolean normCI01 = (Boolean)attributes.get("normCI01"); - - if (normCI01 != null) { - setNormCI01(normCI01); - } - - Boolean normLTC01 = (Boolean)attributes.get("normLTC01"); - - if (normLTC01 != null) { - setNormLTC01(normLTC01); - } - Boolean normArt3com3 = (Boolean)attributes.get("normArt3com3"); if (normArt3com3 != null) { @@ -2768,12 +2529,6 @@ public class DettPraticaModelImpl extends BaseModelImpl setNormArt3com4(normArt3com4); } - Boolean dpdc = (Boolean)attributes.get("dpdc"); - - if (dpdc != null) { - setDpdc(dpdc); - } - Boolean normSismaBonus = (Boolean)attributes.get("normSismaBonus"); if (normSismaBonus != null) { @@ -3242,22 +2997,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _version = version; } - @JSON - @Override - public boolean getVersionata() { - return _versionata; - } - - @Override - public boolean isVersionata() { - return _versionata; - } - - @Override - public void setVersionata(boolean versionata) { - _versionata = versionata; - } - @JSON @Override public int getStatus() { @@ -3329,22 +3068,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _statusTask = statusTask; } - @JSON - @Override - public boolean getWorkflowForzato() { - return _workflowForzato; - } - - @Override - public boolean isWorkflowForzato() { - return _workflowForzato; - } - - @Override - public void setWorkflowForzato(boolean workflowForzato) { - _workflowForzato = workflowForzato; - } - @JSON @Override public long getSoggettoSostituitoId() { @@ -3367,29 +3090,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _dtInvioSignal = dtInvioSignal; } - @JSON - @Override - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _columnBitmask |= OLDDETTPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalOldDettPraticaId) { - _setOriginalOldDettPraticaId = true; - - _originalOldDettPraticaId = _oldDettPraticaId; - } - - _oldDettPraticaId = oldDettPraticaId; - } - - public long getOriginalOldDettPraticaId() { - return _originalOldDettPraticaId; - } - @JSON @Override public String getDestinazione() { @@ -3550,17 +3250,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _estremiPratCom = estremiPratCom; } - @JSON - @Override - public long getVariataDa() { - return _variataDa; - } - - @Override - public void setVariataDa(long variataDa) { - _variataDa = variataDa; - } - @JSON @Override public long getVarianteNumero() { @@ -3572,22 +3261,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _varianteNumero = varianteNumero; } - @JSON - @Override - public boolean getVarianteSostanziale() { - return _varianteSostanziale; - } - - @Override - public boolean isVarianteSostanziale() { - return _varianteSostanziale; - } - - @Override - public void setVarianteSostanziale(boolean varianteSostanziale) { - _varianteSostanziale = varianteSostanziale; - } - @JSON @Override public boolean getOperaConforme() { @@ -3652,22 +3325,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _codiceFiscaleDelegato = codiceFiscaleDelegato; } - @JSON - @Override - public String getCodiceRuoloDelegato() { - if (_codiceRuoloDelegato == null) { - return StringPool.BLANK; - } - else { - return _codiceRuoloDelegato; - } - } - - @Override - public void setCodiceRuoloDelegato(String codiceRuoloDelegato) { - _codiceRuoloDelegato = codiceRuoloDelegato; - } - @JSON @Override public String getCodiceFiscaleDelegatoCommittente() { @@ -3886,89 +3543,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _sanatoriaEdilizia326 = sanatoriaEdilizia326; } - @JSON - @Override - public boolean getLavoriInEconomiaCommittente() { - return _lavoriInEconomiaCommittente; - } - - @Override - public boolean isLavoriInEconomiaCommittente() { - return _lavoriInEconomiaCommittente; - } - - @Override - public void setLavoriInEconomiaCommittente( - boolean lavoriInEconomiaCommittente) { - _lavoriInEconomiaCommittente = lavoriInEconomiaCommittente; - } - - @JSON - @Override - public boolean getInizioLavoriContestualeOpera() { - return _inizioLavoriContestualeOpera; - } - - @Override - public boolean isInizioLavoriContestualeOpera() { - return _inizioLavoriContestualeOpera; - } - - @Override - public void setInizioLavoriContestualeOpera( - boolean inizioLavoriContestualeOpera) { - _inizioLavoriContestualeOpera = inizioLavoriContestualeOpera; - } - - @JSON - @Override - public Date getDataInizioLavoriOpera() { - return _dataInizioLavoriOpera; - } - - @Override - public void setDataInizioLavoriOpera(Date dataInizioLavoriOpera) { - _dataInizioLavoriOpera = dataInizioLavoriOpera; - } - - @JSON - @Override - public Date getDataInizioEsecuzioneOpera() { - return _dataInizioEsecuzioneOpera; - } - - @Override - public void setDataInizioEsecuzioneOpera(Date dataInizioEsecuzioneOpera) { - _dataInizioEsecuzioneOpera = dataInizioEsecuzioneOpera; - } - - @JSON - @Override - public Date getDataFineEsecuzioneOpera() { - return _dataFineEsecuzioneOpera; - } - - @Override - public void setDataFineEsecuzioneOpera(Date dataFineEsecuzioneOpera) { - _dataFineEsecuzioneOpera = dataFineEsecuzioneOpera; - } - - @JSON - @Override - public String getMetratura() { - if (_metratura == null) { - return StringPool.BLANK; - } - else { - return _metratura; - } - } - - @Override - public void setMetratura(String metratura) { - _metratura = metratura; - } - @JSON @Override public boolean getLavoriPubblici() { @@ -4018,22 +3592,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _lavoriPubbliciPercentuale = lavoriPubbliciPercentuale; } - @JSON - @Override - public String getNumeroCivico() { - if (_numeroCivico == null) { - return StringPool.BLANK; - } - else { - return _numeroCivico; - } - } - - @Override - public void setNumeroCivico(String numeroCivico) { - _numeroCivico = numeroCivico; - } - @JSON @Override public String getDcParticelle() { @@ -6549,6 +6107,22 @@ public class DettPraticaModelImpl extends BaseModelImpl _tcConDispositivi = tcConDispositivi; } + @JSON + @Override + public String getInterventoVoceP7() { + if (_interventoVoceP7 == null) { + return StringPool.BLANK; + } + else { + return _interventoVoceP7; + } + } + + @Override + public void setInterventoVoceP7(String interventoVoceP7) { + _interventoVoceP7 = interventoVoceP7; + } + @JSON @Override public boolean getNormLavoriInProprio() { @@ -6677,102 +6251,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _normDpr02Aut = normDpr02Aut; } - @JSON - @Override - public boolean getNormDpr03() { - return _normDpr03; - } - - @Override - public boolean isNormDpr03() { - return _normDpr03; - } - - @Override - public void setNormDpr03(boolean normDpr03) { - _normDpr03 = normDpr03; - } - - @JSON - @Override - public boolean getNormDpr04() { - return _normDpr04; - } - - @Override - public boolean isNormDpr04() { - return _normDpr04; - } - - @Override - public void setNormDpr04(boolean normDpr04) { - _normDpr04 = normDpr04; - } - - @JSON - @Override - public boolean getNormDpr05() { - return _normDpr05; - } - - @Override - public boolean isNormDpr05() { - return _normDpr05; - } - - @Override - public void setNormDpr05(boolean normDpr05) { - _normDpr05 = normDpr05; - } - - @JSON - @Override - public boolean getNormDm01() { - return _normDm01; - } - - @Override - public boolean isNormDm01() { - return _normDm01; - } - - @Override - public void setNormDm01(boolean normDm01) { - _normDm01 = normDm01; - } - - @JSON - @Override - public boolean getNormDm02() { - return _normDm02; - } - - @Override - public boolean isNormDm02() { - return _normDm02; - } - - @Override - public void setNormDm02(boolean normDm02) { - _normDm02 = normDm02; - } - - @JSON - @Override - public boolean getNormDm03() { - return _normDm03; - } - - @Override - public boolean isNormDm03() { - return _normDm03; - } - - @Override - public void setNormDm03(boolean normDm03) { - _normDm03 = normDm03; - } - @JSON @Override public boolean getNormDm2018() { @@ -6789,70 +6267,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _normDm2018 = normDm2018; } - @JSON - @Override - public boolean getNormDm04() { - return _normDm04; - } - - @Override - public boolean isNormDm04() { - return _normDm04; - } - - @Override - public void setNormDm04(boolean normDm04) { - _normDm04 = normDm04; - } - - @JSON - @Override - public boolean getNormDm05() { - return _normDm05; - } - - @Override - public boolean isNormDm05() { - return _normDm05; - } - - @Override - public void setNormDm05(boolean normDm05) { - _normDm05 = normDm05; - } - - @JSON - @Override - public boolean getNormDprg01() { - return _normDprg01; - } - - @Override - public boolean isNormDprg01() { - return _normDprg01; - } - - @Override - public void setNormDprg01(boolean normDprg01) { - _normDprg01 = normDprg01; - } - - @JSON - @Override - public boolean getNormDprg02() { - return _normDprg02; - } - - @Override - public boolean isNormDprg02() { - return _normDprg02; - } - - @Override - public void setNormDprg02(boolean normDprg02) { - _normDprg02 = normDprg02; - } - @JSON @Override public boolean getNormAnr() { @@ -6869,54 +6283,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _normAnr = normAnr; } - @JSON - @Override - public boolean getNormOrd01() { - return _normOrd01; - } - - @Override - public boolean isNormOrd01() { - return _normOrd01; - } - - @Override - public void setNormOrd01(boolean normOrd01) { - _normOrd01 = normOrd01; - } - - @JSON - @Override - public boolean getNormCI01() { - return _normCI01; - } - - @Override - public boolean isNormCI01() { - return _normCI01; - } - - @Override - public void setNormCI01(boolean normCI01) { - _normCI01 = normCI01; - } - - @JSON - @Override - public boolean getNormLTC01() { - return _normLTC01; - } - - @Override - public boolean isNormLTC01() { - return _normLTC01; - } - - @Override - public void setNormLTC01(boolean normLTC01) { - _normLTC01 = normLTC01; - } - @JSON @Override public boolean getNormArt3com3() { @@ -6949,22 +6315,6 @@ public class DettPraticaModelImpl extends BaseModelImpl _normArt3com4 = normArt3com4; } - @JSON - @Override - public boolean getDpdc() { - return _dpdc; - } - - @Override - public boolean isDpdc() { - return _dpdc; - } - - @Override - public void setDpdc(boolean dpdc) { - _dpdc = dpdc; - } - @JSON @Override public boolean getNormSismaBonus() { @@ -7211,16 +6561,13 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaImpl.setMezzoPagamentoBolli(getMezzoPagamentoBolli()); dettPraticaImpl.setDataEffettuazione(getDataEffettuazione()); dettPraticaImpl.setVersion(getVersion()); - dettPraticaImpl.setVersionata(getVersionata()); dettPraticaImpl.setStatus(getStatus()); dettPraticaImpl.setStatusByUserId(getStatusByUserId()); dettPraticaImpl.setStatusByUserName(getStatusByUserName()); dettPraticaImpl.setStatusDate(getStatusDate()); dettPraticaImpl.setStatusTask(getStatusTask()); - dettPraticaImpl.setWorkflowForzato(getWorkflowForzato()); dettPraticaImpl.setSoggettoSostituitoId(getSoggettoSostituitoId()); dettPraticaImpl.setDtInvioSignal(getDtInvioSignal()); - dettPraticaImpl.setOldDettPraticaId(getOldDettPraticaId()); dettPraticaImpl.setDestinazione(getDestinazione()); dettPraticaImpl.setAg(getAg()); dettPraticaImpl.setDescLongIntervento(getDescLongIntervento()); @@ -7231,14 +6578,11 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaImpl.setLocalita(getLocalita()); dettPraticaImpl.setEstremiCatastali(getEstremiCatastali()); dettPraticaImpl.setEstremiPratCom(getEstremiPratCom()); - dettPraticaImpl.setVariataDa(getVariataDa()); dettPraticaImpl.setVarianteNumero(getVarianteNumero()); - dettPraticaImpl.setVarianteSostanziale(getVarianteSostanziale()); dettPraticaImpl.setOperaConforme(getOperaConforme()); dettPraticaImpl.setCollaudoStatico(getCollaudoStatico()); dettPraticaImpl.setNoCollaudo(getNoCollaudo()); dettPraticaImpl.setCodiceFiscaleDelegato(getCodiceFiscaleDelegato()); - dettPraticaImpl.setCodiceRuoloDelegato(getCodiceRuoloDelegato()); dettPraticaImpl.setCodiceFiscaleDelegatoCommittente(getCodiceFiscaleDelegatoCommittente()); dettPraticaImpl.setCodiceFiscaleDelegatoFineLavori(getCodiceFiscaleDelegatoFineLavori()); dettPraticaImpl.setCodiceFiscaleDelegatoCollaudo(getCodiceFiscaleDelegatoCollaudo()); @@ -7252,17 +6596,10 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaImpl.setSanatoriaEdilizia47(getSanatoriaEdilizia47()); dettPraticaImpl.setSanatoriaEdilizia724(getSanatoriaEdilizia724()); dettPraticaImpl.setSanatoriaEdilizia326(getSanatoriaEdilizia326()); - dettPraticaImpl.setLavoriInEconomiaCommittente(getLavoriInEconomiaCommittente()); - dettPraticaImpl.setInizioLavoriContestualeOpera(getInizioLavoriContestualeOpera()); - dettPraticaImpl.setDataInizioLavoriOpera(getDataInizioLavoriOpera()); - dettPraticaImpl.setDataInizioEsecuzioneOpera(getDataInizioEsecuzioneOpera()); - dettPraticaImpl.setDataFineEsecuzioneOpera(getDataFineEsecuzioneOpera()); - dettPraticaImpl.setMetratura(getMetratura()); dettPraticaImpl.setLavoriPubblici(getLavoriPubblici()); dettPraticaImpl.setPagamentoIdOneri(getPagamentoIdOneri()); dettPraticaImpl.setPagamentoIdBolli(getPagamentoIdBolli()); dettPraticaImpl.setLavoriPubbliciPercentuale(getLavoriPubbliciPercentuale()); - dettPraticaImpl.setNumeroCivico(getNumeroCivico()); dettPraticaImpl.setDcParticelle(getDcParticelle()); dettPraticaImpl.setDcFoglio(getDcFoglio()); dettPraticaImpl.setDcAllegato(getDcAllegato()); @@ -7424,6 +6761,7 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaImpl.setTcAltro(getTcAltro()); dettPraticaImpl.setTcAltroDescrizione(getTcAltroDescrizione()); dettPraticaImpl.setTcConDispositivi(getTcConDispositivi()); + dettPraticaImpl.setInterventoVoceP7(getInterventoVoceP7()); dettPraticaImpl.setNormLavoriInProprio(getNormLavoriInProprio()); dettPraticaImpl.setNormLavoriNoDirettore(getNormLavoriNoDirettore()); dettPraticaImpl.setNormEsenteBollo(getNormEsenteBollo()); @@ -7432,24 +6770,10 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaImpl.setNormDpr02Dep(getNormDpr02Dep()); dettPraticaImpl.setNormDpr01Aut(getNormDpr01Aut()); dettPraticaImpl.setNormDpr02Aut(getNormDpr02Aut()); - dettPraticaImpl.setNormDpr03(getNormDpr03()); - dettPraticaImpl.setNormDpr04(getNormDpr04()); - dettPraticaImpl.setNormDpr05(getNormDpr05()); - dettPraticaImpl.setNormDm01(getNormDm01()); - dettPraticaImpl.setNormDm02(getNormDm02()); - dettPraticaImpl.setNormDm03(getNormDm03()); dettPraticaImpl.setNormDm2018(getNormDm2018()); - dettPraticaImpl.setNormDm04(getNormDm04()); - dettPraticaImpl.setNormDm05(getNormDm05()); - dettPraticaImpl.setNormDprg01(getNormDprg01()); - dettPraticaImpl.setNormDprg02(getNormDprg02()); dettPraticaImpl.setNormAnr(getNormAnr()); - dettPraticaImpl.setNormOrd01(getNormOrd01()); - dettPraticaImpl.setNormCI01(getNormCI01()); - dettPraticaImpl.setNormLTC01(getNormLTC01()); dettPraticaImpl.setNormArt3com3(getNormArt3com3()); dettPraticaImpl.setNormArt3com4(getNormArt3com4()); - dettPraticaImpl.setDpdc(getDpdc()); dettPraticaImpl.setNormSismaBonus(getNormSismaBonus()); dettPraticaImpl.setClRischioPreInt(getClRischioPreInt()); dettPraticaImpl.setClRischioPostInt(getClRischioPostInt()); @@ -7530,10 +6854,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaModelImpl._setOriginalCompleta = false; - dettPraticaModelImpl._originalOldDettPraticaId = dettPraticaModelImpl._oldDettPraticaId; - - dettPraticaModelImpl._setOriginalOldDettPraticaId = false; - dettPraticaModelImpl._columnBitmask = 0; } @@ -7698,8 +7018,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.version = getVersion(); - dettPraticaCacheModel.versionata = getVersionata(); - dettPraticaCacheModel.status = getStatus(); dettPraticaCacheModel.statusByUserId = getStatusByUserId(); @@ -7723,8 +7041,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.statusTask = getStatusTask(); - dettPraticaCacheModel.workflowForzato = getWorkflowForzato(); - dettPraticaCacheModel.soggettoSostituitoId = getSoggettoSostituitoId(); Date dtInvioSignal = getDtInvioSignal(); @@ -7736,8 +7052,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.dtInvioSignal = Long.MIN_VALUE; } - dettPraticaCacheModel.oldDettPraticaId = getOldDettPraticaId(); - dettPraticaCacheModel.destinazione = getDestinazione(); String destinazione = dettPraticaCacheModel.destinazione; @@ -7818,12 +7132,8 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.estremiPratCom = null; } - dettPraticaCacheModel.variataDa = getVariataDa(); - dettPraticaCacheModel.varianteNumero = getVarianteNumero(); - dettPraticaCacheModel.varianteSostanziale = getVarianteSostanziale(); - dettPraticaCacheModel.operaConforme = getOperaConforme(); dettPraticaCacheModel.collaudoStatico = getCollaudoStatico(); @@ -7839,15 +7149,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.codiceFiscaleDelegato = null; } - dettPraticaCacheModel.codiceRuoloDelegato = getCodiceRuoloDelegato(); - - String codiceRuoloDelegato = dettPraticaCacheModel.codiceRuoloDelegato; - - if ((codiceRuoloDelegato != null) && - (codiceRuoloDelegato.length() == 0)) { - dettPraticaCacheModel.codiceRuoloDelegato = null; - } - dettPraticaCacheModel.codiceFiscaleDelegatoCommittente = getCodiceFiscaleDelegatoCommittente(); String codiceFiscaleDelegatoCommittente = dettPraticaCacheModel.codiceFiscaleDelegatoCommittente; @@ -7944,45 +7245,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.sanatoriaEdilizia326 = getSanatoriaEdilizia326(); - dettPraticaCacheModel.lavoriInEconomiaCommittente = getLavoriInEconomiaCommittente(); - - dettPraticaCacheModel.inizioLavoriContestualeOpera = getInizioLavoriContestualeOpera(); - - Date dataInizioLavoriOpera = getDataInizioLavoriOpera(); - - if (dataInizioLavoriOpera != null) { - dettPraticaCacheModel.dataInizioLavoriOpera = dataInizioLavoriOpera.getTime(); - } - else { - dettPraticaCacheModel.dataInizioLavoriOpera = Long.MIN_VALUE; - } - - Date dataInizioEsecuzioneOpera = getDataInizioEsecuzioneOpera(); - - if (dataInizioEsecuzioneOpera != null) { - dettPraticaCacheModel.dataInizioEsecuzioneOpera = dataInizioEsecuzioneOpera.getTime(); - } - else { - dettPraticaCacheModel.dataInizioEsecuzioneOpera = Long.MIN_VALUE; - } - - Date dataFineEsecuzioneOpera = getDataFineEsecuzioneOpera(); - - if (dataFineEsecuzioneOpera != null) { - dettPraticaCacheModel.dataFineEsecuzioneOpera = dataFineEsecuzioneOpera.getTime(); - } - else { - dettPraticaCacheModel.dataFineEsecuzioneOpera = Long.MIN_VALUE; - } - - dettPraticaCacheModel.metratura = getMetratura(); - - String metratura = dettPraticaCacheModel.metratura; - - if ((metratura != null) && (metratura.length() == 0)) { - dettPraticaCacheModel.metratura = null; - } - dettPraticaCacheModel.lavoriPubblici = getLavoriPubblici(); dettPraticaCacheModel.pagamentoIdOneri = getPagamentoIdOneri(); @@ -7991,14 +7253,6 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.lavoriPubbliciPercentuale = getLavoriPubbliciPercentuale(); - dettPraticaCacheModel.numeroCivico = getNumeroCivico(); - - String numeroCivico = dettPraticaCacheModel.numeroCivico; - - if ((numeroCivico != null) && (numeroCivico.length() == 0)) { - dettPraticaCacheModel.numeroCivico = null; - } - dettPraticaCacheModel.dcParticelle = getDcParticelle(); String dcParticelle = dettPraticaCacheModel.dcParticelle; @@ -8736,6 +7990,14 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.tcConDispositivi = getTcConDispositivi(); + dettPraticaCacheModel.interventoVoceP7 = getInterventoVoceP7(); + + String interventoVoceP7 = dettPraticaCacheModel.interventoVoceP7; + + if ((interventoVoceP7 != null) && (interventoVoceP7.length() == 0)) { + dettPraticaCacheModel.interventoVoceP7 = null; + } + dettPraticaCacheModel.normLavoriInProprio = getNormLavoriInProprio(); dettPraticaCacheModel.normLavoriNoDirettore = getNormLavoriNoDirettore(); @@ -8752,42 +8014,14 @@ public class DettPraticaModelImpl extends BaseModelImpl dettPraticaCacheModel.normDpr02Aut = getNormDpr02Aut(); - dettPraticaCacheModel.normDpr03 = getNormDpr03(); - - dettPraticaCacheModel.normDpr04 = getNormDpr04(); - - dettPraticaCacheModel.normDpr05 = getNormDpr05(); - - dettPraticaCacheModel.normDm01 = getNormDm01(); - - dettPraticaCacheModel.normDm02 = getNormDm02(); - - dettPraticaCacheModel.normDm03 = getNormDm03(); - dettPraticaCacheModel.normDm2018 = getNormDm2018(); - dettPraticaCacheModel.normDm04 = getNormDm04(); - - dettPraticaCacheModel.normDm05 = getNormDm05(); - - dettPraticaCacheModel.normDprg01 = getNormDprg01(); - - dettPraticaCacheModel.normDprg02 = getNormDprg02(); - dettPraticaCacheModel.normAnr = getNormAnr(); - dettPraticaCacheModel.normOrd01 = getNormOrd01(); - - dettPraticaCacheModel.normCI01 = getNormCI01(); - - dettPraticaCacheModel.normLTC01 = getNormLTC01(); - dettPraticaCacheModel.normArt3com3 = getNormArt3com3(); dettPraticaCacheModel.normArt3com4 = getNormArt3com4(); - dettPraticaCacheModel.dpdc = getDpdc(); - dettPraticaCacheModel.normSismaBonus = getNormSismaBonus(); dettPraticaCacheModel.clRischioPreInt = getClRischioPreInt(); @@ -8823,7 +8057,7 @@ public class DettPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(541); + StringBundler sb = new StringBundler(489); sb.append("{uuid="); sb.append(getUuid()); @@ -8875,8 +8109,6 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getDataEffettuazione()); sb.append(", version="); sb.append(getVersion()); - sb.append(", versionata="); - sb.append(getVersionata()); sb.append(", status="); sb.append(getStatus()); sb.append(", statusByUserId="); @@ -8887,14 +8119,10 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getStatusDate()); sb.append(", statusTask="); sb.append(getStatusTask()); - sb.append(", workflowForzato="); - sb.append(getWorkflowForzato()); sb.append(", soggettoSostituitoId="); sb.append(getSoggettoSostituitoId()); sb.append(", dtInvioSignal="); sb.append(getDtInvioSignal()); - sb.append(", oldDettPraticaId="); - sb.append(getOldDettPraticaId()); sb.append(", destinazione="); sb.append(getDestinazione()); sb.append(", ag="); @@ -8915,12 +8143,8 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getEstremiCatastali()); sb.append(", estremiPratCom="); sb.append(getEstremiPratCom()); - sb.append(", variataDa="); - sb.append(getVariataDa()); sb.append(", varianteNumero="); sb.append(getVarianteNumero()); - sb.append(", varianteSostanziale="); - sb.append(getVarianteSostanziale()); sb.append(", operaConforme="); sb.append(getOperaConforme()); sb.append(", collaudoStatico="); @@ -8929,8 +8153,6 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getNoCollaudo()); sb.append(", codiceFiscaleDelegato="); sb.append(getCodiceFiscaleDelegato()); - sb.append(", codiceRuoloDelegato="); - sb.append(getCodiceRuoloDelegato()); sb.append(", codiceFiscaleDelegatoCommittente="); sb.append(getCodiceFiscaleDelegatoCommittente()); sb.append(", codiceFiscaleDelegatoFineLavori="); @@ -8957,18 +8179,6 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getSanatoriaEdilizia724()); sb.append(", sanatoriaEdilizia326="); sb.append(getSanatoriaEdilizia326()); - sb.append(", lavoriInEconomiaCommittente="); - sb.append(getLavoriInEconomiaCommittente()); - sb.append(", inizioLavoriContestualeOpera="); - sb.append(getInizioLavoriContestualeOpera()); - sb.append(", dataInizioLavoriOpera="); - sb.append(getDataInizioLavoriOpera()); - sb.append(", dataInizioEsecuzioneOpera="); - sb.append(getDataInizioEsecuzioneOpera()); - sb.append(", dataFineEsecuzioneOpera="); - sb.append(getDataFineEsecuzioneOpera()); - sb.append(", metratura="); - sb.append(getMetratura()); sb.append(", lavoriPubblici="); sb.append(getLavoriPubblici()); sb.append(", pagamentoIdOneri="); @@ -8977,8 +8187,6 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getPagamentoIdBolli()); sb.append(", lavoriPubbliciPercentuale="); sb.append(getLavoriPubbliciPercentuale()); - sb.append(", numeroCivico="); - sb.append(getNumeroCivico()); sb.append(", dcParticelle="); sb.append(getDcParticelle()); sb.append(", dcFoglio="); @@ -9301,6 +8509,8 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getTcAltroDescrizione()); sb.append(", tcConDispositivi="); sb.append(getTcConDispositivi()); + sb.append(", interventoVoceP7="); + sb.append(getInterventoVoceP7()); sb.append(", normLavoriInProprio="); sb.append(getNormLavoriInProprio()); sb.append(", normLavoriNoDirettore="); @@ -9317,42 +8527,14 @@ public class DettPraticaModelImpl extends BaseModelImpl sb.append(getNormDpr01Aut()); sb.append(", normDpr02Aut="); sb.append(getNormDpr02Aut()); - sb.append(", normDpr03="); - sb.append(getNormDpr03()); - sb.append(", normDpr04="); - sb.append(getNormDpr04()); - sb.append(", normDpr05="); - sb.append(getNormDpr05()); - sb.append(", normDm01="); - sb.append(getNormDm01()); - sb.append(", normDm02="); - sb.append(getNormDm02()); - sb.append(", normDm03="); - sb.append(getNormDm03()); sb.append(", normDm2018="); sb.append(getNormDm2018()); - sb.append(", normDm04="); - sb.append(getNormDm04()); - sb.append(", normDm05="); - sb.append(getNormDm05()); - sb.append(", normDprg01="); - sb.append(getNormDprg01()); - sb.append(", normDprg02="); - sb.append(getNormDprg02()); sb.append(", normAnr="); sb.append(getNormAnr()); - sb.append(", normOrd01="); - sb.append(getNormOrd01()); - sb.append(", normCI01="); - sb.append(getNormCI01()); - sb.append(", normLTC01="); - sb.append(getNormLTC01()); sb.append(", normArt3com3="); sb.append(getNormArt3com3()); sb.append(", normArt3com4="); sb.append(getNormArt3com4()); - sb.append(", dpdc="); - sb.append(getDpdc()); sb.append(", normSismaBonus="); sb.append(getNormSismaBonus()); sb.append(", clRischioPreInt="); @@ -9372,7 +8554,7 @@ public class DettPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(814); + StringBundler sb = new StringBundler(736); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DettPratica"); @@ -9478,10 +8660,6 @@ public class DettPraticaModelImpl extends BaseModelImpl "version"); - sb.append( - "versionata"); sb.append( "status "statusTask"); - sb.append( - "workflowForzato"); sb.append( "soggettoSostituitoId "dtInvioSignal"); - sb.append( - "oldDettPraticaId"); sb.append( "destinazione "estremiPratCom"); - sb.append( - "variataDa"); sb.append( "varianteNumero"); - sb.append( - "varianteSostanziale"); sb.append( "operaConforme "codiceFiscaleDelegato"); - sb.append( - "codiceRuoloDelegato"); sb.append( "codiceFiscaleDelegatoCommittente "sanatoriaEdilizia326"); - sb.append( - "lavoriInEconomiaCommittente"); - sb.append( - "inizioLavoriContestualeOpera"); - sb.append( - "dataInizioLavoriOpera"); - sb.append( - "dataInizioEsecuzioneOpera"); - sb.append( - "dataFineEsecuzioneOpera"); - sb.append( - "metratura"); sb.append( "lavoriPubblici "lavoriPubbliciPercentuale"); - sb.append( - "numeroCivico"); sb.append( "dcParticelle "tcConDispositivi"); + sb.append( + "interventoVoceP7"); sb.append( "normLavoriInProprio "normDpr02Aut"); - sb.append( - "normDpr03"); - sb.append( - "normDpr04"); - sb.append( - "normDpr05"); - sb.append( - "normDm01"); - sb.append( - "normDm02"); - sb.append( - "normDm03"); sb.append( "normDm2018"); - sb.append( - "normDm04"); - sb.append( - "normDm05"); - sb.append( - "normDprg01"); - sb.append( - "normDprg02"); sb.append( "normAnr"); - sb.append( - "normOrd01"); - sb.append( - "normCI01"); - sb.append( - "normLTC01"); sb.append( "normArt3com3 "normArt3com4"); - sb.append( - "dpdc"); sb.append( "normSismaBonus private String _mezzoPagamentoBolli; private Date _dataEffettuazione; private int _version; - private boolean _versionata; private int _status; private long _statusByUserId; private String _statusByUserUuid; private String _statusByUserName; private Date _statusDate; private int _statusTask; - private boolean _workflowForzato; private long _soggettoSostituitoId; private Date _dtInvioSignal; - private long _oldDettPraticaId; - private long _originalOldDettPraticaId; - private boolean _setOriginalOldDettPraticaId; private String _destinazione; private String _ag; private String _descLongIntervento; @@ -10528,14 +9601,11 @@ public class DettPraticaModelImpl extends BaseModelImpl private String _localita; private String _estremiCatastali; private String _estremiPratCom; - private long _variataDa; private long _varianteNumero; - private boolean _varianteSostanziale; private boolean _operaConforme; private boolean _collaudoStatico; private boolean _noCollaudo; private String _codiceFiscaleDelegato; - private String _codiceRuoloDelegato; private String _codiceFiscaleDelegatoCommittente; private String _codiceFiscaleDelegatoFineLavori; private String _codiceFiscaleDelegatoCollaudo; @@ -10549,17 +9619,10 @@ public class DettPraticaModelImpl extends BaseModelImpl private boolean _sanatoriaEdilizia47; private boolean _sanatoriaEdilizia724; private boolean _sanatoriaEdilizia326; - private boolean _lavoriInEconomiaCommittente; - private boolean _inizioLavoriContestualeOpera; - private Date _dataInizioLavoriOpera; - private Date _dataInizioEsecuzioneOpera; - private Date _dataFineEsecuzioneOpera; - private String _metratura; private boolean _lavoriPubblici; private long _pagamentoIdOneri; private long _pagamentoIdBolli; private int _lavoriPubbliciPercentuale; - private String _numeroCivico; private String _dcParticelle; private String _dcFoglio; private String _dcAllegato; @@ -10721,6 +9784,7 @@ public class DettPraticaModelImpl extends BaseModelImpl private boolean _tcAltro; private String _tcAltroDescrizione; private boolean _tcConDispositivi; + private String _interventoVoceP7; private boolean _normLavoriInProprio; private boolean _normLavoriNoDirettore; private boolean _normEsenteBollo; @@ -10729,24 +9793,10 @@ public class DettPraticaModelImpl extends BaseModelImpl private boolean _normDpr02Dep; private boolean _normDpr01Aut; private boolean _normDpr02Aut; - private boolean _normDpr03; - private boolean _normDpr04; - private boolean _normDpr05; - private boolean _normDm01; - private boolean _normDm02; - private boolean _normDm03; private boolean _normDm2018; - private boolean _normDm04; - private boolean _normDm05; - private boolean _normDprg01; - private boolean _normDprg02; private boolean _normAnr; - private boolean _normOrd01; - private boolean _normCI01; - private boolean _normLTC01; private boolean _normArt3com3; private boolean _normArt3com4; - private boolean _dpdc; private boolean _normSismaBonus; private String _clRischioPreInt; private String _clRischioPostInt; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaCacheModel.java index ae77012f..c86328ec 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaCacheModel.java @@ -38,7 +38,7 @@ public class DocAggiuntivaCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(29); + StringBundler sb = new StringBundler(27); sb.append("{uuid="); sb.append(uuid); @@ -62,8 +62,6 @@ public class DocAggiuntivaCacheModel implements CacheModel, sb.append(dettPraticaId); sb.append(", fileEntryId="); sb.append(fileEntryId); - sb.append(", oldFileEntryId="); - sb.append(oldFileEntryId); sb.append(", descrizione="); sb.append(descrizione); sb.append(", feVisible="); @@ -113,7 +111,6 @@ public class DocAggiuntivaCacheModel implements CacheModel, docAggiuntivaImpl.setIntPraticaId(intPraticaId); docAggiuntivaImpl.setDettPraticaId(dettPraticaId); docAggiuntivaImpl.setFileEntryId(fileEntryId); - docAggiuntivaImpl.setOldFileEntryId(oldFileEntryId); if (descrizione == null) { docAggiuntivaImpl.setDescrizione(StringPool.BLANK); @@ -142,7 +139,6 @@ public class DocAggiuntivaCacheModel implements CacheModel, intPraticaId = objectInput.readLong(); dettPraticaId = objectInput.readLong(); fileEntryId = objectInput.readLong(); - oldFileEntryId = objectInput.readLong(); descrizione = objectInput.readUTF(); feVisible = objectInput.readBoolean(); } @@ -174,7 +170,6 @@ public class DocAggiuntivaCacheModel implements CacheModel, objectOutput.writeLong(intPraticaId); objectOutput.writeLong(dettPraticaId); objectOutput.writeLong(fileEntryId); - objectOutput.writeLong(oldFileEntryId); if (descrizione == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -197,7 +192,6 @@ public class DocAggiuntivaCacheModel implements CacheModel, public long intPraticaId; public long dettPraticaId; public long fileEntryId; - public long oldFileEntryId; public String descrizione; public boolean feVisible; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java index a695adb8..62386339 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -18,30 +18,28 @@ import com.liferay.portlet.documentlibrary.model.DLFileEntry; import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil; /** - * The extended model implementation for the DocAggiuntiva service. Represents a - * row in the "portos_bo_DocAggiuntiva" database table, with each - * column mapped to a property of this class. + * The extended model implementation for the DocAggiuntiva service. Represents a row in the + * "portos_bo_DocAggiuntiva" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a doc - * aggiuntiva model instance should use the {@link - * it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a doc aggiuntiva model instance + * should use the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead. */ public DocAggiuntivaImpl() { } + @Override public String getFileName() throws PortalException, SystemException { + DLFileEntry file = DLFileEntryServiceUtil.getFileEntry(getFileEntryId()); return file.getDescription(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaModelImpl.java index 5a49950c..7dafaf2f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaModelImpl.java @@ -78,11 +78,10 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl { "intPraticaId", Types.BIGINT }, { "dettPraticaId", Types.BIGINT }, { "fileEntryId", Types.BIGINT }, - { "oldFileEntryId", Types.BIGINT }, { "descrizione", Types.VARCHAR }, { "feVisible", Types.BOOLEAN } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_DocAggiuntiva (uuid_ VARCHAR(75) null,docAggiuntivaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,dettPraticaId LONG,fileEntryId LONG,oldFileEntryId LONG,descrizione STRING null,feVisible BOOLEAN)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_DocAggiuntiva (uuid_ VARCHAR(75) null,docAggiuntivaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,dettPraticaId LONG,fileEntryId LONG,descrizione STRING null,feVisible BOOLEAN)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_DocAggiuntiva"; public static final String ORDER_BY_JPQL = " ORDER BY docAggiuntiva.docAggiuntivaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_DocAggiuntiva.docAggiuntivaId ASC"; @@ -103,9 +102,8 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl public static long FEVISIBLE_COLUMN_BITMASK = 4L; public static long GROUPID_COLUMN_BITMASK = 8L; public static long INTPRATICAID_COLUMN_BITMASK = 16L; - public static long OLDFILEENTRYID_COLUMN_BITMASK = 32L; - public static long UUID_COLUMN_BITMASK = 64L; - public static long DOCAGGIUNTIVAID_COLUMN_BITMASK = 128L; + public static long UUID_COLUMN_BITMASK = 32L; + public static long DOCAGGIUNTIVAID_COLUMN_BITMASK = 64L; /** * Converts the soap model instance into a normal model instance. @@ -131,7 +129,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl model.setIntPraticaId(soapModel.getIntPraticaId()); model.setDettPraticaId(soapModel.getDettPraticaId()); model.setFileEntryId(soapModel.getFileEntryId()); - model.setOldFileEntryId(soapModel.getOldFileEntryId()); model.setDescrizione(soapModel.getDescrizione()); model.setFeVisible(soapModel.getFeVisible()); @@ -209,7 +206,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl attributes.put("intPraticaId", getIntPraticaId()); attributes.put("dettPraticaId", getDettPraticaId()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("descrizione", getDescrizione()); attributes.put("feVisible", getFeVisible()); @@ -284,12 +280,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String descrizione = (String)attributes.get("descrizione"); if (descrizione != null) { @@ -500,29 +490,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl _fileEntryId = fileEntryId; } - @JSON - @Override - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _columnBitmask |= OLDFILEENTRYID_COLUMN_BITMASK; - - if (!_setOriginalOldFileEntryId) { - _setOriginalOldFileEntryId = true; - - _originalOldFileEntryId = _oldFileEntryId; - } - - _oldFileEntryId = oldFileEntryId; - } - - public long getOriginalOldFileEntryId() { - return _originalOldFileEntryId; - } - @JSON @Override public String getDescrizione() { @@ -615,7 +582,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl docAggiuntivaImpl.setIntPraticaId(getIntPraticaId()); docAggiuntivaImpl.setDettPraticaId(getDettPraticaId()); docAggiuntivaImpl.setFileEntryId(getFileEntryId()); - docAggiuntivaImpl.setOldFileEntryId(getOldFileEntryId()); docAggiuntivaImpl.setDescrizione(getDescrizione()); docAggiuntivaImpl.setFeVisible(getFeVisible()); @@ -688,10 +654,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl docAggiuntivaModelImpl._setOriginalDettPraticaId = false; - docAggiuntivaModelImpl._originalOldFileEntryId = docAggiuntivaModelImpl._oldFileEntryId; - - docAggiuntivaModelImpl._setOriginalOldFileEntryId = false; - docAggiuntivaModelImpl._originalFeVisible = docAggiuntivaModelImpl._feVisible; docAggiuntivaModelImpl._setOriginalFeVisible = false; @@ -751,8 +713,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl docAggiuntivaCacheModel.fileEntryId = getFileEntryId(); - docAggiuntivaCacheModel.oldFileEntryId = getOldFileEntryId(); - docAggiuntivaCacheModel.descrizione = getDescrizione(); String descrizione = docAggiuntivaCacheModel.descrizione; @@ -768,7 +728,7 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(29); + StringBundler sb = new StringBundler(27); sb.append("{uuid="); sb.append(getUuid()); @@ -792,8 +752,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl sb.append(getDettPraticaId()); sb.append(", fileEntryId="); sb.append(getFileEntryId()); - sb.append(", oldFileEntryId="); - sb.append(getOldFileEntryId()); sb.append(", descrizione="); sb.append(getDescrizione()); sb.append(", feVisible="); @@ -805,7 +763,7 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(46); + StringBundler sb = new StringBundler(43); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DocAggiuntiva"); @@ -855,10 +813,6 @@ public class DocAggiuntivaModelImpl extends BaseModelImpl "fileEntryId"); - sb.append( - "oldFileEntryId"); sb.append( "descrizione private long _originalDettPraticaId; private boolean _setOriginalDettPraticaId; private long _fileEntryId; - private long _oldFileEntryId; - private long _originalOldFileEntryId; - private boolean _setOriginalOldFileEntryId; private String _descrizione; private boolean _feVisible; private boolean _originalFeVisible; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaCacheModel.java index 6a7265da..603e7765 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaCacheModel.java @@ -38,7 +38,7 @@ public class DocPraticaCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(49); sb.append("{uuid="); sb.append(uuid); @@ -64,8 +64,6 @@ public class DocPraticaCacheModel implements CacheModel, sb.append(intPraticaId); sb.append(", dlFileEntryId="); sb.append(dlFileEntryId); - sb.append(", oldDlFileEntryId="); - sb.append(oldDlFileEntryId); sb.append(", version="); sb.append(version); sb.append(", praticaValidata="); @@ -76,8 +74,6 @@ public class DocPraticaCacheModel implements CacheModel, sb.append(tipologia); sb.append(", sha256="); sb.append(sha256); - sb.append(", md5="); - sb.append(md5); sb.append(", aggiornato="); sb.append(aggiornato); sb.append(", jsonFirmatari="); @@ -86,8 +82,6 @@ public class DocPraticaCacheModel implements CacheModel, sb.append(status); sb.append(", errorCode="); sb.append(errorCode); - sb.append(", oldDocPraticaId="); - sb.append(oldDocPraticaId); sb.append(", rimosso="); sb.append(rimosso); sb.append(", dettPraticaIdRimozione="); @@ -147,7 +141,6 @@ public class DocPraticaCacheModel implements CacheModel, docPraticaImpl.setIntPraticaId(intPraticaId); docPraticaImpl.setDlFileEntryId(dlFileEntryId); - docPraticaImpl.setOldDlFileEntryId(oldDlFileEntryId); if (version == null) { docPraticaImpl.setVersion(StringPool.BLANK); @@ -179,13 +172,6 @@ public class DocPraticaCacheModel implements CacheModel, docPraticaImpl.setSha256(sha256); } - if (md5 == null) { - docPraticaImpl.setMd5(StringPool.BLANK); - } - else { - docPraticaImpl.setMd5(md5); - } - docPraticaImpl.setAggiornato(aggiornato); if (jsonFirmatari == null) { @@ -204,7 +190,6 @@ public class DocPraticaCacheModel implements CacheModel, docPraticaImpl.setErrorCode(errorCode); } - docPraticaImpl.setOldDocPraticaId(oldDocPraticaId); docPraticaImpl.setRimosso(rimosso); docPraticaImpl.setDettPraticaIdRimozione(dettPraticaIdRimozione); @@ -234,18 +219,15 @@ public class DocPraticaCacheModel implements CacheModel, className = objectInput.readUTF(); intPraticaId = objectInput.readLong(); dlFileEntryId = objectInput.readLong(); - oldDlFileEntryId = objectInput.readLong(); version = objectInput.readUTF(); praticaValidata = objectInput.readBoolean(); descLong = objectInput.readUTF(); tipologia = objectInput.readUTF(); sha256 = objectInput.readUTF(); - md5 = objectInput.readUTF(); aggiornato = objectInput.readBoolean(); jsonFirmatari = objectInput.readUTF(); status = objectInput.readLong(); errorCode = objectInput.readUTF(); - oldDocPraticaId = objectInput.readLong(); rimosso = objectInput.readBoolean(); dettPraticaIdRimozione = objectInput.readLong(); dtDataRimozione = objectInput.readLong(); @@ -286,7 +268,6 @@ public class DocPraticaCacheModel implements CacheModel, objectOutput.writeLong(intPraticaId); objectOutput.writeLong(dlFileEntryId); - objectOutput.writeLong(oldDlFileEntryId); if (version == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -318,13 +299,6 @@ public class DocPraticaCacheModel implements CacheModel, objectOutput.writeUTF(sha256); } - if (md5 == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(md5); - } - objectOutput.writeBoolean(aggiornato); if (jsonFirmatari == null) { @@ -343,7 +317,6 @@ public class DocPraticaCacheModel implements CacheModel, objectOutput.writeUTF(errorCode); } - objectOutput.writeLong(oldDocPraticaId); objectOutput.writeBoolean(rimosso); objectOutput.writeLong(dettPraticaIdRimozione); objectOutput.writeLong(dtDataRimozione); @@ -361,18 +334,15 @@ public class DocPraticaCacheModel implements CacheModel, public String className; public long intPraticaId; public long dlFileEntryId; - public long oldDlFileEntryId; public String version; public boolean praticaValidata; public String descLong; public String tipologia; public String sha256; - public String md5; public boolean aggiornato; public String jsonFirmatari; public long status; public String errorCode; - public long oldDocPraticaId; public boolean rimosso; public long dettPraticaIdRimozione; public long dtDataRimozione; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java index 8ca8e2d2..d730282e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -24,41 +24,41 @@ import com.liferay.portlet.documentlibrary.util.DLUtil; /** * The extended model implementation for the DocPratica service. Represents a row in the - * "portos_bo_DocPratica" database table, with each column mapped to a property of this - * class. + * "portos_bo_DocPratica" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, - * rerun ServiceBuilder to copy their definitions into the - * {@link it.tref.liferay.portos.bo.model.DocPratica} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.DocPratica} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class DocPraticaImpl extends DocPraticaBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a doc pratica model instance - * should use the {@link it.tref.liferay.portos.bo.model.DocPratica} interface instead. - */ - public DocPraticaImpl() {} + /* + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a doc pratica model instance + * should use the {@link it.tref.liferay.portos.bo.model.DocPratica} interface instead. + */ + public DocPraticaImpl() { + } - @Override - public String getFileName() throws PortalException, SystemException { - if (Validator.isNull(getDlFileEntryId())) { - return "Da importare"; - } - DLFileEntry file = DLFileEntryServiceUtil.getFileEntry(getDlFileEntryId()); - return file.getTitle(); - } + @Override + public String getFileName() throws PortalException, SystemException { - public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException { - if (Validator.isNull(getDlFileEntryId())) { - return "Da importare"; - } - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getDlFileEntryId()); - return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); - } + if (Validator.isNull(getDlFileEntryId())) { + return "Da importare"; + } + DLFileEntry file = DLFileEntryServiceUtil.getFileEntry(getDlFileEntryId()); + return file.getTitle(); + } + @Override + public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException { + + if (Validator.isNull(getDlFileEntryId())) { + return "Da importare"; + } + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getDlFileEntryId()); + return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaModelImpl.java index 8ba381cf..278b0afc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaModelImpl.java @@ -79,23 +79,20 @@ public class DocPraticaModelImpl extends BaseModelImpl { "className", Types.VARCHAR }, { "intPraticaId", Types.BIGINT }, { "dlFileEntryId", Types.BIGINT }, - { "oldDlFileEntryId", Types.BIGINT }, { "version", Types.VARCHAR }, { "praticaValidata", Types.BOOLEAN }, { "descLong", Types.VARCHAR }, { "tipologia", Types.VARCHAR }, { "sha256", Types.VARCHAR }, - { "md5", Types.VARCHAR }, { "aggiornato", Types.BOOLEAN }, { "jsonFirmatari", Types.CLOB }, { "status", Types.BIGINT }, { "errorCode", Types.VARCHAR }, - { "oldDocPraticaId", Types.BIGINT }, { "rimosso", Types.BOOLEAN }, { "dettPraticaIdRimozione", Types.BIGINT }, { "dtDataRimozione", Types.TIMESTAMP } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_DocPratica (uuid_ VARCHAR(75) null,docPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,classPk LONG,className VARCHAR(75) null,intPraticaId LONG,dlFileEntryId LONG,oldDlFileEntryId LONG,version VARCHAR(75) null,praticaValidata BOOLEAN,descLong VARCHAR(500) null,tipologia VARCHAR(10) null,sha256 VARCHAR(75) null,md5 VARCHAR(75) null,aggiornato BOOLEAN,jsonFirmatari TEXT null,status LONG,errorCode VARCHAR(75) null,oldDocPraticaId LONG,rimosso BOOLEAN,dettPraticaIdRimozione LONG,dtDataRimozione DATE null)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_DocPratica (uuid_ VARCHAR(75) null,docPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,classPk LONG,className VARCHAR(75) null,intPraticaId LONG,dlFileEntryId LONG,version VARCHAR(75) null,praticaValidata BOOLEAN,descLong VARCHAR(500) null,tipologia VARCHAR(10) null,sha256 VARCHAR(75) null,aggiornato BOOLEAN,jsonFirmatari TEXT null,status LONG,errorCode VARCHAR(75) null,rimosso BOOLEAN,dettPraticaIdRimozione LONG,dtDataRimozione DATE null)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_DocPratica"; public static final String ORDER_BY_JPQL = " ORDER BY docPratica.docPraticaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_DocPratica.docPraticaId ASC"; @@ -116,12 +113,11 @@ public class DocPraticaModelImpl extends BaseModelImpl public static long DLFILEENTRYID_COLUMN_BITMASK = 4L; public static long GROUPID_COLUMN_BITMASK = 8L; public static long INTPRATICAID_COLUMN_BITMASK = 16L; - public static long OLDDOCPRATICAID_COLUMN_BITMASK = 32L; - public static long STATUS_COLUMN_BITMASK = 64L; - public static long TIPOLOGIA_COLUMN_BITMASK = 128L; - public static long UUID_COLUMN_BITMASK = 256L; - public static long VERSION_COLUMN_BITMASK = 512L; - public static long DOCPRATICAID_COLUMN_BITMASK = 1024L; + public static long STATUS_COLUMN_BITMASK = 32L; + public static long TIPOLOGIA_COLUMN_BITMASK = 64L; + public static long UUID_COLUMN_BITMASK = 128L; + public static long VERSION_COLUMN_BITMASK = 256L; + public static long DOCPRATICAID_COLUMN_BITMASK = 512L; /** * Converts the soap model instance into a normal model instance. @@ -148,18 +144,15 @@ public class DocPraticaModelImpl extends BaseModelImpl model.setClassName(soapModel.getClassName()); model.setIntPraticaId(soapModel.getIntPraticaId()); model.setDlFileEntryId(soapModel.getDlFileEntryId()); - model.setOldDlFileEntryId(soapModel.getOldDlFileEntryId()); model.setVersion(soapModel.getVersion()); model.setPraticaValidata(soapModel.getPraticaValidata()); model.setDescLong(soapModel.getDescLong()); model.setTipologia(soapModel.getTipologia()); model.setSha256(soapModel.getSha256()); - model.setMd5(soapModel.getMd5()); model.setAggiornato(soapModel.getAggiornato()); model.setJsonFirmatari(soapModel.getJsonFirmatari()); model.setStatus(soapModel.getStatus()); model.setErrorCode(soapModel.getErrorCode()); - model.setOldDocPraticaId(soapModel.getOldDocPraticaId()); model.setRimosso(soapModel.getRimosso()); model.setDettPraticaIdRimozione(soapModel.getDettPraticaIdRimozione()); model.setDtDataRimozione(soapModel.getDtDataRimozione()); @@ -239,18 +232,15 @@ public class DocPraticaModelImpl extends BaseModelImpl attributes.put("className", getClassName()); attributes.put("intPraticaId", getIntPraticaId()); attributes.put("dlFileEntryId", getDlFileEntryId()); - attributes.put("oldDlFileEntryId", getOldDlFileEntryId()); attributes.put("version", getVersion()); attributes.put("praticaValidata", getPraticaValidata()); attributes.put("descLong", getDescLong()); attributes.put("tipologia", getTipologia()); attributes.put("sha256", getSha256()); - attributes.put("md5", getMd5()); attributes.put("aggiornato", getAggiornato()); attributes.put("jsonFirmatari", getJsonFirmatari()); attributes.put("status", getStatus()); attributes.put("errorCode", getErrorCode()); - attributes.put("oldDocPraticaId", getOldDocPraticaId()); attributes.put("rimosso", getRimosso()); attributes.put("dettPraticaIdRimozione", getDettPraticaIdRimozione()); attributes.put("dtDataRimozione", getDtDataRimozione()); @@ -332,12 +322,6 @@ public class DocPraticaModelImpl extends BaseModelImpl setDlFileEntryId(dlFileEntryId); } - Long oldDlFileEntryId = (Long)attributes.get("oldDlFileEntryId"); - - if (oldDlFileEntryId != null) { - setOldDlFileEntryId(oldDlFileEntryId); - } - String version = (String)attributes.get("version"); if (version != null) { @@ -368,12 +352,6 @@ public class DocPraticaModelImpl extends BaseModelImpl setSha256(sha256); } - String md5 = (String)attributes.get("md5"); - - if (md5 != null) { - setMd5(md5); - } - Boolean aggiornato = (Boolean)attributes.get("aggiornato"); if (aggiornato != null) { @@ -398,12 +376,6 @@ public class DocPraticaModelImpl extends BaseModelImpl setErrorCode(errorCode); } - Long oldDocPraticaId = (Long)attributes.get("oldDocPraticaId"); - - if (oldDocPraticaId != null) { - setOldDocPraticaId(oldDocPraticaId); - } - Boolean rimosso = (Boolean)attributes.get("rimosso"); if (rimosso != null) { @@ -649,17 +621,6 @@ public class DocPraticaModelImpl extends BaseModelImpl return _originalDlFileEntryId; } - @JSON - @Override - public long getOldDlFileEntryId() { - return _oldDlFileEntryId; - } - - @Override - public void setOldDlFileEntryId(long oldDlFileEntryId) { - _oldDlFileEntryId = oldDlFileEntryId; - } - @JSON @Override public String getVersion() { @@ -760,22 +721,6 @@ public class DocPraticaModelImpl extends BaseModelImpl _sha256 = sha256; } - @JSON - @Override - public String getMd5() { - if (_md5 == null) { - return StringPool.BLANK; - } - else { - return _md5; - } - } - - @Override - public void setMd5(String md5) { - _md5 = md5; - } - @JSON @Override public boolean getAggiornato() { @@ -847,29 +792,6 @@ public class DocPraticaModelImpl extends BaseModelImpl _errorCode = errorCode; } - @JSON - @Override - public long getOldDocPraticaId() { - return _oldDocPraticaId; - } - - @Override - public void setOldDocPraticaId(long oldDocPraticaId) { - _columnBitmask |= OLDDOCPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalOldDocPraticaId) { - _setOriginalOldDocPraticaId = true; - - _originalOldDocPraticaId = _oldDocPraticaId; - } - - _oldDocPraticaId = oldDocPraticaId; - } - - public long getOriginalOldDocPraticaId() { - return _originalOldDocPraticaId; - } - @JSON @Override public boolean getRimosso() { @@ -957,18 +879,15 @@ public class DocPraticaModelImpl extends BaseModelImpl docPraticaImpl.setClassName(getClassName()); docPraticaImpl.setIntPraticaId(getIntPraticaId()); docPraticaImpl.setDlFileEntryId(getDlFileEntryId()); - docPraticaImpl.setOldDlFileEntryId(getOldDlFileEntryId()); docPraticaImpl.setVersion(getVersion()); docPraticaImpl.setPraticaValidata(getPraticaValidata()); docPraticaImpl.setDescLong(getDescLong()); docPraticaImpl.setTipologia(getTipologia()); docPraticaImpl.setSha256(getSha256()); - docPraticaImpl.setMd5(getMd5()); docPraticaImpl.setAggiornato(getAggiornato()); docPraticaImpl.setJsonFirmatari(getJsonFirmatari()); docPraticaImpl.setStatus(getStatus()); docPraticaImpl.setErrorCode(getErrorCode()); - docPraticaImpl.setOldDocPraticaId(getOldDocPraticaId()); docPraticaImpl.setRimosso(getRimosso()); docPraticaImpl.setDettPraticaIdRimozione(getDettPraticaIdRimozione()); docPraticaImpl.setDtDataRimozione(getDtDataRimozione()); @@ -1054,10 +973,6 @@ public class DocPraticaModelImpl extends BaseModelImpl docPraticaModelImpl._setOriginalStatus = false; - docPraticaModelImpl._originalOldDocPraticaId = docPraticaModelImpl._oldDocPraticaId; - - docPraticaModelImpl._setOriginalOldDocPraticaId = false; - docPraticaModelImpl._columnBitmask = 0; } @@ -1121,8 +1036,6 @@ public class DocPraticaModelImpl extends BaseModelImpl docPraticaCacheModel.dlFileEntryId = getDlFileEntryId(); - docPraticaCacheModel.oldDlFileEntryId = getOldDlFileEntryId(); - docPraticaCacheModel.version = getVersion(); String version = docPraticaCacheModel.version; @@ -1157,14 +1070,6 @@ public class DocPraticaModelImpl extends BaseModelImpl docPraticaCacheModel.sha256 = null; } - docPraticaCacheModel.md5 = getMd5(); - - String md5 = docPraticaCacheModel.md5; - - if ((md5 != null) && (md5.length() == 0)) { - docPraticaCacheModel.md5 = null; - } - docPraticaCacheModel.aggiornato = getAggiornato(); docPraticaCacheModel.jsonFirmatari = getJsonFirmatari(); @@ -1185,8 +1090,6 @@ public class DocPraticaModelImpl extends BaseModelImpl docPraticaCacheModel.errorCode = null; } - docPraticaCacheModel.oldDocPraticaId = getOldDocPraticaId(); - docPraticaCacheModel.rimosso = getRimosso(); docPraticaCacheModel.dettPraticaIdRimozione = getDettPraticaIdRimozione(); @@ -1205,7 +1108,7 @@ public class DocPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(49); sb.append("{uuid="); sb.append(getUuid()); @@ -1231,8 +1134,6 @@ public class DocPraticaModelImpl extends BaseModelImpl sb.append(getIntPraticaId()); sb.append(", dlFileEntryId="); sb.append(getDlFileEntryId()); - sb.append(", oldDlFileEntryId="); - sb.append(getOldDlFileEntryId()); sb.append(", version="); sb.append(getVersion()); sb.append(", praticaValidata="); @@ -1243,8 +1144,6 @@ public class DocPraticaModelImpl extends BaseModelImpl sb.append(getTipologia()); sb.append(", sha256="); sb.append(getSha256()); - sb.append(", md5="); - sb.append(getMd5()); sb.append(", aggiornato="); sb.append(getAggiornato()); sb.append(", jsonFirmatari="); @@ -1253,8 +1152,6 @@ public class DocPraticaModelImpl extends BaseModelImpl sb.append(getStatus()); sb.append(", errorCode="); sb.append(getErrorCode()); - sb.append(", oldDocPraticaId="); - sb.append(getOldDocPraticaId()); sb.append(", rimosso="); sb.append(getRimosso()); sb.append(", dettPraticaIdRimozione="); @@ -1268,7 +1165,7 @@ public class DocPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(85); + StringBundler sb = new StringBundler(76); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.DocPratica"); @@ -1322,10 +1219,6 @@ public class DocPraticaModelImpl extends BaseModelImpl "dlFileEntryId"); - sb.append( - "oldDlFileEntryId"); sb.append( "version "sha256"); - sb.append( - "md5"); sb.append( "aggiornato "errorCode"); - sb.append( - "oldDocPraticaId"); sb.append( "rimosso private long _dlFileEntryId; private long _originalDlFileEntryId; private boolean _setOriginalDlFileEntryId; - private long _oldDlFileEntryId; private String _version; private String _originalVersion; private boolean _praticaValidata; @@ -1424,16 +1308,12 @@ public class DocPraticaModelImpl extends BaseModelImpl private String _tipologia; private String _originalTipologia; private String _sha256; - private String _md5; private boolean _aggiornato; private String _jsonFirmatari; private long _status; private long _originalStatus; private boolean _setOriginalStatus; private String _errorCode; - private long _oldDocPraticaId; - private long _originalOldDocPraticaId; - private boolean _setOriginalOldDocPraticaId; private boolean _rimosso; private long _dettPraticaIdRimozione; private Date _dtDataRimozione; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriCacheModel.java index 52c3ac6e..ff18c98d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriCacheModel.java @@ -38,7 +38,7 @@ public class FineLavoriCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(53); sb.append("{uuid="); sb.append(uuid); @@ -92,8 +92,6 @@ public class FineLavoriCacheModel implements CacheModel, sb.append(mezzoPagamento); sb.append(", importoBolli="); sb.append(importoBolli); - sb.append(", oldDettPraticaId="); - sb.append(oldDettPraticaId); sb.append("}"); return sb.toString(); @@ -218,8 +216,6 @@ public class FineLavoriCacheModel implements CacheModel, fineLavoriImpl.setImportoBolli(importoBolli); } - fineLavoriImpl.setOldDettPraticaId(oldDettPraticaId); - fineLavoriImpl.resetOriginalValues(); return fineLavoriImpl; @@ -253,7 +249,6 @@ public class FineLavoriCacheModel implements CacheModel, causalePagamento = objectInput.readUTF(); mezzoPagamento = objectInput.readUTF(); importoBolli = objectInput.readUTF(); - oldDettPraticaId = objectInput.readLong(); } @Override @@ -343,8 +338,6 @@ public class FineLavoriCacheModel implements CacheModel, else { objectOutput.writeUTF(importoBolli); } - - objectOutput.writeLong(oldDettPraticaId); } public String uuid; @@ -373,5 +366,4 @@ public class FineLavoriCacheModel implements CacheModel, public String causalePagamento; public String mezzoPagamento; public String importoBolli; - public long oldDettPraticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java index 9753c4e1..bb940a75 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -28,18 +28,17 @@ import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; /** - * The extended model implementation for the FineLavori service. Represents a - * row in the "portos_bo_FineLavori" database table, with each column - * mapped to a property of this class. + * The extended model implementation for the FineLavori service. Represents a row in the + * "portos_bo_FineLavori" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class FineLavoriImpl extends FineLavoriBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -58,50 +57,31 @@ public class FineLavoriImpl extends FineLavoriBaseImpl { public String getTitle(Locale locale) { StringBuilder sb = new StringBuilder(); - try { - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); - // sb.append("Progetto "); if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { sb.append("Deposito "); } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { sb.append("Autorizzazione "); } sb.append("n. "); - - if (Validator.isNotNull(getProtocollo())) { - sb.append(intPratica.getNumeroProgetto()); - - // TODO da decidere che data, per adesso si mette quella di - // creazione il numero protocollo sbagliato dovrebbe essere il - // primo - sb.append(" del "); - sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica())); - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); - sb.append(" id "); - sb.append(intPratica.getIntPraticaId()); - - } else { + if (Validator.isNull(getProtocollo())) { if (Validator.isNotNull(intPratica.getNumeroProgetto())) { - sb.append(intPratica.getNumeroProgetto()); - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); + sb.append(intPratica.getNumeroProgetto()).append(StringPool.SPACE).append(StringPool.DASH) + .append(StringPool.SPACE); } - sb.append(getFineLavoriId()); - sb.append(" (Temporaneo) "); - sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); - sb.append(" id "); - sb.append(intPratica.getIntPraticaId()); + sb.append(getFineLavoriId()).append(" (Temporaneo) - id ").append(intPratica.getIntPraticaId()); + } else { + // TODO da decidere che data, per adesso si mette quella di creazione il numero protocollo sbagliato + // dovrebbe essere il primo + sb.append(intPratica.getNumeroProgetto()).append(" del ") + .append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica())) + .append(" - id ").append(intPratica.getIntPraticaId()); } - - } catch (PortalException e) { - _log.error(e, e); - } catch (SystemException e) { + } catch (PortalException | SystemException e) { _log.error(e, e); } - return sb.toString(); - } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriModelImpl.java index f5a3ec43..ad5d3d95 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriModelImpl.java @@ -92,10 +92,9 @@ public class FineLavoriModelImpl extends BaseModelImpl { "codicePagamento", Types.VARCHAR }, { "causalePagamento", Types.VARCHAR }, { "mezzoPagamento", Types.VARCHAR }, - { "importoBolli", Types.VARCHAR }, - { "oldDettPraticaId", Types.BIGINT } + { "importoBolli", Types.VARCHAR } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_FineLavori (uuid_ VARCHAR(75) null,fineLavoriId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,parziale BOOLEAN,completata BOOLEAN,gestita BOOLEAN,numero LONG,codiceFiscaleDelegato VARCHAR(75) null,dataEffettuazione DATE null,dataFineLavori DATE null,normEsenteBollo BOOLEAN,normEsenteCollaudo BOOLEAN,comunicazioneDirettoreLavori STRING null,pagamentoId LONG,codicePagamento VARCHAR(75) null,causalePagamento VARCHAR(75) null,mezzoPagamento VARCHAR(75) null,importoBolli VARCHAR(75) null,oldDettPraticaId LONG)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_FineLavori (uuid_ VARCHAR(75) null,fineLavoriId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,protocollo VARCHAR(75) null,dtProtocollo DATE null,parziale BOOLEAN,completata BOOLEAN,gestita BOOLEAN,numero LONG,codiceFiscaleDelegato VARCHAR(75) null,dataEffettuazione DATE null,dataFineLavori DATE null,normEsenteBollo BOOLEAN,normEsenteCollaudo BOOLEAN,comunicazioneDirettoreLavori STRING null,pagamentoId LONG,codicePagamento VARCHAR(75) null,causalePagamento VARCHAR(75) null,mezzoPagamento VARCHAR(75) null,importoBolli VARCHAR(75) null)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_FineLavori"; public static final String ORDER_BY_JPQL = " ORDER BY fineLavori.fineLavoriId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_FineLavori.fineLavoriId ASC"; @@ -116,11 +115,10 @@ public class FineLavoriModelImpl extends BaseModelImpl public static long COMPLETATA_COLUMN_BITMASK = 4L; public static long GROUPID_COLUMN_BITMASK = 8L; public static long INTPRATICAID_COLUMN_BITMASK = 16L; - public static long OLDDETTPRATICAID_COLUMN_BITMASK = 32L; - public static long PARZIALE_COLUMN_BITMASK = 64L; - public static long PROTOCOLLO_COLUMN_BITMASK = 128L; - public static long UUID_COLUMN_BITMASK = 256L; - public static long FINELAVORIID_COLUMN_BITMASK = 512L; + public static long PARZIALE_COLUMN_BITMASK = 32L; + public static long PROTOCOLLO_COLUMN_BITMASK = 64L; + public static long UUID_COLUMN_BITMASK = 128L; + public static long FINELAVORIID_COLUMN_BITMASK = 256L; /** * Converts the soap model instance into a normal model instance. @@ -161,7 +159,6 @@ public class FineLavoriModelImpl extends BaseModelImpl model.setCausalePagamento(soapModel.getCausalePagamento()); model.setMezzoPagamento(soapModel.getMezzoPagamento()); model.setImportoBolli(soapModel.getImportoBolli()); - model.setOldDettPraticaId(soapModel.getOldDettPraticaId()); return model; } @@ -253,7 +250,6 @@ public class FineLavoriModelImpl extends BaseModelImpl attributes.put("causalePagamento", getCausalePagamento()); attributes.put("mezzoPagamento", getMezzoPagamento()); attributes.put("importoBolli", getImportoBolli()); - attributes.put("oldDettPraticaId", getOldDettPraticaId()); return attributes; } @@ -418,12 +414,6 @@ public class FineLavoriModelImpl extends BaseModelImpl if (importoBolli != null) { setImportoBolli(importoBolli); } - - Long oldDettPraticaId = (Long)attributes.get("oldDettPraticaId"); - - if (oldDettPraticaId != null) { - setOldDettPraticaId(oldDettPraticaId); - } } @JSON @@ -881,29 +871,6 @@ public class FineLavoriModelImpl extends BaseModelImpl _importoBolli = importoBolli; } - @JSON - @Override - public long getOldDettPraticaId() { - return _oldDettPraticaId; - } - - @Override - public void setOldDettPraticaId(long oldDettPraticaId) { - _columnBitmask |= OLDDETTPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalOldDettPraticaId) { - _setOriginalOldDettPraticaId = true; - - _originalOldDettPraticaId = _oldDettPraticaId; - } - - _oldDettPraticaId = oldDettPraticaId; - } - - public long getOriginalOldDettPraticaId() { - return _originalOldDettPraticaId; - } - @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -967,7 +934,6 @@ public class FineLavoriModelImpl extends BaseModelImpl fineLavoriImpl.setCausalePagamento(getCausalePagamento()); fineLavoriImpl.setMezzoPagamento(getMezzoPagamento()); fineLavoriImpl.setImportoBolli(getImportoBolli()); - fineLavoriImpl.setOldDettPraticaId(getOldDettPraticaId()); fineLavoriImpl.resetOriginalValues(); @@ -1046,10 +1012,6 @@ public class FineLavoriModelImpl extends BaseModelImpl fineLavoriModelImpl._originalCodiceFiscaleDelegato = fineLavoriModelImpl._codiceFiscaleDelegato; - fineLavoriModelImpl._originalOldDettPraticaId = fineLavoriModelImpl._oldDettPraticaId; - - fineLavoriModelImpl._setOriginalOldDettPraticaId = false; - fineLavoriModelImpl._columnBitmask = 0; } @@ -1200,14 +1162,12 @@ public class FineLavoriModelImpl extends BaseModelImpl fineLavoriCacheModel.importoBolli = null; } - fineLavoriCacheModel.oldDettPraticaId = getOldDettPraticaId(); - return fineLavoriCacheModel; } @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(53); sb.append("{uuid="); sb.append(getUuid()); @@ -1261,8 +1221,6 @@ public class FineLavoriModelImpl extends BaseModelImpl sb.append(getMezzoPagamento()); sb.append(", importoBolli="); sb.append(getImportoBolli()); - sb.append(", oldDettPraticaId="); - sb.append(getOldDettPraticaId()); sb.append("}"); return sb.toString(); @@ -1270,7 +1228,7 @@ public class FineLavoriModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(85); + StringBundler sb = new StringBundler(82); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.FineLavori"); @@ -1380,10 +1338,6 @@ public class FineLavoriModelImpl extends BaseModelImpl "importoBolli"); - sb.append( - "oldDettPraticaId"); sb.append(""); @@ -1434,9 +1388,6 @@ public class FineLavoriModelImpl extends BaseModelImpl private String _causalePagamento; private String _mezzoPagamento; private String _importoBolli; - private long _oldDettPraticaId; - private long _originalOldDettPraticaId; - private boolean _setOriginalOldDettPraticaId; private long _columnBitmask; private FineLavori _escapedModel; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/HistoryWorkflowActionImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/HistoryWorkflowActionImpl.java index 6e20f5fd..1b03145a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/HistoryWorkflowActionImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/HistoryWorkflowActionImpl.java @@ -1,34 +1,35 @@ /** * 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) + * 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 + * 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.bo.model.impl; /** - * The extended model implementation for the HistoryWorkflowAction service. Represents a row in the "portos_bo_HistoryWorkflowAction" database table, with each column mapped to a property of this class. + * The extended model implementation for the HistoryWorkflowAction service. Represents a row in the + * "portos_bo_HistoryWorkflowAction" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction} + * interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class HistoryWorkflowActionImpl extends HistoryWorkflowActionBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a history workflow action model instance should use the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a history workflow action model + * instance should use the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction} interface instead. */ public HistoryWorkflowActionImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVModelImpl.java deleted file mode 100644 index 206f13de..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IUVModelImpl.java +++ /dev/null @@ -1,794 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSON; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.ProxyUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.impl.BaseModelImpl; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.util.PortalUtil; - -import com.liferay.portlet.expando.model.ExpandoBridge; -import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil; - -import it.tref.liferay.portos.bo.model.IUV; -import it.tref.liferay.portos.bo.model.IUVModel; -import it.tref.liferay.portos.bo.model.IUVSoap; - -import java.io.Serializable; - -import java.sql.Types; - -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The base model implementation for the IUV service. Represents a row in the "portos_bo_IUV" database table, with each column mapped to a property of this class. - * - *

- * This implementation and its corresponding interface {@link it.tref.liferay.portos.bo.model.IUVModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link IUVImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see IUVImpl - * @see it.tref.liferay.portos.bo.model.IUV - * @see it.tref.liferay.portos.bo.model.IUVModel - * @generated - */ -@JSON(strict = true) -public class IUVModelImpl extends BaseModelImpl implements IUVModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. All methods that expect a i u v model instance should use the {@link it.tref.liferay.portos.bo.model.IUV} interface instead. - */ - public static final String TABLE_NAME = "portos_bo_IUV"; - public static final Object[][] TABLE_COLUMNS = { - { "uuid_", Types.VARCHAR }, - { "iuvId", Types.BIGINT }, - { "companyId", Types.BIGINT }, - { "userId", Types.BIGINT }, - { "userName", Types.VARCHAR }, - { "createDate", Types.TIMESTAMP }, - { "modifiedDate", Types.TIMESTAMP }, - { "groupId", Types.BIGINT }, - { "pagamentoId", Types.BIGINT }, - { "codice", Types.VARCHAR }, - { "tipoPagamento", Types.VARCHAR } - }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_IUV (uuid_ VARCHAR(75) null,iuvId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,pagamentoId LONG,codice VARCHAR(75) null,tipoPagamento VARCHAR(75) null)"; - public static final String TABLE_SQL_DROP = "drop table portos_bo_IUV"; - public static final String ORDER_BY_JPQL = " ORDER BY iuv.iuvId ASC"; - public static final String ORDER_BY_SQL = " ORDER BY portos_bo_IUV.iuvId ASC"; - public static final String DATA_SOURCE = "liferayDataSource"; - public static final String SESSION_FACTORY = "liferaySessionFactory"; - public static final String TX_MANAGER = "liferayTransactionManager"; - public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.entity.cache.enabled.it.tref.liferay.portos.bo.model.IUV"), - true); - public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.finder.cache.enabled.it.tref.liferay.portos.bo.model.IUV"), - true); - public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.column.bitmask.enabled.it.tref.liferay.portos.bo.model.IUV"), - true); - public static long COMPANYID_COLUMN_BITMASK = 1L; - public static long CREATEDATE_COLUMN_BITMASK = 2L; - public static long GROUPID_COLUMN_BITMASK = 4L; - public static long PAGAMENTOID_COLUMN_BITMASK = 8L; - public static long TIPOPAGAMENTO_COLUMN_BITMASK = 16L; - public static long UUID_COLUMN_BITMASK = 32L; - public static long IUVID_COLUMN_BITMASK = 64L; - - /** - * Converts the soap model instance into a normal model instance. - * - * @param soapModel the soap model instance to convert - * @return the normal model instance - */ - public static IUV toModel(IUVSoap soapModel) { - if (soapModel == null) { - return null; - } - - IUV model = new IUVImpl(); - - model.setUuid(soapModel.getUuid()); - model.setIuvId(soapModel.getIuvId()); - model.setCompanyId(soapModel.getCompanyId()); - model.setUserId(soapModel.getUserId()); - model.setUserName(soapModel.getUserName()); - model.setCreateDate(soapModel.getCreateDate()); - model.setModifiedDate(soapModel.getModifiedDate()); - model.setGroupId(soapModel.getGroupId()); - model.setPagamentoId(soapModel.getPagamentoId()); - model.setCodice(soapModel.getCodice()); - model.setTipoPagamento(soapModel.getTipoPagamento()); - - return model; - } - - /** - * Converts the soap model instances into normal model instances. - * - * @param soapModels the soap model instances to convert - * @return the normal model instances - */ - public static List toModels(IUVSoap[] soapModels) { - if (soapModels == null) { - return null; - } - - List models = new ArrayList(soapModels.length); - - for (IUVSoap soapModel : soapModels) { - models.add(toModel(soapModel)); - } - - return models; - } - - public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get( - "lock.expiration.time.it.tref.liferay.portos.bo.model.IUV")); - - public IUVModelImpl() { - } - - @Override - public long getPrimaryKey() { - return _iuvId; - } - - @Override - public void setPrimaryKey(long primaryKey) { - setIuvId(primaryKey); - } - - @Override - public Serializable getPrimaryKeyObj() { - return _iuvId; - } - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj) { - setPrimaryKey(((Long)primaryKeyObj).longValue()); - } - - @Override - public Class getModelClass() { - return IUV.class; - } - - @Override - public String getModelClassName() { - return IUV.class.getName(); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("iuvId", getIuvId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("pagamentoId", getPagamentoId()); - attributes.put("codice", getCodice()); - attributes.put("tipoPagamento", getTipoPagamento()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long iuvId = (Long)attributes.get("iuvId"); - - if (iuvId != null) { - setIuvId(iuvId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Long pagamentoId = (Long)attributes.get("pagamentoId"); - - if (pagamentoId != null) { - setPagamentoId(pagamentoId); - } - - String codice = (String)attributes.get("codice"); - - if (codice != null) { - setCodice(codice); - } - - String tipoPagamento = (String)attributes.get("tipoPagamento"); - - if (tipoPagamento != null) { - setTipoPagamento(tipoPagamento); - } - } - - @JSON - @Override - public String getUuid() { - if (_uuid == null) { - return StringPool.BLANK; - } - else { - return _uuid; - } - } - - @Override - public void setUuid(String uuid) { - if (_originalUuid == null) { - _originalUuid = _uuid; - } - - _uuid = uuid; - } - - public String getOriginalUuid() { - return GetterUtil.getString(_originalUuid); - } - - @JSON - @Override - public long getIuvId() { - return _iuvId; - } - - @Override - public void setIuvId(long iuvId) { - _iuvId = iuvId; - } - - @JSON - @Override - public long getCompanyId() { - return _companyId; - } - - @Override - public void setCompanyId(long companyId) { - _columnBitmask |= COMPANYID_COLUMN_BITMASK; - - if (!_setOriginalCompanyId) { - _setOriginalCompanyId = true; - - _originalCompanyId = _companyId; - } - - _companyId = companyId; - } - - public long getOriginalCompanyId() { - return _originalCompanyId; - } - - @JSON - @Override - public long getUserId() { - return _userId; - } - - @Override - public void setUserId(long userId) { - _userId = userId; - } - - @Override - public String getUserUuid() throws SystemException { - return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); - } - - @Override - public void setUserUuid(String userUuid) { - _userUuid = userUuid; - } - - @JSON - @Override - public String getUserName() { - if (_userName == null) { - return StringPool.BLANK; - } - else { - return _userName; - } - } - - @Override - public void setUserName(String userName) { - _userName = userName; - } - - @JSON - @Override - public Date getCreateDate() { - return _createDate; - } - - @Override - public void setCreateDate(Date createDate) { - _columnBitmask |= CREATEDATE_COLUMN_BITMASK; - - if (_originalCreateDate == null) { - _originalCreateDate = _createDate; - } - - _createDate = createDate; - } - - public Date getOriginalCreateDate() { - return _originalCreateDate; - } - - @JSON - @Override - public Date getModifiedDate() { - return _modifiedDate; - } - - @Override - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - } - - @JSON - @Override - public long getGroupId() { - return _groupId; - } - - @Override - public void setGroupId(long groupId) { - _columnBitmask |= GROUPID_COLUMN_BITMASK; - - if (!_setOriginalGroupId) { - _setOriginalGroupId = true; - - _originalGroupId = _groupId; - } - - _groupId = groupId; - } - - public long getOriginalGroupId() { - return _originalGroupId; - } - - @JSON - @Override - public long getPagamentoId() { - return _pagamentoId; - } - - @Override - public void setPagamentoId(long pagamentoId) { - _columnBitmask |= PAGAMENTOID_COLUMN_BITMASK; - - if (!_setOriginalPagamentoId) { - _setOriginalPagamentoId = true; - - _originalPagamentoId = _pagamentoId; - } - - _pagamentoId = pagamentoId; - } - - public long getOriginalPagamentoId() { - return _originalPagamentoId; - } - - @JSON - @Override - public String getCodice() { - if (_codice == null) { - return StringPool.BLANK; - } - else { - return _codice; - } - } - - @Override - public void setCodice(String codice) { - _codice = codice; - } - - @JSON - @Override - public String getTipoPagamento() { - if (_tipoPagamento == null) { - return StringPool.BLANK; - } - else { - return _tipoPagamento; - } - } - - @Override - public void setTipoPagamento(String tipoPagamento) { - _columnBitmask |= TIPOPAGAMENTO_COLUMN_BITMASK; - - if (_originalTipoPagamento == null) { - _originalTipoPagamento = _tipoPagamento; - } - - _tipoPagamento = tipoPagamento; - } - - public String getOriginalTipoPagamento() { - return GetterUtil.getString(_originalTipoPagamento); - } - - @Override - public StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - IUV.class.getName())); - } - - public long getColumnBitmask() { - return _columnBitmask; - } - - @Override - public ExpandoBridge getExpandoBridge() { - return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(), - IUV.class.getName(), getPrimaryKey()); - } - - @Override - public void setExpandoBridgeAttributes(ServiceContext serviceContext) { - ExpandoBridge expandoBridge = getExpandoBridge(); - - expandoBridge.setAttributes(serviceContext); - } - - @Override - public IUV toEscapedModel() { - if (_escapedModel == null) { - _escapedModel = (IUV)ProxyUtil.newProxyInstance(_classLoader, - _escapedModelInterfaces, new AutoEscapeBeanHandler(this)); - } - - return _escapedModel; - } - - @Override - public Object clone() { - IUVImpl iuvImpl = new IUVImpl(); - - iuvImpl.setUuid(getUuid()); - iuvImpl.setIuvId(getIuvId()); - iuvImpl.setCompanyId(getCompanyId()); - iuvImpl.setUserId(getUserId()); - iuvImpl.setUserName(getUserName()); - iuvImpl.setCreateDate(getCreateDate()); - iuvImpl.setModifiedDate(getModifiedDate()); - iuvImpl.setGroupId(getGroupId()); - iuvImpl.setPagamentoId(getPagamentoId()); - iuvImpl.setCodice(getCodice()); - iuvImpl.setTipoPagamento(getTipoPagamento()); - - iuvImpl.resetOriginalValues(); - - return iuvImpl; - } - - @Override - public int compareTo(IUV iuv) { - long primaryKey = iuv.getPrimaryKey(); - - if (getPrimaryKey() < primaryKey) { - return -1; - } - else if (getPrimaryKey() > primaryKey) { - return 1; - } - else { - return 0; - } - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof IUV)) { - return false; - } - - IUV iuv = (IUV)obj; - - long primaryKey = iuv.getPrimaryKey(); - - if (getPrimaryKey() == primaryKey) { - return true; - } - else { - return false; - } - } - - @Override - public int hashCode() { - return (int)getPrimaryKey(); - } - - @Override - public void resetOriginalValues() { - IUVModelImpl iuvModelImpl = this; - - iuvModelImpl._originalUuid = iuvModelImpl._uuid; - - iuvModelImpl._originalCompanyId = iuvModelImpl._companyId; - - iuvModelImpl._setOriginalCompanyId = false; - - iuvModelImpl._originalCreateDate = iuvModelImpl._createDate; - - iuvModelImpl._originalGroupId = iuvModelImpl._groupId; - - iuvModelImpl._setOriginalGroupId = false; - - iuvModelImpl._originalPagamentoId = iuvModelImpl._pagamentoId; - - iuvModelImpl._setOriginalPagamentoId = false; - - iuvModelImpl._originalTipoPagamento = iuvModelImpl._tipoPagamento; - - iuvModelImpl._columnBitmask = 0; - } - - @Override - public CacheModel toCacheModel() { - IUVCacheModel iuvCacheModel = new IUVCacheModel(); - - iuvCacheModel.uuid = getUuid(); - - String uuid = iuvCacheModel.uuid; - - if ((uuid != null) && (uuid.length() == 0)) { - iuvCacheModel.uuid = null; - } - - iuvCacheModel.iuvId = getIuvId(); - - iuvCacheModel.companyId = getCompanyId(); - - iuvCacheModel.userId = getUserId(); - - iuvCacheModel.userName = getUserName(); - - String userName = iuvCacheModel.userName; - - if ((userName != null) && (userName.length() == 0)) { - iuvCacheModel.userName = null; - } - - Date createDate = getCreateDate(); - - if (createDate != null) { - iuvCacheModel.createDate = createDate.getTime(); - } - else { - iuvCacheModel.createDate = Long.MIN_VALUE; - } - - Date modifiedDate = getModifiedDate(); - - if (modifiedDate != null) { - iuvCacheModel.modifiedDate = modifiedDate.getTime(); - } - else { - iuvCacheModel.modifiedDate = Long.MIN_VALUE; - } - - iuvCacheModel.groupId = getGroupId(); - - iuvCacheModel.pagamentoId = getPagamentoId(); - - iuvCacheModel.codice = getCodice(); - - String codice = iuvCacheModel.codice; - - if ((codice != null) && (codice.length() == 0)) { - iuvCacheModel.codice = null; - } - - iuvCacheModel.tipoPagamento = getTipoPagamento(); - - String tipoPagamento = iuvCacheModel.tipoPagamento; - - if ((tipoPagamento != null) && (tipoPagamento.length() == 0)) { - iuvCacheModel.tipoPagamento = null; - } - - return iuvCacheModel; - } - - @Override - public String toString() { - StringBundler sb = new StringBundler(23); - - sb.append("{uuid="); - sb.append(getUuid()); - sb.append(", iuvId="); - sb.append(getIuvId()); - sb.append(", companyId="); - sb.append(getCompanyId()); - sb.append(", userId="); - sb.append(getUserId()); - sb.append(", userName="); - sb.append(getUserName()); - sb.append(", createDate="); - sb.append(getCreateDate()); - sb.append(", modifiedDate="); - sb.append(getModifiedDate()); - sb.append(", groupId="); - sb.append(getGroupId()); - sb.append(", pagamentoId="); - sb.append(getPagamentoId()); - sb.append(", codice="); - sb.append(getCodice()); - sb.append(", tipoPagamento="); - sb.append(getTipoPagamento()); - sb.append("}"); - - return sb.toString(); - } - - @Override - public String toXmlString() { - StringBundler sb = new StringBundler(37); - - sb.append(""); - sb.append("it.tref.liferay.portos.bo.model.IUV"); - sb.append(""); - - sb.append( - "uuid"); - sb.append( - "iuvId"); - sb.append( - "companyId"); - sb.append( - "userId"); - sb.append( - "userName"); - sb.append( - "createDate"); - sb.append( - "modifiedDate"); - sb.append( - "groupId"); - sb.append( - "pagamentoId"); - sb.append( - "codice"); - sb.append( - "tipoPagamento"); - - sb.append(""); - - return sb.toString(); - } - - private static ClassLoader _classLoader = IUV.class.getClassLoader(); - private static Class[] _escapedModelInterfaces = new Class[] { IUV.class }; - private String _uuid; - private String _originalUuid; - private long _iuvId; - private long _companyId; - private long _originalCompanyId; - private boolean _setOriginalCompanyId; - private long _userId; - private String _userUuid; - private String _userName; - private Date _createDate; - private Date _originalCreateDate; - private Date _modifiedDate; - private long _groupId; - private long _originalGroupId; - private boolean _setOriginalGroupId; - private long _pagamentoId; - private long _originalPagamentoId; - private boolean _setOriginalPagamentoId; - private String _codice; - private String _tipoPagamento; - private String _originalTipoPagamento; - private long _columnBitmask; - private IUV _escapedModel; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloBaseImpl.java deleted file mode 100644 index 557ae933..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloBaseImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.exception.SystemException; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; -import it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil; - -/** - * The extended model base implementation for the InfoFascicolo service. Represents a row in the "portos_bo_InfoFascicolo" database table, with each column mapped to a property of this class. - * - *

- * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link InfoFascicoloImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloImpl - * @see it.tref.liferay.portos.bo.model.InfoFascicolo - * @generated - */ -public abstract class InfoFascicoloBaseImpl extends InfoFascicoloModelImpl - implements InfoFascicolo { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. All methods that expect a info fascicolo model instance should use the {@link InfoFascicolo} interface instead. - */ - @Override - public void persist() throws SystemException { - if (this.isNew()) { - InfoFascicoloLocalServiceUtil.addInfoFascicolo(this); - } - else { - InfoFascicoloLocalServiceUtil.updateInfoFascicolo(this); - } - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloCacheModel.java deleted file mode 100644 index 3e724187..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloCacheModel.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.model.CacheModel; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; - -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; - -import java.util.Date; - -/** - * The cache model class for representing InfoFascicolo in entity cache. - * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicolo - * @generated - */ -public class InfoFascicoloCacheModel implements CacheModel, - Externalizable { - @Override - public String toString() { - StringBundler sb = new StringBundler(23); - - sb.append("{uuid="); - sb.append(uuid); - sb.append(", infoFascicoloId="); - sb.append(infoFascicoloId); - sb.append(", companyId="); - sb.append(companyId); - sb.append(", userId="); - sb.append(userId); - sb.append(", userName="); - sb.append(userName); - sb.append(", createDate="); - sb.append(createDate); - sb.append(", modifiedDate="); - sb.append(modifiedDate); - sb.append(", groupId="); - sb.append(groupId); - sb.append(", intPraticaId="); - sb.append(intPraticaId); - sb.append(", numeroProgetto="); - sb.append(numeroProgetto); - sb.append(", alreadyImported="); - sb.append(alreadyImported); - sb.append("}"); - - return sb.toString(); - } - - @Override - public InfoFascicolo toEntityModel() { - InfoFascicoloImpl infoFascicoloImpl = new InfoFascicoloImpl(); - - if (uuid == null) { - infoFascicoloImpl.setUuid(StringPool.BLANK); - } - else { - infoFascicoloImpl.setUuid(uuid); - } - - infoFascicoloImpl.setInfoFascicoloId(infoFascicoloId); - infoFascicoloImpl.setCompanyId(companyId); - infoFascicoloImpl.setUserId(userId); - - if (userName == null) { - infoFascicoloImpl.setUserName(StringPool.BLANK); - } - else { - infoFascicoloImpl.setUserName(userName); - } - - if (createDate == Long.MIN_VALUE) { - infoFascicoloImpl.setCreateDate(null); - } - else { - infoFascicoloImpl.setCreateDate(new Date(createDate)); - } - - if (modifiedDate == Long.MIN_VALUE) { - infoFascicoloImpl.setModifiedDate(null); - } - else { - infoFascicoloImpl.setModifiedDate(new Date(modifiedDate)); - } - - infoFascicoloImpl.setGroupId(groupId); - infoFascicoloImpl.setIntPraticaId(intPraticaId); - - if (numeroProgetto == null) { - infoFascicoloImpl.setNumeroProgetto(StringPool.BLANK); - } - else { - infoFascicoloImpl.setNumeroProgetto(numeroProgetto); - } - - infoFascicoloImpl.setAlreadyImported(alreadyImported); - - infoFascicoloImpl.resetOriginalValues(); - - return infoFascicoloImpl; - } - - @Override - public void readExternal(ObjectInput objectInput) throws IOException { - uuid = objectInput.readUTF(); - infoFascicoloId = objectInput.readLong(); - companyId = objectInput.readLong(); - userId = objectInput.readLong(); - userName = objectInput.readUTF(); - createDate = objectInput.readLong(); - modifiedDate = objectInput.readLong(); - groupId = objectInput.readLong(); - intPraticaId = objectInput.readLong(); - numeroProgetto = objectInput.readUTF(); - alreadyImported = objectInput.readBoolean(); - } - - @Override - public void writeExternal(ObjectOutput objectOutput) - throws IOException { - if (uuid == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(uuid); - } - - objectOutput.writeLong(infoFascicoloId); - objectOutput.writeLong(companyId); - objectOutput.writeLong(userId); - - if (userName == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(userName); - } - - objectOutput.writeLong(createDate); - objectOutput.writeLong(modifiedDate); - objectOutput.writeLong(groupId); - objectOutput.writeLong(intPraticaId); - - if (numeroProgetto == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(numeroProgetto); - } - - objectOutput.writeBoolean(alreadyImported); - } - - public String uuid; - public long infoFascicoloId; - public long companyId; - public long userId; - public String userName; - public long createDate; - public long modifiedDate; - public long groupId; - public long intPraticaId; - public String numeroProgetto; - public boolean alreadyImported; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloImpl.java deleted file mode 100644 index 4ba57ab2..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloImpl.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -/** - * The extended model implementation for the InfoFascicolo service. Represents a row in the "portos_bo_InfoFascicolo" database table, with each column mapped to a property of this class. - * - *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.InfoFascicolo} interface. - *

- * - * @author Davide Barbagallo, 3F Consulting - */ -public class InfoFascicoloImpl extends InfoFascicoloBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a info fascicolo model instance should use the {@link it.tref.liferay.portos.bo.model.InfoFascicolo} interface instead. - */ - public InfoFascicoloImpl() { - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloModelImpl.java deleted file mode 100644 index 1b9a1129..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/InfoFascicoloModelImpl.java +++ /dev/null @@ -1,763 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSON; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.ProxyUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.impl.BaseModelImpl; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.util.PortalUtil; - -import com.liferay.portlet.expando.model.ExpandoBridge; -import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; -import it.tref.liferay.portos.bo.model.InfoFascicoloModel; -import it.tref.liferay.portos.bo.model.InfoFascicoloSoap; - -import java.io.Serializable; - -import java.sql.Types; - -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The base model implementation for the InfoFascicolo service. Represents a row in the "portos_bo_InfoFascicolo" database table, with each column mapped to a property of this class. - * - *

- * This implementation and its corresponding interface {@link it.tref.liferay.portos.bo.model.InfoFascicoloModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link InfoFascicoloImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloImpl - * @see it.tref.liferay.portos.bo.model.InfoFascicolo - * @see it.tref.liferay.portos.bo.model.InfoFascicoloModel - * @generated - */ -@JSON(strict = true) -public class InfoFascicoloModelImpl extends BaseModelImpl - implements InfoFascicoloModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. All methods that expect a info fascicolo model instance should use the {@link it.tref.liferay.portos.bo.model.InfoFascicolo} interface instead. - */ - public static final String TABLE_NAME = "portos_bo_InfoFascicolo"; - public static final Object[][] TABLE_COLUMNS = { - { "uuid_", Types.VARCHAR }, - { "infoFascicoloId", Types.BIGINT }, - { "companyId", Types.BIGINT }, - { "userId", Types.BIGINT }, - { "userName", Types.VARCHAR }, - { "createDate", Types.TIMESTAMP }, - { "modifiedDate", Types.TIMESTAMP }, - { "groupId", Types.BIGINT }, - { "intPraticaId", Types.BIGINT }, - { "numeroProgetto", Types.VARCHAR }, - { "alreadyImported", Types.BOOLEAN } - }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_InfoFascicolo (uuid_ VARCHAR(75) null,infoFascicoloId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,numeroProgetto VARCHAR(75) null,alreadyImported BOOLEAN)"; - public static final String TABLE_SQL_DROP = "drop table portos_bo_InfoFascicolo"; - public static final String ORDER_BY_JPQL = " ORDER BY infoFascicolo.infoFascicoloId ASC"; - public static final String ORDER_BY_SQL = " ORDER BY portos_bo_InfoFascicolo.infoFascicoloId ASC"; - public static final String DATA_SOURCE = "liferayDataSource"; - public static final String SESSION_FACTORY = "liferaySessionFactory"; - public static final String TX_MANAGER = "liferayTransactionManager"; - public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.entity.cache.enabled.it.tref.liferay.portos.bo.model.InfoFascicolo"), - true); - public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.finder.cache.enabled.it.tref.liferay.portos.bo.model.InfoFascicolo"), - true); - public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.column.bitmask.enabled.it.tref.liferay.portos.bo.model.InfoFascicolo"), - true); - public static long COMPANYID_COLUMN_BITMASK = 1L; - public static long GROUPID_COLUMN_BITMASK = 2L; - public static long INTPRATICAID_COLUMN_BITMASK = 4L; - public static long UUID_COLUMN_BITMASK = 8L; - public static long INFOFASCICOLOID_COLUMN_BITMASK = 16L; - - /** - * Converts the soap model instance into a normal model instance. - * - * @param soapModel the soap model instance to convert - * @return the normal model instance - */ - public static InfoFascicolo toModel(InfoFascicoloSoap soapModel) { - if (soapModel == null) { - return null; - } - - InfoFascicolo model = new InfoFascicoloImpl(); - - model.setUuid(soapModel.getUuid()); - model.setInfoFascicoloId(soapModel.getInfoFascicoloId()); - model.setCompanyId(soapModel.getCompanyId()); - model.setUserId(soapModel.getUserId()); - model.setUserName(soapModel.getUserName()); - model.setCreateDate(soapModel.getCreateDate()); - model.setModifiedDate(soapModel.getModifiedDate()); - model.setGroupId(soapModel.getGroupId()); - model.setIntPraticaId(soapModel.getIntPraticaId()); - model.setNumeroProgetto(soapModel.getNumeroProgetto()); - model.setAlreadyImported(soapModel.getAlreadyImported()); - - return model; - } - - /** - * Converts the soap model instances into normal model instances. - * - * @param soapModels the soap model instances to convert - * @return the normal model instances - */ - public static List toModels(InfoFascicoloSoap[] soapModels) { - if (soapModels == null) { - return null; - } - - List models = new ArrayList(soapModels.length); - - for (InfoFascicoloSoap soapModel : soapModels) { - models.add(toModel(soapModel)); - } - - return models; - } - - public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get( - "lock.expiration.time.it.tref.liferay.portos.bo.model.InfoFascicolo")); - - public InfoFascicoloModelImpl() { - } - - @Override - public long getPrimaryKey() { - return _infoFascicoloId; - } - - @Override - public void setPrimaryKey(long primaryKey) { - setInfoFascicoloId(primaryKey); - } - - @Override - public Serializable getPrimaryKeyObj() { - return _infoFascicoloId; - } - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj) { - setPrimaryKey(((Long)primaryKeyObj).longValue()); - } - - @Override - public Class getModelClass() { - return InfoFascicolo.class; - } - - @Override - public String getModelClassName() { - return InfoFascicolo.class.getName(); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("infoFascicoloId", getInfoFascicoloId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("intPraticaId", getIntPraticaId()); - attributes.put("numeroProgetto", getNumeroProgetto()); - attributes.put("alreadyImported", getAlreadyImported()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long infoFascicoloId = (Long)attributes.get("infoFascicoloId"); - - if (infoFascicoloId != null) { - setInfoFascicoloId(infoFascicoloId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Long intPraticaId = (Long)attributes.get("intPraticaId"); - - if (intPraticaId != null) { - setIntPraticaId(intPraticaId); - } - - String numeroProgetto = (String)attributes.get("numeroProgetto"); - - if (numeroProgetto != null) { - setNumeroProgetto(numeroProgetto); - } - - Boolean alreadyImported = (Boolean)attributes.get("alreadyImported"); - - if (alreadyImported != null) { - setAlreadyImported(alreadyImported); - } - } - - @JSON - @Override - public String getUuid() { - if (_uuid == null) { - return StringPool.BLANK; - } - else { - return _uuid; - } - } - - @Override - public void setUuid(String uuid) { - if (_originalUuid == null) { - _originalUuid = _uuid; - } - - _uuid = uuid; - } - - public String getOriginalUuid() { - return GetterUtil.getString(_originalUuid); - } - - @JSON - @Override - public long getInfoFascicoloId() { - return _infoFascicoloId; - } - - @Override - public void setInfoFascicoloId(long infoFascicoloId) { - _infoFascicoloId = infoFascicoloId; - } - - @JSON - @Override - public long getCompanyId() { - return _companyId; - } - - @Override - public void setCompanyId(long companyId) { - _columnBitmask |= COMPANYID_COLUMN_BITMASK; - - if (!_setOriginalCompanyId) { - _setOriginalCompanyId = true; - - _originalCompanyId = _companyId; - } - - _companyId = companyId; - } - - public long getOriginalCompanyId() { - return _originalCompanyId; - } - - @JSON - @Override - public long getUserId() { - return _userId; - } - - @Override - public void setUserId(long userId) { - _userId = userId; - } - - @Override - public String getUserUuid() throws SystemException { - return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); - } - - @Override - public void setUserUuid(String userUuid) { - _userUuid = userUuid; - } - - @JSON - @Override - public String getUserName() { - if (_userName == null) { - return StringPool.BLANK; - } - else { - return _userName; - } - } - - @Override - public void setUserName(String userName) { - _userName = userName; - } - - @JSON - @Override - public Date getCreateDate() { - return _createDate; - } - - @Override - public void setCreateDate(Date createDate) { - _createDate = createDate; - } - - @JSON - @Override - public Date getModifiedDate() { - return _modifiedDate; - } - - @Override - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - } - - @JSON - @Override - public long getGroupId() { - return _groupId; - } - - @Override - public void setGroupId(long groupId) { - _columnBitmask |= GROUPID_COLUMN_BITMASK; - - if (!_setOriginalGroupId) { - _setOriginalGroupId = true; - - _originalGroupId = _groupId; - } - - _groupId = groupId; - } - - public long getOriginalGroupId() { - return _originalGroupId; - } - - @JSON - @Override - public long getIntPraticaId() { - return _intPraticaId; - } - - @Override - public void setIntPraticaId(long intPraticaId) { - _columnBitmask |= INTPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalIntPraticaId) { - _setOriginalIntPraticaId = true; - - _originalIntPraticaId = _intPraticaId; - } - - _intPraticaId = intPraticaId; - } - - public long getOriginalIntPraticaId() { - return _originalIntPraticaId; - } - - @JSON - @Override - public String getNumeroProgetto() { - if (_numeroProgetto == null) { - return StringPool.BLANK; - } - else { - return _numeroProgetto; - } - } - - @Override - public void setNumeroProgetto(String numeroProgetto) { - _numeroProgetto = numeroProgetto; - } - - @JSON - @Override - public boolean getAlreadyImported() { - return _alreadyImported; - } - - @Override - public boolean isAlreadyImported() { - return _alreadyImported; - } - - @Override - public void setAlreadyImported(boolean alreadyImported) { - _alreadyImported = alreadyImported; - } - - @Override - public StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - InfoFascicolo.class.getName())); - } - - public long getColumnBitmask() { - return _columnBitmask; - } - - @Override - public ExpandoBridge getExpandoBridge() { - return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(), - InfoFascicolo.class.getName(), getPrimaryKey()); - } - - @Override - public void setExpandoBridgeAttributes(ServiceContext serviceContext) { - ExpandoBridge expandoBridge = getExpandoBridge(); - - expandoBridge.setAttributes(serviceContext); - } - - @Override - public InfoFascicolo toEscapedModel() { - if (_escapedModel == null) { - _escapedModel = (InfoFascicolo)ProxyUtil.newProxyInstance(_classLoader, - _escapedModelInterfaces, new AutoEscapeBeanHandler(this)); - } - - return _escapedModel; - } - - @Override - public Object clone() { - InfoFascicoloImpl infoFascicoloImpl = new InfoFascicoloImpl(); - - infoFascicoloImpl.setUuid(getUuid()); - infoFascicoloImpl.setInfoFascicoloId(getInfoFascicoloId()); - infoFascicoloImpl.setCompanyId(getCompanyId()); - infoFascicoloImpl.setUserId(getUserId()); - infoFascicoloImpl.setUserName(getUserName()); - infoFascicoloImpl.setCreateDate(getCreateDate()); - infoFascicoloImpl.setModifiedDate(getModifiedDate()); - infoFascicoloImpl.setGroupId(getGroupId()); - infoFascicoloImpl.setIntPraticaId(getIntPraticaId()); - infoFascicoloImpl.setNumeroProgetto(getNumeroProgetto()); - infoFascicoloImpl.setAlreadyImported(getAlreadyImported()); - - infoFascicoloImpl.resetOriginalValues(); - - return infoFascicoloImpl; - } - - @Override - public int compareTo(InfoFascicolo infoFascicolo) { - long primaryKey = infoFascicolo.getPrimaryKey(); - - if (getPrimaryKey() < primaryKey) { - return -1; - } - else if (getPrimaryKey() > primaryKey) { - return 1; - } - else { - return 0; - } - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof InfoFascicolo)) { - return false; - } - - InfoFascicolo infoFascicolo = (InfoFascicolo)obj; - - long primaryKey = infoFascicolo.getPrimaryKey(); - - if (getPrimaryKey() == primaryKey) { - return true; - } - else { - return false; - } - } - - @Override - public int hashCode() { - return (int)getPrimaryKey(); - } - - @Override - public void resetOriginalValues() { - InfoFascicoloModelImpl infoFascicoloModelImpl = this; - - infoFascicoloModelImpl._originalUuid = infoFascicoloModelImpl._uuid; - - infoFascicoloModelImpl._originalCompanyId = infoFascicoloModelImpl._companyId; - - infoFascicoloModelImpl._setOriginalCompanyId = false; - - infoFascicoloModelImpl._originalGroupId = infoFascicoloModelImpl._groupId; - - infoFascicoloModelImpl._setOriginalGroupId = false; - - infoFascicoloModelImpl._originalIntPraticaId = infoFascicoloModelImpl._intPraticaId; - - infoFascicoloModelImpl._setOriginalIntPraticaId = false; - - infoFascicoloModelImpl._columnBitmask = 0; - } - - @Override - public CacheModel toCacheModel() { - InfoFascicoloCacheModel infoFascicoloCacheModel = new InfoFascicoloCacheModel(); - - infoFascicoloCacheModel.uuid = getUuid(); - - String uuid = infoFascicoloCacheModel.uuid; - - if ((uuid != null) && (uuid.length() == 0)) { - infoFascicoloCacheModel.uuid = null; - } - - infoFascicoloCacheModel.infoFascicoloId = getInfoFascicoloId(); - - infoFascicoloCacheModel.companyId = getCompanyId(); - - infoFascicoloCacheModel.userId = getUserId(); - - infoFascicoloCacheModel.userName = getUserName(); - - String userName = infoFascicoloCacheModel.userName; - - if ((userName != null) && (userName.length() == 0)) { - infoFascicoloCacheModel.userName = null; - } - - Date createDate = getCreateDate(); - - if (createDate != null) { - infoFascicoloCacheModel.createDate = createDate.getTime(); - } - else { - infoFascicoloCacheModel.createDate = Long.MIN_VALUE; - } - - Date modifiedDate = getModifiedDate(); - - if (modifiedDate != null) { - infoFascicoloCacheModel.modifiedDate = modifiedDate.getTime(); - } - else { - infoFascicoloCacheModel.modifiedDate = Long.MIN_VALUE; - } - - infoFascicoloCacheModel.groupId = getGroupId(); - - infoFascicoloCacheModel.intPraticaId = getIntPraticaId(); - - infoFascicoloCacheModel.numeroProgetto = getNumeroProgetto(); - - String numeroProgetto = infoFascicoloCacheModel.numeroProgetto; - - if ((numeroProgetto != null) && (numeroProgetto.length() == 0)) { - infoFascicoloCacheModel.numeroProgetto = null; - } - - infoFascicoloCacheModel.alreadyImported = getAlreadyImported(); - - return infoFascicoloCacheModel; - } - - @Override - public String toString() { - StringBundler sb = new StringBundler(23); - - sb.append("{uuid="); - sb.append(getUuid()); - sb.append(", infoFascicoloId="); - sb.append(getInfoFascicoloId()); - sb.append(", companyId="); - sb.append(getCompanyId()); - sb.append(", userId="); - sb.append(getUserId()); - sb.append(", userName="); - sb.append(getUserName()); - sb.append(", createDate="); - sb.append(getCreateDate()); - sb.append(", modifiedDate="); - sb.append(getModifiedDate()); - sb.append(", groupId="); - sb.append(getGroupId()); - sb.append(", intPraticaId="); - sb.append(getIntPraticaId()); - sb.append(", numeroProgetto="); - sb.append(getNumeroProgetto()); - sb.append(", alreadyImported="); - sb.append(getAlreadyImported()); - sb.append("}"); - - return sb.toString(); - } - - @Override - public String toXmlString() { - StringBundler sb = new StringBundler(37); - - sb.append(""); - sb.append("it.tref.liferay.portos.bo.model.InfoFascicolo"); - sb.append(""); - - sb.append( - "uuid"); - sb.append( - "infoFascicoloId"); - sb.append( - "companyId"); - sb.append( - "userId"); - sb.append( - "userName"); - sb.append( - "createDate"); - sb.append( - "modifiedDate"); - sb.append( - "groupId"); - sb.append( - "intPraticaId"); - sb.append( - "numeroProgetto"); - sb.append( - "alreadyImported"); - - sb.append(""); - - return sb.toString(); - } - - private static ClassLoader _classLoader = InfoFascicolo.class.getClassLoader(); - private static Class[] _escapedModelInterfaces = new Class[] { - InfoFascicolo.class - }; - private String _uuid; - private String _originalUuid; - private long _infoFascicoloId; - private long _companyId; - private long _originalCompanyId; - private boolean _setOriginalCompanyId; - private long _userId; - private String _userUuid; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private long _originalGroupId; - private boolean _setOriginalGroupId; - private long _intPraticaId; - private long _originalIntPraticaId; - private boolean _setOriginalIntPraticaId; - private String _numeroProgetto; - private boolean _alreadyImported; - private long _columnBitmask; - private InfoFascicolo _escapedModel; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java index 5d3ccb06..486f854f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaCacheModel.java @@ -38,7 +38,7 @@ public class IntPraticaCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(71); + StringBundler sb = new StringBundler(67); sb.append("{uuid="); sb.append(uuid); @@ -72,8 +72,6 @@ public class IntPraticaCacheModel implements CacheModel, sb.append(docPraticaAnnullamentoId); sb.append(", unitaOperativa="); sb.append(unitaOperativa); - sb.append(", dtSorteggio="); - sb.append(dtSorteggio); sb.append(", statoPratica="); sb.append(statoPratica); sb.append(", numeroProgetto="); @@ -90,8 +88,6 @@ public class IntPraticaCacheModel implements CacheModel, sb.append(esitoControllo); sb.append(", dtPratica="); sb.append(dtPratica); - sb.append(", oldIntPraticaId="); - sb.append(oldIntPraticaId); sb.append(", sospesa="); sb.append(sospesa); sb.append(", dtSospensione="); @@ -182,13 +178,6 @@ public class IntPraticaCacheModel implements CacheModel, intPraticaImpl.setDocPraticaAnnullamentoId(docPraticaAnnullamentoId); intPraticaImpl.setUnitaOperativa(unitaOperativa); - if (dtSorteggio == Long.MIN_VALUE) { - intPraticaImpl.setDtSorteggio(null); - } - else { - intPraticaImpl.setDtSorteggio(new Date(dtSorteggio)); - } - if (statoPratica == null) { intPraticaImpl.setStatoPratica(StringPool.BLANK); } @@ -223,7 +212,6 @@ public class IntPraticaCacheModel implements CacheModel, intPraticaImpl.setDtPratica(new Date(dtPratica)); } - intPraticaImpl.setOldIntPraticaId(oldIntPraticaId); intPraticaImpl.setSospesa(sospesa); if (dtSospensione == Long.MIN_VALUE) { @@ -276,7 +264,6 @@ public class IntPraticaCacheModel implements CacheModel, dtAnnullamento = objectInput.readLong(); docPraticaAnnullamentoId = objectInput.readLong(); unitaOperativa = objectInput.readInt(); - dtSorteggio = objectInput.readLong(); statoPratica = objectInput.readUTF(); numeroProgetto = objectInput.readUTF(); validata = objectInput.readBoolean(); @@ -285,7 +272,6 @@ public class IntPraticaCacheModel implements CacheModel, statusDate = objectInput.readLong(); esitoControllo = objectInput.readInt(); dtPratica = objectInput.readLong(); - oldIntPraticaId = objectInput.readLong(); sospesa = objectInput.readBoolean(); dtSospensione = objectInput.readLong(); codiceFiscaleDelegatoFineLavori = objectInput.readUTF(); @@ -343,7 +329,6 @@ public class IntPraticaCacheModel implements CacheModel, objectOutput.writeLong(dtAnnullamento); objectOutput.writeLong(docPraticaAnnullamentoId); objectOutput.writeInt(unitaOperativa); - objectOutput.writeLong(dtSorteggio); if (statoPratica == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -365,7 +350,6 @@ public class IntPraticaCacheModel implements CacheModel, objectOutput.writeLong(statusDate); objectOutput.writeInt(esitoControllo); objectOutput.writeLong(dtPratica); - objectOutput.writeLong(oldIntPraticaId); objectOutput.writeBoolean(sospesa); objectOutput.writeLong(dtSospensione); @@ -406,7 +390,6 @@ public class IntPraticaCacheModel implements CacheModel, public long dtAnnullamento; public long docPraticaAnnullamentoId; public int unitaOperativa; - public long dtSorteggio; public String statoPratica; public String numeroProgetto; public boolean validata; @@ -415,7 +398,6 @@ public class IntPraticaCacheModel implements CacheModel, public long statusDate; public int esitoControllo; public long dtPratica; - public long oldIntPraticaId; public boolean sospesa; public long dtSospensione; public String codiceFiscaleDelegatoFineLavori; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java index f4ed1962..bd1435c7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -27,6 +27,7 @@ import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.util.Constants; import java.util.Locale; @@ -36,17 +37,16 @@ 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.LocaleUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; /** - * The extended model implementation for the IntPratica service. Represents a - * row in the "portos_bo_IntPratica" database table, with each column - * mapped to a property of this class. + * The extended model implementation for the IntPratica service. Represents a row in the + * "portos_bo_IntPratica" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.IntPratica} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.IntPratica} interface. *

* * @author Davide Barbagallo, 3F Consulting @@ -54,16 +54,14 @@ import com.liferay.portal.kernel.util.Validator; @SuppressWarnings("serial") public class IntPraticaImpl extends IntPraticaBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this class directly. All methods - * that expect a int pratica model instance should use the {@link - * it.tref.liferay.portos.bo.model.IntPratica} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a int pratica model instance + * should use the {@link it.tref.liferay.portos.bo.model.IntPratica} interface instead. */ private static final Log _log = LogFactoryUtil.getLog(IntPraticaImpl.class); private Integer distanzaOrtodromica = null; public IntPraticaImpl() { - } @Override @@ -74,7 +72,6 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { if (completed) { dettPratica = DettPraticaLocalServiceUtil .getLastCompletedByIntPraticaAndProtocolloNotEmpty(getIntPraticaId()); - } else { dettPratica = DettPraticaLocalServiceUtil.getLastEditableByIntPratica(getIntPraticaId()); if (dettPratica == null) { @@ -84,8 +81,7 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { } catch (SystemException e) { _log.error("Error on intPraticaId=" + getIntPraticaId(), e); } - - return Validator.isNotNull(dettPratica) ? dettPratica.getTitle(locale) : "-"; + return Validator.isNull(dettPratica) ? StringPool.DASH : dettPratica.getTitle(locale); } @Override @@ -104,17 +100,12 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { public boolean isChiusa() throws SystemException { boolean completata = false; - DettPratica lastDettPratica = DettPraticaLocalServiceUtil - .getLastCompletedByIntPratica(getIntPraticaId()); - + DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(getIntPraticaId()); if (getCollaudoTotale()) { completata = true; } else if (lastDettPratica != null && lastDettPratica.getCollaudoStatico() && getFineLavoriTotale()) { completata = true; - } else { - completata = false; } - return completata; } @@ -154,4 +145,10 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { public Integer getDistanzaOrtodromica() { return distanzaOrtodromica; } + + public boolean isSanatoria() { + + return getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P8) + || getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P9); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java index 30cbfdd9..6a216d2c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaModelImpl.java @@ -83,7 +83,6 @@ public class IntPraticaModelImpl extends BaseModelImpl { "dtAnnullamento", Types.TIMESTAMP }, { "docPraticaAnnullamentoId", Types.BIGINT }, { "unitaOperativa", Types.INTEGER }, - { "dtSorteggio", Types.TIMESTAMP }, { "statoPratica", Types.VARCHAR }, { "numeroProgetto", Types.VARCHAR }, { "validata", Types.BOOLEAN }, @@ -92,7 +91,6 @@ public class IntPraticaModelImpl extends BaseModelImpl { "statusDate", Types.TIMESTAMP }, { "esitoControllo", Types.INTEGER }, { "dtPratica", Types.TIMESTAMP }, - { "oldIntPraticaId", Types.BIGINT }, { "sospesa", Types.BOOLEAN }, { "dtSospensione", Types.TIMESTAMP }, { "codiceFiscaleDelegatoFineLavori", Types.VARCHAR }, @@ -103,7 +101,7 @@ public class IntPraticaModelImpl extends BaseModelImpl { "collaudoTotale", Types.BOOLEAN }, { "controlloObbligatorio", Types.BOOLEAN } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,latitudine DOUBLE,longitudine DOUBLE,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,unitaOperativa INTEGER,dtSorteggio DATE null,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,oldIntPraticaId LONG,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_IntPratica (uuid_ VARCHAR(75) null,intPraticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,tipoPratica VARCHAR(75) null,territorioId LONG,tipoProcedura VARCHAR(75) null,latitudine DOUBLE,longitudine DOUBLE,dtAnnullamento DATE null,docPraticaAnnullamentoId LONG,unitaOperativa INTEGER,statoPratica VARCHAR(10) null,numeroProgetto VARCHAR(75) null,validata BOOLEAN,status INTEGER,statusByUserId LONG,statusDate DATE null,esitoControllo INTEGER,dtPratica DATE null,sospesa BOOLEAN,dtSospensione DATE null,codiceFiscaleDelegatoFineLavori VARCHAR(75) null,codiceFiscaleDelegatoCollaudo VARCHAR(75) null,fineLavoriParziale BOOLEAN,fineLavoriTotale BOOLEAN,collaudoParziale BOOLEAN,collaudoTotale BOOLEAN,controlloObbligatorio BOOLEAN)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_IntPratica"; public static final String ORDER_BY_JPQL = " ORDER BY intPratica.intPraticaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_IntPratica.intPraticaId ASC"; @@ -122,12 +120,11 @@ public class IntPraticaModelImpl extends BaseModelImpl public static long COMPANYID_COLUMN_BITMASK = 1L; public static long DTPRATICA_COLUMN_BITMASK = 2L; public static long GROUPID_COLUMN_BITMASK = 4L; - public static long OLDINTPRATICAID_COLUMN_BITMASK = 8L; - public static long STATUS_COLUMN_BITMASK = 16L; - public static long TERRITORIOID_COLUMN_BITMASK = 32L; - public static long USERID_COLUMN_BITMASK = 64L; - public static long UUID_COLUMN_BITMASK = 128L; - public static long INTPRATICAID_COLUMN_BITMASK = 256L; + public static long STATUS_COLUMN_BITMASK = 8L; + public static long TERRITORIOID_COLUMN_BITMASK = 16L; + public static long USERID_COLUMN_BITMASK = 32L; + public static long UUID_COLUMN_BITMASK = 64L; + public static long INTPRATICAID_COLUMN_BITMASK = 128L; /** * Converts the soap model instance into a normal model instance. @@ -158,7 +155,6 @@ public class IntPraticaModelImpl extends BaseModelImpl model.setDtAnnullamento(soapModel.getDtAnnullamento()); model.setDocPraticaAnnullamentoId(soapModel.getDocPraticaAnnullamentoId()); model.setUnitaOperativa(soapModel.getUnitaOperativa()); - model.setDtSorteggio(soapModel.getDtSorteggio()); model.setStatoPratica(soapModel.getStatoPratica()); model.setNumeroProgetto(soapModel.getNumeroProgetto()); model.setValidata(soapModel.getValidata()); @@ -167,7 +163,6 @@ public class IntPraticaModelImpl extends BaseModelImpl model.setStatusDate(soapModel.getStatusDate()); model.setEsitoControllo(soapModel.getEsitoControllo()); model.setDtPratica(soapModel.getDtPratica()); - model.setOldIntPraticaId(soapModel.getOldIntPraticaId()); model.setSospesa(soapModel.getSospesa()); model.setDtSospensione(soapModel.getDtSospensione()); model.setCodiceFiscaleDelegatoFineLavori(soapModel.getCodiceFiscaleDelegatoFineLavori()); @@ -257,7 +252,6 @@ public class IntPraticaModelImpl extends BaseModelImpl attributes.put("dtAnnullamento", getDtAnnullamento()); attributes.put("docPraticaAnnullamentoId", getDocPraticaAnnullamentoId()); attributes.put("unitaOperativa", getUnitaOperativa()); - attributes.put("dtSorteggio", getDtSorteggio()); attributes.put("statoPratica", getStatoPratica()); attributes.put("numeroProgetto", getNumeroProgetto()); attributes.put("validata", getValidata()); @@ -266,7 +260,6 @@ public class IntPraticaModelImpl extends BaseModelImpl attributes.put("statusDate", getStatusDate()); attributes.put("esitoControllo", getEsitoControllo()); attributes.put("dtPratica", getDtPratica()); - attributes.put("oldIntPraticaId", getOldIntPraticaId()); attributes.put("sospesa", getSospesa()); attributes.put("dtSospensione", getDtSospensione()); attributes.put("codiceFiscaleDelegatoFineLavori", @@ -381,12 +374,6 @@ public class IntPraticaModelImpl extends BaseModelImpl setUnitaOperativa(unitaOperativa); } - Date dtSorteggio = (Date)attributes.get("dtSorteggio"); - - if (dtSorteggio != null) { - setDtSorteggio(dtSorteggio); - } - String statoPratica = (String)attributes.get("statoPratica"); if (statoPratica != null) { @@ -435,12 +422,6 @@ public class IntPraticaModelImpl extends BaseModelImpl setDtPratica(dtPratica); } - Long oldIntPraticaId = (Long)attributes.get("oldIntPraticaId"); - - if (oldIntPraticaId != null) { - setOldIntPraticaId(oldIntPraticaId); - } - Boolean sospesa = (Boolean)attributes.get("sospesa"); if (sospesa != null) { @@ -762,17 +743,6 @@ public class IntPraticaModelImpl extends BaseModelImpl _unitaOperativa = unitaOperativa; } - @JSON - @Override - public Date getDtSorteggio() { - return _dtSorteggio; - } - - @Override - public void setDtSorteggio(Date dtSorteggio) { - _dtSorteggio = dtSorteggio; - } - @JSON @Override public String getStatoPratica() { @@ -909,29 +879,6 @@ public class IntPraticaModelImpl extends BaseModelImpl return _originalDtPratica; } - @JSON - @Override - public long getOldIntPraticaId() { - return _oldIntPraticaId; - } - - @Override - public void setOldIntPraticaId(long oldIntPraticaId) { - _columnBitmask |= OLDINTPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalOldIntPraticaId) { - _setOriginalOldIntPraticaId = true; - - _originalOldIntPraticaId = _oldIntPraticaId; - } - - _oldIntPraticaId = oldIntPraticaId; - } - - public long getOriginalOldIntPraticaId() { - return _originalOldIntPraticaId; - } - @JSON @Override public boolean getSospesa() { @@ -1126,7 +1073,6 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaImpl.setDtAnnullamento(getDtAnnullamento()); intPraticaImpl.setDocPraticaAnnullamentoId(getDocPraticaAnnullamentoId()); intPraticaImpl.setUnitaOperativa(getUnitaOperativa()); - intPraticaImpl.setDtSorteggio(getDtSorteggio()); intPraticaImpl.setStatoPratica(getStatoPratica()); intPraticaImpl.setNumeroProgetto(getNumeroProgetto()); intPraticaImpl.setValidata(getValidata()); @@ -1135,7 +1081,6 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaImpl.setStatusDate(getStatusDate()); intPraticaImpl.setEsitoControllo(getEsitoControllo()); intPraticaImpl.setDtPratica(getDtPratica()); - intPraticaImpl.setOldIntPraticaId(getOldIntPraticaId()); intPraticaImpl.setSospesa(getSospesa()); intPraticaImpl.setDtSospensione(getDtSospensione()); intPraticaImpl.setCodiceFiscaleDelegatoFineLavori(getCodiceFiscaleDelegatoFineLavori()); @@ -1221,10 +1166,6 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaModelImpl._originalDtPratica = intPraticaModelImpl._dtPratica; - intPraticaModelImpl._originalOldIntPraticaId = intPraticaModelImpl._oldIntPraticaId; - - intPraticaModelImpl._setOriginalOldIntPraticaId = false; - intPraticaModelImpl._columnBitmask = 0; } @@ -1309,15 +1250,6 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaCacheModel.unitaOperativa = getUnitaOperativa(); - Date dtSorteggio = getDtSorteggio(); - - if (dtSorteggio != null) { - intPraticaCacheModel.dtSorteggio = dtSorteggio.getTime(); - } - else { - intPraticaCacheModel.dtSorteggio = Long.MIN_VALUE; - } - intPraticaCacheModel.statoPratica = getStatoPratica(); String statoPratica = intPraticaCacheModel.statoPratica; @@ -1360,8 +1292,6 @@ public class IntPraticaModelImpl extends BaseModelImpl intPraticaCacheModel.dtPratica = Long.MIN_VALUE; } - intPraticaCacheModel.oldIntPraticaId = getOldIntPraticaId(); - intPraticaCacheModel.sospesa = getSospesa(); Date dtSospensione = getDtSospensione(); @@ -1406,7 +1336,7 @@ public class IntPraticaModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(71); + StringBundler sb = new StringBundler(67); sb.append("{uuid="); sb.append(getUuid()); @@ -1440,8 +1370,6 @@ public class IntPraticaModelImpl extends BaseModelImpl sb.append(getDocPraticaAnnullamentoId()); sb.append(", unitaOperativa="); sb.append(getUnitaOperativa()); - sb.append(", dtSorteggio="); - sb.append(getDtSorteggio()); sb.append(", statoPratica="); sb.append(getStatoPratica()); sb.append(", numeroProgetto="); @@ -1458,8 +1386,6 @@ public class IntPraticaModelImpl extends BaseModelImpl sb.append(getEsitoControllo()); sb.append(", dtPratica="); sb.append(getDtPratica()); - sb.append(", oldIntPraticaId="); - sb.append(getOldIntPraticaId()); sb.append(", sospesa="); sb.append(getSospesa()); sb.append(", dtSospensione="); @@ -1485,7 +1411,7 @@ public class IntPraticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(109); + StringBundler sb = new StringBundler(103); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.IntPratica"); @@ -1555,10 +1481,6 @@ public class IntPraticaModelImpl extends BaseModelImpl "unitaOperativa"); - sb.append( - "dtSorteggio"); sb.append( "statoPratica "dtPratica"); - sb.append( - "oldIntPraticaId"); sb.append( "sospesa private Date _dtAnnullamento; private long _docPraticaAnnullamentoId; private int _unitaOperativa; - private Date _dtSorteggio; private String _statoPratica; private String _numeroProgetto; private boolean _validata; @@ -1680,9 +1597,6 @@ public class IntPraticaModelImpl extends BaseModelImpl private int _esitoControllo; private Date _dtPratica; private Date _originalDtPratica; - private long _oldIntPraticaId; - private long _originalOldIntPraticaId; - private boolean _setOriginalOldIntPraticaId; private boolean _sospesa; private Date _dtSospensione; private String _codiceFiscaleDelegatoFineLavori; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java index 102f7787..ca950e5e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java @@ -38,7 +38,7 @@ public class PagamentoCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(51); sb.append("{uuid="); sb.append(uuid); @@ -64,8 +64,6 @@ public class PagamentoCacheModel implements CacheModel, sb.append(className); sb.append(", fileEntryId="); sb.append(fileEntryId); - sb.append(", oldFileEntryId="); - sb.append(oldFileEntryId); sb.append(", tipoPagamento="); sb.append(tipoPagamento); sb.append(", url="); @@ -92,8 +90,6 @@ public class PagamentoCacheModel implements CacheModel, sb.append(emailPending); sb.append(", numeroBollettino="); sb.append(numeroBollettino); - sb.append(", oldPagamentoId="); - sb.append(oldPagamentoId); sb.append("}"); return sb.toString(); @@ -147,7 +143,6 @@ public class PagamentoCacheModel implements CacheModel, } pagamentoImpl.setFileEntryId(fileEntryId); - pagamentoImpl.setOldFileEntryId(oldFileEntryId); if (tipoPagamento == null) { pagamentoImpl.setTipoPagamento(StringPool.BLANK); @@ -230,8 +225,6 @@ public class PagamentoCacheModel implements CacheModel, pagamentoImpl.setNumeroBollettino(numeroBollettino); } - pagamentoImpl.setOldPagamentoId(oldPagamentoId); - pagamentoImpl.resetOriginalValues(); return pagamentoImpl; @@ -251,7 +244,6 @@ public class PagamentoCacheModel implements CacheModel, classPk = objectInput.readLong(); className = objectInput.readUTF(); fileEntryId = objectInput.readLong(); - oldFileEntryId = objectInput.readLong(); tipoPagamento = objectInput.readUTF(); url = objectInput.readUTF(); codice = objectInput.readUTF(); @@ -265,7 +257,6 @@ public class PagamentoCacheModel implements CacheModel, otfCreateDate = objectInput.readLong(); emailPending = objectInput.readBoolean(); numeroBollettino = objectInput.readUTF(); - oldPagamentoId = objectInput.readLong(); } @Override @@ -303,7 +294,6 @@ public class PagamentoCacheModel implements CacheModel, } objectOutput.writeLong(fileEntryId); - objectOutput.writeLong(oldFileEntryId); if (tipoPagamento == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -378,8 +368,6 @@ public class PagamentoCacheModel implements CacheModel, else { objectOutput.writeUTF(numeroBollettino); } - - objectOutput.writeLong(oldPagamentoId); } public String uuid; @@ -394,7 +382,6 @@ public class PagamentoCacheModel implements CacheModel, public long classPk; public String className; public long fileEntryId; - public long oldFileEntryId; public String tipoPagamento; public String url; public String codice; @@ -408,5 +395,4 @@ public class PagamentoCacheModel implements CacheModel, public long otfCreateDate; public boolean emailPending; public String numeroBollettino; - public long oldPagamentoId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoImpl.java index 7acfeb5f..9fbc87b7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -37,6 +37,7 @@ import com.liferay.portlet.documentlibrary.util.DLUtil; * * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class PagamentoImpl extends PagamentoBaseImpl { /* * NOTE FOR DEVELOPERS: @@ -53,10 +54,8 @@ public class PagamentoImpl extends PagamentoBaseImpl { if (Validator.isNull(getFileEntryId())) { return null; } - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getFileEntryId()); return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); - } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java index c4ef636c..e3fa349c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java @@ -79,7 +79,6 @@ public class PagamentoModelImpl extends BaseModelImpl { "classPk", Types.BIGINT }, { "className", Types.VARCHAR }, { "fileEntryId", Types.BIGINT }, - { "oldFileEntryId", Types.BIGINT }, { "tipoPagamento", Types.VARCHAR }, { "url", Types.VARCHAR }, { "codice", Types.VARCHAR }, @@ -92,10 +91,9 @@ public class PagamentoModelImpl extends BaseModelImpl { "otf", Types.BOOLEAN }, { "otfCreateDate", Types.TIMESTAMP }, { "emailPending", Types.BOOLEAN }, - { "numeroBollettino", Types.VARCHAR }, - { "oldPagamentoId", Types.BIGINT } + { "numeroBollettino", Types.VARCHAR } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Pagamento (uuid_ VARCHAR(75) null,pagamentoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,classPk LONG,className VARCHAR(75) null,fileEntryId LONG,oldFileEntryId LONG,tipoPagamento VARCHAR(75) null,url STRING null,codice VARCHAR(75) null,causale VARCHAR(75) null,mezzo VARCHAR(75) null,codiceFiscaleCommittente VARCHAR(75) null,importo VARCHAR(75) null,utilizzata VARCHAR(75) null,utilizzataSostituita VARCHAR(75) null,otf BOOLEAN,otfCreateDate DATE null,emailPending BOOLEAN,numeroBollettino VARCHAR(75) null,oldPagamentoId LONG)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Pagamento (uuid_ VARCHAR(75) null,pagamentoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,classPk LONG,className VARCHAR(75) null,fileEntryId LONG,tipoPagamento VARCHAR(75) null,url STRING null,codice VARCHAR(75) null,causale VARCHAR(75) null,mezzo VARCHAR(75) null,codiceFiscaleCommittente VARCHAR(75) null,importo VARCHAR(75) null,utilizzata VARCHAR(75) null,utilizzataSostituita VARCHAR(75) null,otf BOOLEAN,otfCreateDate DATE null,emailPending BOOLEAN,numeroBollettino VARCHAR(75) null)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Pagamento"; public static final String ORDER_BY_JPQL = " ORDER BY pagamento.pagamentoId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Pagamento.pagamentoId ASC"; @@ -118,10 +116,9 @@ public class PagamentoModelImpl extends BaseModelImpl public static long GROUPID_COLUMN_BITMASK = 16L; public static long INTPRATICAID_COLUMN_BITMASK = 32L; public static long MEZZO_COLUMN_BITMASK = 64L; - public static long OLDPAGAMENTOID_COLUMN_BITMASK = 128L; - public static long UTILIZZATA_COLUMN_BITMASK = 256L; - public static long UUID_COLUMN_BITMASK = 512L; - public static long PAGAMENTOID_COLUMN_BITMASK = 1024L; + public static long UTILIZZATA_COLUMN_BITMASK = 128L; + public static long UUID_COLUMN_BITMASK = 256L; + public static long PAGAMENTOID_COLUMN_BITMASK = 512L; /** * Converts the soap model instance into a normal model instance. @@ -148,7 +145,6 @@ public class PagamentoModelImpl extends BaseModelImpl model.setClassPk(soapModel.getClassPk()); model.setClassName(soapModel.getClassName()); model.setFileEntryId(soapModel.getFileEntryId()); - model.setOldFileEntryId(soapModel.getOldFileEntryId()); model.setTipoPagamento(soapModel.getTipoPagamento()); model.setUrl(soapModel.getUrl()); model.setCodice(soapModel.getCodice()); @@ -162,7 +158,6 @@ public class PagamentoModelImpl extends BaseModelImpl model.setOtfCreateDate(soapModel.getOtfCreateDate()); model.setEmailPending(soapModel.getEmailPending()); model.setNumeroBollettino(soapModel.getNumeroBollettino()); - model.setOldPagamentoId(soapModel.getOldPagamentoId()); return model; } @@ -239,7 +234,6 @@ public class PagamentoModelImpl extends BaseModelImpl attributes.put("classPk", getClassPk()); attributes.put("className", getClassName()); attributes.put("fileEntryId", getFileEntryId()); - attributes.put("oldFileEntryId", getOldFileEntryId()); attributes.put("tipoPagamento", getTipoPagamento()); attributes.put("url", getUrl()); attributes.put("codice", getCodice()); @@ -253,7 +247,6 @@ public class PagamentoModelImpl extends BaseModelImpl attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("emailPending", getEmailPending()); attributes.put("numeroBollettino", getNumeroBollettino()); - attributes.put("oldPagamentoId", getOldPagamentoId()); return attributes; } @@ -332,12 +325,6 @@ public class PagamentoModelImpl extends BaseModelImpl setFileEntryId(fileEntryId); } - Long oldFileEntryId = (Long)attributes.get("oldFileEntryId"); - - if (oldFileEntryId != null) { - setOldFileEntryId(oldFileEntryId); - } - String tipoPagamento = (String)attributes.get("tipoPagamento"); if (tipoPagamento != null) { @@ -417,12 +404,6 @@ public class PagamentoModelImpl extends BaseModelImpl if (numeroBollettino != null) { setNumeroBollettino(numeroBollettino); } - - Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); - - if (oldPagamentoId != null) { - setOldPagamentoId(oldPagamentoId); - } } @JSON @@ -648,17 +629,6 @@ public class PagamentoModelImpl extends BaseModelImpl _fileEntryId = fileEntryId; } - @JSON - @Override - public long getOldFileEntryId() { - return _oldFileEntryId; - } - - @Override - public void setOldFileEntryId(long oldFileEntryId) { - _oldFileEntryId = oldFileEntryId; - } - @JSON @Override public String getTipoPagamento() { @@ -894,29 +864,6 @@ public class PagamentoModelImpl extends BaseModelImpl _numeroBollettino = numeroBollettino; } - @JSON - @Override - public long getOldPagamentoId() { - return _oldPagamentoId; - } - - @Override - public void setOldPagamentoId(long oldPagamentoId) { - _columnBitmask |= OLDPAGAMENTOID_COLUMN_BITMASK; - - if (!_setOriginalOldPagamentoId) { - _setOriginalOldPagamentoId = true; - - _originalOldPagamentoId = _oldPagamentoId; - } - - _oldPagamentoId = oldPagamentoId; - } - - public long getOriginalOldPagamentoId() { - return _originalOldPagamentoId; - } - @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -966,7 +913,6 @@ public class PagamentoModelImpl extends BaseModelImpl pagamentoImpl.setClassPk(getClassPk()); pagamentoImpl.setClassName(getClassName()); pagamentoImpl.setFileEntryId(getFileEntryId()); - pagamentoImpl.setOldFileEntryId(getOldFileEntryId()); pagamentoImpl.setTipoPagamento(getTipoPagamento()); pagamentoImpl.setUrl(getUrl()); pagamentoImpl.setCodice(getCodice()); @@ -980,7 +926,6 @@ public class PagamentoModelImpl extends BaseModelImpl pagamentoImpl.setOtfCreateDate(getOtfCreateDate()); pagamentoImpl.setEmailPending(getEmailPending()); pagamentoImpl.setNumeroBollettino(getNumeroBollettino()); - pagamentoImpl.setOldPagamentoId(getOldPagamentoId()); pagamentoImpl.resetOriginalValues(); @@ -1061,10 +1006,6 @@ public class PagamentoModelImpl extends BaseModelImpl pagamentoModelImpl._setOriginalEmailPending = false; - pagamentoModelImpl._originalOldPagamentoId = pagamentoModelImpl._oldPagamentoId; - - pagamentoModelImpl._setOriginalOldPagamentoId = false; - pagamentoModelImpl._columnBitmask = 0; } @@ -1128,8 +1069,6 @@ public class PagamentoModelImpl extends BaseModelImpl pagamentoCacheModel.fileEntryId = getFileEntryId(); - pagamentoCacheModel.oldFileEntryId = getOldFileEntryId(); - pagamentoCacheModel.tipoPagamento = getTipoPagamento(); String tipoPagamento = pagamentoCacheModel.tipoPagamento; @@ -1225,14 +1164,12 @@ public class PagamentoModelImpl extends BaseModelImpl pagamentoCacheModel.numeroBollettino = null; } - pagamentoCacheModel.oldPagamentoId = getOldPagamentoId(); - return pagamentoCacheModel; } @Override public String toString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(51); sb.append("{uuid="); sb.append(getUuid()); @@ -1258,8 +1195,6 @@ public class PagamentoModelImpl extends BaseModelImpl sb.append(getClassName()); sb.append(", fileEntryId="); sb.append(getFileEntryId()); - sb.append(", oldFileEntryId="); - sb.append(getOldFileEntryId()); sb.append(", tipoPagamento="); sb.append(getTipoPagamento()); sb.append(", url="); @@ -1286,8 +1221,6 @@ public class PagamentoModelImpl extends BaseModelImpl sb.append(getEmailPending()); sb.append(", numeroBollettino="); sb.append(getNumeroBollettino()); - sb.append(", oldPagamentoId="); - sb.append(getOldPagamentoId()); sb.append("}"); return sb.toString(); @@ -1295,7 +1228,7 @@ public class PagamentoModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(85); + StringBundler sb = new StringBundler(79); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Pagamento"); @@ -1349,10 +1282,6 @@ public class PagamentoModelImpl extends BaseModelImpl "fileEntryId"); - sb.append( - "oldFileEntryId"); sb.append( "tipoPagamento "numeroBollettino"); - sb.append( - "oldPagamentoId"); sb.append(""); @@ -1442,7 +1367,6 @@ public class PagamentoModelImpl extends BaseModelImpl private boolean _setOriginalClassPk; private String _className; private long _fileEntryId; - private long _oldFileEntryId; private String _tipoPagamento; private String _url; private String _codice; @@ -1460,9 +1384,6 @@ public class PagamentoModelImpl extends BaseModelImpl private boolean _originalEmailPending; private boolean _setOriginalEmailPending; private String _numeroBollettino; - private long _oldPagamentoId; - private long _originalOldPagamentoId; - private boolean _setOriginalOldPagamentoId; private long _columnBitmask; private Pagamento _escapedModel; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java index 0833751a..af84d1e6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java @@ -1,34 +1,34 @@ /** * 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) + * 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 + * 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.bo.model.impl; /** - * The extended model implementation for the ParereGeologo service. Represents a row in the "portos_bo_ParereGeologo" database table, with each column mapped to a property of this class. + * The extended model implementation for the ParereGeologo service. Represents a row in the + * "portos_bo_ParereGeologo" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ParereGeologoImpl extends ParereGeologoBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a parere geologo model instance should use the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a parere geologo model instance + * should use the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface instead. */ public ParereGeologoImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ProvinciaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ProvinciaImpl.java index 7a5224a4..eebbcf50 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ProvinciaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ProvinciaImpl.java @@ -1,34 +1,34 @@ /** * 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) + * 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 + * 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.bo.model.impl; /** - * The extended model implementation for the Provincia service. Represents a row in the "portos_provincia" database table, with each column mapped to a property of this class. + * The extended model implementation for the Provincia service. Represents a row in the "portos_provincia" + * database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Provincia} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Provincia} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class ProvinciaImpl extends ProvinciaBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a provincia model instance should use the {@link it.tref.liferay.portos.bo.model.Provincia} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a provincia model instance + * should use the {@link it.tref.liferay.portos.bo.model.Provincia} interface instead. */ public ProvinciaImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoCacheModel.java index 46395e80..54caea9d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoCacheModel.java @@ -37,7 +37,7 @@ import java.util.Date; public class SoggettoCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(129); + StringBundler sb = new StringBundler(127); sb.append("{uuid="); sb.append(uuid); @@ -163,8 +163,6 @@ public class SoggettoCacheModel implements CacheModel, Externalizable sb.append(sostituitoDa); sb.append(", soggettoSostituitoId="); sb.append(soggettoSostituitoId); - sb.append(", oldSoggettoId="); - sb.append(oldSoggettoId); sb.append(", fileVariazioneId="); sb.append(fileVariazioneId); sb.append("}"); @@ -536,7 +534,6 @@ public class SoggettoCacheModel implements CacheModel, Externalizable soggettoImpl.setSostituitoDa(sostituitoDa); soggettoImpl.setSoggettoSostituitoId(soggettoSostituitoId); - soggettoImpl.setOldSoggettoId(oldSoggettoId); soggettoImpl.setFileVariazioneId(fileVariazioneId); soggettoImpl.resetOriginalValues(); @@ -608,7 +605,6 @@ public class SoggettoCacheModel implements CacheModel, Externalizable dtDataRimozione = objectInput.readLong(); sostituitoDa = objectInput.readLong(); soggettoSostituitoId = objectInput.readLong(); - oldSoggettoId = objectInput.readLong(); fileVariazioneId = objectInput.readLong(); } @@ -946,7 +942,6 @@ public class SoggettoCacheModel implements CacheModel, Externalizable objectOutput.writeLong(dtDataRimozione); objectOutput.writeLong(sostituitoDa); objectOutput.writeLong(soggettoSostituitoId); - objectOutput.writeLong(oldSoggettoId); objectOutput.writeLong(fileVariazioneId); } @@ -1012,6 +1007,5 @@ public class SoggettoCacheModel implements CacheModel, Externalizable public long dtDataRimozione; public long sostituitoDa; public long soggettoSostituitoId; - public long oldSoggettoId; public long fileVariazioneId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoImpl.java index 3ef47a8b..bd048201 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoImpl.java @@ -1,13 +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 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. + * 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.bo.model.impl; @@ -18,85 +18,88 @@ import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; /** - * The extended model implementation for the Soggetto service. Represents a row in the - * "portos_bo_Soggetto" database table, with each column mapped to a property of this - * class. + * The extended model implementation for the Soggetto service. Represents a row in the "portos_bo_Soggetto" + * database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, - * rerun ServiceBuilder to copy their definitions into the - * {@link it.tref.liferay.portos.bo.model.Soggetto} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Soggetto} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class SoggettoImpl extends SoggettoBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a soggetto - * model instance should use the {@link it.tref.liferay.portos.bo.model.Soggetto} interface - * instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a soggetto model instance + * should use the {@link it.tref.liferay.portos.bo.model.Soggetto} interface instead. */ - public SoggettoImpl() { + private static final String SEP = " - "; + public SoggettoImpl() { } + @Override public String getFullTipologiaSoggetto() { - String tipologia = LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + getTipologiaSoggetto()); - - - String ambito = StringPool.BLANK; + StringBuilder sb = new StringBuilder(); + sb.append(LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + getTipologiaSoggetto())); if (Validator.isNotNull(getAmbitoProfessione())) { - ambito = StringPool.SPACE + StringPool.DASH + StringPool.SPACE; + sb.append(StringPool.SPACE).append(StringPool.DASH).append(StringPool.SPACE); if (getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro")) { - ambito += getAmbitoAttivita(); + sb.append(getAmbitoAttivita()); } else { - ambito += LanguageUtil.get(LocaleUtil.ITALIAN, "label-ambito-" + getAmbitoProfessione()); + sb.append(LanguageUtil.get(LocaleUtil.ITALIAN, "label-ambito-" + getAmbitoProfessione())); } } - return tipologia + ambito; + return sb.toString(); } + @Override public String getDescrizioneCompleta() { - String descrizione = getCodiceFiscale().toUpperCase() + StringPool.SPACE + "-"; - + StringBuilder sb = new StringBuilder(); + sb.append(getCodiceFiscale().toUpperCase()).append(StringPool.SPACE).append(StringPool.DASH); if (Validator.isNotNull(getCognome())) { - descrizione += StringPool.SPACE + getCognome(); + sb.append(StringPool.SPACE).append(getCognome()); } if (Validator.isNotNull(getNome())) { - descrizione += StringPool.SPACE + getNome(); + sb.append(StringPool.SPACE).append(getNome()); } if (Validator.isNotNull(getDenominazione())) { - descrizione += StringPool.SPACE + getDenominazione(); + sb.append(StringPool.SPACE).append(getDenominazione()); } - return descrizione; + return sb.toString(); } + @Override public String getDescrizioneCompletaAccessoAtti() { - String descrizione = ""; - + StringBuilder sb = new StringBuilder(); if (Validator.isNotNull(getCognome())) { - descrizione += StringPool.SPACE + getCognome(); + sb.append(getCognome()).append(StringPool.SPACE); } if (Validator.isNotNull(getNome())) { - descrizione += StringPool.SPACE + getNome(); + sb.append(getNome()).append(StringPool.SPACE); } if (Validator.isNotNull(getDenominazione())) { - descrizione += StringPool.SPACE + getDenominazione(); + sb.append(getDenominazione()).append(StringPool.SPACE); } - return descrizione; - + if (sb.length() > 0) { + sb.setLength(sb.length() - 1); + } + return sb.toString(); } + @Override public String getDescrizioneRuolo() { String descrizione = getDescrizioneCompleta(); String ruolo = LanguageUtil.get(LocaleUtil.getSiteDefault(), "gc-soggetto-" + getTipologiaSoggetto()); - return descrizione + " - " + ruolo; + return descrizione + SEP + ruolo; } + @Override public String getTitle() { if (Validator.isNotNull(getDenominazione())) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoModelImpl.java index d151a006..21bde6c0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoModelImpl.java @@ -129,10 +129,9 @@ public class SoggettoModelImpl extends BaseModelImpl { "dtDataRimozione", Types.TIMESTAMP }, { "sostituitoDa", Types.BIGINT }, { "soggettoSostituitoId", Types.BIGINT }, - { "oldSoggettoId", Types.BIGINT }, { "fileVariazioneId", Types.BIGINT } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Soggetto (uuid_ VARCHAR(75) null,soggettoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,dettPraticaId LONG,intPraticaId LONG,nome VARCHAR(500) null,cognome VARCHAR(500) null,codiceFiscale VARCHAR(16) null,codiceFiscaleDelegato VARCHAR(75) null,dataNascita DATE null,provinciaNascita VARCHAR(75) null,comuneNascita VARCHAR(75) null,comuneDomicilio VARCHAR(75) null,comuneDomicilioEstero VARCHAR(75) null,provinciaDomicilio VARCHAR(75) null,viaDomicilio VARCHAR(250) null,numeroCivicoDomicilio VARCHAR(75) null,capDomicilio VARCHAR(75) null,domicilioExtra VARCHAR(250) null,comune VARCHAR(75) null,comuneEstero VARCHAR(75) null,provincia VARCHAR(75) null,via VARCHAR(250) null,numeroCivico VARCHAR(75) null,cap VARCHAR(75) null,denominazione VARCHAR(600) null,sedeLegale VARCHAR(75) null,legaleRap VARCHAR(75) null,dataNascitaRap DATE null,provinciaNascitaRap VARCHAR(75) null,comuneNascitaRap VARCHAR(75) null,viaRap VARCHAR(75) null,numeroCivicoRap VARCHAR(75) null,capRap VARCHAR(75) null,provinciaRap VARCHAR(75) null,comuneRap VARCHAR(75) null,comuneRapEstero VARCHAR(75) null,albo VARCHAR(75) null,alboDescr VARCHAR(150) null,regAlbo VARCHAR(75) null,provinciaAlbo VARCHAR(75) null,numIscrAlbo VARCHAR(75) null,telefono VARCHAR(75) null,fax VARCHAR(75) null,email VARCHAR(75) null,tipologiaSoggetto VARCHAR(75) null,tipoAltroSoggetto VARCHAR(75) null,aggiuntivo BOOLEAN,rimosso BOOLEAN,tmp BOOLEAN,ambitoAttivita STRING null,ambitoProfessione VARCHAR(75) null,intPraticaIdRimozione LONG,dettPraticaIdRimozione LONG,dtDataRimozione DATE null,sostituitoDa LONG,soggettoSostituitoId LONG,oldSoggettoId LONG,fileVariazioneId LONG)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Soggetto (uuid_ VARCHAR(75) null,soggettoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,dettPraticaId LONG,intPraticaId LONG,nome VARCHAR(500) null,cognome VARCHAR(500) null,codiceFiscale VARCHAR(16) null,codiceFiscaleDelegato VARCHAR(75) null,dataNascita DATE null,provinciaNascita VARCHAR(75) null,comuneNascita VARCHAR(75) null,comuneDomicilio VARCHAR(75) null,comuneDomicilioEstero VARCHAR(75) null,provinciaDomicilio VARCHAR(75) null,viaDomicilio VARCHAR(250) null,numeroCivicoDomicilio VARCHAR(75) null,capDomicilio VARCHAR(75) null,domicilioExtra VARCHAR(250) null,comune VARCHAR(75) null,comuneEstero VARCHAR(75) null,provincia VARCHAR(75) null,via VARCHAR(250) null,numeroCivico VARCHAR(75) null,cap VARCHAR(75) null,denominazione VARCHAR(600) null,sedeLegale VARCHAR(75) null,legaleRap VARCHAR(75) null,dataNascitaRap DATE null,provinciaNascitaRap VARCHAR(75) null,comuneNascitaRap VARCHAR(75) null,viaRap VARCHAR(75) null,numeroCivicoRap VARCHAR(75) null,capRap VARCHAR(75) null,provinciaRap VARCHAR(75) null,comuneRap VARCHAR(75) null,comuneRapEstero VARCHAR(75) null,albo VARCHAR(75) null,alboDescr VARCHAR(150) null,regAlbo VARCHAR(75) null,provinciaAlbo VARCHAR(75) null,numIscrAlbo VARCHAR(75) null,telefono VARCHAR(75) null,fax VARCHAR(75) null,email VARCHAR(75) null,tipologiaSoggetto VARCHAR(75) null,tipoAltroSoggetto VARCHAR(75) null,aggiuntivo BOOLEAN,rimosso BOOLEAN,tmp BOOLEAN,ambitoAttivita STRING null,ambitoProfessione VARCHAR(75) null,intPraticaIdRimozione LONG,dettPraticaIdRimozione LONG,dtDataRimozione DATE null,sostituitoDa LONG,soggettoSostituitoId LONG,fileVariazioneId LONG)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Soggetto"; public static final String ORDER_BY_JPQL = " ORDER BY soggetto.soggettoId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Soggetto.soggettoId ASC"; @@ -155,12 +154,11 @@ public class SoggettoModelImpl extends BaseModelImpl public static long DETTPRATICAIDRIMOZIONE_COLUMN_BITMASK = 16L; public static long GROUPID_COLUMN_BITMASK = 32L; public static long INTPRATICAID_COLUMN_BITMASK = 64L; - public static long OLDSOGGETTOID_COLUMN_BITMASK = 128L; - public static long RIMOSSO_COLUMN_BITMASK = 256L; - public static long TIPOLOGIASOGGETTO_COLUMN_BITMASK = 512L; - public static long USERID_COLUMN_BITMASK = 1024L; - public static long UUID_COLUMN_BITMASK = 2048L; - public static long SOGGETTOID_COLUMN_BITMASK = 4096L; + public static long RIMOSSO_COLUMN_BITMASK = 128L; + public static long TIPOLOGIASOGGETTO_COLUMN_BITMASK = 256L; + public static long USERID_COLUMN_BITMASK = 512L; + public static long UUID_COLUMN_BITMASK = 1024L; + public static long SOGGETTOID_COLUMN_BITMASK = 2048L; /** * Converts the soap model instance into a normal model instance. @@ -237,7 +235,6 @@ public class SoggettoModelImpl extends BaseModelImpl model.setDtDataRimozione(soapModel.getDtDataRimozione()); model.setSostituitoDa(soapModel.getSostituitoDa()); model.setSoggettoSostituitoId(soapModel.getSoggettoSostituitoId()); - model.setOldSoggettoId(soapModel.getOldSoggettoId()); model.setFileVariazioneId(soapModel.getFileVariazioneId()); return model; @@ -365,7 +362,6 @@ public class SoggettoModelImpl extends BaseModelImpl attributes.put("dtDataRimozione", getDtDataRimozione()); attributes.put("sostituitoDa", getSostituitoDa()); attributes.put("soggettoSostituitoId", getSoggettoSostituitoId()); - attributes.put("oldSoggettoId", getOldSoggettoId()); attributes.put("fileVariazioneId", getFileVariazioneId()); return attributes; @@ -751,12 +747,6 @@ public class SoggettoModelImpl extends BaseModelImpl setSoggettoSostituitoId(soggettoSostituitoId); } - Long oldSoggettoId = (Long)attributes.get("oldSoggettoId"); - - if (oldSoggettoId != null) { - setOldSoggettoId(oldSoggettoId); - } - Long fileVariazioneId = (Long)attributes.get("fileVariazioneId"); if (fileVariazioneId != null) { @@ -1815,29 +1805,6 @@ public class SoggettoModelImpl extends BaseModelImpl _soggettoSostituitoId = soggettoSostituitoId; } - @JSON - @Override - public long getOldSoggettoId() { - return _oldSoggettoId; - } - - @Override - public void setOldSoggettoId(long oldSoggettoId) { - _columnBitmask |= OLDSOGGETTOID_COLUMN_BITMASK; - - if (!_setOriginalOldSoggettoId) { - _setOriginalOldSoggettoId = true; - - _originalOldSoggettoId = _oldSoggettoId; - } - - _oldSoggettoId = oldSoggettoId; - } - - public long getOriginalOldSoggettoId() { - return _originalOldSoggettoId; - } - @JSON @Override public long getFileVariazioneId() { @@ -1948,7 +1915,6 @@ public class SoggettoModelImpl extends BaseModelImpl soggettoImpl.setDtDataRimozione(getDtDataRimozione()); soggettoImpl.setSostituitoDa(getSostituitoDa()); soggettoImpl.setSoggettoSostituitoId(getSoggettoSostituitoId()); - soggettoImpl.setOldSoggettoId(getOldSoggettoId()); soggettoImpl.setFileVariazioneId(getFileVariazioneId()); soggettoImpl.resetOriginalValues(); @@ -2040,10 +2006,6 @@ public class SoggettoModelImpl extends BaseModelImpl soggettoModelImpl._setOriginalDettPraticaIdRimozione = false; - soggettoModelImpl._originalOldSoggettoId = soggettoModelImpl._oldSoggettoId; - - soggettoModelImpl._setOriginalOldSoggettoId = false; - soggettoModelImpl._columnBitmask = 0; } @@ -2478,8 +2440,6 @@ public class SoggettoModelImpl extends BaseModelImpl soggettoCacheModel.soggettoSostituitoId = getSoggettoSostituitoId(); - soggettoCacheModel.oldSoggettoId = getOldSoggettoId(); - soggettoCacheModel.fileVariazioneId = getFileVariazioneId(); return soggettoCacheModel; @@ -2487,7 +2447,7 @@ public class SoggettoModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(129); + StringBundler sb = new StringBundler(127); sb.append("{uuid="); sb.append(getUuid()); @@ -2613,8 +2573,6 @@ public class SoggettoModelImpl extends BaseModelImpl sb.append(getSostituitoDa()); sb.append(", soggettoSostituitoId="); sb.append(getSoggettoSostituitoId()); - sb.append(", oldSoggettoId="); - sb.append(getOldSoggettoId()); sb.append(", fileVariazioneId="); sb.append(getFileVariazioneId()); sb.append("}"); @@ -2624,7 +2582,7 @@ public class SoggettoModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(196); + StringBundler sb = new StringBundler(193); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Soggetto"); @@ -2878,10 +2836,6 @@ public class SoggettoModelImpl extends BaseModelImpl "soggettoSostituitoId"); - sb.append( - "oldSoggettoId"); sb.append( "fileVariazioneId private Date _dtDataRimozione; private long _sostituitoDa; private long _soggettoSostituitoId; - private long _oldSoggettoId; - private long _originalOldSoggettoId; - private boolean _setOriginalOldSoggettoId; private long _fileVariazioneId; private long _columnBitmask; private Soggetto _escapedModel; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioBaseImpl.java deleted file mode 100644 index 72328369..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioBaseImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.exception.SystemException; - -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; - -/** - * The extended model base implementation for the Sorteggio service. Represents a row in the "portos_bo_Sorteggio" database table, with each column mapped to a property of this class. - * - *

- * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link SorteggioImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioImpl - * @see it.tref.liferay.portos.bo.model.Sorteggio - * @generated - */ -public abstract class SorteggioBaseImpl extends SorteggioModelImpl - implements Sorteggio { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. All methods that expect a sorteggio model instance should use the {@link Sorteggio} interface instead. - */ - @Override - public void persist() throws SystemException { - if (this.isNew()) { - SorteggioLocalServiceUtil.addSorteggio(this); - } - else { - SorteggioLocalServiceUtil.updateSorteggio(this); - } - } -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioCacheModel.java deleted file mode 100644 index 3640b9de..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioCacheModel.java +++ /dev/null @@ -1,455 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.model.CacheModel; - -import it.tref.liferay.portos.bo.model.Sorteggio; - -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; - -import java.util.Date; - -/** - * The cache model class for representing Sorteggio in entity cache. - * - * @author Davide Barbagallo, 3F Consulting - * @see Sorteggio - * @generated - */ -public class SorteggioCacheModel implements CacheModel, - Externalizable { - @Override - public String toString() { - StringBundler sb = new StringBundler(63); - - sb.append("{uuid="); - sb.append(uuid); - sb.append(", sorteggioId="); - sb.append(sorteggioId); - sb.append(", companyId="); - sb.append(companyId); - sb.append(", userId="); - sb.append(userId); - sb.append(", userName="); - sb.append(userName); - sb.append(", createDate="); - sb.append(createDate); - sb.append(", modifiedDate="); - sb.append(modifiedDate); - sb.append(", groupId="); - sb.append(groupId); - sb.append(", status="); - sb.append(status); - sb.append(", statusByUserId="); - sb.append(statusByUserId); - sb.append(", statusByUserName="); - sb.append(statusByUserName); - sb.append(", statusDate="); - sb.append(statusDate); - sb.append(", intPraticaId="); - sb.append(intPraticaId); - sb.append(", dettPraticaId="); - sb.append(dettPraticaId); - sb.append(", note="); - sb.append(note); - sb.append(", anno="); - sb.append(anno); - sb.append(", mese="); - sb.append(mese); - sb.append(", settimana="); - sb.append(settimana); - sb.append(", dtSorteggio="); - sb.append(dtSorteggio); - sb.append(", stato="); - sb.append(stato); - sb.append(", dettagli="); - sb.append(dettagli); - sb.append(", numeroEstrazione="); - sb.append(numeroEstrazione); - sb.append(", pratica="); - sb.append(pratica); - sb.append(", committente="); - sb.append(committente); - sb.append(", comune="); - sb.append(comune); - sb.append(", provincia="); - sb.append(provincia); - sb.append(", tecnico="); - sb.append(tecnico); - sb.append(", mesePrecedente="); - sb.append(mesePrecedente); - sb.append(", esterna="); - sb.append(esterna); - sb.append(", praticaEsternaId="); - sb.append(praticaEsternaId); - sb.append(", oldSorteggioId="); - sb.append(oldSorteggioId); - sb.append("}"); - - return sb.toString(); - } - - @Override - public Sorteggio toEntityModel() { - SorteggioImpl sorteggioImpl = new SorteggioImpl(); - - if (uuid == null) { - sorteggioImpl.setUuid(StringPool.BLANK); - } - else { - sorteggioImpl.setUuid(uuid); - } - - sorteggioImpl.setSorteggioId(sorteggioId); - sorteggioImpl.setCompanyId(companyId); - sorteggioImpl.setUserId(userId); - - if (userName == null) { - sorteggioImpl.setUserName(StringPool.BLANK); - } - else { - sorteggioImpl.setUserName(userName); - } - - if (createDate == Long.MIN_VALUE) { - sorteggioImpl.setCreateDate(null); - } - else { - sorteggioImpl.setCreateDate(new Date(createDate)); - } - - if (modifiedDate == Long.MIN_VALUE) { - sorteggioImpl.setModifiedDate(null); - } - else { - sorteggioImpl.setModifiedDate(new Date(modifiedDate)); - } - - sorteggioImpl.setGroupId(groupId); - sorteggioImpl.setStatus(status); - sorteggioImpl.setStatusByUserId(statusByUserId); - - if (statusByUserName == null) { - sorteggioImpl.setStatusByUserName(StringPool.BLANK); - } - else { - sorteggioImpl.setStatusByUserName(statusByUserName); - } - - if (statusDate == Long.MIN_VALUE) { - sorteggioImpl.setStatusDate(null); - } - else { - sorteggioImpl.setStatusDate(new Date(statusDate)); - } - - sorteggioImpl.setIntPraticaId(intPraticaId); - sorteggioImpl.setDettPraticaId(dettPraticaId); - - if (note == null) { - sorteggioImpl.setNote(StringPool.BLANK); - } - else { - sorteggioImpl.setNote(note); - } - - if (anno == null) { - sorteggioImpl.setAnno(StringPool.BLANK); - } - else { - sorteggioImpl.setAnno(anno); - } - - if (mese == null) { - sorteggioImpl.setMese(StringPool.BLANK); - } - else { - sorteggioImpl.setMese(mese); - } - - sorteggioImpl.setSettimana(settimana); - - if (dtSorteggio == Long.MIN_VALUE) { - sorteggioImpl.setDtSorteggio(null); - } - else { - sorteggioImpl.setDtSorteggio(new Date(dtSorteggio)); - } - - if (stato == null) { - sorteggioImpl.setStato(StringPool.BLANK); - } - else { - sorteggioImpl.setStato(stato); - } - - if (dettagli == null) { - sorteggioImpl.setDettagli(StringPool.BLANK); - } - else { - sorteggioImpl.setDettagli(dettagli); - } - - sorteggioImpl.setNumeroEstrazione(numeroEstrazione); - - if (pratica == null) { - sorteggioImpl.setPratica(StringPool.BLANK); - } - else { - sorteggioImpl.setPratica(pratica); - } - - if (committente == null) { - sorteggioImpl.setCommittente(StringPool.BLANK); - } - else { - sorteggioImpl.setCommittente(committente); - } - - if (comune == null) { - sorteggioImpl.setComune(StringPool.BLANK); - } - else { - sorteggioImpl.setComune(comune); - } - - if (provincia == null) { - sorteggioImpl.setProvincia(StringPool.BLANK); - } - else { - sorteggioImpl.setProvincia(provincia); - } - - if (tecnico == null) { - sorteggioImpl.setTecnico(StringPool.BLANK); - } - else { - sorteggioImpl.setTecnico(tecnico); - } - - if (mesePrecedente == null) { - sorteggioImpl.setMesePrecedente(StringPool.BLANK); - } - else { - sorteggioImpl.setMesePrecedente(mesePrecedente); - } - - sorteggioImpl.setEsterna(esterna); - sorteggioImpl.setPraticaEsternaId(praticaEsternaId); - sorteggioImpl.setOldSorteggioId(oldSorteggioId); - - sorteggioImpl.resetOriginalValues(); - - return sorteggioImpl; - } - - @Override - public void readExternal(ObjectInput objectInput) throws IOException { - uuid = objectInput.readUTF(); - sorteggioId = objectInput.readLong(); - companyId = objectInput.readLong(); - userId = objectInput.readLong(); - userName = objectInput.readUTF(); - createDate = objectInput.readLong(); - modifiedDate = objectInput.readLong(); - groupId = objectInput.readLong(); - status = objectInput.readInt(); - statusByUserId = objectInput.readLong(); - statusByUserName = objectInput.readUTF(); - statusDate = objectInput.readLong(); - intPraticaId = objectInput.readLong(); - dettPraticaId = objectInput.readLong(); - note = objectInput.readUTF(); - anno = objectInput.readUTF(); - mese = objectInput.readUTF(); - settimana = objectInput.readInt(); - dtSorteggio = objectInput.readLong(); - stato = objectInput.readUTF(); - dettagli = objectInput.readUTF(); - numeroEstrazione = objectInput.readLong(); - pratica = objectInput.readUTF(); - committente = objectInput.readUTF(); - comune = objectInput.readUTF(); - provincia = objectInput.readUTF(); - tecnico = objectInput.readUTF(); - mesePrecedente = objectInput.readUTF(); - esterna = objectInput.readBoolean(); - praticaEsternaId = objectInput.readLong(); - oldSorteggioId = objectInput.readLong(); - } - - @Override - public void writeExternal(ObjectOutput objectOutput) - throws IOException { - if (uuid == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(uuid); - } - - objectOutput.writeLong(sorteggioId); - objectOutput.writeLong(companyId); - objectOutput.writeLong(userId); - - if (userName == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(userName); - } - - objectOutput.writeLong(createDate); - objectOutput.writeLong(modifiedDate); - objectOutput.writeLong(groupId); - objectOutput.writeInt(status); - objectOutput.writeLong(statusByUserId); - - if (statusByUserName == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(statusByUserName); - } - - objectOutput.writeLong(statusDate); - objectOutput.writeLong(intPraticaId); - objectOutput.writeLong(dettPraticaId); - - if (note == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(note); - } - - if (anno == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(anno); - } - - if (mese == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(mese); - } - - objectOutput.writeInt(settimana); - objectOutput.writeLong(dtSorteggio); - - if (stato == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(stato); - } - - if (dettagli == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(dettagli); - } - - objectOutput.writeLong(numeroEstrazione); - - if (pratica == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(pratica); - } - - if (committente == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(committente); - } - - if (comune == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(comune); - } - - if (provincia == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(provincia); - } - - if (tecnico == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(tecnico); - } - - if (mesePrecedente == null) { - objectOutput.writeUTF(StringPool.BLANK); - } - else { - objectOutput.writeUTF(mesePrecedente); - } - - objectOutput.writeBoolean(esterna); - objectOutput.writeLong(praticaEsternaId); - objectOutput.writeLong(oldSorteggioId); - } - - public String uuid; - public long sorteggioId; - public long companyId; - public long userId; - public String userName; - public long createDate; - public long modifiedDate; - public long groupId; - public int status; - public long statusByUserId; - public String statusByUserName; - public long statusDate; - public long intPraticaId; - public long dettPraticaId; - public String note; - public String anno; - public String mese; - public int settimana; - public long dtSorteggio; - public String stato; - public String dettagli; - public long numeroEstrazione; - public String pratica; - public String committente; - public String comune; - public String provincia; - public String tecnico; - public String mesePrecedente; - public boolean esterna; - public long praticaEsternaId; - public long oldSorteggioId; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioImpl.java deleted file mode 100644 index fbd7b2b1..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.util.Validator; - -/** - * The extended model implementation for the Sorteggio service. Represents a row - * in the "portos_bo_Sorteggio" database table, with each column - * mapped to a property of this class. - * - *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.Sorteggio} interface. - *

- * - * @author Davide Barbagallo, 3F Consulting - */ -public class SorteggioImpl extends SorteggioBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a sorteggio - * model instance should use the {@link - * it.tref.liferay.portos.bo.model.Sorteggio} interface instead. - */ - public SorteggioImpl() { - } - - @Override - public boolean mesePrecedenteToBoolean() { - if (Validator.isNull(getMesePrecedente())) { - return false; - } - return Boolean.parseBoolean(getMesePrecedente()); - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioModelImpl.java deleted file mode 100644 index 06b0a7de..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SorteggioModelImpl.java +++ /dev/null @@ -1,1684 +0,0 @@ -/** - * 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.liferay.portos.bo.model.impl; - -import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSON; -import com.liferay.portal.kernel.lar.StagedModelType; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.ProxyUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.impl.BaseModelImpl; -import com.liferay.portal.service.ServiceContext; -import com.liferay.portal.util.PortalUtil; - -import com.liferay.portlet.expando.model.ExpandoBridge; -import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil; - -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.model.SorteggioModel; -import it.tref.liferay.portos.bo.model.SorteggioSoap; - -import java.io.Serializable; - -import java.sql.Types; - -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * The base model implementation for the Sorteggio service. Represents a row in the "portos_bo_Sorteggio" database table, with each column mapped to a property of this class. - * - *

- * This implementation and its corresponding interface {@link it.tref.liferay.portos.bo.model.SorteggioModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link SorteggioImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioImpl - * @see it.tref.liferay.portos.bo.model.Sorteggio - * @see it.tref.liferay.portos.bo.model.SorteggioModel - * @generated - */ -@JSON(strict = true) -public class SorteggioModelImpl extends BaseModelImpl - implements SorteggioModel { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. All methods that expect a sorteggio model instance should use the {@link it.tref.liferay.portos.bo.model.Sorteggio} interface instead. - */ - public static final String TABLE_NAME = "portos_bo_Sorteggio"; - public static final Object[][] TABLE_COLUMNS = { - { "uuid_", Types.VARCHAR }, - { "sorteggioId", Types.BIGINT }, - { "companyId", Types.BIGINT }, - { "userId", Types.BIGINT }, - { "userName", Types.VARCHAR }, - { "createDate", Types.TIMESTAMP }, - { "modifiedDate", Types.TIMESTAMP }, - { "groupId", Types.BIGINT }, - { "status", Types.INTEGER }, - { "statusByUserId", Types.BIGINT }, - { "statusByUserName", Types.VARCHAR }, - { "statusDate", Types.TIMESTAMP }, - { "intPraticaId", Types.BIGINT }, - { "dettPraticaId", Types.BIGINT }, - { "note", Types.VARCHAR }, - { "anno", Types.VARCHAR }, - { "mese", Types.VARCHAR }, - { "settimana", Types.INTEGER }, - { "dtSorteggio", Types.TIMESTAMP }, - { "stato", Types.VARCHAR }, - { "dettagli", Types.VARCHAR }, - { "numeroEstrazione", Types.BIGINT }, - { "pratica", Types.VARCHAR }, - { "committente", Types.VARCHAR }, - { "comune", Types.VARCHAR }, - { "provincia", Types.VARCHAR }, - { "tecnico", Types.VARCHAR }, - { "mesePrecedente", Types.VARCHAR }, - { "esterna", Types.BOOLEAN }, - { "praticaEsternaId", Types.BIGINT }, - { "oldSorteggioId", Types.BIGINT } - }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Sorteggio (uuid_ VARCHAR(75) null,sorteggioId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,intPraticaId LONG,dettPraticaId LONG,note STRING null,anno VARCHAR(4) null,mese VARCHAR(2) null,settimana INTEGER,dtSorteggio DATE null,stato VARCHAR(10) null,dettagli STRING null,numeroEstrazione LONG,pratica STRING null,committente STRING null,comune VARCHAR(75) null,provincia VARCHAR(75) null,tecnico VARCHAR(75) null,mesePrecedente VARCHAR(75) null,esterna BOOLEAN,praticaEsternaId LONG,oldSorteggioId LONG)"; - public static final String TABLE_SQL_DROP = "drop table portos_bo_Sorteggio"; - public static final String ORDER_BY_JPQL = " ORDER BY sorteggio.sorteggioId ASC"; - public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Sorteggio.sorteggioId ASC"; - public static final String DATA_SOURCE = "liferayDataSource"; - public static final String SESSION_FACTORY = "liferaySessionFactory"; - public static final String TX_MANAGER = "liferayTransactionManager"; - public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.entity.cache.enabled.it.tref.liferay.portos.bo.model.Sorteggio"), - true); - public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.finder.cache.enabled.it.tref.liferay.portos.bo.model.Sorteggio"), - true); - public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( - "value.object.column.bitmask.enabled.it.tref.liferay.portos.bo.model.Sorteggio"), - true); - public static long ANNO_COLUMN_BITMASK = 1L; - public static long COMPANYID_COLUMN_BITMASK = 2L; - public static long DETTPRATICAID_COLUMN_BITMASK = 4L; - public static long GROUPID_COLUMN_BITMASK = 8L; - public static long INTPRATICAID_COLUMN_BITMASK = 16L; - public static long MESE_COLUMN_BITMASK = 32L; - public static long OLDSORTEGGIOID_COLUMN_BITMASK = 64L; - public static long SETTIMANA_COLUMN_BITMASK = 128L; - public static long UUID_COLUMN_BITMASK = 256L; - public static long SORTEGGIOID_COLUMN_BITMASK = 512L; - - /** - * Converts the soap model instance into a normal model instance. - * - * @param soapModel the soap model instance to convert - * @return the normal model instance - */ - public static Sorteggio toModel(SorteggioSoap soapModel) { - if (soapModel == null) { - return null; - } - - Sorteggio model = new SorteggioImpl(); - - model.setUuid(soapModel.getUuid()); - model.setSorteggioId(soapModel.getSorteggioId()); - model.setCompanyId(soapModel.getCompanyId()); - model.setUserId(soapModel.getUserId()); - model.setUserName(soapModel.getUserName()); - model.setCreateDate(soapModel.getCreateDate()); - model.setModifiedDate(soapModel.getModifiedDate()); - model.setGroupId(soapModel.getGroupId()); - model.setStatus(soapModel.getStatus()); - model.setStatusByUserId(soapModel.getStatusByUserId()); - model.setStatusByUserName(soapModel.getStatusByUserName()); - model.setStatusDate(soapModel.getStatusDate()); - model.setIntPraticaId(soapModel.getIntPraticaId()); - model.setDettPraticaId(soapModel.getDettPraticaId()); - model.setNote(soapModel.getNote()); - model.setAnno(soapModel.getAnno()); - model.setMese(soapModel.getMese()); - model.setSettimana(soapModel.getSettimana()); - model.setDtSorteggio(soapModel.getDtSorteggio()); - model.setStato(soapModel.getStato()); - model.setDettagli(soapModel.getDettagli()); - model.setNumeroEstrazione(soapModel.getNumeroEstrazione()); - model.setPratica(soapModel.getPratica()); - model.setCommittente(soapModel.getCommittente()); - model.setComune(soapModel.getComune()); - model.setProvincia(soapModel.getProvincia()); - model.setTecnico(soapModel.getTecnico()); - model.setMesePrecedente(soapModel.getMesePrecedente()); - model.setEsterna(soapModel.getEsterna()); - model.setPraticaEsternaId(soapModel.getPraticaEsternaId()); - model.setOldSorteggioId(soapModel.getOldSorteggioId()); - - return model; - } - - /** - * Converts the soap model instances into normal model instances. - * - * @param soapModels the soap model instances to convert - * @return the normal model instances - */ - public static List toModels(SorteggioSoap[] soapModels) { - if (soapModels == null) { - return null; - } - - List models = new ArrayList(soapModels.length); - - for (SorteggioSoap soapModel : soapModels) { - models.add(toModel(soapModel)); - } - - return models; - } - - public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get( - "lock.expiration.time.it.tref.liferay.portos.bo.model.Sorteggio")); - - public SorteggioModelImpl() { - } - - @Override - public long getPrimaryKey() { - return _sorteggioId; - } - - @Override - public void setPrimaryKey(long primaryKey) { - setSorteggioId(primaryKey); - } - - @Override - public Serializable getPrimaryKeyObj() { - return _sorteggioId; - } - - @Override - public void setPrimaryKeyObj(Serializable primaryKeyObj) { - setPrimaryKey(((Long)primaryKeyObj).longValue()); - } - - @Override - public Class getModelClass() { - return Sorteggio.class; - } - - @Override - public String getModelClassName() { - return Sorteggio.class.getName(); - } - - @Override - public Map getModelAttributes() { - Map attributes = new HashMap(); - - attributes.put("uuid", getUuid()); - attributes.put("sorteggioId", getSorteggioId()); - attributes.put("companyId", getCompanyId()); - attributes.put("userId", getUserId()); - attributes.put("userName", getUserName()); - attributes.put("createDate", getCreateDate()); - attributes.put("modifiedDate", getModifiedDate()); - attributes.put("groupId", getGroupId()); - attributes.put("status", getStatus()); - attributes.put("statusByUserId", getStatusByUserId()); - attributes.put("statusByUserName", getStatusByUserName()); - attributes.put("statusDate", getStatusDate()); - attributes.put("intPraticaId", getIntPraticaId()); - attributes.put("dettPraticaId", getDettPraticaId()); - attributes.put("note", getNote()); - attributes.put("anno", getAnno()); - attributes.put("mese", getMese()); - attributes.put("settimana", getSettimana()); - attributes.put("dtSorteggio", getDtSorteggio()); - attributes.put("stato", getStato()); - attributes.put("dettagli", getDettagli()); - attributes.put("numeroEstrazione", getNumeroEstrazione()); - attributes.put("pratica", getPratica()); - attributes.put("committente", getCommittente()); - attributes.put("comune", getComune()); - attributes.put("provincia", getProvincia()); - attributes.put("tecnico", getTecnico()); - attributes.put("mesePrecedente", getMesePrecedente()); - attributes.put("esterna", getEsterna()); - attributes.put("praticaEsternaId", getPraticaEsternaId()); - attributes.put("oldSorteggioId", getOldSorteggioId()); - - return attributes; - } - - @Override - public void setModelAttributes(Map attributes) { - String uuid = (String)attributes.get("uuid"); - - if (uuid != null) { - setUuid(uuid); - } - - Long sorteggioId = (Long)attributes.get("sorteggioId"); - - if (sorteggioId != null) { - setSorteggioId(sorteggioId); - } - - Long companyId = (Long)attributes.get("companyId"); - - if (companyId != null) { - setCompanyId(companyId); - } - - Long userId = (Long)attributes.get("userId"); - - if (userId != null) { - setUserId(userId); - } - - String userName = (String)attributes.get("userName"); - - if (userName != null) { - setUserName(userName); - } - - Date createDate = (Date)attributes.get("createDate"); - - if (createDate != null) { - setCreateDate(createDate); - } - - Date modifiedDate = (Date)attributes.get("modifiedDate"); - - if (modifiedDate != null) { - setModifiedDate(modifiedDate); - } - - Long groupId = (Long)attributes.get("groupId"); - - if (groupId != null) { - setGroupId(groupId); - } - - Integer status = (Integer)attributes.get("status"); - - if (status != null) { - setStatus(status); - } - - Long statusByUserId = (Long)attributes.get("statusByUserId"); - - if (statusByUserId != null) { - setStatusByUserId(statusByUserId); - } - - String statusByUserName = (String)attributes.get("statusByUserName"); - - if (statusByUserName != null) { - setStatusByUserName(statusByUserName); - } - - Date statusDate = (Date)attributes.get("statusDate"); - - if (statusDate != null) { - setStatusDate(statusDate); - } - - Long intPraticaId = (Long)attributes.get("intPraticaId"); - - if (intPraticaId != null) { - setIntPraticaId(intPraticaId); - } - - Long dettPraticaId = (Long)attributes.get("dettPraticaId"); - - if (dettPraticaId != null) { - setDettPraticaId(dettPraticaId); - } - - String note = (String)attributes.get("note"); - - if (note != null) { - setNote(note); - } - - String anno = (String)attributes.get("anno"); - - if (anno != null) { - setAnno(anno); - } - - String mese = (String)attributes.get("mese"); - - if (mese != null) { - setMese(mese); - } - - Integer settimana = (Integer)attributes.get("settimana"); - - if (settimana != null) { - setSettimana(settimana); - } - - Date dtSorteggio = (Date)attributes.get("dtSorteggio"); - - if (dtSorteggio != null) { - setDtSorteggio(dtSorteggio); - } - - String stato = (String)attributes.get("stato"); - - if (stato != null) { - setStato(stato); - } - - String dettagli = (String)attributes.get("dettagli"); - - if (dettagli != null) { - setDettagli(dettagli); - } - - Long numeroEstrazione = (Long)attributes.get("numeroEstrazione"); - - if (numeroEstrazione != null) { - setNumeroEstrazione(numeroEstrazione); - } - - String pratica = (String)attributes.get("pratica"); - - if (pratica != null) { - setPratica(pratica); - } - - String committente = (String)attributes.get("committente"); - - if (committente != null) { - setCommittente(committente); - } - - String comune = (String)attributes.get("comune"); - - if (comune != null) { - setComune(comune); - } - - String provincia = (String)attributes.get("provincia"); - - if (provincia != null) { - setProvincia(provincia); - } - - String tecnico = (String)attributes.get("tecnico"); - - if (tecnico != null) { - setTecnico(tecnico); - } - - String mesePrecedente = (String)attributes.get("mesePrecedente"); - - if (mesePrecedente != null) { - setMesePrecedente(mesePrecedente); - } - - Boolean esterna = (Boolean)attributes.get("esterna"); - - if (esterna != null) { - setEsterna(esterna); - } - - Long praticaEsternaId = (Long)attributes.get("praticaEsternaId"); - - if (praticaEsternaId != null) { - setPraticaEsternaId(praticaEsternaId); - } - - Long oldSorteggioId = (Long)attributes.get("oldSorteggioId"); - - if (oldSorteggioId != null) { - setOldSorteggioId(oldSorteggioId); - } - } - - @JSON - @Override - public String getUuid() { - if (_uuid == null) { - return StringPool.BLANK; - } - else { - return _uuid; - } - } - - @Override - public void setUuid(String uuid) { - if (_originalUuid == null) { - _originalUuid = _uuid; - } - - _uuid = uuid; - } - - public String getOriginalUuid() { - return GetterUtil.getString(_originalUuid); - } - - @JSON - @Override - public long getSorteggioId() { - return _sorteggioId; - } - - @Override - public void setSorteggioId(long sorteggioId) { - _sorteggioId = sorteggioId; - } - - @JSON - @Override - public long getCompanyId() { - return _companyId; - } - - @Override - public void setCompanyId(long companyId) { - _columnBitmask |= COMPANYID_COLUMN_BITMASK; - - if (!_setOriginalCompanyId) { - _setOriginalCompanyId = true; - - _originalCompanyId = _companyId; - } - - _companyId = companyId; - } - - public long getOriginalCompanyId() { - return _originalCompanyId; - } - - @JSON - @Override - public long getUserId() { - return _userId; - } - - @Override - public void setUserId(long userId) { - _userId = userId; - } - - @Override - public String getUserUuid() throws SystemException { - return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); - } - - @Override - public void setUserUuid(String userUuid) { - _userUuid = userUuid; - } - - @JSON - @Override - public String getUserName() { - if (_userName == null) { - return StringPool.BLANK; - } - else { - return _userName; - } - } - - @Override - public void setUserName(String userName) { - _userName = userName; - } - - @JSON - @Override - public Date getCreateDate() { - return _createDate; - } - - @Override - public void setCreateDate(Date createDate) { - _createDate = createDate; - } - - @JSON - @Override - public Date getModifiedDate() { - return _modifiedDate; - } - - @Override - public void setModifiedDate(Date modifiedDate) { - _modifiedDate = modifiedDate; - } - - @JSON - @Override - public long getGroupId() { - return _groupId; - } - - @Override - public void setGroupId(long groupId) { - _columnBitmask |= GROUPID_COLUMN_BITMASK; - - if (!_setOriginalGroupId) { - _setOriginalGroupId = true; - - _originalGroupId = _groupId; - } - - _groupId = groupId; - } - - public long getOriginalGroupId() { - return _originalGroupId; - } - - @JSON - @Override - public int getStatus() { - return _status; - } - - @Override - public void setStatus(int status) { - _status = status; - } - - @JSON - @Override - public long getStatusByUserId() { - return _statusByUserId; - } - - @Override - public void setStatusByUserId(long statusByUserId) { - _statusByUserId = statusByUserId; - } - - @Override - public String getStatusByUserUuid() throws SystemException { - return PortalUtil.getUserValue(getStatusByUserId(), "uuid", - _statusByUserUuid); - } - - @Override - public void setStatusByUserUuid(String statusByUserUuid) { - _statusByUserUuid = statusByUserUuid; - } - - @JSON - @Override - public String getStatusByUserName() { - if (_statusByUserName == null) { - return StringPool.BLANK; - } - else { - return _statusByUserName; - } - } - - @Override - public void setStatusByUserName(String statusByUserName) { - _statusByUserName = statusByUserName; - } - - @JSON - @Override - public Date getStatusDate() { - return _statusDate; - } - - @Override - public void setStatusDate(Date statusDate) { - _statusDate = statusDate; - } - - @JSON - @Override - public long getIntPraticaId() { - return _intPraticaId; - } - - @Override - public void setIntPraticaId(long intPraticaId) { - _columnBitmask |= INTPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalIntPraticaId) { - _setOriginalIntPraticaId = true; - - _originalIntPraticaId = _intPraticaId; - } - - _intPraticaId = intPraticaId; - } - - public long getOriginalIntPraticaId() { - return _originalIntPraticaId; - } - - @JSON - @Override - public long getDettPraticaId() { - return _dettPraticaId; - } - - @Override - public void setDettPraticaId(long dettPraticaId) { - _columnBitmask |= DETTPRATICAID_COLUMN_BITMASK; - - if (!_setOriginalDettPraticaId) { - _setOriginalDettPraticaId = true; - - _originalDettPraticaId = _dettPraticaId; - } - - _dettPraticaId = dettPraticaId; - } - - public long getOriginalDettPraticaId() { - return _originalDettPraticaId; - } - - @JSON - @Override - public String getNote() { - if (_note == null) { - return StringPool.BLANK; - } - else { - return _note; - } - } - - @Override - public void setNote(String note) { - _note = note; - } - - @JSON - @Override - public String getAnno() { - if (_anno == null) { - return StringPool.BLANK; - } - else { - return _anno; - } - } - - @Override - public void setAnno(String anno) { - _columnBitmask |= ANNO_COLUMN_BITMASK; - - if (_originalAnno == null) { - _originalAnno = _anno; - } - - _anno = anno; - } - - public String getOriginalAnno() { - return GetterUtil.getString(_originalAnno); - } - - @JSON - @Override - public String getMese() { - if (_mese == null) { - return StringPool.BLANK; - } - else { - return _mese; - } - } - - @Override - public void setMese(String mese) { - _columnBitmask |= MESE_COLUMN_BITMASK; - - if (_originalMese == null) { - _originalMese = _mese; - } - - _mese = mese; - } - - public String getOriginalMese() { - return GetterUtil.getString(_originalMese); - } - - @JSON - @Override - public int getSettimana() { - return _settimana; - } - - @Override - public void setSettimana(int settimana) { - _columnBitmask |= SETTIMANA_COLUMN_BITMASK; - - if (!_setOriginalSettimana) { - _setOriginalSettimana = true; - - _originalSettimana = _settimana; - } - - _settimana = settimana; - } - - public int getOriginalSettimana() { - return _originalSettimana; - } - - @JSON - @Override - public Date getDtSorteggio() { - return _dtSorteggio; - } - - @Override - public void setDtSorteggio(Date dtSorteggio) { - _dtSorteggio = dtSorteggio; - } - - @JSON - @Override - public String getStato() { - if (_stato == null) { - return StringPool.BLANK; - } - else { - return _stato; - } - } - - @Override - public void setStato(String stato) { - _stato = stato; - } - - @JSON - @Override - public String getDettagli() { - if (_dettagli == null) { - return StringPool.BLANK; - } - else { - return _dettagli; - } - } - - @Override - public void setDettagli(String dettagli) { - _dettagli = dettagli; - } - - @JSON - @Override - public long getNumeroEstrazione() { - return _numeroEstrazione; - } - - @Override - public void setNumeroEstrazione(long numeroEstrazione) { - _numeroEstrazione = numeroEstrazione; - } - - @JSON - @Override - public String getPratica() { - if (_pratica == null) { - return StringPool.BLANK; - } - else { - return _pratica; - } - } - - @Override - public void setPratica(String pratica) { - _pratica = pratica; - } - - @JSON - @Override - public String getCommittente() { - if (_committente == null) { - return StringPool.BLANK; - } - else { - return _committente; - } - } - - @Override - public void setCommittente(String committente) { - _committente = committente; - } - - @JSON - @Override - public String getComune() { - if (_comune == null) { - return StringPool.BLANK; - } - else { - return _comune; - } - } - - @Override - public void setComune(String comune) { - _comune = comune; - } - - @JSON - @Override - public String getProvincia() { - if (_provincia == null) { - return StringPool.BLANK; - } - else { - return _provincia; - } - } - - @Override - public void setProvincia(String provincia) { - _provincia = provincia; - } - - @JSON - @Override - public String getTecnico() { - if (_tecnico == null) { - return StringPool.BLANK; - } - else { - return _tecnico; - } - } - - @Override - public void setTecnico(String tecnico) { - _tecnico = tecnico; - } - - @JSON - @Override - public String getMesePrecedente() { - if (_mesePrecedente == null) { - return StringPool.BLANK; - } - else { - return _mesePrecedente; - } - } - - @Override - public void setMesePrecedente(String mesePrecedente) { - _mesePrecedente = mesePrecedente; - } - - @JSON - @Override - public boolean getEsterna() { - return _esterna; - } - - @Override - public boolean isEsterna() { - return _esterna; - } - - @Override - public void setEsterna(boolean esterna) { - _esterna = esterna; - } - - @JSON - @Override - public long getPraticaEsternaId() { - return _praticaEsternaId; - } - - @Override - public void setPraticaEsternaId(long praticaEsternaId) { - _praticaEsternaId = praticaEsternaId; - } - - @JSON - @Override - public long getOldSorteggioId() { - return _oldSorteggioId; - } - - @Override - public void setOldSorteggioId(long oldSorteggioId) { - _columnBitmask |= OLDSORTEGGIOID_COLUMN_BITMASK; - - if (!_setOriginalOldSorteggioId) { - _setOriginalOldSorteggioId = true; - - _originalOldSorteggioId = _oldSorteggioId; - } - - _oldSorteggioId = oldSorteggioId; - } - - public long getOriginalOldSorteggioId() { - return _originalOldSorteggioId; - } - - @Override - public StagedModelType getStagedModelType() { - return new StagedModelType(PortalUtil.getClassNameId( - Sorteggio.class.getName())); - } - - /** - * @deprecated As of 6.1.0, replaced by {@link #isApproved} - */ - @Override - public boolean getApproved() { - return isApproved(); - } - - @Override - public boolean isApproved() { - if (getStatus() == WorkflowConstants.STATUS_APPROVED) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isDenied() { - if (getStatus() == WorkflowConstants.STATUS_DENIED) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isDraft() { - if (getStatus() == WorkflowConstants.STATUS_DRAFT) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isExpired() { - if (getStatus() == WorkflowConstants.STATUS_EXPIRED) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isInactive() { - if (getStatus() == WorkflowConstants.STATUS_INACTIVE) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isIncomplete() { - if (getStatus() == WorkflowConstants.STATUS_INCOMPLETE) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isPending() { - if (getStatus() == WorkflowConstants.STATUS_PENDING) { - return true; - } - else { - return false; - } - } - - @Override - public boolean isScheduled() { - if (getStatus() == WorkflowConstants.STATUS_SCHEDULED) { - return true; - } - else { - return false; - } - } - - public long getColumnBitmask() { - return _columnBitmask; - } - - @Override - public ExpandoBridge getExpandoBridge() { - return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(), - Sorteggio.class.getName(), getPrimaryKey()); - } - - @Override - public void setExpandoBridgeAttributes(ServiceContext serviceContext) { - ExpandoBridge expandoBridge = getExpandoBridge(); - - expandoBridge.setAttributes(serviceContext); - } - - @Override - public Sorteggio toEscapedModel() { - if (_escapedModel == null) { - _escapedModel = (Sorteggio)ProxyUtil.newProxyInstance(_classLoader, - _escapedModelInterfaces, new AutoEscapeBeanHandler(this)); - } - - return _escapedModel; - } - - @Override - public Object clone() { - SorteggioImpl sorteggioImpl = new SorteggioImpl(); - - sorteggioImpl.setUuid(getUuid()); - sorteggioImpl.setSorteggioId(getSorteggioId()); - sorteggioImpl.setCompanyId(getCompanyId()); - sorteggioImpl.setUserId(getUserId()); - sorteggioImpl.setUserName(getUserName()); - sorteggioImpl.setCreateDate(getCreateDate()); - sorteggioImpl.setModifiedDate(getModifiedDate()); - sorteggioImpl.setGroupId(getGroupId()); - sorteggioImpl.setStatus(getStatus()); - sorteggioImpl.setStatusByUserId(getStatusByUserId()); - sorteggioImpl.setStatusByUserName(getStatusByUserName()); - sorteggioImpl.setStatusDate(getStatusDate()); - sorteggioImpl.setIntPraticaId(getIntPraticaId()); - sorteggioImpl.setDettPraticaId(getDettPraticaId()); - sorteggioImpl.setNote(getNote()); - sorteggioImpl.setAnno(getAnno()); - sorteggioImpl.setMese(getMese()); - sorteggioImpl.setSettimana(getSettimana()); - sorteggioImpl.setDtSorteggio(getDtSorteggio()); - sorteggioImpl.setStato(getStato()); - sorteggioImpl.setDettagli(getDettagli()); - sorteggioImpl.setNumeroEstrazione(getNumeroEstrazione()); - sorteggioImpl.setPratica(getPratica()); - sorteggioImpl.setCommittente(getCommittente()); - sorteggioImpl.setComune(getComune()); - sorteggioImpl.setProvincia(getProvincia()); - sorteggioImpl.setTecnico(getTecnico()); - sorteggioImpl.setMesePrecedente(getMesePrecedente()); - sorteggioImpl.setEsterna(getEsterna()); - sorteggioImpl.setPraticaEsternaId(getPraticaEsternaId()); - sorteggioImpl.setOldSorteggioId(getOldSorteggioId()); - - sorteggioImpl.resetOriginalValues(); - - return sorteggioImpl; - } - - @Override - public int compareTo(Sorteggio sorteggio) { - long primaryKey = sorteggio.getPrimaryKey(); - - if (getPrimaryKey() < primaryKey) { - return -1; - } - else if (getPrimaryKey() > primaryKey) { - return 1; - } - else { - return 0; - } - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (!(obj instanceof Sorteggio)) { - return false; - } - - Sorteggio sorteggio = (Sorteggio)obj; - - long primaryKey = sorteggio.getPrimaryKey(); - - if (getPrimaryKey() == primaryKey) { - return true; - } - else { - return false; - } - } - - @Override - public int hashCode() { - return (int)getPrimaryKey(); - } - - @Override - public void resetOriginalValues() { - SorteggioModelImpl sorteggioModelImpl = this; - - sorteggioModelImpl._originalUuid = sorteggioModelImpl._uuid; - - sorteggioModelImpl._originalCompanyId = sorteggioModelImpl._companyId; - - sorteggioModelImpl._setOriginalCompanyId = false; - - sorteggioModelImpl._originalGroupId = sorteggioModelImpl._groupId; - - sorteggioModelImpl._setOriginalGroupId = false; - - sorteggioModelImpl._originalIntPraticaId = sorteggioModelImpl._intPraticaId; - - sorteggioModelImpl._setOriginalIntPraticaId = false; - - sorteggioModelImpl._originalDettPraticaId = sorteggioModelImpl._dettPraticaId; - - sorteggioModelImpl._setOriginalDettPraticaId = false; - - sorteggioModelImpl._originalAnno = sorteggioModelImpl._anno; - - sorteggioModelImpl._originalMese = sorteggioModelImpl._mese; - - sorteggioModelImpl._originalSettimana = sorteggioModelImpl._settimana; - - sorteggioModelImpl._setOriginalSettimana = false; - - sorteggioModelImpl._originalOldSorteggioId = sorteggioModelImpl._oldSorteggioId; - - sorteggioModelImpl._setOriginalOldSorteggioId = false; - - sorteggioModelImpl._columnBitmask = 0; - } - - @Override - public CacheModel toCacheModel() { - SorteggioCacheModel sorteggioCacheModel = new SorteggioCacheModel(); - - sorteggioCacheModel.uuid = getUuid(); - - String uuid = sorteggioCacheModel.uuid; - - if ((uuid != null) && (uuid.length() == 0)) { - sorteggioCacheModel.uuid = null; - } - - sorteggioCacheModel.sorteggioId = getSorteggioId(); - - sorteggioCacheModel.companyId = getCompanyId(); - - sorteggioCacheModel.userId = getUserId(); - - sorteggioCacheModel.userName = getUserName(); - - String userName = sorteggioCacheModel.userName; - - if ((userName != null) && (userName.length() == 0)) { - sorteggioCacheModel.userName = null; - } - - Date createDate = getCreateDate(); - - if (createDate != null) { - sorteggioCacheModel.createDate = createDate.getTime(); - } - else { - sorteggioCacheModel.createDate = Long.MIN_VALUE; - } - - Date modifiedDate = getModifiedDate(); - - if (modifiedDate != null) { - sorteggioCacheModel.modifiedDate = modifiedDate.getTime(); - } - else { - sorteggioCacheModel.modifiedDate = Long.MIN_VALUE; - } - - sorteggioCacheModel.groupId = getGroupId(); - - sorteggioCacheModel.status = getStatus(); - - sorteggioCacheModel.statusByUserId = getStatusByUserId(); - - sorteggioCacheModel.statusByUserName = getStatusByUserName(); - - String statusByUserName = sorteggioCacheModel.statusByUserName; - - if ((statusByUserName != null) && (statusByUserName.length() == 0)) { - sorteggioCacheModel.statusByUserName = null; - } - - Date statusDate = getStatusDate(); - - if (statusDate != null) { - sorteggioCacheModel.statusDate = statusDate.getTime(); - } - else { - sorteggioCacheModel.statusDate = Long.MIN_VALUE; - } - - sorteggioCacheModel.intPraticaId = getIntPraticaId(); - - sorteggioCacheModel.dettPraticaId = getDettPraticaId(); - - sorteggioCacheModel.note = getNote(); - - String note = sorteggioCacheModel.note; - - if ((note != null) && (note.length() == 0)) { - sorteggioCacheModel.note = null; - } - - sorteggioCacheModel.anno = getAnno(); - - String anno = sorteggioCacheModel.anno; - - if ((anno != null) && (anno.length() == 0)) { - sorteggioCacheModel.anno = null; - } - - sorteggioCacheModel.mese = getMese(); - - String mese = sorteggioCacheModel.mese; - - if ((mese != null) && (mese.length() == 0)) { - sorteggioCacheModel.mese = null; - } - - sorteggioCacheModel.settimana = getSettimana(); - - Date dtSorteggio = getDtSorteggio(); - - if (dtSorteggio != null) { - sorteggioCacheModel.dtSorteggio = dtSorteggio.getTime(); - } - else { - sorteggioCacheModel.dtSorteggio = Long.MIN_VALUE; - } - - sorteggioCacheModel.stato = getStato(); - - String stato = sorteggioCacheModel.stato; - - if ((stato != null) && (stato.length() == 0)) { - sorteggioCacheModel.stato = null; - } - - sorteggioCacheModel.dettagli = getDettagli(); - - String dettagli = sorteggioCacheModel.dettagli; - - if ((dettagli != null) && (dettagli.length() == 0)) { - sorteggioCacheModel.dettagli = null; - } - - sorteggioCacheModel.numeroEstrazione = getNumeroEstrazione(); - - sorteggioCacheModel.pratica = getPratica(); - - String pratica = sorteggioCacheModel.pratica; - - if ((pratica != null) && (pratica.length() == 0)) { - sorteggioCacheModel.pratica = null; - } - - sorteggioCacheModel.committente = getCommittente(); - - String committente = sorteggioCacheModel.committente; - - if ((committente != null) && (committente.length() == 0)) { - sorteggioCacheModel.committente = null; - } - - sorteggioCacheModel.comune = getComune(); - - String comune = sorteggioCacheModel.comune; - - if ((comune != null) && (comune.length() == 0)) { - sorteggioCacheModel.comune = null; - } - - sorteggioCacheModel.provincia = getProvincia(); - - String provincia = sorteggioCacheModel.provincia; - - if ((provincia != null) && (provincia.length() == 0)) { - sorteggioCacheModel.provincia = null; - } - - sorteggioCacheModel.tecnico = getTecnico(); - - String tecnico = sorteggioCacheModel.tecnico; - - if ((tecnico != null) && (tecnico.length() == 0)) { - sorteggioCacheModel.tecnico = null; - } - - sorteggioCacheModel.mesePrecedente = getMesePrecedente(); - - String mesePrecedente = sorteggioCacheModel.mesePrecedente; - - if ((mesePrecedente != null) && (mesePrecedente.length() == 0)) { - sorteggioCacheModel.mesePrecedente = null; - } - - sorteggioCacheModel.esterna = getEsterna(); - - sorteggioCacheModel.praticaEsternaId = getPraticaEsternaId(); - - sorteggioCacheModel.oldSorteggioId = getOldSorteggioId(); - - return sorteggioCacheModel; - } - - @Override - public String toString() { - StringBundler sb = new StringBundler(63); - - sb.append("{uuid="); - sb.append(getUuid()); - sb.append(", sorteggioId="); - sb.append(getSorteggioId()); - sb.append(", companyId="); - sb.append(getCompanyId()); - sb.append(", userId="); - sb.append(getUserId()); - sb.append(", userName="); - sb.append(getUserName()); - sb.append(", createDate="); - sb.append(getCreateDate()); - sb.append(", modifiedDate="); - sb.append(getModifiedDate()); - sb.append(", groupId="); - sb.append(getGroupId()); - sb.append(", status="); - sb.append(getStatus()); - sb.append(", statusByUserId="); - sb.append(getStatusByUserId()); - sb.append(", statusByUserName="); - sb.append(getStatusByUserName()); - sb.append(", statusDate="); - sb.append(getStatusDate()); - sb.append(", intPraticaId="); - sb.append(getIntPraticaId()); - sb.append(", dettPraticaId="); - sb.append(getDettPraticaId()); - sb.append(", note="); - sb.append(getNote()); - sb.append(", anno="); - sb.append(getAnno()); - sb.append(", mese="); - sb.append(getMese()); - sb.append(", settimana="); - sb.append(getSettimana()); - sb.append(", dtSorteggio="); - sb.append(getDtSorteggio()); - sb.append(", stato="); - sb.append(getStato()); - sb.append(", dettagli="); - sb.append(getDettagli()); - sb.append(", numeroEstrazione="); - sb.append(getNumeroEstrazione()); - sb.append(", pratica="); - sb.append(getPratica()); - sb.append(", committente="); - sb.append(getCommittente()); - sb.append(", comune="); - sb.append(getComune()); - sb.append(", provincia="); - sb.append(getProvincia()); - sb.append(", tecnico="); - sb.append(getTecnico()); - sb.append(", mesePrecedente="); - sb.append(getMesePrecedente()); - sb.append(", esterna="); - sb.append(getEsterna()); - sb.append(", praticaEsternaId="); - sb.append(getPraticaEsternaId()); - sb.append(", oldSorteggioId="); - sb.append(getOldSorteggioId()); - sb.append("}"); - - return sb.toString(); - } - - @Override - public String toXmlString() { - StringBundler sb = new StringBundler(97); - - sb.append(""); - sb.append("it.tref.liferay.portos.bo.model.Sorteggio"); - sb.append(""); - - sb.append( - "uuid"); - sb.append( - "sorteggioId"); - sb.append( - "companyId"); - sb.append( - "userId"); - sb.append( - "userName"); - sb.append( - "createDate"); - sb.append( - "modifiedDate"); - sb.append( - "groupId"); - sb.append( - "status"); - sb.append( - "statusByUserId"); - sb.append( - "statusByUserName"); - sb.append( - "statusDate"); - sb.append( - "intPraticaId"); - sb.append( - "dettPraticaId"); - sb.append( - "note"); - sb.append( - "anno"); - sb.append( - "mese"); - sb.append( - "settimana"); - sb.append( - "dtSorteggio"); - sb.append( - "stato"); - sb.append( - "dettagli"); - sb.append( - "numeroEstrazione"); - sb.append( - "pratica"); - sb.append( - "committente"); - sb.append( - "comune"); - sb.append( - "provincia"); - sb.append( - "tecnico"); - sb.append( - "mesePrecedente"); - sb.append( - "esterna"); - sb.append( - "praticaEsternaId"); - sb.append( - "oldSorteggioId"); - - sb.append(""); - - return sb.toString(); - } - - private static ClassLoader _classLoader = Sorteggio.class.getClassLoader(); - private static Class[] _escapedModelInterfaces = new Class[] { - Sorteggio.class - }; - private String _uuid; - private String _originalUuid; - private long _sorteggioId; - private long _companyId; - private long _originalCompanyId; - private boolean _setOriginalCompanyId; - private long _userId; - private String _userUuid; - private String _userName; - private Date _createDate; - private Date _modifiedDate; - private long _groupId; - private long _originalGroupId; - private boolean _setOriginalGroupId; - private int _status; - private long _statusByUserId; - private String _statusByUserUuid; - private String _statusByUserName; - private Date _statusDate; - private long _intPraticaId; - private long _originalIntPraticaId; - private boolean _setOriginalIntPraticaId; - private long _dettPraticaId; - private long _originalDettPraticaId; - private boolean _setOriginalDettPraticaId; - private String _note; - private String _anno; - private String _originalAnno; - private String _mese; - private String _originalMese; - private int _settimana; - private int _originalSettimana; - private boolean _setOriginalSettimana; - private Date _dtSorteggio; - private String _stato; - private String _dettagli; - private long _numeroEstrazione; - private String _pratica; - private String _committente; - private String _comune; - private String _provincia; - private String _tecnico; - private String _mesePrecedente; - private boolean _esterna; - private long _praticaEsternaId; - private long _oldSorteggioId; - private long _originalOldSorteggioId; - private boolean _setOriginalOldSorteggioId; - private long _columnBitmask; - private Sorteggio _escapedModel; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaCacheModel.java index db245843..e6d3ad18 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaCacheModel.java @@ -38,7 +38,7 @@ public class StoricoSoggettoPraticaCacheModel implements CacheModel - * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} + * interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class StoricoSoggettoPraticaImpl extends StoricoSoggettoPraticaBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a storico soggetto pratica model instance should use the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a storico soggetto pratica + * model instance should use the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} interface instead. */ public StoricoSoggettoPraticaImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaModelImpl.java index 308f11ea..62979ec2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaModelImpl.java @@ -77,10 +77,9 @@ public class StoricoSoggettoPraticaModelImpl extends BaseModelImpl"); sb.append("it.tref.liferay.portos.bo.model.StoricoSoggettoPratica"); @@ -749,10 +705,6 @@ public class StoricoSoggettoPraticaModelImpl extends BaseModelImplcodiceFiscale
"); - sb.append( - "oldStoricoSoggettoPraticaId"); sb.append("
"); @@ -779,9 +731,6 @@ public class StoricoSoggettoPraticaModelImpl extends BaseModelImpl, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(33); + StringBundler sb = new StringBundler(31); sb.append("{uuid="); sb.append(uuid); @@ -70,8 +70,6 @@ public class TempisticaCacheModel implements CacheModel, sb.append(wait); sb.append(", completo="); sb.append(completo); - sb.append(", oldTempisticaId="); - sb.append(oldTempisticaId); sb.append("}"); return sb.toString(); @@ -128,7 +126,6 @@ public class TempisticaCacheModel implements CacheModel, tempisticaImpl.setStop(stop); tempisticaImpl.setWait(wait); tempisticaImpl.setCompleto(completo); - tempisticaImpl.setOldTempisticaId(oldTempisticaId); tempisticaImpl.resetOriginalValues(); @@ -152,7 +149,6 @@ public class TempisticaCacheModel implements CacheModel, stop = objectInput.readLong(); wait = objectInput.readLong(); completo = objectInput.readBoolean(); - oldTempisticaId = objectInput.readLong(); } @Override @@ -193,7 +189,6 @@ public class TempisticaCacheModel implements CacheModel, objectOutput.writeLong(stop); objectOutput.writeLong(wait); objectOutput.writeBoolean(completo); - objectOutput.writeLong(oldTempisticaId); } public String uuid; @@ -211,5 +206,4 @@ public class TempisticaCacheModel implements CacheModel, public long stop; public long wait; public boolean completo; - public long oldTempisticaId; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaImpl.java index 3ac46fd7..b4ecc628 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaImpl.java @@ -1,34 +1,34 @@ /** * 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) + * 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 + * 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.bo.model.impl; /** - * The extended model implementation for the Tempistica service. Represents a row in the "portos_bo_Tempistica" database table, with each column mapped to a property of this class. + * The extended model implementation for the Tempistica service. Represents a row in the + * "portos_bo_Tempistica" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Tempistica} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Tempistica} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class TempisticaImpl extends TempisticaBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a tempistica model instance should use the {@link it.tref.liferay.portos.bo.model.Tempistica} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a tempistica model instance + * should use the {@link it.tref.liferay.portos.bo.model.Tempistica} interface instead. */ public TempisticaImpl() { } -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaModelImpl.java index 8a2bed1d..e4536c3c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaModelImpl.java @@ -81,10 +81,9 @@ public class TempisticaModelImpl extends BaseModelImpl { "start_", Types.BIGINT }, { "stop", Types.BIGINT }, { "wait", Types.BIGINT }, - { "completo", Types.BOOLEAN }, - { "oldTempisticaId", Types.BIGINT } + { "completo", Types.BOOLEAN } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Tempistica (uuid_ VARCHAR(75) null,tempisticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,dettPraticaId LONG,tipo VARCHAR(75) null,start_ LONG,stop LONG,wait LONG,completo BOOLEAN,oldTempisticaId LONG)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Tempistica (uuid_ VARCHAR(75) null,tempisticaId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,dettPraticaId LONG,tipo VARCHAR(75) null,start_ LONG,stop LONG,wait LONG,completo BOOLEAN)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Tempistica"; public static final String ORDER_BY_JPQL = " ORDER BY tempistica.tempisticaId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Tempistica.tempisticaId ASC"; @@ -104,10 +103,9 @@ public class TempisticaModelImpl extends BaseModelImpl public static long COMPLETO_COLUMN_BITMASK = 2L; public static long GROUPID_COLUMN_BITMASK = 4L; public static long INTPRATICAID_COLUMN_BITMASK = 8L; - public static long OLDTEMPISTICAID_COLUMN_BITMASK = 16L; - public static long TIPO_COLUMN_BITMASK = 32L; - public static long UUID_COLUMN_BITMASK = 64L; - public static long TEMPISTICAID_COLUMN_BITMASK = 128L; + public static long TIPO_COLUMN_BITMASK = 16L; + public static long UUID_COLUMN_BITMASK = 32L; + public static long TEMPISTICAID_COLUMN_BITMASK = 64L; /** * Converts the soap model instance into a normal model instance. @@ -137,7 +135,6 @@ public class TempisticaModelImpl extends BaseModelImpl model.setStop(soapModel.getStop()); model.setWait(soapModel.getWait()); model.setCompleto(soapModel.getCompleto()); - model.setOldTempisticaId(soapModel.getOldTempisticaId()); return model; } @@ -217,7 +214,6 @@ public class TempisticaModelImpl extends BaseModelImpl attributes.put("stop", getStop()); attributes.put("wait", getWait()); attributes.put("completo", getCompleto()); - attributes.put("oldTempisticaId", getOldTempisticaId()); return attributes; } @@ -313,12 +309,6 @@ public class TempisticaModelImpl extends BaseModelImpl if (completo != null) { setCompleto(completo); } - - Long oldTempisticaId = (Long)attributes.get("oldTempisticaId"); - - if (oldTempisticaId != null) { - setOldTempisticaId(oldTempisticaId); - } } @JSON @@ -582,29 +572,6 @@ public class TempisticaModelImpl extends BaseModelImpl return _originalCompleto; } - @JSON - @Override - public long getOldTempisticaId() { - return _oldTempisticaId; - } - - @Override - public void setOldTempisticaId(long oldTempisticaId) { - _columnBitmask |= OLDTEMPISTICAID_COLUMN_BITMASK; - - if (!_setOriginalOldTempisticaId) { - _setOriginalOldTempisticaId = true; - - _originalOldTempisticaId = _oldTempisticaId; - } - - _oldTempisticaId = oldTempisticaId; - } - - public long getOriginalOldTempisticaId() { - return _originalOldTempisticaId; - } - @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( @@ -657,7 +624,6 @@ public class TempisticaModelImpl extends BaseModelImpl tempisticaImpl.setStop(getStop()); tempisticaImpl.setWait(getWait()); tempisticaImpl.setCompleto(getCompleto()); - tempisticaImpl.setOldTempisticaId(getOldTempisticaId()); tempisticaImpl.resetOriginalValues(); @@ -730,10 +696,6 @@ public class TempisticaModelImpl extends BaseModelImpl tempisticaModelImpl._setOriginalCompleto = false; - tempisticaModelImpl._originalOldTempisticaId = tempisticaModelImpl._oldTempisticaId; - - tempisticaModelImpl._setOriginalOldTempisticaId = false; - tempisticaModelImpl._columnBitmask = 0; } @@ -803,14 +765,12 @@ public class TempisticaModelImpl extends BaseModelImpl tempisticaCacheModel.completo = getCompleto(); - tempisticaCacheModel.oldTempisticaId = getOldTempisticaId(); - return tempisticaCacheModel; } @Override public String toString() { - StringBundler sb = new StringBundler(33); + StringBundler sb = new StringBundler(31); sb.append("{uuid="); sb.append(getUuid()); @@ -842,8 +802,6 @@ public class TempisticaModelImpl extends BaseModelImpl sb.append(getWait()); sb.append(", completo="); sb.append(getCompleto()); - sb.append(", oldTempisticaId="); - sb.append(getOldTempisticaId()); sb.append("}"); return sb.toString(); @@ -851,7 +809,7 @@ public class TempisticaModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(52); + StringBundler sb = new StringBundler(49); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Tempistica"); @@ -917,10 +875,6 @@ public class TempisticaModelImpl extends BaseModelImpl "completo"); - sb.append( - "oldTempisticaId"); sb.append(""); @@ -957,9 +911,6 @@ public class TempisticaModelImpl extends BaseModelImpl private boolean _completo; private boolean _originalCompleto; private boolean _setOriginalCompleto; - private long _oldTempisticaId; - private long _originalOldTempisticaId; - private boolean _setOriginalOldTempisticaId; private long _columnBitmask; private Tempistica _escapedModel; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioCacheModel.java index e2beaaa2..83b441e4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioCacheModel.java @@ -38,7 +38,7 @@ public class TerritorioCacheModel implements CacheModel, Externalizable { @Override public String toString() { - StringBundler sb = new StringBundler(35); + StringBundler sb = new StringBundler(33); sb.append("{territorioId="); sb.append(territorioId); @@ -68,8 +68,6 @@ public class TerritorioCacheModel implements CacheModel, sb.append(dtIni); sb.append(", dtFin="); sb.append(dtFin); - sb.append(", oldTerritorioId="); - sb.append(oldTerritorioId); sb.append(", agMin="); sb.append(agMin); sb.append(", agMax="); @@ -149,8 +147,6 @@ public class TerritorioCacheModel implements CacheModel, territorioImpl.setDtFin(new Date(dtFin)); } - territorioImpl.setOldTerritorioId(oldTerritorioId); - if (agMin == null) { territorioImpl.setAgMin(StringPool.BLANK); } @@ -186,7 +182,6 @@ public class TerritorioCacheModel implements CacheModel, articolo61 = objectInput.readBoolean(); dtIni = objectInput.readLong(); dtFin = objectInput.readLong(); - oldTerritorioId = objectInput.readLong(); agMin = objectInput.readUTF(); agMax = objectInput.readUTF(); } @@ -235,7 +230,6 @@ public class TerritorioCacheModel implements CacheModel, objectOutput.writeBoolean(articolo61); objectOutput.writeLong(dtIni); objectOutput.writeLong(dtFin); - objectOutput.writeLong(oldTerritorioId); if (agMin == null) { objectOutput.writeUTF(StringPool.BLANK); @@ -266,7 +260,6 @@ public class TerritorioCacheModel implements CacheModel, public boolean articolo61; public long dtIni; public long dtFin; - public long oldTerritorioId; public String agMin; public String agMax; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioImpl.java index 80c12765..44d9c48a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioImpl.java @@ -1,45 +1,44 @@ /** * 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 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. + * 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.bo.model.impl; /** - * The extended model implementation for the Territorio service. Represents a - * row in the "portos_bo_Territorio" database table, with each column - * mapped to a property of this class. + * The extended model implementation for the Territorio service. Represents a row in the + * "portos_bo_Territorio" database table, with each column mapped to a property of this class. * *

- * Helper methods and all application logic should be put in this class. - * Whenever methods are added, rerun ServiceBuilder to copy their definitions - * into the {@link it.tref.liferay.portos.bo.model.Territorio} interface. + * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun + * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Territorio} interface. *

* * @author Davide Barbagallo, 3F Consulting */ +@SuppressWarnings("serial") public class TerritorioImpl extends TerritorioBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this class directly. All methods that expect a territorio - * model instance should use the {@link - * it.tref.liferay.portos.bo.model.Territorio} interface instead. + * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a territorio model instance + * should use the {@link it.tref.liferay.portos.bo.model.Territorio} interface instead. */ public TerritorioImpl() { } + @Override public String getZonaFasciaDesc() { - String ret = "Zona " + getZona(); - if (getArticolo61()) - ret += " - abitato da consolidare"; - return ret; + StringBuilder sb = new StringBuilder(); + sb.append("Zona ").append(getZona()); + if (getArticolo61()) { + sb.append(" - abitato da consolidare"); + } + return sb.toString(); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioModelImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioModelImpl.java index 7c8a2969..37afa9fb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioModelImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioModelImpl.java @@ -80,11 +80,10 @@ public class TerritorioModelImpl extends BaseModelImpl { "articolo61", Types.BOOLEAN }, { "dtIni", Types.TIMESTAMP }, { "dtFin", Types.TIMESTAMP }, - { "oldTerritorioId", Types.BIGINT }, { "agMin", Types.VARCHAR }, { "agMax", Types.VARCHAR } }; - public static final String TABLE_SQL_CREATE = "create table portos_bo_Territorio (territorioId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,zona VARCHAR(75) null,fascia VARCHAR(75) null,comuneId LONG,codiceProvincia VARCHAR(75) null,articolo61 BOOLEAN,dtIni DATE null,dtFin DATE null,oldTerritorioId LONG,agMin VARCHAR(75) null,agMax VARCHAR(75) null)"; + public static final String TABLE_SQL_CREATE = "create table portos_bo_Territorio (territorioId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,zona VARCHAR(75) null,fascia VARCHAR(75) null,comuneId LONG,codiceProvincia VARCHAR(75) null,articolo61 BOOLEAN,dtIni DATE null,dtFin DATE null,agMin VARCHAR(75) null,agMax VARCHAR(75) null)"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Territorio"; public static final String ORDER_BY_JPQL = " ORDER BY territorio.territorioId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Territorio.territorioId ASC"; @@ -105,9 +104,8 @@ public class TerritorioModelImpl extends BaseModelImpl public static long DTINI_COLUMN_BITMASK = 4L; public static long FASCIA_COLUMN_BITMASK = 8L; public static long GROUPID_COLUMN_BITMASK = 16L; - public static long OLDTERRITORIOID_COLUMN_BITMASK = 32L; - public static long ZONA_COLUMN_BITMASK = 64L; - public static long TERRITORIOID_COLUMN_BITMASK = 128L; + public static long ZONA_COLUMN_BITMASK = 32L; + public static long TERRITORIOID_COLUMN_BITMASK = 64L; /** * Converts the soap model instance into a normal model instance. @@ -136,7 +134,6 @@ public class TerritorioModelImpl extends BaseModelImpl model.setArticolo61(soapModel.getArticolo61()); model.setDtIni(soapModel.getDtIni()); model.setDtFin(soapModel.getDtFin()); - model.setOldTerritorioId(soapModel.getOldTerritorioId()); model.setAgMin(soapModel.getAgMin()); model.setAgMax(soapModel.getAgMax()); @@ -217,7 +214,6 @@ public class TerritorioModelImpl extends BaseModelImpl attributes.put("articolo61", getArticolo61()); attributes.put("dtIni", getDtIni()); attributes.put("dtFin", getDtFin()); - attributes.put("oldTerritorioId", getOldTerritorioId()); attributes.put("agMin", getAgMin()); attributes.put("agMax", getAgMax()); @@ -310,12 +306,6 @@ public class TerritorioModelImpl extends BaseModelImpl setDtFin(dtFin); } - Long oldTerritorioId = (Long)attributes.get("oldTerritorioId"); - - if (oldTerritorioId != null) { - setOldTerritorioId(oldTerritorioId); - } - String agMin = (String)attributes.get("agMin"); if (agMin != null) { @@ -584,29 +574,6 @@ public class TerritorioModelImpl extends BaseModelImpl _dtFin = dtFin; } - @JSON - @Override - public long getOldTerritorioId() { - return _oldTerritorioId; - } - - @Override - public void setOldTerritorioId(long oldTerritorioId) { - _columnBitmask |= OLDTERRITORIOID_COLUMN_BITMASK; - - if (!_setOriginalOldTerritorioId) { - _setOriginalOldTerritorioId = true; - - _originalOldTerritorioId = _oldTerritorioId; - } - - _oldTerritorioId = oldTerritorioId; - } - - public long getOriginalOldTerritorioId() { - return _originalOldTerritorioId; - } - @JSON @Override public String getAgMin() { @@ -684,7 +651,6 @@ public class TerritorioModelImpl extends BaseModelImpl territorioImpl.setArticolo61(getArticolo61()); territorioImpl.setDtIni(getDtIni()); territorioImpl.setDtFin(getDtFin()); - territorioImpl.setOldTerritorioId(getOldTerritorioId()); territorioImpl.setAgMin(getAgMin()); territorioImpl.setAgMax(getAgMax()); @@ -757,10 +723,6 @@ public class TerritorioModelImpl extends BaseModelImpl territorioModelImpl._originalDtIni = territorioModelImpl._dtIni; - territorioModelImpl._originalOldTerritorioId = territorioModelImpl._oldTerritorioId; - - territorioModelImpl._setOriginalOldTerritorioId = false; - territorioModelImpl._columnBitmask = 0; } @@ -848,8 +810,6 @@ public class TerritorioModelImpl extends BaseModelImpl territorioCacheModel.dtFin = Long.MIN_VALUE; } - territorioCacheModel.oldTerritorioId = getOldTerritorioId(); - territorioCacheModel.agMin = getAgMin(); String agMin = territorioCacheModel.agMin; @@ -871,7 +831,7 @@ public class TerritorioModelImpl extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(35); + StringBundler sb = new StringBundler(33); sb.append("{territorioId="); sb.append(getTerritorioId()); @@ -901,8 +861,6 @@ public class TerritorioModelImpl extends BaseModelImpl sb.append(getDtIni()); sb.append(", dtFin="); sb.append(getDtFin()); - sb.append(", oldTerritorioId="); - sb.append(getOldTerritorioId()); sb.append(", agMin="); sb.append(getAgMin()); sb.append(", agMax="); @@ -914,7 +872,7 @@ public class TerritorioModelImpl extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(55); + StringBundler sb = new StringBundler(52); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.Territorio"); @@ -976,10 +934,6 @@ public class TerritorioModelImpl extends BaseModelImpl "dtFin"); - sb.append( - "oldTerritorioId"); sb.append( "agMin private Date _dtIni; private Date _originalDtIni; private Date _dtFin; - private long _oldTerritorioId; - private long _originalOldTerritorioId; - private boolean _setOriginalOldTerritorioId; private String _agMin; private String _agMax; private long _columnBitmask; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/ControlloPraticaModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/ControlloPraticaModelListener.java index 5dae7c51..6480703c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/ControlloPraticaModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/ControlloPraticaModelListener.java @@ -14,27 +14,20 @@ import com.liferay.portal.model.BaseModelListener; public class ControlloPraticaModelListener extends BaseModelListener { private static final Log _log = LogFactoryUtil.getLog(ControlloPraticaModelListener.class); - + @Override - public void onAfterUpdate(ControlloPratica model) - throws ModelListenerException { + public void onAfterUpdate(ControlloPratica model) throws ModelListenerException { try { - Indexer intIndexer = IndexerRegistryUtil.getIndexer(IntPratica.class); Indexer controlloIndexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); - intIndexer.delete(model.getCompanyId(), model.getUuid()); intIndexer.reindex(IntPratica.class.getName(), model.getIntPraticaId()); - - controlloIndexer.delete(model.getCompanyId(),model.getUuid()); - controlloIndexer.reindex(ControlloPratica.class.getName(),model.getControlloPraticaId()); - + controlloIndexer.delete(model.getCompanyId(), model.getUuid()); + controlloIndexer.reindex(ControlloPratica.class.getName(), model.getControlloPraticaId()); } catch (SearchException e) { - _log.error(e,e); - } - + _log.error(e, e); + } super.onAfterUpdate(model); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java index d62cb641..aaacf418 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java @@ -25,23 +25,17 @@ public class DettPraticaModelListener extends BaseModelListener { public void onAfterUpdate(DettPratica model) throws ModelListenerException { try { - Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); indexer.reindex(IntPratica.class.getName(), model.getIntPraticaId()); - if (_log.isDebugEnabled()) { - _log.debug("DettPraticaModelListener - Chiamato Reindex IntPraticaId : " - + model.getIntPraticaId()); + _log.debug("DettPraticaModelListener - Chiamato Reindex IntPraticaId : " + model.getIntPraticaId()); } - if (model.getStatus() == WorkflowConstants.STATUS_APPROVED) { IntPraticaLocalServiceUtil.updateModifiedDate(model.getIntPraticaId(), new Date()); } - } catch (SearchException | NoSuchIntPraticaException | SystemException e) { _log.error(e, e); } - super.onAfterUpdate(model); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DocPraticaModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DocPraticaModelListener.java index 185666dd..c499f158 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DocPraticaModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DocPraticaModelListener.java @@ -13,23 +13,20 @@ import com.liferay.portal.model.BaseModelListener; public class DocPraticaModelListener extends BaseModelListener { - private static final Log _log = LogFactoryUtil.getLog(DocPraticaModelListener.class); - - @Override - public void onAfterUpdate(DocPratica model) throws ModelListenerException { - - try { - - Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); - indexer.reindex(IntPratica.class.getName(), model.getIntPraticaId()); - - if (_log.isDebugEnabled()) { - _log.debug("DettPraticaModelListener - Chiamato Reindex IntPraticaId : " + model.getIntPraticaId()); - } - } catch (SearchException e) { - _log.error(e, e); - } - - super.onAfterUpdate(model); - } + private static final Log _log = LogFactoryUtil.getLog(DocPraticaModelListener.class); + + @Override + public void onAfterUpdate(DocPratica model) throws ModelListenerException { + + try { + Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); + indexer.reindex(IntPratica.class.getName(), model.getIntPraticaId()); + if (_log.isDebugEnabled()) { + _log.debug("DocPraticaModelListener - Chiamato Reindex IntPraticaId : " + model.getIntPraticaId()); + } + } catch (SearchException e) { + _log.error(e, e); + } + super.onAfterUpdate(model); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java index f77c2525..d353892f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java @@ -20,41 +20,29 @@ import com.liferay.portal.kernel.search.SearchException; import com.liferay.portal.model.BaseModelListener; public class IntPraticaModelListener extends BaseModelListener { - + private static final Log _log = LogFactoryUtil.getLog(IntPraticaModelListener.class); @Override public void onAfterUpdate(IntPratica model) throws ModelListenerException { - + try { - Indexer intIndexer = IndexerRegistryUtil.getIndexer(IntPratica.class); Indexer controlloIndexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); - intIndexer.delete(model.getCompanyId(), model.getUuid()); intIndexer.reindex(IntPratica.class.getName(), model.getIntPraticaId()); - DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); - queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", model.getIntPraticaId())); - - List appList = - ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - if (appList != null && !appList.isEmpty()) { - for (ControlloPratica controlloPratica : appList) { - controlloIndexer.delete(model.getCompanyId(),controlloPratica.getUuid()); - controlloIndexer.reindex(ControlloPratica.class.getName(),controlloPratica.getControlloPraticaId()); - } - } - - } catch (SearchException e) { - _log.error(e,e); - } catch (SystemException e) { - _log.error(e,e); + queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", model.getIntPraticaId())); + @SuppressWarnings("unchecked") + List appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); + for (ControlloPratica controlloPratica : appList) { + controlloIndexer.delete(model.getCompanyId(), controlloPratica.getUuid()); + controlloIndexer.reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId()); + } + } catch (SearchException | SystemException e) { + _log.error(e, e); } - super.onAfterUpdate(model); } - - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceModelListener.java index b31a3fe9..e23861e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceModelListener.java @@ -13,102 +13,93 @@ import com.liferay.portal.workflow.kaleo.model.KaleoInstance; public class KaleoInstanceModelListener extends BaseModelListener { - private static final Log _log = LogFactoryUtil.getLog(KaleoInstanceModelListener.class); - - @Override - public void onAfterUpdate(KaleoInstance model) throws ModelListenerException { - - try { - - if (model.getClassName().equals(ControlloPratica.class.getName())) { - - Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); - indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); - - if (_log.isDebugEnabled()) { - _log.debug("KaleoInstanceModelListener - Chiamato Reindex ControlloPraticaId : " + model.getClassPK()); - } - } - - } catch (SearchException e) { - _log.error(e, e); - } - - super.onAfterUpdate(model); - } - - @Override - public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) - throws ModelListenerException { - - super.onAfterAddAssociation(classPK, associationClassName, associationClassPK); - } - - @Override - public void onAfterCreate(KaleoInstance model) throws ModelListenerException { - - super.onAfterCreate(model); - } - - @Override - public void onAfterRemove(KaleoInstance model) throws ModelListenerException { - - try { - - if (model.getClassName().equals(ControlloPratica.class.getName())) { - - Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); - indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); - - if (_log.isDebugEnabled()) { - _log.debug("KaleoInstanceModelListener - Chiamato Reindex ControlloPraticaId : " + model.getClassPK()); - } - } - - } catch (SearchException e) { - _log.error(e, e); - } - - super.onAfterRemove(model); - } - - @Override - public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) - throws ModelListenerException { - - super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); - } - - @Override - public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) - throws ModelListenerException { - - super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); - } - - @Override - public void onBeforeCreate(KaleoInstance model) throws ModelListenerException { - - super.onBeforeCreate(model); - } - - @Override - public void onBeforeRemove(KaleoInstance model) throws ModelListenerException { - - super.onBeforeRemove(model); - } - - @Override - public void onBeforeRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) - throws ModelListenerException { - - super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK); - } - - @Override - public void onBeforeUpdate(KaleoInstance model) throws ModelListenerException { - - super.onBeforeUpdate(model); - } - + private static final Log _log = LogFactoryUtil.getLog(KaleoInstanceModelListener.class); + + @Override + public void onAfterUpdate(KaleoInstance model) throws ModelListenerException { + + try { + if (model.getClassName().equals(ControlloPratica.class.getName())) { + Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); + indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); + if (_log.isDebugEnabled()) { + _log.debug("KaleoInstanceModelListener - Chiamato Reindex ControlloPraticaId : " + + model.getClassPK()); + } + } + } catch (SearchException e) { + _log.error(e, e); + } + super.onAfterUpdate(model); + } + + @Override + public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) + throws ModelListenerException { + + super.onAfterAddAssociation(classPK, associationClassName, associationClassPK); + } + + @Override + public void onAfterCreate(KaleoInstance model) throws ModelListenerException { + + super.onAfterCreate(model); + } + + @Override + public void onAfterRemove(KaleoInstance model) throws ModelListenerException { + + try { + if (model.getClassName().equals(ControlloPratica.class.getName())) { + Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); + indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); + if (_log.isDebugEnabled()) { + _log.debug("KaleoInstanceModelListener - Chiamato Reindex ControlloPraticaId : " + + model.getClassPK()); + } + } + } catch (SearchException e) { + _log.error(e, e); + } + super.onAfterRemove(model); + } + + @Override + public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) + throws ModelListenerException { + + super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); + } + + @Override + public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) + throws ModelListenerException { + + super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); + } + + @Override + public void onBeforeCreate(KaleoInstance model) throws ModelListenerException { + + super.onBeforeCreate(model); + } + + @Override + public void onBeforeRemove(KaleoInstance model) throws ModelListenerException { + + super.onBeforeRemove(model); + } + + @Override + public void onBeforeRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) + throws ModelListenerException { + + super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK); + } + + @Override + public void onBeforeUpdate(KaleoInstance model) throws ModelListenerException { + + super.onBeforeUpdate(model); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java index 3b4726e7..bf3ad4fa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java @@ -1,7 +1,5 @@ package it.tref.liferay.portos.bo.model.listener; -import java.util.Date; - import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; @@ -10,6 +8,8 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; +import java.util.Date; + import com.liferay.counter.service.CounterLocalServiceUtil; import com.liferay.portal.ModelListenerException; import com.liferay.portal.kernel.exception.PortalException; @@ -32,37 +32,33 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener { public void onAfterCreate(KaleoLog model) throws ModelListenerException { try { - long kaleoInstanceTokenId = model.getKaleoInstanceTokenId(); KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil .fetchKaleoInstanceToken(kaleoInstanceTokenId); - if (Validator.isNotNull(instanceToken)) { if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) { - Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK()); - if (_log.isDebugEnabled()) { _log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK()); } } } - - } catch (SearchException e) { - _log.error(e, e); - } catch (SystemException e) { + } catch (SearchException | SystemException e) { _log.error(e, e); } - super.onAfterUpdate(model); } @Override public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) throws ModelListenerException { + super.onAfterAddAssociation(classPK, associationClassName, associationClassPK); } @@ -60,68 +53,67 @@ public class KaleoLogModelListener extends BaseModelListener { public void onAfterRemove(KaleoLog model) throws ModelListenerException { try { - long kaleoInstanceTokenId = model.getKaleoInstanceTokenId(); KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil .fetchKaleoInstanceToken(kaleoInstanceTokenId); - if (Validator.isNotNull(instanceToken)) { if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) { - Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK()); - if (_log.isDebugEnabled()) { _log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK()); } } } - - } catch (SearchException e) { - _log.error(e, e); - } catch (SystemException e) { + } catch (SearchException | SystemException e) { _log.error(e, e); } - super.onAfterRemove(model); } @Override - public void onAfterRemoveAssociation(Object classPK, String associationClassName, - Object associationClassPK) throws ModelListenerException { + public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) + throws ModelListenerException { + super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); } @Override public void onAfterUpdate(KaleoLog model) throws ModelListenerException { + super.onAfterUpdate(model); } @Override public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) throws ModelListenerException { + super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); } @Override public void onBeforeCreate(KaleoLog model) throws ModelListenerException { + super.onBeforeCreate(model); } @Override public void onBeforeRemove(KaleoLog model) throws ModelListenerException { + super.onBeforeRemove(model); } @Override - public void onBeforeRemoveAssociation(Object classPK, String associationClassName, - Object associationClassPK) throws ModelListenerException { + public void onBeforeRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) + throws ModelListenerException { + super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK); } @Override public void onBeforeUpdate(KaleoLog model) throws ModelListenerException { + super.onBeforeUpdate(model); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoTaskInstanceTokenModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoTaskInstanceTokenModelListener.java index f20f86c2..b8b4233d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoTaskInstanceTokenModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoTaskInstanceTokenModelListener.java @@ -19,33 +19,29 @@ public class KaleoTaskInstanceTokenModelListener extends BaseModelListener { public void onAfterUpdate(Soggetto model) throws ModelListenerException { try { - Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); indexer.reindex(IntPratica.class.getName(), model.getIntPraticaId()); - if (_log.isDebugEnabled()) { - _log.debug("DettPraticaModelListener - Chiamato Reindex IntPraticaId : " - + model.getIntPraticaId()); + _log.debug("SoggettoModelListener - Chiamato Reindex IntPraticaId : " + model.getIntPraticaId()); } } catch (SearchException e) { _log.error(e, e); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AllegatiManualiPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AllegatiManualiPortlet.java index eda4af5f..78852a49 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AllegatiManualiPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AllegatiManualiPortlet.java @@ -3,6 +3,7 @@ package it.tref.liferay.portos.bo.portlet; import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil; import it.tref.liferay.portos.bo.service.AllegatoManualeServiceUtil; + import java.io.File; import java.io.IOException; import java.io.InputStream; @@ -44,6 +45,7 @@ public class AllegatiManualiPortlet extends MVCPortlet { public void uploadAllegatoManuale(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, SystemException { + try { UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); @@ -52,7 +54,6 @@ public class AllegatiManualiPortlet extends MVCPortlet { String descrizione = ParamUtil.getString(uploadRequest, "descrizione"); String sourceFileName = uploadRequest.getFileName("docFile"); File file = uploadRequest.getFile("docFile"); - if (Validator.isNotNull(sourceFileName) && file != null) { // lunghezza fissata a 200 if (sourceFileName.length() > 200) { @@ -61,30 +62,27 @@ public class AllegatiManualiPortlet extends MVCPortlet { } else { SessionErrors.add(actionRequest, "error.geniocivilefe.allegato.manuale.is.request"); } - if (!SessionErrors.isEmpty(actionRequest)) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); } else { if (Validator.isNotNull(intPraticaId) && Validator.isNotNull(dettPraticaId)) { byte[] content = FileUtil.getBytes(file); - AllegatoManualeLocalServiceUtil .addAllegatoManuale(serviceContext.getUserId(), intPraticaId, dettPraticaId, descrizione, content, sourceFileName, serviceContext); } } - PortalUtil.copyRequestParameters(actionRequest, actionResponse); } catch (Exception e) { PortalUtil.copyRequestParameters(actionRequest, actionResponse); _log.error("Error", e); throw new SystemException(e); } - } public void deleteAllegatoManuale(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { + long allegatoManualeId = ParamUtil.getLong(actionRequest, "allegatoManualeId"); AllegatoManualeServiceUtil.deleteAllegatoManuale(allegatoManualeId); } @@ -94,40 +92,31 @@ public class AllegatiManualiPortlet extends MVCPortlet { throws IOException, PortletException { String id = resourceRequest.getResourceID(); - try { if ("downloadAll".equals(id)) { long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); List docs = AllegatoManualeServiceUtil.findByIntPratica(intPraticaId); - ZipWriter zipWriter = ZipWriterFactoryUtil.getZipWriter(); - for (AllegatoManuale doc : docs) { - InputStream inputStream = null; try { FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getFileEntryId()); inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), fileEntry.getVersion(), false); - String name = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); zipWriter.addEntry(name, inputStream); } finally { StreamUtil.cleanUp(inputStream); } } - resourceResponse.reset(); - File file = zipWriter.getFile(); byte[] data = Files.readAllBytes(file.toPath()); - resourceResponse.setContentType(ContentTypes.APPLICATION_ZIP); resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" - + file.getName() + "\""); + + file.getName() + StringPool.QUOTE); resourceResponse.setContentLength(data.length); - resourceResponse.getPortletOutputStream().write(data); resourceResponse.getPortletOutputStream().flush(); resourceResponse.getPortletOutputStream().close(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java index bbd77fc8..77812c37 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java @@ -32,6 +32,7 @@ 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.upload.UploadPortletRequest; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContextFactory; @@ -50,23 +51,17 @@ public class AmministrazionePortlet extends MVCPortlet { String provincia = ParamUtil.getString(actionRequest, "provincia"); String regione = ParamUtil.getString(actionRequest, "regione"); String sigla = ParamUtil.getString(actionRequest, "sigla"); - - ServiceContext serviceContext = ServiceContextFactory.getInstance(Provincia.class.getName(), - actionRequest); - + ServiceContext serviceContext = ServiceContextFactory.getInstance(Provincia.class.getName(), actionRequest); long userId = PortalUtil.getUserId(actionRequest); - try { Provincia provinciaO = null; - if (provinciaId == 0) { - provinciaO = ProvinciaLocalServiceUtil.addProvincia(userId, codiceProvincia, provincia, - regione, sigla, serviceContext); + provinciaO = ProvinciaLocalServiceUtil.addProvincia(userId, codiceProvincia, provincia, regione, sigla, + serviceContext); } else { - provinciaO = ProvinciaLocalServiceUtil.updateProvincia(userId, provinciaId, provincia, - regione, sigla, serviceContext); + provinciaO = ProvinciaLocalServiceUtil.updateProvincia(userId, provinciaId, provincia, regione, sigla, + serviceContext); } - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { actionRequest.setAttribute(WebKeys.PORTOS_AMM_PROVINCIA, provinciaO); @@ -74,152 +69,79 @@ public class AmministrazionePortlet extends MVCPortlet { } } catch (PortalException e) { actionResponse.setRenderParameter("mvcPath", "/html/amministrazione/tabs/province/edit.jsp"); - throw e; } } - public void saveConfigScheduler(ActionRequest actionRequest, ActionResponse actionResponse) - throws Exception { + public void saveConfigScheduler(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { try { - ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); serviceContext.setScopeGroupId(-1L); serviceContext.setCompanyId(serviceContext.getCompanyId()); - String schedulerVersioning = ParamUtil.getString(actionRequest, ConfigurazioneConstants.SCHEDULER_VERSIONING); - String schedulerGeneraDocumento = ParamUtil.getString(actionRequest, ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); String schedulerFirmaDocumento = ParamUtil.getString(actionRequest, ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO); String schedulerInvioDocumento = ParamUtil.getString(actionRequest, ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO); - - String schedulerIris = ParamUtil.getString(actionRequest, ConfigurazioneConstants.SCHEDULER_IRIS); - String irisVerificaPagamentiURL = ParamUtil.getString(actionRequest, - ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL); - String protocollazioneServiceURL = ParamUtil.getString(actionRequest, ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL); - String protocollazioneExportURL = ParamUtil.getString(actionRequest, ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); - String protocollazioneImportURL = ParamUtil.getString(actionRequest, ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL); - - String irisComunicazioniDebitorieURL = ParamUtil.getString(actionRequest, - ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL); - - String irisGenerazioneIUVURL = ParamUtil.getString(actionRequest, - ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL); - String importoBollo = ParamUtil.getString(actionRequest, ConfigurazioneConstants.IMPORTO_BOLLO); - - int dayOfWeekSorteggio = ParamUtil.getInteger(actionRequest, - ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO); - - int hourOfDaySorteggio = ParamUtil.getInteger(actionRequest, - ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO); - hourOfDaySorteggio = Math.min(23, Math.max(0, hourOfDaySorteggio)); - - int dayOfWeekPubblicazione = ParamUtil.getInteger(actionRequest, - ConfigurazioneConstants.DAY_OF_WEEK_PUBBLICAZIONE); - - int startDaySorteggio = ParamUtil.getInteger(actionRequest, - ConfigurazioneConstants.START_DAY_SORTEGGIO); - - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.SCHEDULER_VERSIONING, - schedulerVersioning, serviceContext); - + ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.SCHEDULER_VERSIONING, schedulerVersioning, + serviceContext); ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO, schedulerGeneraDocumento, serviceContext); ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO, schedulerFirmaDocumento, serviceContext); ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO, schedulerInvioDocumento, serviceContext); - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.SCHEDULER_IRIS, schedulerIris, - serviceContext); - - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL, - irisVerificaPagamentiURL, serviceContext); ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL, protocollazioneServiceURL, serviceContext); ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL, protocollazioneExportURL, serviceContext); ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL, protocollazioneImportURL, serviceContext); - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL, - irisComunicazioniDebitorieURL, serviceContext); - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL, - irisGenerazioneIUVURL, serviceContext); - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.IMPORTO_BOLLO, importoBollo, - serviceContext); - - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO, - String.valueOf(dayOfWeekSorteggio), serviceContext); - - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO, - String.valueOf(hourOfDaySorteggio), serviceContext); - - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.DAY_OF_WEEK_PUBBLICAZIONE, - String.valueOf(dayOfWeekPubblicazione), serviceContext); - - ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.START_DAY_SORTEGGIO, - String.valueOf(startDaySorteggio), serviceContext); - + ConfigurazioneServiceUtil.storeConfig(ConfigurazioneConstants.IMPORTO_BOLLO, importoBollo, serviceContext); String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { actionResponse.setRenderParameter("tabs1", "parametri"); } - - } catch (PortalException e) { - _log.error("Error", e); - throw new PortletException(e); - } catch (SystemException e) { + } catch (PortalException | SystemException e) { _log.error("Error", e); throw new PortletException(e); } } - public void saveConfigTemplate(ActionRequest actionRequest, ActionResponse actionResponse) - throws Exception { + public void saveConfigTemplate(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - final String _PREFIX_START_CONFIGURAZIONE = "configurazione--"; - final String _PREFIX_END_CONFIGURAZIONE = "--"; - + final String _PREFIX_END_CONFIGURAZIONE = StringPool.DOUBLE_DASH; Enumeration enu = actionRequest.getParameterNames(); - while (enu.hasMoreElements()) { String name = enu.nextElement(); - - if (!name.startsWith(_PREFIX_START_CONFIGURAZIONE) && !name.endsWith("--")) { + if (!name.startsWith(_PREFIX_START_CONFIGURAZIONE) && !name.endsWith(_PREFIX_END_CONFIGURAZIONE)) { continue; } - String key = name.substring(_PREFIX_START_CONFIGURAZIONE.length(), name.length() - _PREFIX_END_CONFIGURAZIONE.length()); String value = ParamUtil.getString(actionRequest, name); - ConfigurazioneServiceUtil.storeConfig(key, value, serviceContext); - } String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { actionResponse.setRenderParameter("tabs1", "parametri"); } - - } catch (PortalException e) { - _log.error("Error", e); - throw new PortletException(e); - } catch (SystemException e) { + } catch (PortalException | SystemException e) { _log.error("Error", e); throw new PortletException(e); } @@ -236,24 +158,18 @@ public class AmministrazionePortlet extends MVCPortlet { String mailSuap = ParamUtil.getString(actionRequest, "mailSuap"); String mailSue = ParamUtil.getString(actionRequest, "mailSue"); boolean provincia = ParamUtil.getBoolean(actionRequest, "provincia"); - - ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), - actionRequest); - + ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), actionRequest); long userId = PortalUtil.getUserId(actionRequest); - try { Comune comune = null; - - if (comuneId == 0) {// ADD + if (comuneId == 0) { // ADD codiceComune = codiceIstat.substring(0, 3); comune = ComuneLocalServiceUtil.addComune(userId, codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext); - } else {// EDIT - ComuneLocalServiceUtil.updateComune(userId, comuneId, codiceProvincia, codiceComune, - codiceIstat, denominazione, provincia, mailSuap, mailSue, serviceContext); + } else { // EDIT + ComuneLocalServiceUtil.updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat, + denominazione, provincia, mailSuap, mailSue, serviceContext); } - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { actionRequest.setAttribute(WebKeys.PORTOS_AMM_COMUNE, comune); @@ -261,7 +177,6 @@ public class AmministrazionePortlet extends MVCPortlet { } } catch (PortalException e) { actionResponse.setRenderParameter("mvcPath", "/html/amministrazione/tabs/comuni/edit.jsp"); - throw e; } } @@ -279,27 +194,17 @@ public class AmministrazionePortlet extends MVCPortlet { String agMax = ParamUtil.getString(actionRequest, "agMax"); String agMin = ParamUtil.getString(actionRequest, "agMin"); Comune comune = ComuneLocalServiceUtil.getComune(comuneId); - - Provincia provincia = ProvinciaLocalServiceUtil.findByC_C(comune.getCompanyId(), - comune.getCodiceProvincia()); - - ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), - actionRequest); + Provincia provincia = ProvinciaLocalServiceUtil.findByC_C(comune.getCompanyId(), comune.getCodiceProvincia()); + ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), actionRequest); Territorio territorio = null; - if (territorioId == 0) { - - territorio = TerritorioServiceUtil.addTerritorio(comuneId, groupId, - provincia.getCodiceProvincia(), zona, fascia, articolo61, dtIni, dtFin, agMax, agMin, 0L, - serviceContext); - + territorio = TerritorioServiceUtil.addTerritorio(comuneId, groupId, provincia.getCodiceProvincia(), zona, + fascia, articolo61, dtIni, dtFin, agMax, agMin, serviceContext); } else { territorio = TerritorioLocalServiceUtil.updateTerritorio(territorioId, groupId, comuneId, provincia.getCodiceProvincia(), zona, fascia, articolo61, dtIni, dtFin, agMax, agMin, serviceContext); - } - String redirect = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNull(redirect)) { actionRequest.setAttribute(WebKeys.PORTOS_AMM_TERRITORIO, territorio); @@ -310,47 +215,40 @@ public class AmministrazionePortlet extends MVCPortlet { public void deleteComune(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long comuneId = ParamUtil.getLong(actionRequest, "comuneId"); - - if (comuneId > 0) + if (comuneId > 0) { ComuneLocalServiceUtil.deleteComune(comuneId); + } } public void deleteComunes(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long[] deleteComuneIds = ParamUtil.getLongValues(actionRequest, "deleteComuneIds"); - for (long deleteComuneId : deleteComuneIds) { ComuneLocalServiceUtil.deleteComune(deleteComuneId); } - actionResponse.setRenderParameter("mvcPath", "/html/amministrazione/tabs/comuni/view.jsp"); } public void deleteProvincia(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long provinciaId = ParamUtil.getLong(actionRequest, "provinciaId"); - if (provinciaId > 0) { ProvinciaLocalServiceUtil.deleteProvincia(provinciaId); } - } public void deleteProvincias(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long[] deleteProvinciaIds = ParamUtil.getLongValues(actionRequest, "deleteProvinciaIds"); - for (long deleteProvinciaId : deleteProvinciaIds) { ProvinciaLocalServiceUtil.deleteProvincia(deleteProvinciaId); } - actionResponse.setRenderParameter("mvcPath", "/html/amministrazione/tabs/province/view.jsp"); } public void deleteTerritorio(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { long territorioId = ParamUtil.getLong(actionRequest, "territorioId"); - if (territorioId > 0) { ComuneLocalServiceUtil.deleteComune(territorioId); } @@ -359,97 +257,74 @@ public class AmministrazionePortlet extends MVCPortlet { public void importProvincias(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { UploadPortletRequest uploadPortletRequest = PortalUtil.getUploadPortletRequest(actionRequest); - ThemeDisplay themeDisplay = (ThemeDisplay) uploadPortletRequest.getAttribute(WebKeys.THEME_DISPLAY); - String delimiter = ParamUtil.getString(uploadPortletRequest, "delimiter"); File file = uploadPortletRequest.getFile("file"); - if (Validator.isNull(file)) { throw new CSVFileNotFoundException(); } - if (Validator.isNull(delimiter)) { throw new PortletException("Delimiter is null in request"); } - ServiceContext serviceContext = ServiceContextFactory.getInstance(Provincia.class.getName(), uploadPortletRequest); - try { _log.info("Inizio importazione province..."); long start = System.currentTimeMillis(); - CSVFormat format = CSVFormat.EXCEL.withDelimiter(delimiter.charAt(0)) .withHeader(Constants.AMMINISTRAZIONE_CSV_HEADERS_PROVINCE).withSkipHeaderRecord() .withIgnoreEmptyLines().withIgnoreSurroundingSpaces(); Iterable records = format.parse(new FileReader(file)); - for (CSVRecord csvRecord : records) { try { - String codiceProvincia = StringUtils.leftPad( - String.format(csvRecord.get("codice_provincia")), 3, '0'); + String codiceProvincia = StringUtils.leftPad(String.format(csvRecord.get("codice_provincia")), 3, + '0'); String provincia = csvRecord.get("provincia"); String regione = csvRecord.get("regione"); String sigla = csvRecord.get("sigla"); - Provincia provinciaO = null; - provinciaO = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), - codiceProvincia); + provinciaO = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), codiceProvincia); if (provinciaO == null) { provinciaO = ProvinciaLocalServiceUtil.fetchByC_S(themeDisplay.getCompanyId(), sigla); } - if (provinciaO == null) { _log.info("La provincia non esiste e verrà creata: " + csvRecord); - - ProvinciaLocalServiceUtil.addProvincia(themeDisplay.getUserId(), codiceProvincia, - provincia, regione, sigla, serviceContext); + ProvinciaLocalServiceUtil.addProvincia(themeDisplay.getUserId(), codiceProvincia, provincia, + regione, sigla, serviceContext); } else { _log.info("La provincia esiste e verrà aggiornata: " + csvRecord); - - ProvinciaLocalServiceUtil.updateProvincia(themeDisplay.getUserId(), - provinciaO.getPrimaryKey(), provincia, regione, sigla, serviceContext); + ProvinciaLocalServiceUtil.updateProvincia(themeDisplay.getUserId(), provinciaO.getPrimaryKey(), + provincia, regione, sigla, serviceContext); } } catch (PortalException e) { _log.error("Errore di validazione: " + e.getClass().getName()); } } - long stop = System.currentTimeMillis(); _log.info("Importazione province terminata in " + (stop - start) + "ms"); } catch (Exception e) { actionResponse.setRenderParameter("mvcPath", "/html/amministrazione/tabs/province/import.jsp"); - throw e; } - } public void importComunes(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { UploadPortletRequest uploadPortletRequest = PortalUtil.getUploadPortletRequest(actionRequest); - ThemeDisplay themeDisplay = (ThemeDisplay) uploadPortletRequest.getAttribute(WebKeys.THEME_DISPLAY); - String delimiter = ParamUtil.getString(uploadPortletRequest, "delimiter"); File file = uploadPortletRequest.getFile("file"); - - if (Validator.isNull(delimiter) || Validator.isNull(file)) + if (Validator.isNull(delimiter) || Validator.isNull(file)) { throw new CSVFileNotFoundException(); - - ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), - uploadPortletRequest); - + } + ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), uploadPortletRequest); try { _log.info("Inizio importazione comuni..."); long start = System.currentTimeMillis(); - CSVFormat format = CSVFormat.EXCEL.withDelimiter(delimiter.charAt(0)) .withHeader(Constants.AMMINISTRAZIONE_CSV_HEADERS_COMUNI).withSkipHeaderRecord() .withIgnoreEmptyLines().withIgnoreSurroundingSpaces(); Iterable records = format.parse(new FileReader(file)); - for (CSVRecord csvRecord : records) { try { String codiceProvincia = csvRecord.get("Codice Provincia (1)"); @@ -458,56 +333,46 @@ public class AmministrazionePortlet extends MVCPortlet { String codiceBelfiore = csvRecord.get("Codice Catastale del comune"); String denominazione = csvRecord.get("Denominazione in italiano"); String provincia = csvRecord.get("Flag Comune capoluogo di provincia"); - boolean nazioneEstera = codiceBelfiore != null && codiceBelfiore.startsWith("Z"); if (Validator.isNull(codiceIstat) && nazioneEstera) { codiceIstat = codiceBelfiore; } - if (Validator.isNull(codiceIstat)) { _log.error("Il comune italiano non ha un codice istat assegnato e non sarà inserito: " + csvRecord); } else { - boolean isProvincia = Validator.isNotNull(provincia) && provincia.equals("1") ? true - : false; - - Comune comuneO = ComuneLocalServiceUtil.fetchByC_CB(themeDisplay.getCompanyId(), - codiceBelfiore); + boolean isProvincia = Validator.isNotNull(provincia) && provincia.equals("1"); + Comune comuneO = ComuneLocalServiceUtil + .fetchByC_CB(themeDisplay.getCompanyId(), codiceBelfiore); if (comuneO == null) - comuneO = ComuneLocalServiceUtil.fetchByC_CI(themeDisplay.getCompanyId(), - codiceIstat); - + comuneO = ComuneLocalServiceUtil.fetchByC_CI(themeDisplay.getCompanyId(), codiceIstat); if (comuneO == null) { _log.debug("Il comune non esiste e verra' creato: " + csvRecord); - - if (nazioneEstera) + if (nazioneEstera) { ComuneLocalServiceUtil.addComune(themeDisplay.getUserId(), codiceProvincia, - codiceComune, codiceIstat, codiceBelfiore, denominazione, false, - true, "", "", serviceContext); - else + codiceComune, codiceIstat, codiceBelfiore, denominazione, false, true, + StringPool.BLANK, StringPool.BLANK, serviceContext); + } else { ComuneLocalServiceUtil.addComune(themeDisplay.getUserId(), codiceProvincia, - codiceComune, codiceIstat, codiceBelfiore, denominazione, - isProvincia, false, "", "", serviceContext); + codiceComune, codiceIstat, codiceBelfiore, denominazione, isProvincia, false, + StringPool.BLANK, StringPool.BLANK, serviceContext); + } } else { _log.debug("Il comune esiste e verra' aggiornato: " + csvRecord); - ComuneLocalServiceUtil.updateComune(themeDisplay.getUserId(), - comuneO.getPrimaryKey(), codiceProvincia, codiceComune, codiceIstat, - denominazione, isProvincia, nazioneEstera, "", "", serviceContext); - + ComuneLocalServiceUtil.updateComune(themeDisplay.getUserId(), comuneO.getPrimaryKey(), + codiceProvincia, codiceComune, codiceIstat, denominazione, isProvincia, + nazioneEstera, StringPool.BLANK, StringPool.BLANK, serviceContext); } } } catch (PortalException e) { _log.error("Errore di validazione: " + e.getClass().getName()); } } - long stop = System.currentTimeMillis(); _log.info("Importazione comuni terminata in " + (stop - start) + "ms"); } catch (Exception e) { actionResponse.setRenderParameter("mvcPath", "/html/amministrazione/tabs/comunes/import.jsp"); throw e; } - } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/CarichiLavoroPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/CarichiLavoroPortlet.java index a28e40d4..19bb4fbe 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/CarichiLavoroPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/CarichiLavoroPortlet.java @@ -1,6 +1,18 @@ package it.tref.liferay.portos.bo.portlet; +import javax.portlet.ActionRequest; +import javax.portlet.ActionResponse; + +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.util.PortalUtil; import com.liferay.util.bridges.mvc.MVCPortlet; public class CarichiLavoroPortlet extends MVCPortlet { + + public void calcolaCarichi(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { + + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java index 7c2d5e87..3b1fc092 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java @@ -3,6 +3,7 @@ package it.tref.liferay.portos.bo.portlet; import it.tref.liferay.portos.bo.model.DocAggiuntiva; import it.tref.liferay.portos.bo.service.DocAggiuntivaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocAggiuntivaServiceUtil; + import java.io.File; import java.io.IOException; import java.io.InputStream; @@ -40,106 +41,94 @@ import com.liferay.util.bridges.mvc.MVCPortlet; public class DocAggiuntivaPortlet extends MVCPortlet { - private Log _log = LogFactoryUtil.getLog(DocAggiuntivaPortlet.class); - - public void uploadDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, - SystemException { - try { - UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); - ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); - long intPraticaId = ParamUtil.getLong(uploadRequest, "intPraticaId"); - long dettPraticaId = ParamUtil.getLong(uploadRequest, "dettPraticaId"); - String descrizione = ParamUtil.getString(uploadRequest, "descrizione"); - boolean feVisible = ParamUtil.getBoolean(uploadRequest, "feVisible"); - String sourceFileName = uploadRequest.getFileName("docFile"); - File file = uploadRequest.getFile("docFile"); - - if (Validator.isNotNull(sourceFileName) && file != null) { - // lunghezza fissata a 200 - if (sourceFileName.length() > 200) { - SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.length.valid"); - } - } else { - SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.is.request"); - } - - if (!SessionErrors.isEmpty(actionRequest)) { - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - } else { - if (Validator.isNotNull(intPraticaId) && Validator.isNotNull(dettPraticaId)) { - byte[] content = FileUtil.getBytes(file); - DocAggiuntivaLocalServiceUtil.addDocAggiuntiva(serviceContext.getUserId(), intPraticaId, dettPraticaId, - descrizione, feVisible, content, sourceFileName, serviceContext); - } - - } - - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - } catch (Exception e) { - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - _log.error("Error", e); - throw new SystemException(e); - } - - } - - public void deleteDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { - long docAggiuntivaId = ParamUtil.getLong(actionRequest, "docAggiuntivaId"); - DocAggiuntivaServiceUtil.deleteDocAggiuntiva(docAggiuntivaId); - } - - @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, - PortletException { - - String id = resourceRequest.getResourceID(); - - try { - if ("downloadAll".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); - List docs = DocAggiuntivaServiceUtil.findByIntPratica(intPraticaId); - - ZipWriter zipWriter = ZipWriterFactoryUtil.getZipWriter(); - - for (DocAggiuntiva doc : docs) { - - InputStream inputStream = null; - try { - if (Validator.isNull(doc.getFileEntryId())) { - continue; - } - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getFileEntryId()); - inputStream = - DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), fileEntry.getVersion(), false); - - String name = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); - zipWriter.addEntry(name, inputStream); - } finally { - StreamUtil.cleanUp(inputStream); - } - } - - resourceResponse.reset(); - - File file = zipWriter.getFile(); - byte[] data = Files.readAllBytes(file.toPath()); - - resourceResponse.setContentType(ContentTypes.APPLICATION_ZIP); - resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); - resourceResponse - .addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + file.getName() + "\""); - resourceResponse.setContentLength(data.length); - - resourceResponse.getPortletOutputStream().write(data); - resourceResponse.getPortletOutputStream().flush(); - resourceResponse.getPortletOutputStream().close(); - - } else { - super.serveResource(resourceRequest, resourceResponse); - } - } catch (PortalException | SystemException e) { - _log.error(e, e); - throw new IOException(e); - } - } + private Log _log = LogFactoryUtil.getLog(DocAggiuntivaPortlet.class); + + public void uploadDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { + + try { + UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); + ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest); + long intPraticaId = ParamUtil.getLong(uploadRequest, "intPraticaId"); + long dettPraticaId = ParamUtil.getLong(uploadRequest, "dettPraticaId"); + String descrizione = ParamUtil.getString(uploadRequest, "descrizione"); + boolean feVisible = ParamUtil.getBoolean(uploadRequest, "feVisible"); + String sourceFileName = uploadRequest.getFileName("docFile"); + File file = uploadRequest.getFile("docFile"); + if (Validator.isNotNull(sourceFileName) && file != null) { + // lunghezza fissata a 200 + if (sourceFileName.length() > 200) { + SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.length.valid"); + } + } else { + SessionErrors.add(actionRequest, "error.geniocivilefe.pagamento.allegato.is.request"); + } + if (!SessionErrors.isEmpty(actionRequest)) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + } else { + if (Validator.isNotNull(intPraticaId) && Validator.isNotNull(dettPraticaId)) { + byte[] content = FileUtil.getBytes(file); + DocAggiuntivaLocalServiceUtil.addDocAggiuntiva(serviceContext.getUserId(), intPraticaId, + dettPraticaId, descrizione, feVisible, content, sourceFileName, serviceContext); + } + + } + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + } catch (Exception e) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + _log.error("Error", e); + throw new SystemException(e); + } + } + + public void deleteDocAggiuntiva(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { + long docAggiuntivaId = ParamUtil.getLong(actionRequest, "docAggiuntivaId"); + + DocAggiuntivaServiceUtil.deleteDocAggiuntiva(docAggiuntivaId); + } + + @Override + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { + + String id = resourceRequest.getResourceID(); + try { + if ("downloadAll".equals(id)) { + long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); + List docs = DocAggiuntivaServiceUtil.findByIntPratica(intPraticaId); + ZipWriter zipWriter = ZipWriterFactoryUtil.getZipWriter(); + for (DocAggiuntiva doc : docs) { + InputStream inputStream = null; + try { + if (Validator.isNull(doc.getFileEntryId())) { + continue; + } + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getFileEntryId()); + inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), + fileEntry.getVersion(), false); + String name = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); + zipWriter.addEntry(name, inputStream); + } finally { + StreamUtil.cleanUp(inputStream); + } + } + resourceResponse.reset(); + File file = zipWriter.getFile(); + byte[] data = Files.readAllBytes(file.toPath()); + resourceResponse.setContentType(ContentTypes.APPLICATION_ZIP); + resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); + resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, + "attachment; filename=\"" + file.getName() + StringPool.QUOTE); + resourceResponse.setContentLength(data.length); + resourceResponse.getPortletOutputStream().write(data); + resourceResponse.getPortletOutputStream().flush(); + resourceResponse.getPortletOutputStream().close(); + } else { + super.serveResource(resourceRequest, resourceResponse); + } + } catch (PortalException | SystemException e) { + _log.error(e, e); + throw new IOException(e); + } + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java index 50e3e1a9..01d29659 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java @@ -4,26 +4,23 @@ import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; -import it.tref.liferay.portos.bo.model.InfoFascicolo; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil; -import it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; +import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.PortletKeys; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; @@ -34,6 +31,7 @@ import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.io.File; import java.io.IOException; import java.io.InputStream; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.ArrayList; import java.util.Collections; @@ -53,6 +51,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.liferay.counter.service.CounterLocalServiceUtil; +import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONArray; @@ -61,7 +60,6 @@ import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.portlet.PortletResponseUtil; import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.search.Document; import com.liferay.portal.kernel.search.Hits; @@ -89,9 +87,6 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; import com.liferay.util.bridges.mvc.MVCPortlet; -/** - * Portlet implementation class FascicoloPortlet - */ public class FascicoloPortlet extends MVCPortlet { private Log _log = LogFactoryUtil.getLog(FascicoloPortlet.class); @@ -99,14 +94,11 @@ public class FascicoloPortlet extends MVCPortlet { @Override public void render(RenderRequest request, RenderResponse response) throws PortletException, IOException { - HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil - .getHttpServletRequest(request)); + HttpServletRequest httpReq = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(request)); String intPraticaId = httpReq.getParameter("intPraticaId"); - - if (Validator.isNotNull(intPraticaId) && !intPraticaId.equals("")) { + if (Validator.isNotNull(intPraticaId)) { request.setAttribute("intPraticaId", intPraticaId); } - super.render(request, response); } @@ -114,69 +106,53 @@ public class FascicoloPortlet extends MVCPortlet { ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); User user = themeDisplay.getUser(); - boolean attivare = ParamUtil.getBoolean(actionRequest, "avviare"); boolean sospendere = ParamUtil.getBoolean(actionRequest, "sospendere"); - long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0); + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); String stato_pratica = ParamUtil.getString(actionRequest, "seleziona_stato"); - try { - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - if (attivare && !sospendere) { - WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), - serviceContext.getUserId(), dettPratica.getDettPraticaId(), serviceContext, true); - - addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), - themeDisplay.getCompanyId(), intPratica.getGroupId(), user, true); - + WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(), + dettPratica.getDettPraticaId(), serviceContext, true); + addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), themeDisplay.getCompanyId(), + intPratica.getGroupId(), user, true); SessionMessages.add(actionRequest, "success-workflow-ripreso"); } else if (!attivare && sospendere) { - WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), - serviceContext.getUserId(), dettPratica.getDettPraticaId(), serviceContext, false); - - addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), - themeDisplay.getCompanyId(), intPratica.getGroupId(), user, false); - + WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), serviceContext.getUserId(), + dettPratica.getDettPraticaId(), serviceContext, false); + addRowHistoryWorkflowAction(intPraticaId, dettPratica.getDettPraticaId(), themeDisplay.getCompanyId(), + intPratica.getGroupId(), user, false); SessionMessages.add(actionRequest, "success-workflow-sospeso"); } else { SessionErrors.add(actionRequest, "error-workflow-stato-incosistente"); } - String redirectURL = ParamUtil.getString(actionRequest, "redirect"); if (Validator.isNotNull(redirectURL)) { actionResponse.sendRedirect(redirectURL); } - if (!attivare) { intPratica.setStatoPratica(stato_pratica); IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, stato_pratica); } else { intPratica.setStatoPratica(StatoPraticaConstants.SOTTOPOSTA_A_PARERE); - IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, - StatoPraticaConstants.SOTTOPOSTA_A_PARERE); + IntPraticaLocalServiceUtil.updateStatoPratica(intPraticaId, StatoPraticaConstants.SOTTOPOSTA_A_PARERE); } - IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, intPratica.getCompanyId()); - } catch (Exception e) { _log.error("error-workflow-sospeso", e); SessionErrors.add(actionRequest, attivare ? "error-workflow-sospeso" : "error-workflow-ripreso"); } - } - private void addRowHistoryWorkflowAction(long intPraticaId, long dettPraticaId, long companyId, - long groupId, User user, boolean attivato) throws SystemException { + private void addRowHistoryWorkflowAction(long intPraticaId, long dettPraticaId, long companyId, long groupId, + User user, boolean attivato) throws SystemException { HistoryWorkflowAction historyWorkflowAction = HistoryWorkflowActionLocalServiceUtil - .createHistoryWorkflowAction(CounterLocalServiceUtil.increment(HistoryWorkflowAction.class - .getName())); - + .createHistoryWorkflowAction(CounterLocalServiceUtil.increment(HistoryWorkflowAction.class.getName())); historyWorkflowAction.setAttivato(attivato); historyWorkflowAction.setCompanyId(companyId); historyWorkflowAction.setCreateDate(new Date()); @@ -186,33 +162,26 @@ public class FascicoloPortlet extends MVCPortlet { historyWorkflowAction.setIntPraticaId(intPraticaId); historyWorkflowAction.setDettPraticaId(dettPraticaId); historyWorkflowAction.setGroupId(groupId); - HistoryWorkflowActionLocalServiceUtil.updateHistoryWorkflowAction(historyWorkflowAction); - } public void toggleSospensione(ActionRequest actionRequest, ActionResponse actionResponse) { - long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0); + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); boolean sospesa = ParamUtil.getBoolean(actionRequest, "sospesa"); - try { - IntPraticaServiceUtil.sospendiPratica(intPraticaId, sospesa); SessionMessages.add(actionRequest, sospesa ? "success-sospesa" : "success-ripresa"); - } catch (PortalException | SystemException e) { _log.error("error-workflow-sospeso", e); SessionErrors.add(actionRequest, sospesa ? "error-sospesa" : "error-ripresa"); } - } public void cambiaStato(ActionRequest actionRequest, ActionResponse actionResponse) { - long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0); + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); String statoPratica = ParamUtil.getString(actionRequest, "nuovoStatoPratica"); - _log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId); try { _log.info("cambiaSospendiRiprendi: INTPRATICAID" + intPraticaId + " NUOVO STATO: " + statoPratica); @@ -222,7 +191,6 @@ public class FascicoloPortlet extends MVCPortlet { _log.error("error-workflow-sospeso", e); SessionErrors.add(actionRequest, "error-cambio-stato"); } - } public void aggiungiRichiestaParere(ActionRequest actionRequest, ActionResponse actionResponse) { @@ -230,7 +198,6 @@ public class FascicoloPortlet extends MVCPortlet { long geologoId = ParamUtil.getLong(actionRequest, "geologoId"); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); serviceContext.setCreateDate(new Date()); @@ -245,31 +212,28 @@ public class FascicoloPortlet extends MVCPortlet { public void cambiaTitolare(ActionRequest actionRequest, ActionResponse actionResponse) { String nuovoSoggettoCF = ParamUtil.getString(actionRequest, "nuovoSoggettoCF"); - long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0); + long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId", 0L); long companyId = ParamUtil.getLong(actionRequest, "companyId"); - try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); User user = UserLocalServiceUtil.fetchUserByScreenName(companyId, nuovoSoggettoCF); if (Validator.isNotNull(user)) { if (!ValidazionePraticaUtil.praticaInProgress(intPraticaId)) { - _log.info("cambiaTitolare: cfNuovoTitolare " + nuovoSoggettoCF + " intpratica" - + intPraticaId); + _log.info("cambiaTitolare: cfNuovoTitolare " + nuovoSoggettoCF + " intpratica" + intPraticaId); IntPraticaServiceUtil.cambiaTitolare(intPraticaId, user.getUserId(), serviceContext); SessionMessages.add(actionRequest, "success-cambio-titolare"); } else { SessionErrors.add(actionRequest, "error-cambio-titolare-pratica-in-progress"); } } else { - _log.error("[FASCICOLO ACTION - CAMBIO TITOLARE] Nessun utente trovato con company " - + companyId + " e codice fiscale " + nuovoSoggettoCF); + _log.error("[FASCICOLO ACTION - CAMBIO TITOLARE] Nessun utente trovato con company " + companyId + + " e codice fiscale " + nuovoSoggettoCF); SessionErrors.add(actionRequest, "error-cambio-titolare-no-such-user"); } } catch (PortalException | SystemException e) { _log.error("error-cambio-titolare", e); SessionErrors.add(actionRequest, "error-cambio-titolare"); } - } public void searchURL(ActionRequest actionRequest, ActionResponse actionResponse) { @@ -290,35 +254,26 @@ public class FascicoloPortlet extends MVCPortlet { String comune = actionRequest.getParameter("comune"); String tipoIntervento = actionRequest.getParameter("tipoIntervento"); String indirizzo = actionRequest.getParameter("indirizzo"); - - if (dataRichiestaInizio != null && !dataRichiestaInizio.equals("")) { - String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split("/"); - - int mounth = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1; - + if (Validator.isNotNull(dataRichiestaInizio)) { + String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split(StringPool.FORWARD_SLASH); actionResponse.setRenderParameter("dataRichiestaInizioDay", dataRichiestaInizioSplitted[0]); - actionResponse.setRenderParameter("dataRichiestaInizioMonth", mounth + ""); + int month = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1; + actionResponse.setRenderParameter("dataRichiestaInizioMonth", String.valueOf(month)); actionResponse.setRenderParameter("dataRichiestaInizioYear", dataRichiestaInizioSplitted[2]); } - - if (dataRichiestaFine != null && !dataRichiestaFine.equals("")) { - String[] dataRichiestaFineSplitted = dataRichiestaFine.split("/"); - - int mounth = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1; - + if (Validator.isNotNull(dataRichiestaFine)) { + String[] dataRichiestaFineSplitted = dataRichiestaFine.split(StringPool.FORWARD_SLASH); actionResponse.setRenderParameter("dataRichiestaFineDay", dataRichiestaFineSplitted[0]); - actionResponse.setRenderParameter("dataRichiestaFineMonth", mounth + ""); + int month = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1; + actionResponse.setRenderParameter("dataRichiestaFineMonth", String.valueOf(month)); actionResponse.setRenderParameter("dataRichiestaFineYear", dataRichiestaFineSplitted[2]); } - String ufficio = actionRequest.getParameter("ufficio"); String ordinaPer = actionRequest.getParameter("ordinaPer"); String ordinaTipo = actionRequest.getParameter("ordinaTipo"); - - if (tipoIntervento != null && !tipoIntervento.equals("")) { + if (Validator.isNotNull(tipoIntervento)) { actionResponse.setRenderParameter("tipoIntervento", tipoIntervento); } - actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); actionResponse.setRenderParameter("praticaAperta", praticaAperta); actionResponse.setRenderParameter("descIntervento", descInterventoSearch); @@ -327,66 +282,38 @@ public class FascicoloPortlet extends MVCPortlet { actionResponse.setRenderParameter("tipoPratica", tipoPratica); actionResponse.setRenderParameter("statoPratica", statoPratica); actionResponse.setRenderParameter("committente", committente); - - if (provincia != null && !provincia.equals("")) { + if (Validator.isNotNull(provincia)) { actionResponse.setRenderParameter("provincia", provincia); } - - if (comune != null && !comune.equals("")) { + if (Validator.isNotNull(comune)) { actionResponse.setRenderParameter("comune", comune); } - actionResponse.setRenderParameter("indirizzo", indirizzo); - - if (tecnicoIstruttore != null && !tecnicoIstruttore.equals("")) { - actionResponse.setRenderParameter("tecnicoIstruttore", tecnicoIstruttore); - } else { + if (Validator.isNull(tecnicoIstruttore)) { actionResponse.setRenderParameter("tecnicoIstruttore", StringPool.BLANK); + } else { + actionResponse.setRenderParameter("tecnicoIstruttore", tecnicoIstruttore); } - actionResponse.setRenderParameter("titolareDigitale", titolareDigitale); actionResponse.setRenderParameter("soggettiInterconnessi", soggettiInterconnessi); actionResponse.setRenderParameter("dataRichiestaInizio", dataRichiestaInizio); actionResponse.setRenderParameter("dataRichiestaFine", dataRichiestaFine); - - if (ufficio != null && !ufficio.equals("")) { - actionResponse.setRenderParameter("ufficio", ufficio); + if (Validator.isNull(ufficio)) { + actionResponse.setRenderParameter("ufficio", "-1"); } else { - actionResponse.setRenderParameter("ufficio", -1 + ""); + actionResponse.setRenderParameter("ufficio", ufficio); } - actionResponse.setRenderParameter("ordinaPer", ordinaPer); actionResponse.setRenderParameter("ordinaTipo", ordinaTipo); - - } - - public void versiona(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { - - long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId", 0); - long companyId = ParamUtil.getLong(actionRequest, "companyId"); - - try { - DettPraticaServiceUtil.sendToVersioning(dettPraticaId, companyId); - - } catch (PortalException | SystemException | IOException | NoSuchFieldException | SecurityException e) { - _log.error("error-versioning", e); - SessionErrors.add(actionRequest, "error-versioning"); - } - - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - } @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) - throws IOException, PortletException { + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { String id = resourceRequest.getResourceID(); - ServiceContext serviceContext; try { - serviceContext = ServiceContextFactory.getInstance(resourceRequest); if ("downloadAllDocPratica".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); long classPk = ParamUtil.getLong(resourceRequest, "classPk"); String comingFrom = ParamUtil.getString(resourceRequest, "comingFrom"); @@ -404,14 +331,11 @@ public class FascicoloPortlet extends MVCPortlet { } else if ("page_collaudo".equals(comingFrom)) { tipologieAllegati = DocumentiPraticaUtil.getDocCollaudo(); } - docs = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologie(intPraticaId, - classPk, tipologieAllegati); + docs = DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologie(intPraticaId, classPk, + tipologieAllegati); } - ZipWriter zipWriter = ZipWriterFactoryUtil.getZipWriter(); - for (DocPratica doc : docs) { - InputStream inputStream = null; try { if (Validator.isNull(doc.getDlFileEntryId())) { @@ -420,108 +344,60 @@ public class FascicoloPortlet extends MVCPortlet { FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(doc.getDlFileEntryId()); inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), fileEntry.getVersion(), false); - - // String name = fileEntry.getTitle() + - // StringPool.PERIOD + fileEntry.getExtension(); - String name = fileEntry.getTitle(); + String s = new String(fileEntry.getTitle().getBytes(StandardCharsets.UTF_8)); + byte[] b = s.getBytes(StandardCharsets.ISO_8859_1); + String name = new String(b, StandardCharsets.ISO_8859_1); zipWriter.addEntry(name, inputStream); } finally { StreamUtil.cleanUp(inputStream); } } - resourceResponse.reset(); - File file = zipWriter.getFile(); byte[] data = Files.readAllBytes(file.toPath()); - resourceResponse.setContentType(ContentTypes.APPLICATION_ZIP); resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); - resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" - + file.getName() + "\""); + resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, + "attachment; filename=\"" + file.getName() + StringPool.QUOTE); resourceResponse.setContentLength(data.length); - resourceResponse.getPortletOutputStream().write(data); resourceResponse.getPortletOutputStream().flush(); resourceResponse.getPortletOutputStream().close(); - - } else if ("importAllFascicoloFiles".equals(id)) { - long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId"); - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - - if (Validator.isNull(intPratica)) { - _log.error("error.no.intpratica.exist with intpraticaid=" + intPraticaId); - } - - String comingFrom = ParamUtil.getString(resourceRequest, "comingFrom", "bo"); - InfoFascicolo infoFascicolo = InfoFascicoloLocalServiceUtil.fetchByIntPratica(intPratica - .getIntPraticaId()); - if (Validator.isNull(infoFascicolo)) { - infoFascicolo = InfoFascicoloLocalServiceUtil.addInfoFascicolo( - intPratica.getIntPraticaId(), intPratica.getNumeroProgetto(), serviceContext); - } else { - if (infoFascicolo.getAlreadyImported() && comingFrom.equalsIgnoreCase("fe")) { - _log.error("intpratica.import.file.already-clicked with intpraticaid=" + intPraticaId); - return; - } - } - - infoFascicolo.setAlreadyImported(true); - infoFascicolo = InfoFascicoloLocalServiceUtil.updateInfoFascicolo(infoFascicolo); - - PortletResponseUtil - .write(resourceResponse, - "

Completato

Refresh"); } else if ("comuni".equals(id)) { String provinciaId = ParamUtil.getString(resourceRequest, "provinciaId"); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) { - List comuniIds = TerritorioLocalServiceUtil - .getActiveComuniByCodiceProvincia(provinciaId); - + List comuniIds = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia(provinciaId); // ADT BUG-ID=15 Sezione Ricerca / Ordinamento Filtro List comumeList = new ArrayList(); for (long comuneId : comuniIds) { Comune comune = ComuneLocalServiceUtil.getComune(comuneId); comumeList.add(comune); } - Collections.sort(comumeList, new Comparator() { @Override public int compare(Comune o1, Comune o2) { return o1.getDenominazione().compareTo(o2.getDenominazione()); } }); - for (Comune comune : comumeList) { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); jsonObject.put("comuneId", comune.getComuneId()); jsonObject.put("descLong", comune.getDenominazione()); - jsonArray.put(jsonObject); } } writeJSON(resourceRequest, resourceResponse, jsonArray); - } else if ("exportRicerca".equals(id)) { - - ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest - .getAttribute(WebKeys.THEME_DISPLAY); + ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); Locale locale = themeDisplay.getLocale(); - User user = themeDisplay.getUser(); - String csv = StringPool.BLANK; - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - csv = exportSearch(locale, resourceRequest, user); - - ServletResponseUtil.sendFile(request, response, "export_ricerca.csv", - csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8); - + ServletResponseUtil.sendFile(request, response, "export_ricerca.csv", csv.getBytes(StringPool.UTF8), + ContentTypes.TEXT_CSV_UTF8); } else { super.serveResource(resourceRequest, resourceResponse); } @@ -529,154 +405,137 @@ public class FascicoloPortlet extends MVCPortlet { _log.error(e, e); throw new IOException(e); } - } private String exportSearch(Locale locale, ResourceRequest resourceRequest, User user) { - String method = "exportSearch"; + String method = "exportSearch"; HttpServletRequest httpRequest = PortalUtil.getHttpServletRequest(resourceRequest); StringBuilder sb = new StringBuilder(); - List lista = new ArrayList(); - - Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(httpRequest, user, -1, -1); - + Hits hits = IntPraticaAdvancedSearch.searchProgettiBO(httpRequest, user, QueryUtil.ALL_POS, QueryUtil.ALL_POS); for (Document doc : hits.toList()) { String intPraticaId = doc.get("intPraticaId"); try { if (Validator.isNotNull(intPraticaId)) { - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil - .getLong(intPraticaId)); + IntPratica intPratica = IntPraticaLocalServiceUtil + .fetchIntPratica(GetterUtil.getLong(intPraticaId)); if (Validator.isNotNull(intPratica)) { lista.add(intPratica); } } } catch (Throwable e) { - _log.error(method + " IntPraticaLocalServiceUtil.fetchIntPratica IntPraticaId: " - + intPraticaId, e); + _log.error(method + " IntPraticaLocalServiceUtil.fetchIntPratica IntPraticaId: " + intPraticaId, e); } } - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.sorteggiata"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.pratica"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.titolare"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.committenti"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.istruttore"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.statoPratica"))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.comune"))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.descrizioneIntervento"))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); - + sb.append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil + .get(getPortletConfig(), locale, "label.scadenzegeniocivile.pratica"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.titolare"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.committenti"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.istruttore"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.statoPratica"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.comune"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.descrizioneIntervento"))).append(StringPool.SEMICOLON) + .append(StringPool.NEW_LINE); for (IntPratica intPratica : lista) { - try { long intPraticaId = intPratica.getIntPraticaId(); - DettPratica lastDettPratica = DettPraticaLocalServiceUtil - .getLastCompletedByIntPratica(intPraticaId); - - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica - .getTerritorioId()); + DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - - boolean sorteggiata = SorteggioLocalServiceUtil - .findByIntPratica(intPraticaId) != null; - sb.append(CSVUtil.encode((sorteggiata) ? "Si" : "No")); - sb.append(StringPool.SEMICOLON); - String praticaLabel = intPratica.getTitle(locale, true); - sb.append(CSVUtil.encode(praticaLabel)); - sb.append(StringPool.SEMICOLON); - + sb.append("No").append(StringPool.SEMICOLON).append(CSVUtil.encode(praticaLabel)) + .append(StringPool.SEMICOLON); List titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale( - lastDettPratica.getIntPraticaId(), - lastDettPratica.getCodiceFiscaleDelegatoCommittente()); + lastDettPratica.getIntPraticaId(), lastDettPratica.getCodiceFiscaleDelegatoCommittente()); Soggetto titolare = null; if (!titolari.isEmpty()) { titolare = titolari.get(0); } if (titolare != null) { - sb.append(titolare.getTitle() + " - " + titolare.getCodiceFiscale()); - } else { - sb.append(""); + sb.append(titolare.getTitle()).append(" - ").append(titolare.getCodiceFiscale()); } sb.append(StringPool.SEMICOLON); - StringBuilder builder = new StringBuilder(); - List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( lastDettPratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE); for (Soggetto committente : committenti) { - builder.append(committente.getTitle() + " - " + committente.getCodiceFiscale()).append( - StringPool.COMMA_AND_SPACE); + builder.append(committente.getTitle()).append(" - ").append(committente.getCodiceFiscale()) + .append(StringPool.COMMA_AND_SPACE); } if (builder.length() > 0) builder.setLength(builder.length() - 12); - - sb.append(builder.toString()); - sb.append(StringPool.SEMICOLON); - + sb.append(builder.toString()).append(StringPool.SEMICOLON); User istruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (istruttore != null) { sb.append(istruttore.getFullName()); - } else { - sb.append(""); + } + sb.append(StringPool.SEMICOLON) + .append(LanguageUtil.get( + locale, + PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), + intPratica.getTipoProcedura()))).append(StringPool.SEMICOLON); + if (Validator.isNotNull(provincia)) { + sb.append(provincia.getProvincia()); } sb.append(StringPool.SEMICOLON); - - sb.append(LanguageUtil.get( - locale, - PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), - intPratica.getIntPraticaId()))); - sb.append(StringPool.SEMICOLON); - - sb.append(provincia != null ? provincia.getProvincia() : ""); - sb.append(StringPool.SEMICOLON); - sb.append(comune != null ? comune.getDenominazione() : ""); + if (Validator.isNotNull(comune)) { + sb.append(comune.getDenominazione()); + } sb.append(StringPool.SEMICOLON); - int MAX_LENGHT_DESCR_INTERVENTO = 30; - sb.append(lastDettPratica.getDescLongIntervento() == null ? "" : lastDettPratica - .getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO ? lastDettPratica - .getDescLongIntervento().substring(0, MAX_LENGHT_DESCR_INTERVENTO) : lastDettPratica - .getDescLongIntervento()); - sb.append(StringPool.SEMICOLON); - + sb.append( + lastDettPratica.getDescLongIntervento() == null ? StringPool.BLANK : lastDettPratica + .getDescLongIntervento().length() > MAX_LENGHT_DESCR_INTERVENTO ? lastDettPratica + .getDescLongIntervento().substring(0, MAX_LENGHT_DESCR_INTERVENTO) : lastDettPratica + .getDescLongIntervento()).append(StringPool.SEMICOLON); } catch (Throwable e) { - _log.error(method + " IntPraticaId: " + intPratica != null ? intPratica.getIntPraticaId() - : "", e); + _log.error(method + " IntPraticaId: " + intPratica != null ? intPratica.getIntPraticaId() : "", e); } finally { sb.append(StringPool.NEW_LINE); } } - return sb.toString(); - } - + + public void setBollettinoImposta(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { + + try { + long idPagamento = ParamUtil.getLong(actionRequest, "idPagamento"); + String numeroBollettino = ParamUtil.getString(actionRequest, "numeroBollettino"); + Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(idPagamento); + if (Validator.isNotNull(pagamento)) { + pagamento.setNumeroBollettino(numeroBollettino); + PagamentoLocalServiceUtil.updatePagamento(pagamento); + } + //PortalUtil.copyRequestParameters(actionRequest, actionResponse); + String redirectURL = ParamUtil.getString(actionRequest, "redirect"); + if (Validator.isNotNull(redirectURL)) { + actionResponse.sendRedirect(redirectURL); + } + } catch (Exception e) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + _log.error("Error", e); + throw new SystemException(e); + } + } + } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GenerateProtocolloCSVPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GenerateProtocolloCSVPortlet.java index 7f7ae290..9843ec97 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GenerateProtocolloCSVPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GenerateProtocolloCSVPortlet.java @@ -23,9 +23,11 @@ import org.apache.commons.io.IOUtils; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.servlet.HttpHeaders; +import com.liferay.portal.kernel.servlet.HttpMethods; import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.ParamUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.WebKeys; import com.liferay.portal.model.Organization; import com.liferay.portal.model.User; @@ -45,88 +47,64 @@ public class GenerateProtocolloCSVPortlet extends MVCPortlet { String annoRiferimento = actionRequest.getParameter("annoRiferimento"); String ufficioId = actionRequest.getParameter("ufficio"); String numeroProtocollo = actionRequest.getParameter("numeroProtocollo"); - actionResponse.setRenderParameter("annoRiferimento", annoRiferimento); actionResponse.setRenderParameter("ufficio", ufficioId); actionResponse.setRenderParameter("numeroProtocollo", numeroProtocollo); } @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) - throws IOException, PortletException { + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { int ufficioId = ParamUtil.getInteger(resourceRequest, "ufficio", -1); String anno = ParamUtil.getString(resourceRequest, "annoRiferimento", "0000"); - ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); User user = themeDisplay.getUser(); - - String ufficioIds = ""; - + String ufficioIds = StringPool.BLANK; try { - if (ufficioId == -1) { List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(user .getUserId()); if (organizationList != null && !organizationList.isEmpty()) { List lista = new ArrayList(); - for (Organization org : organizationList) { lista.add(GetterUtil.getInteger(org.getGroupId())); } - ufficioIds = lista.toString().substring(1, lista.toString().length() - 1); } } else { - ufficioIds = "" + ufficioId; + ufficioIds = String.valueOf(ufficioId); } - - ufficioIds = ufficioIds.replaceAll(" ", ""); - - // String urlCSVService = PortletProps.get("protocollo.cvs.url"); - String urlCSVService = ConfigurazioneLocalServiceUtil.findByC_ChiaveString( - themeDisplay.getCompanyId(), ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); - + ufficioIds = ufficioIds.replaceAll(StringPool.SPACE, StringPool.BLANK); + String urlCSVService = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(themeDisplay.getCompanyId(), + ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); String data = "?anno=" + anno + "&ufficioIds=" + ufficioIds; - URL url = new URL(urlCSVService + data); - HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); - conn.setRequestMethod("POST"); - conn.setRequestProperty("Content-Type", "application/json"); - + conn.setRequestMethod(HttpMethods.POST); + conn.setRequestProperty(HttpHeaders.CONTENT_TYPE, ContentTypes.APPLICATION_JSON); if (conn.getResponseCode() != HttpURLConnection.HTTP_OK) { throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode()); } - byte[] bytes = IOUtils.toByteArray(conn.getInputStream()); - String fileName = "export_protocolli_" + new Date().getTime() + "_.csv"; String contentType = ContentTypes.TEXT_CSV; - ByteArrayOutputStream bos = new ByteArrayOutputStream(bytes.length); bos.write(bytes, 0, bytes.length); - resourceResponse.setContentType(contentType); resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); - resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + "\"" - + fileName + "\""); + resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + + StringPool.QUOTE); resourceResponse.setContentLength(bos.size()); - OutputStream out = resourceResponse.getPortletOutputStream(); bos.writeTo(out); - out.flush(); out.close(); - conn.disconnect(); - } catch (Exception e) { _log.error(e, e); } - super.serveResource(resourceRequest, resourceResponse); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java index 58683276..1c0113ce 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java @@ -32,6 +32,7 @@ import javax.portlet.ResourceRequest; import javax.portlet.ResourceResponse; import javax.servlet.http.HttpServletRequest; +import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONArray; @@ -60,9 +61,9 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet { private static final Log _log = LogFactoryUtil.getLog(GestioneAttivitaIstruttorePortlet.class); - private static final String[] FIELD_NAMES = { "Tipo Pratica", "Numero Progetto", "Data Pratica", - "Comune", "Provincia", "Stato Pratica", "Committenti", "Direttore Lavori", - "Tipologia Intervento", "Aperta", "Collaudo Previsto", "Data Assegnazione" }; + private static final String[] FIELD_NAMES = { "Tipo Pratica", "Numero Progetto", "Data Pratica", "Comune", + "Provincia", "Stato Pratica", "Committenti", "Direttore Lavori", "Tipologia Intervento", "Aperta", + "Collaudo Previsto", "Data Assegnazione" }; private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); @@ -80,16 +81,12 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet { String ordinaTipo = ParamUtil.getString(actionRequest, "ordinaTipo"); String comune = ParamUtil.getString(actionRequest, "comune"); String praticaAperta = ParamUtil.getString(actionRequest, "praticaAperta"); - String interventoTutti = ParamUtil.getString(actionRequest, "interventoTutti"); String interventoNuovaCostruzione = ParamUtil.getString(actionRequest, "interventoNuovaCostruzione"); - String interventoAdeguamentoSismico = ParamUtil.getString(actionRequest, - "interventoAdeguamentoSismico"); - String interventoMiglioramentoSismico = ParamUtil.getString(actionRequest, - "interventoMiglioramentoSismico"); + String interventoAdeguamentoSismico = ParamUtil.getString(actionRequest, "interventoAdeguamentoSismico"); + String interventoMiglioramentoSismico = ParamUtil.getString(actionRequest, "interventoMiglioramentoSismico"); String interventoRiparazioneInterventoLocale = ParamUtil.getString(actionRequest, "interventoRiparazioneInterventoLocale"); - actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); actionResponse.setRenderParameter("tipoPratica", tipoPratica); actionResponse.setRenderParameter("statoPratica", statoPratica); @@ -103,209 +100,142 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet { actionResponse.setRenderParameter("ordinaTipo", ordinaTipo); actionResponse.setRenderParameter("comune", comune); actionResponse.setRenderParameter("praticaAperta", praticaAperta); - actionResponse.setRenderParameter("interventoTutti", interventoTutti); actionResponse.setRenderParameter("interventoNuovaCostruzione", interventoNuovaCostruzione); actionResponse.setRenderParameter("interventoAdeguamentoSismico", interventoAdeguamentoSismico); actionResponse.setRenderParameter("interventoMiglioramentoSismico", interventoMiglioramentoSismico); actionResponse.setRenderParameter("interventoRiparazioneInterventoLocale", interventoRiparazioneInterventoLocale); - } @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) - throws IOException, PortletException { + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); - - // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione - // tutte i record + // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione tutte i record String resourceId = GetterUtil.getString(resourceRequest.getResourceID()); boolean isExport = "exportCVS".equals(resourceId); - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); List lista = new ArrayList<>(); Hits hits = IntPraticaAdvancedSearch.searchAttivitaIstruttore(request, themeDisplay.getUser(), 0, - // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione - // tutte i record - // Bug 33248 - GetterUtil.getInteger(PropsUtil.get(PropsKeys.INDEX_FILTER_SEARCH_LIMIT)), isExport); + // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - Esportazione tutte i record + GetterUtil.getInteger(PropsUtil.get(PropsKeys.INDEX_FILTER_SEARCH_LIMIT)), isExport); try { for (Document doc : hits.toList()) { - String intPraticaId = doc.get("intPraticaId"); if (Validator.isNotNull(intPraticaId)) { - IntPratica intPratica; - intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(GetterUtil.getLong(intPraticaId)); - if (Validator.isNotNull(intPratica)) { lista.add(intPratica); } } - } } catch (PortalException | SystemException e) { throw new IOException(e); } - if (isExport && Validator.isNotNull(lista) && !lista.isEmpty()) { - StringBuilder sb = new StringBuilder(); - for (String columnName : FIELD_NAMES) { - sb.append(columnName); - sb.append(StringPool.SEMICOLON); + sb.append(columnName).append(StringPool.SEMICOLON); } - - sb.append(CharPool.NEW_LINE); - sb.append(CharPool.NEW_LINE); - + sb.append(CharPool.NEW_LINE).append(CharPool.NEW_LINE); for (IntPratica pratica : lista) { - try { - DettPratica lastDettPratica = DettPraticaLocalServiceUtil - .getLastCompletedByIntPratica(pratica.getIntPraticaId()); - - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(pratica - .getTerritorioId()); + DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(pratica + .getIntPraticaId()); + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(pratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - List committenti = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( pratica.getIntPraticaId(), TipoSoggettoUtil.COMMITTENTE); - List direttoreLavori = SoggettoLocalServiceUtil - .findByIntPratica_TipologiaSoggetto(pratica.getIntPraticaId(), - TipoSoggettoUtil.DIRETTORE_LAVORI); - List collaudatori = SoggettoLocalServiceUtil - .findByIntPratica_TipologiaSoggetto(pratica.getIntPraticaId(), - TipoSoggettoUtil.COLLAUDATORE); - + List direttoreLavori = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( + pratica.getIntPraticaId(), TipoSoggettoUtil.DIRETTORE_LAVORI); + List collaudatori = SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto( + pratica.getIntPraticaId(), TipoSoggettoUtil.COLLAUDATORE); List fineLavoriList = FineLavoriLocalServiceUtil.findByIntPraticaId( - pratica.getIntPraticaId(), -1, -1, null); + pratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); boolean compleatata = false; for (FineLavori fineLavori : fineLavoriList) { if (fineLavori.isCompletata() && !fineLavori.isParziale()) { compleatata = true; } } - boolean collaudoPrevisto = false; if (collaudatori != null && !collaudatori.isEmpty()) { collaudoPrevisto = true; } - - sb.append(pratica.getTipoPratica()); - sb.append(StringPool.SEMICOLON); - sb.append(pratica.getNumeroProgetto()); - sb.append(StringPool.SEMICOLON); + sb.append(pratica.getTipoPratica()).append(StringPool.SEMICOLON) + .append(pratica.getNumeroProgetto()).append(StringPool.SEMICOLON); if (Validator.isNotNull(pratica.getDtPratica())) { sb.append(sdf.format(pratica.getDtPratica())); - } else { - sb.append(""); } - sb.append(StringPool.SEMICOLON); - - sb.append(comune.getDenominazione()); - sb.append(StringPool.SEMICOLON); - sb.append(provincia.getProvincia()); - sb.append(StringPool.SEMICOLON); - sb.append(pratica.getStatoPratica()); - sb.append(StringPool.SEMICOLON); - + sb.append(StringPool.SEMICOLON).append(comune.getDenominazione()).append(StringPool.SEMICOLON) + .append(provincia.getProvincia()).append(StringPool.SEMICOLON) + .append(pratica.getStatoPratica()).append(StringPool.SEMICOLON); for (Soggetto soggetto : committenti) { // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - // sb.append(soggetto.getCodiceFiscale().toUpperCase()); - sb.append(soggetto.getDescrizioneCompleta().toUpperCase()); - sb.append(" "); + sb.append(soggetto.getDescrizioneCompleta().toUpperCase()).append(StringPool.SPACE); } sb.append(StringPool.SEMICOLON); - for (Soggetto soggetto : direttoreLavori) { // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV - // sb.append(soggetto.getCodiceFiscale().toUpperCase()); - sb.append(soggetto.getDescrizioneCompleta().toUpperCase()); - sb.append(" "); + sb.append(soggetto.getDescrizioneCompleta().toUpperCase()).append(StringPool.SPACE); } sb.append(StringPool.SEMICOLON); - if (Validator.isNotNull(lastDettPratica)) { if (lastDettPratica.getTcNuovaCostruzione()) { - sb.append("Nuova Costruzione"); - sb.append(" "); + sb.append("Nuova Costruzione").append(StringPool.SPACE); } if (lastDettPratica.getTcAdeguamentoSismico()) { - sb.append("Adeguamento Sismico"); - sb.append(" "); + sb.append("Adeguamento Sismico").append(StringPool.SPACE); } if (lastDettPratica.getTcMiglioramentoSismico()) { - sb.append("Miglioramento Sismico"); - sb.append(" "); + sb.append("Miglioramento Sismico").append(StringPool.SPACE); } if (lastDettPratica.getTcRiparazioneInterventoLocale()) { - sb.append("Riparazione Intervento Locale"); - sb.append(" "); + sb.append("Riparazione Intervento Locale").append(StringPool.SPACE); } } sb.append(StringPool.SEMICOLON); - if (compleatata) { - sb.append("SI"); + sb.append("SÌ"); } else { sb.append("NO"); } sb.append(StringPool.SEMICOLON); - if (collaudoPrevisto) { - sb.append("SI"); + sb.append("SÌ"); } else { sb.append("NO"); } sb.append(StringPool.SEMICOLON); - if (Validator.isNotNull(pratica.getStatusDate())) { sb.append(sdf.format(pratica.getStatusDate())); - } else { - sb.append(""); } sb.append(StringPool.SEMICOLON); - } catch (SystemException e) { _log.error(e, e); } - sb.append(CharPool.NEW_LINE); } - String fileName = "exportActivity_" + new Date().getTime() + ".csv"; byte[] bytes = sb.toString().getBytes(); - String contentType = ContentTypes.TEXT_CSV; - ByteArrayOutputStream baos = new ByteArrayOutputStream(bytes.length); baos.write(bytes, 0, bytes.length); - resourceResponse.setContentType(contentType); resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); - resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=" + "\"" - + fileName + "\""); + resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "attachment; filename=\"" + fileName + + StringPool.QUOTE); resourceResponse.setContentLength(baos.size()); - OutputStream out = resourceResponse.getPortletOutputStream(); baos.writeTo(out); - out.flush(); out.close(); - - // PortletResponseUtil.sendFile(resourceRequest, resourceResponse, - // fileName, bytes, - // contentType); } - // ADT BUG-ID=16 Sezione Pratiche Assegnate User user = themeDisplay.getUser(); if ("comuniForUfficio".equals(resourceId)) { @@ -316,13 +246,12 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet { try { if (!ufficio.equals("-1")) { long ufficioId = Long.parseLong(ufficio); - comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId( - user.getUserId(), ufficioId); + comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(user.getUserId(), + ufficioId); for (Comune comune : comuni) { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); jsonObject.put("comuneId", comune.getComuneId()); jsonObject.put("descLong", comune.getDenominazione()); - jsonArray.put(jsonObject); } writeJSON(resourceRequest, resourceResponse, jsonArray); @@ -332,12 +261,10 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); jsonObject.put("comuneId", comune.getComuneId()); jsonObject.put("descLong", comune.getDenominazione()); - jsonArray.put(jsonObject); } writeJSON(resourceRequest, resourceResponse, jsonArray); } - } catch (Exception e) { e.printStackTrace(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java index 206bb296..d7aed0c8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java @@ -14,11 +14,11 @@ import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.permission.IntPraticaPermission; import it.tref.liferay.portos.bo.shared.util.ActionKeys; import it.tref.liferay.portos.bo.shared.util.Constants; +import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil; @@ -88,7 +88,6 @@ public class GestioneAttivitaPortlet extends MVCPortlet { String statoPratica = ParamUtil.getString(actionRequest, "statoPratica"); String committente = ParamUtil.getString(actionRequest, "committente"); String soggettiInterconnessi = ParamUtil.getString(actionRequest, "soggettiInterconnessi"); - // ADT BUG BO ID = 8 String istruttore = ParamUtil.getString(actionRequest, "istruttore"); String dataRichiestaInizio = ParamUtil.getString(actionRequest, "dataRichiestaInizio"); String dataRichiestaFine = ParamUtil.getString(actionRequest, "dataRichiestaFine"); @@ -98,51 +97,37 @@ public class GestioneAttivitaPortlet extends MVCPortlet { String comune = ParamUtil.getString(actionRequest, "comune"); String tipoAttivita = ParamUtil.getString(actionRequest, "tipoAttivita"); String tipoProcedura = ParamUtil.getString(actionRequest, "tipoProcedura"); - actionResponse.setRenderParameter("tabs1", tabs1); actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); actionResponse.setRenderParameter("protocollo", protocollo); - // ADT - BUG-11 Aggiunta filtro ricerca if (Validator.isNotNull(tipoPratica)) { - if ("co".equalsIgnoreCase(tipoPratica)) { + if (AvvisoUtil.TIPO_REPORT_CONTROLLO_OBBLIGATORIO.equalsIgnoreCase(tipoPratica)) { tipoPratica = Constants.TIPO_PRATICA_DEPOSITO; - actionResponse.setRenderParameter("controlloObbligatorio", Boolean.TRUE.toString()); - } else if ("sorteggio".equalsIgnoreCase(tipoPratica)) { - tipoPratica = Constants.TIPO_PRATICA_DEPOSITO; - actionResponse.setRenderParameter("sorteggiata", Boolean.TRUE.toString()); + actionResponse.setRenderParameter("controlloObbligatorio", StringPool.TRUE); } - actionResponse.setRenderParameter("tipoPratica", tipoPratica); } - actionResponse.setRenderParameter("statoPratica", statoPratica); actionResponse.setRenderParameter("committente", committente); actionResponse.setRenderParameter("soggettiInterconnessi", soggettiInterconnessi); actionResponse.setRenderParameter("istruttore", istruttore); actionResponse.setRenderParameter("dataRichiestaInizio", dataRichiestaInizio); actionResponse.setRenderParameter("dataRichiestaFine", dataRichiestaFine); - - if (dataRichiestaInizio != null && !dataRichiestaInizio.equals("")) { - String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split("/"); - - int mounth = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1; - + if (Validator.isNotNull(dataRichiestaInizio)) { + String[] dataRichiestaInizioSplitted = dataRichiestaInizio.split(StringPool.FORWARD_SLASH); actionResponse.setRenderParameter("dataRichiestaInizioDay", dataRichiestaInizioSplitted[0]); - actionResponse.setRenderParameter("dataRichiestaInizioMonth", mounth + ""); + int month = Integer.valueOf(dataRichiestaInizioSplitted[1]) - 1; + actionResponse.setRenderParameter("dataRichiestaInizioMonth", String.valueOf(month)); actionResponse.setRenderParameter("dataRichiestaInizioYear", dataRichiestaInizioSplitted[2]); } - - if (dataRichiestaFine != null && !dataRichiestaFine.equals("")) { - String[] dataRichiestaFineSplitted = dataRichiestaFine.split("/"); - - int mounth = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1; - + if (Validator.isNotNull(dataRichiestaFine)) { + String[] dataRichiestaFineSplitted = dataRichiestaFine.split(StringPool.FORWARD_SLASH); actionResponse.setRenderParameter("dataRichiestaFineDay", dataRichiestaFineSplitted[0]); - actionResponse.setRenderParameter("dataRichiestaFineMonth", mounth + ""); + int month = Integer.valueOf(dataRichiestaFineSplitted[1]) - 1; + actionResponse.setRenderParameter("dataRichiestaFineMonth", String.valueOf(month)); actionResponse.setRenderParameter("dataRichiestaFineYear", dataRichiestaFineSplitted[2]); } - actionResponse.setRenderParameter("ufficio", ufficio); actionResponse.setRenderParameter("ordinaPer", ordinaPer); actionResponse.setRenderParameter("ordinaTipo", ordinaTipo); @@ -158,8 +143,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet { long istruttoreId = ParamUtil.getLong(actionRequest, "istruttoreId"); try { IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - if (Validator.isNotNull(intPratica.getStatusByUserId()) - && intPratica.getStatusByUserId() != istruttoreId) { + if (Validator.isNotNull(intPratica.getStatusByUserId()) && intPratica.getStatusByUserId() != istruttoreId) { IntPraticaServiceUtil.cambiaIstruttore(intPraticaId, controlloPraticaId, istruttoreId); } else { throw new SystemException("cambio istruttore non possibile"); @@ -170,77 +154,15 @@ public class GestioneAttivitaPortlet extends MVCPortlet { } } - // public void assegnamiTask(ActionRequest actionRequest, ActionResponse - // actionResponse) { - // - // long controlloPraticaId = ParamUtil.getLong(actionRequest, - // "controlloPraticaId"); - // long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); - // - // - // try { - // ServiceContext serviceContext = - // ServiceContextFactory.getInstance(actionRequest); - // ControlloPratica controlloPratica = - // ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); - // - // IntPratica intPratica = - // IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); - // Territorio territorio = - // TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - // IntPraticaPermission.check(PermissionThreadLocal.getPermissionChecker(), - // territorio.getGroupId(), - // ActionKeys.ASSEGNA_A_ME); - // - // - // WorkflowTask lastWorkflowTask = - // WorkflowUtil.getLastTask(controlloPratica.getCompanyId(), - // controlloPratica.getGroupId(), null, - // controlloPratica); - // if (lastWorkflowTask != null && lastWorkflowTask.getWorkflowTaskId() == - // workflowTaskId - // && !lastWorkflowTask.getWorkflowTaskAssignees().isEmpty()) { - // boolean assegnazionePossibile = false; - // for (WorkflowTaskAssignee workflowTaskAssignee : - // lastWorkflowTask.getWorkflowTaskAssignees()) { - // if - // (workflowTaskAssignee.getAssigneeClassName().equalsIgnoreCase(Role.class.getName()) - // && - // UserGroupRoleLocalServiceUtil.hasUserGroupRole(serviceContext.getUserId(), - // controlloPratica.getGroupId(), workflowTaskAssignee.getAssigneeClassPK(), - // true)) { - // assegnazionePossibile = true; - // } - // } - // if (assegnazionePossibile) { - // WorkflowTaskManagerUtil.assignWorkflowTaskToUser(controlloPratica.getCompanyId(), - // serviceContext.getUserId(), - // workflowTaskId, serviceContext.getUserId(), StringPool.BLANK, null, - // WorkflowUtil.getWorkflowContext(controlloPratica)); - // } else { - // throw new - // SystemException("assegnazione task non possibile per il ruolo"); - // } - // } else { - // throw new SystemException("assegnazione task non possibile"); - // } - // } catch (PortalException | SystemException e) { - // _log.error("error-cambio-istruttore", e); - // SessionErrors.add(actionRequest, "error-assegnami-task"); - // } - // } - public void riassegnaAlRuolo(ActionRequest actionRequest, ActionResponse actionResponse) { long controlloPraticaId = ParamUtil.getLong(actionRequest, "controlloPraticaId"); long workflowTaskId = ParamUtil.getLong(actionRequest, "workflowTaskId"); - try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil .getControlloPratica(controlloPraticaId); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica - .getIntPraticaId()); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); IntPraticaPermission.check(PermissionThreadLocal.getPermissionChecker(), territorio.getGroupId(), ActionKeys.ASSEGNA_AL_RUOLO); @@ -260,10 +182,7 @@ public class GestioneAttivitaPortlet extends MVCPortlet { case "Approvazione": role = RoleLocalServiceUtil.getRole(serviceContext.getCompanyId(), "portos_approvatore"); break; - default: - break; } - WorkflowTaskManagerUtil.assignWorkflowTaskToRole(controlloPratica.getCompanyId(), serviceContext.getUserId(), workflowTaskId, role.getRoleId(), StringPool.BLANK, null, WorkflowUtil.getWorkflowContext(controlloPratica)); @@ -279,7 +198,6 @@ public class GestioneAttivitaPortlet extends MVCPortlet { public void annullaRichiestaParere(ActionRequest actionRequest, ActionResponse actionResponse) { long parereGeologoId = ParamUtil.getLong(actionRequest, "parereGeologoId"); - try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); serviceContext.setCreateDate(new Date()); @@ -295,25 +213,20 @@ public class GestioneAttivitaPortlet extends MVCPortlet { SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere"); } } - + public void aggiungiRichiestaParere(ActionRequest actionRequest, ActionResponse actionResponse) { long geologoId = ParamUtil.getLong(actionRequest, "geologoId"); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long dettPraticaId = ParamUtil.getLong(actionRequest, "dettPraticaId"); - try { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); serviceContext.setCreateDate(new Date()); serviceContext.setModifiedDate(new Date()); - //if (ParereGeologoLocalServiceUtil.countByIntPraticaIdParereVuoto(intPraticaId) == 0) { - ParereGeologo parereGeologo = ParereGeologoServiceUtil.addParereGeologo(geologoId, - intPraticaId, dettPraticaId, serviceContext); - // ADT: aggiunta notifica geologo - MailUtil.invioNotificaGeologo(parereGeologo, serviceContext); - /*} else { - throw new PortalException("parere endoprocedimentale già presente"); - }*/ + ParereGeologo parereGeologo = ParereGeologoServiceUtil.addParereGeologo(geologoId, intPraticaId, + dettPraticaId, serviceContext); + // ADT: aggiunta notifica geologo + MailUtil.invioNotificaGeologo(parereGeologo, serviceContext); } catch (PortalException | SystemException e) { _log.error(e, e); SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere"); @@ -327,36 +240,29 @@ public class GestioneAttivitaPortlet extends MVCPortlet { long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long controlloPraticaId = ParamUtil.getLong(actionRequest, "controlloPraticaId"); long lastDettPraticaId = ParamUtil.getLong(actionRequest, "lastDettPraticaId"); - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); if (lastDettPraticaId != controlloPratica.getDettPraticaId() && intPratica.getStatusByUserId() == serviceContext.getUserId()) { - // ADT: BUG ID=5 - ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(controlloPraticaId, - lastDettPraticaId, serviceContext); + ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(controlloPraticaId, lastDettPraticaId, + serviceContext); } else { SessionErrors.add(actionRequest, "error-aggiunta-pratiche-al-controllo"); } } @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) - throws IOException, PortletException { + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); Locale locale = themeDisplay.getLocale(); - User user = themeDisplay.getUser(); - - String cmd = ParamUtil.getString(resourceRequest, "cmd"); - + String cmd = ParamUtil.getString(resourceRequest, Constants.CMD); String id = resourceRequest.getResourceID(); String csv = StringPool.BLANK; - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - if (cmd.equals("dirigente")) { csv = exportToCSV(locale, resourceRequest, true, user); } else if (cmd.equals("po")) { @@ -374,8 +280,8 @@ public class GestioneAttivitaPortlet extends MVCPortlet { try { if (!ufficio.equals("-1")) { long ufficioId = Long.parseLong(ufficio); - comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId( - user.getUserId(), ufficioId); + comuni = ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(user.getUserId(), + ufficioId); for (Comune comune : comuni) { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); jsonObject.put("comuneId", comune.getComuneId()); @@ -390,185 +296,136 @@ public class GestioneAttivitaPortlet extends MVCPortlet { JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); jsonObject.put("comuneId", comune.getComuneId()); jsonObject.put("descLong", comune.getDenominazione()); - jsonArray.put(jsonObject); } writeJSON(resourceRequest, resourceResponse, jsonArray); } - } catch (Exception e) { e.printStackTrace(); } - } - } ServletResponseUtil.sendFile(request, response, "export_pratiche.csv", csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8); - // super.serveResource(resourceRequest, resourceResponse); } private String exportSearch(Locale locale, ResourceRequest resourceRequest, User user, String cmd) { HttpServletRequest httpRequest = PortalUtil.getHttpServletRequest(resourceRequest); StringBuilder sb = new StringBuilder(); - List lista = new ArrayList(); - try { - Hits hits = null; - if (cmd.equals("exportRicercaMieAttivita")) { - hits = ControlloPraticaAdvancedSearch.searchMieiTask(httpRequest, user, -1, -1); + hits = ControlloPraticaAdvancedSearch.searchMieiTask(httpRequest, user, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); } else if (cmd.equals("exportRicercaMieiRuoli")) { - hits = ControlloPraticaAdvancedSearch.searchTaskMieiRuoli(httpRequest, user, -1, -1); + hits = ControlloPraticaAdvancedSearch.searchTaskMieiRuoli(httpRequest, user, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); } else if (cmd.equals("exportRicercaAltreAttivita")) { - hits = ControlloPraticaAdvancedSearch.searchAltriTask(httpRequest, user, -1, -1); + hits = ControlloPraticaAdvancedSearch.searchAltriTask(httpRequest, user, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); } else if (cmd.equals("exportRicercaAttivitaConcluse")) { - hits = ControlloPraticaAdvancedSearch.searchTaskConclusi(httpRequest, user, -1, -1); + hits = ControlloPraticaAdvancedSearch.searchTaskConclusi(httpRequest, user, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); } - for (Document doc : hits.toList()) { - String controlloPraticaId = doc.get("controlloPraticaId"); if (Validator.isNotNull(controlloPraticaId)) { - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil .fetchControlloPratica(GetterUtil.getLong(controlloPraticaId)); if (Validator.isNotNull(controlloPratica)) { lista.add(controlloPratica); } } - } - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.attivita"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.esito"))); - sb.append(StringPool.SEMICOLON); - + sb.append( + CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.attivita"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.esito"))).append(StringPool.SEMICOLON); // ADT - BUG-13 Aggiunta colonna Data Esito - // Bug 33264 if (cmd.equals("exportRicercaAttivitaConcluse")) { - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.dataesito"))); - sb.append(StringPool.SEMICOLON); + sb.append( + CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.dataesito"))).append(StringPool.SEMICOLON); } - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.sorteggiata"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.pratica"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.istruttore"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.provenienza"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.avvioprocedimento"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.gg"))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); - + sb.append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.pratica"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.istruttore"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.provenienza"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.avvioprocedimento"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.gg"))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - for (ControlloPratica controlloPratica : lista) { - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPratica - .getIntPraticaId()); - - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica - .getTerritorioId()); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPratica.getIntPraticaId()); + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - // Informazioni relative al workflow WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil - .fetchWorkflowInstanceLink(controlloPratica.getCompanyId(), - controlloPratica.getGroupId(), ControlloPratica.class.getName(), - controlloPratica.getPrimaryKey()); - + .fetchWorkflowInstanceLink(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), + ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance( controlloPratica.getCompanyId(), workflowInstanceId); - List listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance( - controlloPratica.getCompanyId(), null, workflowInstance.getWorkflowInstanceId(), - false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - + controlloPratica.getCompanyId(), null, workflowInstance.getWorkflowInstanceId(), false, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); WorkflowTask task = null; if (listaTask != null && !listaTask.isEmpty()) { task = listaTask.get(0); } - String taskName = StringPool.BLANK; if (task != null) { User userTask = UserLocalServiceUtil.fetchUser(task.getAssigneeUserId()); - // Bug 33264 taskName = LanguageUtil.get(getPortletConfig(), locale, task.getName()); if (userTask != null) { - taskName += " (" + userTask.getFullName() + ")"; + taskName += " (" + userTask.getFullName() + StringPool.CLOSE_PARENTHESIS; } } else { - // Bug 33264 taskName = LanguageUtil.get(getPortletConfig(), locale, workflowInstance.getState()); } - sb.append(CSVUtil.encode(taskName)); - sb.append(StringPool.SEMICOLON); - String tipoEsito = ControlloPraticaLocalServiceUtil.getTipoEsito(controlloPratica .getControlloPraticaId()); - sb.append(CSVUtil.encode(tipoEsito)); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(taskName)).append(StringPool.SEMICOLON).append(CSVUtil.encode(tipoEsito)) + .append(StringPool.SEMICOLON); // ADT - BUG-13 Aggiunta colonna Data Esito - // Bug 33264 if (cmd.equals("exportRicercaAttivitaConcluse")) { - sb.append(CSVUtil.encode(controlloPratica.getStatusDate() != null ? sdf - .format(controlloPratica.getStatusDate()) : "")); + if (Validator.isNotNull(controlloPratica.getStatusDate())) { + sb.append(CSVUtil.encode(sdf.format(controlloPratica.getStatusDate()))); + } sb.append(StringPool.SEMICOLON); } - - boolean sorteggiata = SorteggioLocalServiceUtil - .findByIntPratica(intPratica.getIntPraticaId()) != null; - sb.append(CSVUtil.encode((sorteggiata) ? "Si" : "No")); - sb.append(StringPool.SEMICOLON); - String praticaLabel = intPratica.getTitle(locale, true); - sb.append(CSVUtil.encode(praticaLabel)); - sb.append(StringPool.SEMICOLON); - - String istruttore = "-"; - if (intPratica.getStatusByUserId() != 0l) { + sb.append("No").append(StringPool.SEMICOLON).append(CSVUtil.encode(praticaLabel)) + .append(StringPool.SEMICOLON); + String istruttore = StringPool.DASH; + if (intPratica.getStatusByUserId() != 0L) { User istruttoreUser = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (istruttoreUser != null) { istruttore = istruttoreUser.getFullName(); } else { - istruttore = " [" + intPratica.getStatusByUserId() + "]"; + istruttore = " [" + intPratica.getStatusByUserId() + StringPool.CLOSE_BRACKET; } } - sb.append(CSVUtil.encode(istruttore)); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(istruttore)).append(StringPool.SEMICOLON); StringBuilder provenienzaLabel = new StringBuilder(); - WorkflowTask workflowTask = WorkflowUtil.getLastCompletedTask( - controlloPratica.getCompanyId(), controlloPratica.getGroupId(), null, - controlloPratica); - + WorkflowTask workflowTask = WorkflowUtil.getLastCompletedTask(controlloPratica.getCompanyId(), + controlloPratica.getGroupId(), null, controlloPratica); if (workflowTask != null) { User approvatore = UserLocalServiceUtil.fetchUser(workflowTask.getAssigneeUserId()); if (approvatore != null) { @@ -577,185 +434,128 @@ public class GestioneAttivitaPortlet extends MVCPortlet { if (workflowTask.getAssigneeUserId() == -1) { provenienzaLabel.append(" [Portos 1]"); } else { - provenienzaLabel.append(" [" + workflowTask.getAssigneeUserId() + "]"); + provenienzaLabel.append(" [").append(workflowTask.getAssigneeUserId()) + .append(StringPool.CLOSE_BRACKET); } } - provenienzaLabel.append(" (" + workflowTask.getName() + ")"); + provenienzaLabel.append(" (").append(workflowTask.getName()).append(StringPool.CLOSE_PARENTHESIS); } else { - provenienzaLabel.append("-"); + provenienzaLabel.append(StringPool.DASH); } - sb.append(CSVUtil.encode(provenienzaLabel.toString())); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(sdf.format(controlloPratica.getCreateDate()))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(provincia.getProvincia() + " - " + comune.getDenominazione())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(provenienzaLabel.toString())).append(StringPool.SEMICOLON) + .append(CSVUtil.encode(sdf.format(controlloPratica.getCreateDate()))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(provincia.getProvincia() + " - " + comune.getDenominazione())) + .append(StringPool.SEMICOLON); Date data = controlloPratica.getCreateDate(); Date now = new Date(); - long diff = now.getTime() - data.getTime(); long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS); - - sb.append(CSVUtil.encode(days)); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); + sb.append(CSVUtil.encode(days)).append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); } - - } catch (PortalException e) { - _log.error(e, e); - } catch (SystemException e) { + } catch (PortalException | SystemException e) { _log.error(e, e); } - return sb.toString(); - } private String exportToCSV(Locale locale, ResourceRequest resourceRequest, boolean dirigente, User user) { HttpServletRequest httpRequest = PortalUtil.getHttpServletRequest(resourceRequest); String currentTab = ParamUtil.getString(httpRequest, "tabs1"); - StringBuilder sb = new StringBuilder(); - List listaControlloPratica = new ArrayList(); - if (dirigente) { - listaControlloPratica = ControlloPraticaAdvancedSearch.searchTaskPerEsportazioneDirigente( - httpRequest, user, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - } else { - listaControlloPratica = ControlloPraticaAdvancedSearch.searchTaskPerEsportazionePO(httpRequest, + listaControlloPratica = ControlloPraticaAdvancedSearch.searchTaskPerEsportazioneDirigente(httpRequest, user, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + } else { + listaControlloPratica = ControlloPraticaAdvancedSearch.searchTaskPerEsportazionePO(httpRequest, user, + QueryUtil.ALL_POS, QueryUtil.ALL_POS); } - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.attivita"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.esito"))); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.attivita"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.esito"))) + .append(StringPool.SEMICOLON); // ADT - BUG-13 Aggiunta colonna Data Esito - // Bug 33264 if ("Tab_TaskCompletati".equals(currentTab)) { - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.dataesito"))); - sb.append(StringPool.SEMICOLON); + sb.append( + CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.dataesito"))) + .append(StringPool.SEMICOLON); } - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.sorteggiata"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.pratica"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.istruttore"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.provenienza"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.avvioprocedimento"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.gg"))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); - + sb.append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil + .get(getPortletConfig(), locale, "label.scadenzegeniocivile.pratica"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.istruttore"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.provenienza"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.avvioprocedimento"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.provincia"))).append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.gg"))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); try { - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - for (ControlloPratica controlloPratica : listaControlloPratica) { - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPratica - .getIntPraticaId()); - - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica - .getTerritorioId()); + IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(controlloPratica.getIntPraticaId()); + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - // Informazioni relative al workflow WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil - .fetchWorkflowInstanceLink(controlloPratica.getCompanyId(), - controlloPratica.getGroupId(), ControlloPratica.class.getName(), - controlloPratica.getPrimaryKey()); - + .fetchWorkflowInstanceLink(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), + ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance( controlloPratica.getCompanyId(), workflowInstanceId); - List listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance( - controlloPratica.getCompanyId(), null, workflowInstance.getWorkflowInstanceId(), - false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - + controlloPratica.getCompanyId(), null, workflowInstance.getWorkflowInstanceId(), false, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); WorkflowTask task = null; if (listaTask != null && !listaTask.isEmpty()) { task = listaTask.get(0); } - String taskName = StringPool.BLANK; if (task != null) { User userTask = UserLocalServiceUtil.fetchUser(task.getAssigneeUserId()); taskName = LanguageUtil.get(locale, task.getName()); if (userTask != null) { - taskName += " (" + userTask.getFullName() + ")"; + taskName += " (" + userTask.getFullName() + StringPool.CLOSE_PARENTHESIS; } } else { taskName = LanguageUtil.get(locale, workflowInstance.getState()); } - sb.append(CSVUtil.encode(taskName)); - sb.append(StringPool.SEMICOLON); - String tipoEsito = ControlloPraticaLocalServiceUtil.getTipoEsito(controlloPratica .getControlloPraticaId()); - sb.append(CSVUtil.encode(tipoEsito)); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(taskName)).append(StringPool.SEMICOLON).append(CSVUtil.encode(tipoEsito)) + .append(StringPool.SEMICOLON); // ADT - BUG-13 Aggiunta colonna Data Esito - // Bug 33264 if ("Tab_TaskCompletati".equals(currentTab)) { - sb.append(CSVUtil.encode(sdf.format(controlloPratica.getStatusDate()))); - sb.append(StringPool.SEMICOLON); + sb.append(CSVUtil.encode(sdf.format(controlloPratica.getStatusDate()))) + .append(StringPool.SEMICOLON); } - - boolean sorteggiata = SorteggioLocalServiceUtil - .findByIntPratica(intPratica.getIntPraticaId()) != null; - sb.append(CSVUtil.encode((sorteggiata) ? "Si" : "No")); - sb.append(StringPool.SEMICOLON); - String praticaLabel = intPratica.getTitle(locale, true); - sb.append(CSVUtil.encode(praticaLabel)); - sb.append(StringPool.SEMICOLON); - - String istruttore = "-"; - if (intPratica.getStatusByUserId() != 0l) { + sb.append("No").append(StringPool.SEMICOLON).append(CSVUtil.encode(praticaLabel)) + .append(StringPool.SEMICOLON); + String istruttore = StringPool.DASH; + if (intPratica.getStatusByUserId() != 0L) { User istruttoreUser = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); if (istruttoreUser != null) { istruttore = istruttoreUser.getFullName(); } else { - istruttore = " [" + intPratica.getStatusByUserId() + "]"; + istruttore = " [" + intPratica.getStatusByUserId() + StringPool.CLOSE_BRACKET; } } - sb.append(CSVUtil.encode(istruttore)); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(istruttore)).append(StringPool.SEMICOLON); StringBuilder provenienzaLabel = new StringBuilder(); - WorkflowTask workflowTask = WorkflowUtil.getLastCompletedTask( - controlloPratica.getCompanyId(), controlloPratica.getGroupId(), null, - controlloPratica); - + WorkflowTask workflowTask = WorkflowUtil.getLastCompletedTask(controlloPratica.getCompanyId(), + controlloPratica.getGroupId(), null, controlloPratica); if (workflowTask != null) { User approvatore = UserLocalServiceUtil.fetchUser(workflowTask.getAssigneeUserId()); if (approvatore != null) { @@ -764,42 +564,28 @@ public class GestioneAttivitaPortlet extends MVCPortlet { if (workflowTask.getAssigneeUserId() == -1) { provenienzaLabel.append(" [Portos 1]"); } else { - provenienzaLabel.append(" [" + workflowTask.getAssigneeUserId() + "]"); + provenienzaLabel.append(" [").append(workflowTask.getAssigneeUserId()) + .append(StringPool.CLOSE_BRACKET); } } - provenienzaLabel.append(" (" + workflowTask.getName() + ")"); + provenienzaLabel.append(" (").append(workflowTask.getName()).append(StringPool.CLOSE_PARENTHESIS); } else { - provenienzaLabel.append("-"); + provenienzaLabel.append(StringPool.DASH); } - sb.append(CSVUtil.encode(provenienzaLabel.toString())); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(sdf.format(controlloPratica.getCreateDate()))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(provincia.getProvincia() + " - " + comune.getDenominazione())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(provenienzaLabel.toString())).append(StringPool.SEMICOLON) + .append(CSVUtil.encode(sdf.format(controlloPratica.getCreateDate()))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(provincia.getProvincia() + " - " + comune.getDenominazione())) + .append(StringPool.SEMICOLON); Date data = controlloPratica.getCreateDate(); Date now = new Date(); - long diff = now.getTime() - data.getTime(); long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS); - - sb.append(CSVUtil.encode(days)); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); + sb.append(CSVUtil.encode(days)).append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); } - - } catch (PortalException e) { - _log.error(e, e); - } catch (SystemException e) { + } catch (PortalException | SystemException e) { _log.error(e, e); } - return sb.toString(); - } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java index 79e87587..8afbc646 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java @@ -1,11 +1,5 @@ package it.tref.liferay.portos.bo.portlet; -import java.io.IOException; -import java.text.Format; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; - import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; @@ -16,6 +10,13 @@ import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.util.Constants; import it.tref.liferay.portos.bo.util.GestioneFirmeUtil; + +import java.io.IOException; +import java.text.Format; +import java.util.Iterator; +import java.util.List; +import java.util.Locale; + import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.PortletException; @@ -51,13 +52,10 @@ import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.util.PortalUtil; import com.liferay.util.bridges.mvc.MVCPortlet; -/** - * Portlet implementation class AvvisiGenioCivilePortlet - */ public class GestioneFirmePortlet extends MVCPortlet { - public void assignaFirma(ActionRequest actionRequest, ActionResponse actionResponse) - throws PortalException, SystemException { + public void assignaFirma(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); @@ -72,8 +70,8 @@ public class GestioneFirmePortlet extends MVCPortlet { } } - public void rilasciaFirma(ActionRequest actionRequest, ActionResponse actionResponse) - throws PortalException, SystemException { + public void rilasciaFirma(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); @@ -85,26 +83,19 @@ public class GestioneFirmePortlet extends MVCPortlet { // ADT BUG-ID=16 Sezione Pratiche Assegnate / Export CSV delle firme @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) - throws IOException, PortletException { + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { String resourceId = GetterUtil.getString(resourceRequest.getResourceID()); - if (resourceId.equals("exportCSV")) { - ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); - long companyId = themeDisplay.getCompanyId(); Locale locale = themeDisplay.getLocale(); User user = themeDisplay.getUser(); - String tabs1 = ParamUtil.getString(resourceRequest, "tabs1"); - try { - String csv = null; String fileName = null; - if ("Tab_AvvisiDaFirmare".equals(tabs1)) { fileName = "firmati"; csv = exportToCSVAvvisiDaFirmare(companyId, user, locale); @@ -115,19 +106,14 @@ public class GestioneFirmePortlet extends MVCPortlet { fileName = "da_firmare"; csv = exportToCSVAvvisiFirme(companyId, user.getScreenName(), locale); } - HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - ServletResponseUtil.sendFile(request, response, "export_firme_" + fileName + ".csv", csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8); - } catch (Exception e) { throw new IOException(e); } - } - super.serveResource(resourceRequest, resourceResponse); } @@ -136,28 +122,22 @@ public class GestioneFirmePortlet extends MVCPortlet { Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); StringBuilder sb = new StringBuilder(); - List lista = AvvisoLocalServiceUtil.getAvvisiFirmatiByCF(companyId, cf, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); - + sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); for (Iterator iterator = lista.iterator(); iterator.hasNext();) { - Avviso avviso = (Avviso) iterator.next(); - + Avviso avviso = iterator.next(); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); IntPratica intPratica = null; if (Validator.isNotNull(dettPratica)) { @@ -165,32 +145,23 @@ public class GestioneFirmePortlet extends MVCPortlet { } else { intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); } - sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() - : StringPool.BLANK)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(avviso.getDescLong())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())).append(StringPool.SEMICOLON); + if (Validator.isNotNull(dettPratica)) { + sb.append(CSVUtil.encode(dettPratica.getProtocollo())); + } + sb.append(StringPool.SEMICOLON).append(CSVUtil.encode(avviso.getDescLong())).append(StringPool.SEMICOLON); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()) .getGroupId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); - sb.append(CSVUtil.encode(genio)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - avviso.translateTipoDocumento()))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); + sb.append(CSVUtil.encode(genio)) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + avviso.translateTipoDocumento(intPratica.getTipoProcedura())))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); } - return sb.toString(); } @@ -199,40 +170,32 @@ public class GestioneFirmePortlet extends MVCPortlet { Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); StringBuilder sb = new StringBuilder(); - long[] groupIds = new long[0]; - List organizations = OrganizationLocalServiceUtil - .getUserOrganizations(user.getUserId()); + List organizations = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); for (Organization organization : organizations) { if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), organization.getGroupId(), Constants.ROLE_NAME_FIRMA, true)) { groupIds = ArrayUtil.append(groupIds, organization.getGroupId()); } } - List lista = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByNotCF(companyId, groupIds, user.getScreenName(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.firma"))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); - + sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.firma"))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); for (Iterator iterator = lista.iterator(); iterator.hasNext();) { - Avviso avviso = (Avviso) iterator.next(); - + Avviso avviso = iterator.next(); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); IntPratica intPratica = null; if (Validator.isNotNull(dettPratica)) { @@ -240,37 +203,27 @@ public class GestioneFirmePortlet extends MVCPortlet { } else { intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); } - sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() - : StringPool.BLANK)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(avviso.getDescLong())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())).append(StringPool.SEMICOLON); + if (Validator.isNotNull(dettPratica)) { + sb.append(CSVUtil.encode(dettPratica.getProtocollo())); + } + sb.append(StringPool.SEMICOLON).append(CSVUtil.encode(avviso.getDescLong())).append(StringPool.SEMICOLON); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()) .getGroupId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); - sb.append(CSVUtil.encode(genio)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - avviso.translateTipoDocumento()))); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(genio)) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + avviso.translateTipoDocumento(intPratica.getTipoProcedura())))) + .append(StringPool.SEMICOLON); String cf = avviso.getUserCodiceFiscalePrimaFirma(); User userFirma = UserLocalServiceUtil.fetchUserByScreenName(companyId, cf); - sb.append(CSVUtil.encode(Validator.isNotNull(userFirma) ? userFirma.getFullName() : cf)); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); + sb.append(CSVUtil.encode(Validator.isNotNull(userFirma) ? userFirma.getFullName() : cf)) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); } - return sb.toString(); } @@ -279,33 +232,25 @@ public class GestioneFirmePortlet extends MVCPortlet { Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); StringBuilder sb = new StringBuilder(); - List listaLeTueFirme = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByCF(companyId, user.getScreenName(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - sb.append("LE TUE FIRME"); - sb.append(StringPool.NEW_LINE); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.firma"))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); - + sb.append("LE TUE FIRME").append(StringPool.NEW_LINE) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.firma"))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); for (Iterator iterator = listaLeTueFirme.iterator(); iterator.hasNext();) { - Avviso avviso = (Avviso) iterator.next(); - + Avviso avviso = iterator.next(); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); IntPratica intPratica = null; if (Validator.isNotNull(dettPratica)) { @@ -313,73 +258,53 @@ public class GestioneFirmePortlet extends MVCPortlet { } else { intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); } - sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() - : StringPool.BLANK)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(avviso.getDescLong())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())).append(StringPool.SEMICOLON); + if (Validator.isNotNull(dettPratica)) { + sb.append(CSVUtil.encode(dettPratica.getProtocollo())); + } + sb.append(StringPool.SEMICOLON).append(CSVUtil.encode(avviso.getDescLong())).append(StringPool.SEMICOLON); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()) .getGroupId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); - sb.append(CSVUtil.encode(genio)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - avviso.translateTipoDocumento()))); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(genio)) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + avviso.translateTipoDocumento(intPratica.getTipoProcedura())))) + .append(StringPool.SEMICOLON); String cf = avviso.getUserCodiceFiscalePrimaFirma(); User userFirma = UserLocalServiceUtil.fetchUserByScreenName(companyId, cf); - sb.append(CSVUtil.encode(Validator.isNotNull(userFirma) ? userFirma.getFullName() : cf)); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); + sb.append(CSVUtil.encode(Validator.isNotNull(userFirma) ? userFirma.getFullName() : cf)) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); } - - sb.append(StringPool.NEW_LINE); - sb.append(StringPool.NEW_LINE); - + sb.append(StringPool.NEW_LINE).append(StringPool.NEW_LINE); long[] groupIds = new long[0]; - List organizations = OrganizationLocalServiceUtil - .getUserOrganizations(user.getUserId()); + List organizations = OrganizationLocalServiceUtil.getUserOrganizations(user.getUserId()); for (Organization organization : organizations) { if (UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), organization.getGroupId(), Constants.ROLE_NAME_FIRMA, true)) { groupIds = ArrayUtil.append(groupIds, organization.getGroupId()); } } - List listaFirmeAssegnateAlRuolo = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirma( - companyId, groupIds, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - sb.append("FIRME ASSEGNATE AL RUOLO"); - sb.append(StringPool.NEW_LINE); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); - + List listaFirmeAssegnateAlRuolo = AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirma(companyId, + groupIds, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + sb.append("FIRME ASSEGNATE AL RUOLO").append(StringPool.NEW_LINE) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.progetto"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.protocollo"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.descrizione"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.dataAvviso"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.avviso.tipoDocumento"))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); for (Iterator iterator = listaFirmeAssegnateAlRuolo.iterator(); iterator.hasNext();) { - Avviso avviso = (Avviso) iterator.next(); - + Avviso avviso = iterator.next(); DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); IntPratica intPratica = null; if (Validator.isNotNull(dettPratica)) { @@ -387,30 +312,22 @@ public class GestioneFirmePortlet extends MVCPortlet { } else { intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); } - sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(Validator.isNotNull(dettPratica) ? dettPratica.getProtocollo() - : StringPool.BLANK)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(avviso.getDescLong())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())).append(StringPool.SEMICOLON); + if (Validator.isNotNull(dettPratica)) { + sb.append(CSVUtil.encode(dettPratica.getProtocollo())); + } + sb.append(StringPool.SEMICOLON).append(CSVUtil.encode(avviso.getDescLong())).append(StringPool.SEMICOLON); long territorioGroupId = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()) .getGroupId(); long organizationId = GroupLocalServiceUtil.getGroup(territorioGroupId).getOrganizationId(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); - sb.append(CSVUtil.encode(genio)); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - avviso.translateTipoDocumento()))); - sb.append(StringPool.SEMICOLON); - - sb.append(StringPool.NEW_LINE); + sb.append(CSVUtil.encode(genio)) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(dateFormat.format(avviso.getDtAvviso()))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + avviso.translateTipoDocumento(intPratica.getTipoProcedura())))) + .append(StringPool.SEMICOLON).append(StringPool.NEW_LINE); } return sb.toString(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/HomeBOPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/HomeBOPortlet.java index 15f164d3..2c830a64 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/HomeBOPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/HomeBOPortlet.java @@ -24,169 +24,98 @@ import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServiceUtil; import com.liferay.util.bridges.mvc.MVCPortlet; -/** - * Portlet implementation class HomeBOPortlet - */ public class HomeBOPortlet extends MVCPortlet { - + private static final Log _log = LogFactoryUtil.getLog(HomeBOPortlet.class); - + @Override - public void render(RenderRequest renderRequest, RenderResponse renderResponse) - throws PortletException, IOException { - + public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException { + ThemeDisplay themeDisplay = (ThemeDisplay) renderRequest.getAttribute(WebKeys.THEME_DISPLAY); - try { - int countPraticheScaduteAutorizzazione = TempisticaLocalServiceUtil.countPraticheScaduteAutorizzazione( themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - - int countPraticheScaduteSorteggiate = TempisticaLocalServiceUtil.countPraticheScaduteSorteggiate( - themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - - int countPraticheScaduteControlloObbligatorio = TempisticaLocalServiceUtil.countPraticheScaduteControlloObbligatorio( - themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - - - int countPraticheInScadenzaAutorizzazioni = TempisticaLocalServiceUtil.countPraticheInScadenzaAutorizzazioni( - themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - - int countPraticheInScadenzaSorteggiate = TempisticaLocalServiceUtil.countPraticheInScadenzaSorteggiate( - themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - - int countPraticheInScadenzaControlloObbligatorio = TempisticaLocalServiceUtil.countPraticheInScadenzaControlloObbligatorio( - themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - - + int countPraticheScaduteControlloObbligatorio = TempisticaLocalServiceUtil + .countPraticheScaduteControlloObbligatorio(themeDisplay.getCompanyId(), + themeDisplay.getScopeGroupId()); + int countPraticheInScadenzaAutorizzazioni = TempisticaLocalServiceUtil + .countPraticheInScadenzaAutorizzazioni(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); + int countPraticheInScadenzaControlloObbligatorio = TempisticaLocalServiceUtil + .countPraticheInScadenzaControlloObbligatorio(themeDisplay.getCompanyId(), + themeDisplay.getScopeGroupId()); renderRequest.setAttribute("countPraticheScaduteAutorizzazione", countPraticheScaduteAutorizzazione); - renderRequest.setAttribute("countPraticheScaduteSorteggiate", countPraticheScaduteSorteggiate); - renderRequest.setAttribute("countPraticheScaduteControlloObbligatorio", countPraticheScaduteControlloObbligatorio); - + renderRequest.setAttribute("countPraticheScaduteControlloObbligatorio", + countPraticheScaduteControlloObbligatorio); renderRequest.setAttribute("countPraticheInScadenzaAutorizzazioni", countPraticheInScadenzaAutorizzazioni); - renderRequest.setAttribute("countPraticheInScadenzaSorteggiate", countPraticheInScadenzaSorteggiate); - renderRequest.setAttribute("countPraticheInScadenzaControlloObbligatorio", countPraticheInScadenzaControlloObbligatorio); - - - ClassLoader classLoader = - (ClassLoader) PortletBeanLocatorUtil.locate(com.liferay.portal.workflow.kaleo.service.ClpSerializer.getServletContextName(), "portletClassLoader"); - - + renderRequest.setAttribute("countPraticheInScadenzaControlloObbligatorio", + countPraticheInScadenzaControlloObbligatorio); + ClassLoader classLoader = (ClassLoader) PortletBeanLocatorUtil.locate( + com.liferay.portal.workflow.kaleo.service.ClpSerializer.getServletContextName(), + "portletClassLoader"); List praticheAttiveAutorizzazioni = TempisticaLocalServiceUtil.praticheAttiveAutorizzazioni( themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - int countAutorizzazioniDaAssegnare = 0; int countAutorizzazioniOrdinarie = 0; - - for(Long intPraticaId : praticheAttiveAutorizzazioni){ - + for (Long intPraticaId : praticheAttiveAutorizzazioni) { DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - + @SuppressWarnings("unchecked") List lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query); - if(lista != null && !lista.isEmpty()){ - + if (lista != null && !lista.isEmpty()) { ControlloPratica controlloPratica = lista.get(0); - if(controlloPratica != null){ - - DynamicQuery queryKaleo = DynamicQueryFactoryUtil.forClass(KaleoTaskInstanceToken.class,classLoader); + if (controlloPratica != null) { + DynamicQuery queryKaleo = DynamicQueryFactoryUtil.forClass(KaleoTaskInstanceToken.class, + classLoader); queryKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPratica.getControlloPraticaId())); queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione")); queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false)); - - List listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil.dynamicQuery(queryKaleo); - if(listaKaleo != null && !listaKaleo.isEmpty()){ - countAutorizzazioniDaAssegnare ++; + @SuppressWarnings("unchecked") + List listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil + .dynamicQuery(queryKaleo); + if (listaKaleo != null && !listaKaleo.isEmpty()) { + countAutorizzazioniDaAssegnare++; } else { countAutorizzazioniOrdinarie++; } } } } - renderRequest.setAttribute("countAutorizzazioniDaAssegnare", countAutorizzazioniDaAssegnare); renderRequest.setAttribute("countAutorizzazioniOrdinarie", countAutorizzazioniOrdinarie); - - - List praticheAttiveSorteggiate = TempisticaLocalServiceUtil.praticheAttiveSorteggiate( - themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - - int countSorteggiateDaAssegnare = 0; - int countSorteggiateOrdinarie = 0; - - for(Long intPraticaId : praticheAttiveSorteggiate){ - - DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); - query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - - List lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query); - if(lista != null && !lista.isEmpty()){ - - ControlloPratica controlloPratica = lista.get(0); - if(controlloPratica != null){ - - DynamicQuery queryKaleo = DynamicQueryFactoryUtil.forClass(KaleoTaskInstanceToken.class,classLoader); - queryKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPratica.getControlloPraticaId())); - queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione")); - queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false)); - - List listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil.dynamicQuery(queryKaleo); - if(listaKaleo != null && !listaKaleo.isEmpty()){ - countSorteggiateDaAssegnare ++; - } else { - countSorteggiateOrdinarie++; - } - } - } - } - - renderRequest.setAttribute("countSorteggiateDaAssegnare", countSorteggiateDaAssegnare); - renderRequest.setAttribute("countSorteggiateOrdinarie", countSorteggiateOrdinarie); - - List praticheAttiveControlloObbligatorio = TempisticaLocalServiceUtil.praticheAttiveControlloObbligatorio( - themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); - + List praticheAttiveControlloObbligatorio = TempisticaLocalServiceUtil + .praticheAttiveControlloObbligatorio(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId()); int countControlloObbligatorioDaAssegnare = 0; int countControlloObbligatorioOrdinarie = 0; - - for(Long intPraticaId : praticheAttiveControlloObbligatorio){ - + for (Long intPraticaId : praticheAttiveControlloObbligatorio) { DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - + @SuppressWarnings("unchecked") List lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query); - if(lista != null && !lista.isEmpty()){ - + if (lista != null && !lista.isEmpty()) { ControlloPratica controlloPratica = lista.get(0); - if(controlloPratica != null){ - - DynamicQuery queryKaleo = DynamicQueryFactoryUtil.forClass(KaleoTaskInstanceToken.class,classLoader); + if (controlloPratica != null) { + DynamicQuery queryKaleo = DynamicQueryFactoryUtil.forClass(KaleoTaskInstanceToken.class, + classLoader); queryKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPratica.getControlloPraticaId())); queryKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName())); queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione")); queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false)); - - List listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil.dynamicQuery(queryKaleo); - if(listaKaleo != null && !listaKaleo.isEmpty()){ - countControlloObbligatorioDaAssegnare ++; + @SuppressWarnings("unchecked") + List listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil + .dynamicQuery(queryKaleo); + if (listaKaleo != null && !listaKaleo.isEmpty()) { + countControlloObbligatorioDaAssegnare++; } else { countControlloObbligatorioOrdinarie++; - } } } } - renderRequest.setAttribute("countControlloObbligatorioDaAssegnare", countControlloObbligatorioDaAssegnare); renderRequest.setAttribute("countControlloObbligatorioOrdinarie", countControlloObbligatorioOrdinarie); - - } catch (SystemException e) { - _log.error(e,e); + _log.error(e, e); } - super.render(renderRequest, renderResponse); } - - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java index 8b3f5c78..671f8018 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java @@ -45,15 +45,12 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet { serviceContext); } - public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) - throws SystemException { - + public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { List esito = new ArrayList(); esito.add("

Env:

"); for (Map.Entry entry : System.getenv().entrySet()) { esito.add(entry.getKey() + "=" + entry.getValue()); } - esito.add("

Properties:

"); for (Map.Entry entry : System.getProperties().entrySet()) { esito.add(entry.getKey() + "=" + entry.getValue()); @@ -61,16 +58,14 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet { actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); } - public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) - throws PortalException, SystemException { + public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); if (Validator.isNotNull(intPraticaId)) { IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId()); } - String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto"); if (Validator.isNotNull(numeroProgetto)) { IntPraticaLocalServiceUtil.reIndexFasciolo(numeroProgetto, themeDisplay.getCompanyId()); @@ -78,6 +73,7 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet { } public void reIndexFascicoli(ActionRequest actionRequest, ActionResponse actionResponse) { + ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); List esito = null; esito = SismicaUtil.reIndexFascicoli(themeDisplay.getCompanyId()); @@ -87,6 +83,7 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet { public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, SystemException { + String mode = ParamUtil.getString(actionRequest, "mode"); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); List esito = ManutenzioneDatabase.pulisci(serviceContext, mode); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java index 5751fe34..3c5fa58f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java @@ -20,44 +20,38 @@ import com.liferay.util.bridges.mvc.MVCPortlet; public class PagamentiPendingPortlet extends MVCPortlet { - private static final Log _log = LogFactoryUtil.getLog(PagamentiPendingPortlet.class); - - public void rigeneraPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, - SystemException { - - try { - - ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); - String url = ParamUtil.getString(actionRequest, "redirect"); - - Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId); - if (Validator.isNotNull(pagamento)) { - PagamentoServiceUtil.rigeneraPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(), - pagamento.getMezzo(), url, serviceContext); - } - - } catch (Exception e) { - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - _log.error("Error", e); - throw new SystemException(e); - } - } - - public void annullaPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, - SystemException { - - try { - - ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); - PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext); - - } catch (Exception e) { - PortalUtil.copyRequestParameters(actionRequest, actionResponse); - _log.error("Error", e); - throw new SystemException(e); - } - } - + private static final Log _log = LogFactoryUtil.getLog(PagamentiPendingPortlet.class); + + public void rigeneraPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { + + try { + ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); + long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); + String url = ParamUtil.getString(actionRequest, "redirect"); + Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId); + if (Validator.isNotNull(pagamento)) { + PagamentoServiceUtil.rigeneraPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(), + pagamento.getMezzo(), url, serviceContext); + } + } catch (Exception e) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + _log.error("Error", e); + throw new SystemException(e); + } + } + + public void annullaPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, + SystemException { + + try { + ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); + long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId"); + PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext); + } catch (Exception e) { + PortalUtil.copyRequestParameters(actionRequest, actionResponse); + _log.error("Error", e); + throw new SystemException(e); + } + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/RicercaProtocolloPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/RicercaProtocolloPortlet.java index c9feaaf2..ff90035d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/RicercaProtocolloPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/RicercaProtocolloPortlet.java @@ -1,29 +1,21 @@ package it.tref.liferay.portos.bo.portlet; -import it.tref.liferay.portos.bo.shared.util.ParamUtil; - import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; +import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.util.bridges.mvc.MVCPortlet; -/** - * Portlet implementation class RicercaProtocolloPortlet - */ public class RicercaProtocolloPortlet extends MVCPortlet { - - - public void search(ActionRequest actionRequest, ActionResponse actionResponse){ - + + public void search(ActionRequest actionRequest, ActionResponse actionResponse) { + String dataDa = ParamUtil.getString(actionRequest, "dataDa", StringPool.BLANK); String dataA = ParamUtil.getString(actionRequest, "dataA", StringPool.BLANK); - String numeroProtocollo = ParamUtil.getString(actionRequest, "numeroProtocollo", StringPool.BLANK); - - actionResponse.setRenderParameter("dataDa", dataDa); - actionResponse.setRenderParameter("dataA", dataA); - actionResponse.setRenderParameter("numeroProtocollo", numeroProtocollo); - + String numeroProtocollo = ParamUtil.getString(actionRequest, "numeroProtocollo", StringPool.BLANK); + actionResponse.setRenderParameter("dataDa", dataDa); + actionResponse.setRenderParameter("dataA", dataA); + actionResponse.setRenderParameter("numeroProtocollo", numeroProtocollo); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SorteggioPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SorteggioPortlet.java deleted file mode 100644 index 5902b20a..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/SorteggioPortlet.java +++ /dev/null @@ -1,65 +0,0 @@ -package it.tref.liferay.portos.bo.portlet; - -import java.io.IOException; - -import javax.portlet.PortletException; -import javax.portlet.ResourceRequest; -import javax.portlet.ResourceResponse; - -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; -import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.servlet.HttpHeaders; -import com.liferay.portal.kernel.util.FileUtil; -import com.liferay.portal.kernel.util.ParamUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; -import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; -import com.liferay.util.bridges.mvc.MVCPortlet; - -/** - * Portlet implementation class SorteggioGenioCivilePortlet - */ -public class SorteggioPortlet extends MVCPortlet { - - private final static Log _log = LogFactoryUtil.getLog(SorteggioPortlet.class); - - @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, - PortletException { - - String resourceID = resourceRequest.getResourceID(); - - if ("downloadReport".equals(resourceID)) { - - - long fileEntryId = ParamUtil.getLong(resourceRequest, "fileEntryId"); - - try { - - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); - - String fileName = fileEntry.getTitle() + StringPool.PERIOD + fileEntry.getExtension(); - byte[] data = - FileUtil.getBytes(DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getUserId(), fileEntryId, - fileEntry.getVersion(), false)); - - resourceResponse.setContentType(fileEntry.getMimeType()); - resourceResponse.addProperty(HttpHeaders.CACHE_CONTROL, "max-age=3600, must-revalidate"); - resourceResponse.addProperty(HttpHeaders.CONTENT_DISPOSITION, "filename=\"" + fileName + "\""); - resourceResponse.setContentLength(data.length); - - resourceResponse.getPortletOutputStream().write(data); - resourceResponse.getPortletOutputStream().flush(); - resourceResponse.getPortletOutputStream().close(); - } catch (Exception e) { - _log.error(e, e); - throw new IOException(e); - } - - } else { - super.serveResource(resourceRequest, resourceResponse); - } - } - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java index c48f4047..660286b4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java @@ -54,51 +54,36 @@ import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.util.PortalUtil; import com.liferay.util.bridges.mvc.MVCPortlet; -/** - * Portlet implementation class ScadenzeGenioCivilePortlet - */ public class TempistichePortlet extends MVCPortlet { @Override - public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) - throws IOException, PortletException { + public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, + PortletException { String resourceId = GetterUtil.getString(resourceRequest.getResourceID()); - if (resourceId.equals("exportCSV") || resourceId.equals("exportAllCSV")) { - ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); - long companyId = themeDisplay.getCompanyId(); - long groupId = ParamUtil.getLong(resourceRequest, "groupId", 0l); + long groupId = ParamUtil.getLong(resourceRequest, "groupId", 0L); Locale locale = themeDisplay.getLocale(); - String tipoTempistica = ParamUtil.getString(resourceRequest, "tipoTempistica"); - // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - Integer statoPratica = Validator.isNotNull(resourceRequest.getParameter("statoPratica")) - && !"".equals(resourceRequest.getParameter("statoPratica")) ? ParamUtil.getInteger( - resourceRequest, "statoPratica") : null; - + Integer statoPratica = Validator.isNotNull(resourceRequest.getParameter("statoPratica")) ? ParamUtil + .getInteger(resourceRequest, "statoPratica") : null; // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca String tipoPratica = ParamUtil.getString(resourceRequest, "tipoPratica"); String istruttore = ParamUtil.getString(resourceRequest, "istruttore"); - try { // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - String csv = exportToCSV(companyId, groupId, locale, tipoTempistica, statoPratica, - tipoPratica, istruttore, resourceId.equals("exportAllCSV")); - + String csv = exportToCSV(companyId, groupId, locale, tipoTempistica, statoPratica, tipoPratica, + istruttore, resourceId.equals("exportAllCSV")); HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); - ServletResponseUtil.sendFile(request, response, "export_scadenze_" + tipoTempistica + ".csv", csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8); - } catch (Exception e) { throw new IOException(e); } - } else { super.serveResource(resourceRequest, resourceResponse); } @@ -110,7 +95,6 @@ public class TempistichePortlet extends MVCPortlet { String tipoPratica = ParamUtil.getString(actionRequest, "tipoPratica", StringPool.BLANK); String istruttore = ParamUtil.getString(actionRequest, "istruttore", StringPool.BLANK); String statoPratica = ParamUtil.getString(actionRequest, "statoPratica", StringPool.BLANK); - actionResponse.setRenderParameter("tipoPratica", tipoPratica); actionResponse.setRenderParameter("istruttore", istruttore); actionResponse.setRenderParameter("statoPratica", statoPratica); @@ -118,110 +102,81 @@ public class TempistichePortlet extends MVCPortlet { // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca private String exportToCSV(long companyId, long groupId, Locale locale, String tipoTempistica, - Integer statoPratica, String tipoPratica, String istruttore, boolean isBackCompatibility) - throws Exception { + Integer statoPratica, String tipoPratica, String istruttore, boolean isBackCompatibility) throws Exception { Format dateFormat = FastDateFormatFactoryUtil.getDate(locale); Format dateTimeFormat = FastDateFormatFactoryUtil.getDateTime(locale); - StringBuilder sb = new StringBuilder(); - if (tipoTempistica.equals(TempisticaConstants.TIPO_PRATICA)) { // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca List tempistiche = isBackCompatibility ? TempisticaLocalServiceUtil - .scadenzePraticheForBackwardCompatibility(companyId, groupId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS) : TempisticaLocalServiceUtil.getScadenzePratiche(companyId, - groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, statoPratica, tipoPratica, istruttore); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.tipopratica"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.progetto"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.istruttore"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.datavidimazione"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.datasorteggio"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.start"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.tempoattivita"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.timerfermo"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.scadenza"))); - - sb.append(StringPool.NEW_LINE); - + .scadenzePraticheForBackwardCompatibility(companyId, groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS) + : TempisticaLocalServiceUtil.getScadenzePratiche(companyId, groupId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, statoPratica, tipoPratica, istruttore); + sb.append( + CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.tipopratica"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.progetto"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.istruttore"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.datavidimazione"))) + .append(StringPool.SEMICOLON) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.start"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.tempoattivita"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.timerfermo"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.scadenza"))).append(StringPool.NEW_LINE); List alreadyInserted = new ArrayList(); - for (Object[] tempistica : tempistiche) { - Long intPraticaId = (Long) tempistica[0]; - // Long start = (Long) tempistica[1]; Long stop = (Long) tempistica[2]; - // Long wait = (Long) tempistica[3]; Long calcoloTempo = (Long) tempistica[4]; Integer stato = (Integer) tempistica[5]; - Long dettPraticaId = 0L; - DynamicQuery query = DynamicQueryFactoryUtil.forClass(Tempistica.class); query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - query.add(RestrictionsFactoryUtil.eq("tipo", "P")); + query.add(RestrictionsFactoryUtil.eq("tipo", TempisticaConstants.TIPO_PRATICA)); Order defaultOrderDettPrtatica = OrderFactoryUtil.desc("createDate"); query.addOrder(defaultOrderDettPrtatica); - + @SuppressWarnings("unchecked") List lista = TempisticaLocalServiceUtil.dynamicQuery(query); if (lista != null && !lista.isEmpty() && lista.size() > 1) { intPraticaId = lista.get(0).getIntPraticaId(); dettPraticaId = lista.get(0).getDettPraticaId(); - stop = lista.get(0).getStop(); if (alreadyInserted.contains(intPraticaId)) { continue; } - alreadyInserted.add(intPraticaId); } else { dettPraticaId = lista.get(0).getDettPraticaId(); - alreadyInserted.add(intPraticaId); } - - // DettPratica dettPratica = - // DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica - .getTerritorioId()); + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - - sb.append(CSVUtil.encode(provincia.getProvincia())); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "tipo-pratica-" - + intPratica.getTipoPratica()))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(provincia.getProvincia())) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "tipo-pratica-" + + intPratica.getTipoPratica()))).append(StringPool.SEMICOLON) + .append(CSVUtil.encode(intPratica.getNumeroProgetto())).append(StringPool.SEMICOLON); long statusByUserId = intPratica.getStatusByUserId(); - if (Validator.isNotNull(statusByUserId) - && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { + if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { try { User istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId); sb.append(CSVUtil.encode(istruttoreUser.getFullName() + StringPool.SPACE @@ -230,16 +185,9 @@ public class TempistichePortlet extends MVCPortlet { } catch (PortalException e) { } } - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(dateTimeFormat.format(intPratica.getDtPratica()))); - sb.append(StringPool.SEMICOLON); - - if (Validator.isNotNull(intPratica.getDtSorteggio())) { - sb.append(CSVUtil.encode(dateFormat.format(intPratica.getDtSorteggio()))); - } - sb.append(StringPool.SEMICOLON); - + sb.append(StringPool.SEMICOLON) + .append(CSVUtil.encode(dateTimeFormat.format(intPratica.getDtPratica()))) + .append(StringPool.SEMICOLON).append(StringPool.SEMICOLON); DynamicQuery queryAvv = DynamicQueryFactoryUtil.forClass(Avviso.class); queryAvv.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); queryAvv.add(RestrictionsFactoryUtil.eq("tipoDocumento", "SP")); @@ -247,36 +195,28 @@ public class TempistichePortlet extends MVCPortlet { if (dettPraticaId != 0L) { queryAvv.add(RestrictionsFactoryUtil.eq("classPk", dettPraticaId)); } - Order defaultOrder = OrderFactoryUtil.desc("createDate"); queryAvv.addOrder(defaultOrder); - + @SuppressWarnings("unchecked") List listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv); if (listaAvv != null && !listaAvv.isEmpty() && listaAvv.get(0).getDtInvio() != null) { sb.append(CSVUtil.encode(dateFormat.format(listaAvv.get(0).getDtInvio()))); - } else { - sb.append(""); } - - // sb.append(CSVUtil.encode(dateFormat.format(new - // Date(start)))); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo)))); - sb.append(StringPool.SEMICOLON); - + sb.append(StringPool.SEMICOLON) + .append(CSVUtil.encode(String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo)))) + .append(StringPool.SEMICOLON); if (Validator.isNotNull(stop)) { - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.scadenza.si"))); - sb.append(StringPool.SPACE); - sb.append(CSVUtil.encode(LanguageUtil.format(getPortletConfig(), locale, - "label.scadenzegeniocivile.timer.dal", dateFormat.format(new Date(stop))))); + sb.append( + CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.scadenza.si"))) + .append(StringPool.SPACE) + .append(CSVUtil.encode(LanguageUtil.format(getPortletConfig(), locale, + "label.scadenzegeniocivile.timer.dal", dateFormat.format(new Date(stop))))); } else { sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.no"))); } sb.append(StringPool.SEMICOLON); - if (Validator.isNotNull(stop)) { sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.inattesa")); @@ -284,71 +224,50 @@ public class TempistichePortlet extends MVCPortlet { sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.inscadenza")); } else if (stato.intValue() == TempisticaConstants.STATO_SCADUTA) { - sb.append(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.scadenza.scaduto")); + sb.append(LanguageUtil + .get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.scaduto")); } else if (stato.intValue() == TempisticaConstants.STATO_ATTIVA) { - sb.append(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.scadenza.attivo")); + sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.attivo")); } - sb.append(StringPool.NEW_LINE); } - } else if (tipoTempistica.equals(TempisticaConstants.TIPO_INTEGRAZIONE)) { - List tempistiche = TempisticaLocalServiceUtil.getScadenzeIntegrazioni(companyId, - groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, statoPratica); - - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.provincia"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.tipopratica"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.progetto"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.istruttore"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.start"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.tempoattivita"))); - sb.append(StringPool.SEMICOLON); - sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.scadenza"))); - - sb.append(StringPool.NEW_LINE); - + List tempistiche = TempisticaLocalServiceUtil.getScadenzeIntegrazioni(companyId, groupId, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, statoPratica); + sb.append( + CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.provincia"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.tipopratica"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.progetto"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.istruttore"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.start"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.tempoattivita"))) + .append(StringPool.SEMICOLON) + .append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, + "label.scadenzegeniocivile.scadenza"))).append(StringPool.NEW_LINE); for (Object[] tempistica : tempistiche) { - Long intPraticaId = (Long) tempistica[0]; - // Long start = (Long) tempistica[1]; Long calcoloTempo = (Long) tempistica[2]; Integer stato = (Integer) tempistica[3]; Long dettPraticaId = (Long) tempistica[4]; - - // DettPratica dettPratica = - // DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica - .getTerritorioId()); + Territorio territorio = TerritorioLocalServiceUtil.fetchTerritorio(intPratica.getTerritorioId()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - - sb.append(CSVUtil.encode(provincia.getProvincia())); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(intPratica.getTipoPratica())); - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(intPratica.getNumeroProgetto())); - sb.append(StringPool.SEMICOLON); - + sb.append(CSVUtil.encode(provincia.getProvincia())).append(StringPool.SEMICOLON) + .append(CSVUtil.encode(intPratica.getTipoPratica())).append(StringPool.SEMICOLON) + .append(CSVUtil.encode(intPratica.getNumeroProgetto())).append(StringPool.SEMICOLON); long statusByUserId = intPratica.getStatusByUserId(); - if (Validator.isNotNull(statusByUserId) - && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { + if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { try { User istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId); sb.append(CSVUtil.encode(istruttoreUser.getFullName() + StringPool.SPACE @@ -358,32 +277,25 @@ public class TempistichePortlet extends MVCPortlet { } } sb.append(StringPool.SEMICOLON); - List avvisi = AvvisoLocalServiceUtil.findByClassPk_tipoDocumento(dettPraticaId, StatoPraticaConstants.SOTTOPOSTA_A_PARERE); if (avvisi.size() > 0 && avvisi.get(0).getDtAvviso() != null) { sb.append(CSVUtil.encode(dateFormat.format(avvisi.get(0).getDtInvio()))); } else { - sb.append("-"); - + sb.append(StringPool.DASH); } - sb.append(StringPool.SEMICOLON); - - sb.append(CSVUtil.encode(String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo)))); - sb.append(StringPool.SEMICOLON); - + sb.append(StringPool.SEMICOLON) + .append(CSVUtil.encode(String.valueOf(TimeUnit.MILLISECONDS.toDays(calcoloTempo)))) + .append(StringPool.SEMICOLON); if (stato.intValue() == TempisticaConstants.STATO_SCADUTA) { - sb.append(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.scadenza.scaduto")); + sb.append(LanguageUtil + .get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.scaduto")); } else if (stato.intValue() == TempisticaConstants.STATO_ATTIVA) { - sb.append(LanguageUtil.get(getPortletConfig(), locale, - "label.scadenzegeniocivile.scadenza.attivo")); + sb.append(LanguageUtil.get(getPortletConfig(), locale, "label.scadenzegeniocivile.scadenza.attivo")); } - sb.append(StringPool.NEW_LINE); } } - return sb.toString(); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoAllegatoBean.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoAllegatoBean.java index a6f36f44..dc9367d4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoAllegatoBean.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoAllegatoBean.java @@ -4,88 +4,83 @@ import java.io.Serializable; public class ReportAvvisoAllegatoBean implements Serializable { - private static final long serialVersionUID = 8560064517183743967L; + private static final long serialVersionUID = 8560064517183743967L; - private String codiceAllegato; + private String codiceAllegato; + private String titoloAllegato; + private String sha256Allegato; + private String codiceTipoIntegrazione; + private String tipoIntegrazione; + private long numeroIntegrazione; + private boolean aggiornato; - private String titoloAllegato; + public String getCodiceAllegato() { - private String sha256Allegato; + return codiceAllegato; + } - private String codiceTipoIntegrazione; - private String tipoIntegrazione; - private long numeroIntegrazione; - private boolean aggiornato; + public void setCodiceAllegato(String codiceAllegato) { - public String getCodiceAllegato() { + this.codiceAllegato = codiceAllegato; + } - return codiceAllegato; - } + public String getTitoloAllegato() { - public void setCodiceAllegato(String codiceAllegato) { + return titoloAllegato; + } - this.codiceAllegato = codiceAllegato; - } + public void setTitoloAllegato(String titoloAllegato) { - public String getTitoloAllegato() { + this.titoloAllegato = titoloAllegato; + } - return titoloAllegato; - } + public String getSha256Allegato() { - public void setTitoloAllegato(String titoloAllegato) { + return sha256Allegato; + } - this.titoloAllegato = titoloAllegato; - } + public void setSha256Allegato(String sha256Allegato) { + this.sha256Allegato = sha256Allegato; + } - public String getSha256Allegato() { + public String getCodiceTipoIntegrazione() { - return sha256Allegato; - } + return codiceTipoIntegrazione; + } - public void setSha256Allegato(String sha256Allegato) { + public void setCodiceTipoIntegrazione(String codiceTipoIntegrazione) { - this.sha256Allegato = sha256Allegato; - } + this.codiceTipoIntegrazione = codiceTipoIntegrazione; + } - public String getCodiceTipoIntegrazione() { + public String getTipoIntegrazione() { - return codiceTipoIntegrazione; - } + return tipoIntegrazione; + } - public void setCodiceTipoIntegrazione(String codiceTipoIntegrazione) { + public void setTipoIntegrazione(String tipoIntegrazione) { - this.codiceTipoIntegrazione = codiceTipoIntegrazione; - } + this.tipoIntegrazione = tipoIntegrazione; + } - public String getTipoIntegrazione() { + public long getNumeroIntegrazione() { - return tipoIntegrazione; - } + return numeroIntegrazione; + } - public void setTipoIntegrazione(String tipoIntegrazione) { + public void setNumeroIntegrazione(long numeroIntegrazione) { - this.tipoIntegrazione = tipoIntegrazione; - } + this.numeroIntegrazione = numeroIntegrazione; + } - public long getNumeroIntegrazione() { + public boolean isAggiornato() { - return numeroIntegrazione; - } + return aggiornato; + } - public void setNumeroIntegrazione(long numeroIntegrazione) { - - this.numeroIntegrazione = numeroIntegrazione; - } - - public boolean isAggiornato() { - - return aggiornato; - } - - public void setAggiornato(boolean aggiornato) { - - this.aggiornato = aggiornato; - } + public void setAggiornato(boolean aggiornato) { + this.aggiornato = aggiornato; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java index ddcd95cf..3366bc9a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java @@ -4,9 +4,6 @@ import java.io.Serializable; import java.util.Date; import java.util.List; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; - public class ReportAvvisoBean implements Serializable { private static final long serialVersionUID = -1229588050032694212L; @@ -37,24 +34,17 @@ public class ReportAvvisoBean implements Serializable { private long numeroIntegrazione; private String codiceTipoIntegrazione; private String tipoIntegrazione; - private long varianteNumero; // numero progressivo - // variante in - // intPratica + private long varianteNumero; // numero progressivo variante in intPratica private Date dataAvviso; - private Date dataSorteggio; - private String meseSorteggio; private List allegati; private List soggetti; private String tipoPratica; private String tipoProcedura; private String po; private String presidio; - private String numeroVariante; // numero totali - // varianti - + private String numeroVariante; // numero totali varianti private String numeroProtocolloIntegrazione; private String elencoNumeriProtocolloIntegrazione; - private Boolean parziale; private String parzialeNumero; private String tipoAutorizzazione; @@ -111,91 +101,113 @@ public class ReportAvvisoBean implements Serializable { @Deprecated public String getAlDirettoreLavori() { + return direttoreLavori; } public String getDirettoreLavori() { + return direttoreLavori; } - + public void setDirettoreLavori(String direttoreLavori) { + this.direttoreLavori = direttoreLavori; } @Deprecated public String getAlCommittente() { + return committente; } - + public String getCommittente() { + return committente; } public void setCommittente(String committente) { + this.committente = committente; } public String getCodiceUnivoco() { + return codiceUnivoco; } public void setCodiceUnivoco(String codiceUnivoco) { + this.codiceUnivoco = codiceUnivoco; } public String getNumeroProtocollo() { + return numeroProtocollo; } public void setNumeroProtocollo(String numeroProtocollo) { + this.numeroProtocollo = numeroProtocollo; } public Date getDataProtocolloValido() { + return dataProtocolloValido; } public void setDataProtocolloValido(Date dataProtocolloValido) { + this.dataProtocolloValido = dataProtocolloValido; } public Date getDataProtocolloAnnullato() { + return dataProtocolloAnnullato; } public void setDataProtocolloAnnullato(Date dataProtocolloAnnullato) { + this.dataProtocolloAnnullato = dataProtocolloAnnullato; } public String getNumeroProtocolloAnnullato() { + return numeroProtocolloAnnullato; } public void setNumeroProtocolloAnnullato(String numeroProtocolloAnnullato) { + this.numeroProtocolloAnnullato = numeroProtocolloAnnullato; } public String getNumeroProtocolloValido() { + return numeroProtocolloValido; } public void setNumeroProtocolloValido(String numeroProtocolloValido) { + this.numeroProtocolloValido = numeroProtocolloValido; } - + public String getTipoAnnullato() { + return tipoAnnullato; } - + public void setTipoAnnullato(String tipoAnnullato) { + this.tipoAnnullato = tipoAnnullato; } - + public String getTipoValido() { + return tipoValido; } - + public void setTipoValido(String tipoValido) { + this.tipoValido = tipoValido; } @@ -229,16 +241,6 @@ public class ReportAvvisoBean implements Serializable { this.tecnico = tecnico; } - public Date getDataSorteggio() { - - return dataSorteggio; - } - - public void setDataSorteggio(Date dataSorteggio) { - - this.dataSorteggio = dataSorteggio; - } - public Date getDataAvviso() { return dataAvviso; @@ -249,16 +251,6 @@ public class ReportAvvisoBean implements Serializable { this.dataAvviso = dataAvviso; } - public String getMeseSorteggio() { - - return meseSorteggio; - } - - public void setMeseSorteggio(String meseSorteggio) { - - this.meseSorteggio = meseSorteggio; - } - public List getAllegati() { return allegati; @@ -270,10 +262,12 @@ public class ReportAvvisoBean implements Serializable { } public List getSoggetti() { + return soggetti; } public void setSoggetti(List soggetti) { + this.soggetti = soggetti; } @@ -348,10 +342,12 @@ public class ReportAvvisoBean implements Serializable { } public String getDirigente() { + return dirigente; } public void setDirigente(String dirigente) { + this.dirigente = dirigente; } @@ -375,7 +371,6 @@ public class ReportAvvisoBean implements Serializable { this.po = po; } - public String getNumeroProtocolloIntegrazione() { return numeroProtocolloIntegrazione; @@ -398,27 +393,33 @@ public class ReportAvvisoBean implements Serializable { @Deprecated public String getAlCollaudatore() { + return collaudatore; } public String getCollaudatore() { + return collaudatore; } public void setCollaudatore(String collaudatore) { + this.collaudatore = collaudatore; } @Deprecated public String getAlTitolareDigitale() { + return titolareDigitale; } public String getTitolareDigitale() { + return titolareDigitale; } - + public void setTitolareDigitale(String titolareDigitale) { + this.titolareDigitale = titolareDigitale; } @@ -461,7 +462,7 @@ public class ReportAvvisoBean implements Serializable { this.parzialeNumero = parzialeNumero; } - + public String getTipoAutorizzazione() { return tipoAutorizzazione; @@ -471,5 +472,4 @@ public class ReportAvvisoBean implements Serializable { this.tipoAutorizzazione = tipoAutorizzazione; } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoSoggettoBean.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoSoggettoBean.java index 8994ec8d..3d21847f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoSoggettoBean.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoSoggettoBean.java @@ -4,34 +4,39 @@ import java.io.Serializable; public class ReportAvvisoSoggettoBean implements Serializable { - private static final long serialVersionUID = -7450078764022507488L; + private static final long serialVersionUID = -7450078764022507488L; - private String denominazione; - private String tipoSoggetto; - private String tipoOperazione; + private String denominazione; + private String tipoSoggetto; + private String tipoOperazione; - public String getDenominazione() { - return denominazione; - } + public String getDenominazione() { - public void setDenominazione(String denominazione) { - this.denominazione = denominazione; - } + return denominazione; + } - public String getTipoSoggetto() { - return tipoSoggetto; - } + public void setDenominazione(String denominazione) { - public void setTipoSoggetto(String tipoSoggetto) { - this.tipoSoggetto = tipoSoggetto; - } + this.denominazione = denominazione; + } - public String getTipoOperazione() { - return tipoOperazione; - } + public String getTipoSoggetto() { - public void setTipoOperazione(String tipoOperazione) { - this.tipoOperazione = tipoOperazione; - } + return tipoSoggetto; + } + public void setTipoSoggetto(String tipoSoggetto) { + + this.tipoSoggetto = tipoSoggetto; + } + + public String getTipoOperazione() { + + return tipoOperazione; + } + + public void setTipoOperazione(String tipoOperazione) { + + this.tipoOperazione = tipoOperazione; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportSorteggioBean.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportSorteggioBean.java deleted file mode 100644 index ea6be59e..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportSorteggioBean.java +++ /dev/null @@ -1,108 +0,0 @@ -package it.tref.liferay.portos.bo.report.builder.bean; - -import java.io.Serializable; - -public class ReportSorteggioBean implements Serializable { - - private static final long serialVersionUID = 3390271948683989472L; - - private String numeroEstrazione; - private String fase; - private String fascia; - private String pratica; - private String citta; - private String committente; - private String tecnico; - private String provincia; - - //Task 32561 - private String zona; - - public String getProvincia() { - - return provincia; - } - - public void setProvincia(String provincia) { - - this.provincia = provincia; - } - - public String getNumeroEstrazione() { - - return numeroEstrazione; - } - - public void setNumeroEstrazione(String numeroEstrazione) { - - this.numeroEstrazione = numeroEstrazione; - } - - public String getFase() { - - return fase; - } - - public void setFase(String fase) { - - this.fase = fase; - } - - public String getFascia() { - - return fascia; - } - - public void setFascia(String fascia) { - - this.fascia = fascia; - } - - public String getPratica() { - - return pratica; - } - - public void setPratica(String pratica) { - - this.pratica = pratica; - } - - public String getCitta() { - - return citta; - } - - public void setCitta(String citta) { - - this.citta = citta; - } - - public String getCommittente() { - - return committente; - } - - public void setCommittente(String committente) { - - this.committente = committente; - } - - public String getTecnico() { - - return tecnico; - } - - public void setTecnico(String tecnico) { - - this.tecnico = tecnico; - } - - public String getZona() { - return zona; - } - - public void setZona(String zona) { - this.zona = zona; - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java index ff20ecb3..40644f22 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java @@ -13,32 +13,24 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; public class ReportAvvisoAllegatoBeanBuilder { private ReportAvvisoAllegatoBeanBuilder() { - } public static ReportAvvisoAllegatoBean build(DocPratica docPratica) throws SystemException { ReportAvvisoAllegatoBean bean = new ReportAvvisoAllegatoBean(); - try { FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(docPratica.getDlFileEntryId()); - bean.setTitoloAllegato(fileEntry.getDescription()); - - // ADT: BUG FE ID=31 if (docPratica.getTipologia().equalsIgnoreCase( DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO) && (Validator.isNull(fileEntry.getDescription()))) { bean.setTitoloAllegato(fileEntry.getTitle()); } - // //// - bean.setCodiceAllegato(docPratica.getTipologia()); bean.setSha256Allegato(docPratica.getSha256()); } catch (PortalException e) { throw new SystemException(e); } - return bean; } @@ -50,8 +42,6 @@ public class ReportAvvisoAllegatoBeanBuilder { bean.setTipoIntegrazione(tipoIntegrazione); bean.setNumeroIntegrazione(numeroIntegrazione); bean.setAggiornato(docPratica.isAggiornato()); - return bean; } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java index 8c130cb9..ca1b4c7a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java @@ -9,7 +9,6 @@ import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoAllegatoBean; import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoBean; @@ -22,7 +21,6 @@ import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; @@ -37,15 +35,13 @@ import java.io.Serializable; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; -import java.util.Calendar; import java.util.List; -import java.util.Locale; import java.util.Map; +import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.language.LanguageUtil; -import com.liferay.portal.kernel.util.CalendarUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; @@ -61,89 +57,60 @@ public class ReportAvvisoBeanBuilder { private ReportAvvisoBeanBuilder() { } - public static ReportAvvisoBean build(Avviso avviso, Map parameters) - throws SystemException, PortalException { + public static ReportAvvisoBean build(Avviso avviso, Map parameters) throws SystemException, + PortalException { long intPraticaId = avviso.getIntPraticaId(); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); ReportAvvisoBean bean = new ReportAvvisoBean(); DettPratica dettPratica = null; - - long numeroIntegrazione = 0l; + long numeroIntegrazione = 0L; String codiceTipoIntegrazione = StringPool.BLANK; String tipoIntegrazione = StringPool.BLANK; - // DATI PER NUMERO VARIANTI - int numeroVarianti = DettPraticaLocalServiceUtil.countByIntPraticaId_TipoIntegrazione_Completa( - intPraticaId, TipoIntegrazioneUtil.VARIANTE, true); + int numeroVarianti = DettPraticaLocalServiceUtil.countByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, + TipoIntegrazioneUtil.VARIANTE, true); if (numeroVarianti > 0) { bean.setNumeroVariante(String.valueOf(numeroVarianti)); } - if (DettPratica.class.getName().equals(avviso.getClassName())) { dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso.getClassPk()); bean.setNumeroProtocollo(dettPratica.getProtocollo()); bean.setVarianteNumero(dettPratica.getVarianteNumero()); - // DATI PER INTEGRAZIONE if (dettPratica.getIntegrazione() > 0) { numeroIntegrazione = dettPratica.getIntegrazione(); codiceTipoIntegrazione = dettPratica.getTipoIntegrazione(); - tipoIntegrazione = LanguageUtil.get(LocaleUtil.getSiteDefault(), "label-integrazione-" - + dettPratica.getTipoIntegrazione()); + tipoIntegrazione = LanguageUtil.get(LocaleUtil.getSiteDefault(), + "label-integrazione-" + dettPratica.getTipoIntegrazione()); bean.setDataIntegrazione(dettPratica.getDataEffettuazione()); bean.setNumeroIntegrazione(numeroIntegrazione); bean.setCodiceTipoIntegrazione(codiceTipoIntegrazione); bean.setTipoIntegrazione(tipoIntegrazione); } - // DATI PER VARIAZIONE SOGGETTO List soggettiBean = new ArrayList(); if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())) { - - // ADT BUG FE ID = 6 - List soggetti = SoggettoLocalServiceUtil.findByIntPratica(dettPratica - .getIntPraticaId()); + List soggetti = SoggettoLocalServiceUtil.findByIntPratica(dettPratica.getIntPraticaId()); for (Soggetto soggetto : soggetti) { ReportAvvisoSoggettoBean beanSoggetto = ReportAvvisoSoggettoBeanBuilder.build(soggetto, dettPratica.getDettPraticaId()); if (beanSoggetto != null) { if (beanSoggetto.getTipoOperazione() != null) { soggettiBean.add(beanSoggetto); - } } } } bean.setSoggetti(soggettiBean); - String tipo = AvvisoUtil.getTipoReport(dettPratica, avviso.getTipoDocumento()); - - // DATI SOLO PER IL SORTEGGIO - if (tipo.equals(AvvisoUtil.TIPO_REPORT_SORTEGGIO)) { - Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPraticaId); - bean.setDataSorteggio(intPratica.getDtSorteggio()); - int mId; - if (null != sorteggio) { - mId = Integer.parseInt(sorteggio.getMese()) - 1; - } else { - Calendar calendar = Calendar.getInstance(); - calendar.setTime(intPratica.getDtSorteggio()); - mId = calendar.get(Calendar.MONTH); - } - - bean.setMeseSorteggio(CalendarUtil.getMonths(Locale.ITALIAN)[mId]); - } bean.setTipo(tipo); - int numeroProtocolloIntegrazione = DettPraticaLocalServiceUtil .countByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, true); bean.setNumeroProtocolloIntegrazione(String.valueOf(numeroProtocolloIntegrazione)); - - List integrazioni = DettPraticaLocalServiceUtil - .findByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, - TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, true); + List integrazioni = DettPraticaLocalServiceUtil.findByIntPraticaId_TipoIntegrazione_Completa( + intPraticaId, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, true); StringBuilder sb = new StringBuilder(); for (DettPratica integrazione : integrazioni) { if (sb.length() != 0) { @@ -152,30 +119,25 @@ public class ReportAvvisoBeanBuilder { sb.append(integrazione.getProtocollo()); } bean.setElencoNumeriProtocolloIntegrazione(sb.toString()); - } else if (FineLavori.class.getName().equalsIgnoreCase(avviso.getClassName())) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(avviso.getClassPk()); dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); bean.setNumeroProtocollo(fineLavori.getProtocollo()); bean.setParziale(fineLavori.isParziale()); bean.setParzialeNumero(String.valueOf(fineLavori.getNumero())); - } else if (Collaudo.class.getName().equalsIgnoreCase(avviso.getClassName())) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(avviso.getClassPk()); dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); bean.setNumeroProtocollo(collaudo.getProtocollo()); bean.setParziale(collaudo.isParziale()); bean.setParzialeNumero(String.valueOf(collaudo.getNumero())); - } - List allegati = new ArrayList(); - // ADT BUG FE ID = 9 List docPraticas = null; - if (avviso.getTipoDocumento().equalsIgnoreCase( - DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO)) { + if (avviso.getTipoDocumento().equalsIgnoreCase(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO)) { docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(intPraticaId, - DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, -1, -1); + DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); } else if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.AUTORIZZATA) && (avviso.getControlloPraticaId() != 0)) { docPraticas = new ArrayList<>(); @@ -188,80 +150,57 @@ public class ReportAvvisoBeanBuilder { docPraticas = DocPraticaLocalServiceUtil.findByClassPk(avviso.getClassPk()); } for (DocPratica docPratica : docPraticas) { - allegati.add(ReportAvvisoAllegatoBeanBuilder.build(docPratica, codiceTipoIntegrazione, - tipoIntegrazione, numeroIntegrazione)); + allegati.add(ReportAvvisoAllegatoBeanBuilder.build(docPratica, codiceTipoIntegrazione, tipoIntegrazione, + numeroIntegrazione)); } - bean.setAllegati(allegati); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Group groupGenio = GroupLocalServiceUtil.getGroup(territorio.getGroupId()); - Organization organizzation = OrganizationLocalServiceUtil.getOrganization(groupGenio - .getOrganizationId()); - + Organization organizzation = OrganizationLocalServiceUtil.getOrganization(groupGenio.getOrganizationId()); String uuid = avviso.getUuid(); - Comune comune = ComuneLocalServiceUtil.fetchComune(territorio.getComuneId()); String comuneDesc = comune.getDenominazione(); - long organizationId = GroupLocalServiceUtil.fetchGroup(territorio.getGroupId()).getOrganizationId(); Organization organization = OrganizationLocalServiceUtil.fetchOrganization(organizationId); - - bean.setPo((String) organization.getExpandoBridge() - .getAttribute(Constants.ORG_CUSTOM_FIELD_PO, false)); + bean.setPo((String) organization.getExpandoBridge().getAttribute(Constants.ORG_CUSTOM_FIELD_PO, false)); bean.setSedeGenioCivile(organization.getName()); bean.setDirigente("Il dirigente"); - // ADT BUG FE ID = 8 if (FineLavori.class.getName().equalsIgnoreCase(avviso.getClassName())) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(avviso.getClassPk()); bean.setDataPratica(fineLavori.getDtProtocollo()); - } - // ADT BUG FE ID = 19 - else if (Collaudo.class.getName().equalsIgnoreCase(avviso.getClassName())) { + } else if (Collaudo.class.getName().equalsIgnoreCase(avviso.getClassName())) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(avviso.getClassPk()); bean.setDataPratica(collaudo.getDtProtocollo()); - } - - else { - + } else { bean.setDataPratica(intPratica.getDtPratica()); } - bean.setDataAvviso(avviso.getModifiedDate()); bean.setTipoPratica(intPratica.getTipoPratica()); bean.setTipoProcedura(intPratica.getTipoProcedura()); - bean.setTipoAutorizzazione(LanguageUtil.get(LocaleUtil.getSiteDefault(), "tipo_procedura_" - + intPratica.getTipoProcedura())); - + bean.setTipoAutorizzazione(LanguageUtil.get(LocaleUtil.getSiteDefault(), + "tipo_procedura_" + intPratica.getTipoProcedura())); bean.setCodiceUnivoco(uuid); bean.setLavoriDi(dettPratica.getDescLongIntervento()); bean.setNumeroProgetto(intPratica.getNumeroProgetto()); - if (Validator.isNotNull(intPratica.getStatusByUserId())) { User user = UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()); bean.setTecnicoEmail(user.getEmailAddress()); bean.setTecnico(user.getFullName()); } - String ubicazione = dettPratica.getVia(); if (Validator.isNull(ubicazione)) { ubicazione = dettPratica.getLocalita(); } else if (Validator.isNotNull(dettPratica.getLocalita())) { ubicazione += StringPool.COMMA_AND_SPACE + dettPratica.getLocalita(); } - bean.setUbicazione(ubicazione); bean.setComune(comuneDesc); - bean.setSedeGenioCivile(organizzation.getName()); - User user = UserLocalServiceUtil.getUser(intPratica.getUserId()); bean.setTitolareDigitale(user.getFullName()); - // RIEMPIO I SOGGETTI - Soggetto committenteBean = SoggettoLocalServiceUtil - .getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, - dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE); + Soggetto committenteBean = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto( + intPraticaId, dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE); if (Validator.isNull(committenteBean)) { List committenti = SoggettoLocalServiceUtil.getValidTmpByDettPratica_TipologiaSoggetto( dettPratica.getDettPraticaId(), TipoSoggettoUtil.COMMITTENTE); @@ -270,36 +209,26 @@ public class ReportAvvisoBeanBuilder { } } if (Validator.isNotNull(committenteBean)) { - // String committente = committenteBean.getNome() + StringPool.SPACE - // + - // committenteBean.getCognome(); String committente = committenteBean.getTitle(); bean.setCommittente(committente); } - - Soggetto direttoreLavoriBean = SoggettoLocalServiceUtil - .getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, - dettPratica.getCodiceFiscalePrincipaleDirettoreLavori(), - TipoSoggettoUtil.DIRETTORE_LAVORI); + Soggetto direttoreLavoriBean = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto( + intPraticaId, dettPratica.getCodiceFiscalePrincipaleDirettoreLavori(), + TipoSoggettoUtil.DIRETTORE_LAVORI); if (Validator.isNotNull(direttoreLavoriBean)) { String direttoreLavori = direttoreLavoriBean.getNome() + StringPool.SPACE + direttoreLavoriBean.getCognome(); bean.setDirettoreLavori(direttoreLavori); } - - Soggetto collaudatoreBean = SoggettoLocalServiceUtil - .getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, - dettPratica.getCodiceFiscalePrincipaleCollaudatore(), TipoSoggettoUtil.COLLAUDATORE); + Soggetto collaudatoreBean = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto( + intPraticaId, dettPratica.getCodiceFiscalePrincipaleCollaudatore(), TipoSoggettoUtil.COLLAUDATORE); if (Validator.isNotNull(collaudatoreBean)) { - String collaudatore = collaudatoreBean.getNome() + StringPool.SPACE - + collaudatoreBean.getCognome(); + String collaudatore = collaudatoreBean.getNome() + StringPool.SPACE + collaudatoreBean.getCognome(); bean.setCollaudatore(collaudatore); } - if (WorkflowUtil.isWorkflowDisattivabile(intPraticaId)) { - - List controlloPraticas = ControlloPraticaLocalServiceUtil - .findByIntPraticaId_Status(intPraticaId, WorkflowConstants.STATUS_PENDING); + List controlloPraticas = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status( + intPraticaId, WorkflowConstants.STATUS_PENDING); if (controlloPraticas.size() > 0) { ControlloPratica controlloPratica = controlloPraticas.get(0); Map formParameters = WorkflowUtil.getFormParameters(controlloPratica); @@ -308,36 +237,39 @@ public class ReportAvvisoBeanBuilder { } } } - SimpleDateFormat dfmt = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); - if (parameters.containsKey("dataProtocolloAnnullato")) + if (parameters.containsKey("dataProtocolloAnnullato")) { try { bean.setDataProtocolloAnnullato(dfmt.parse((String) parameters.get("dataProtocolloAnnullato"))); } catch (ParseException e) { } - if (parameters.containsKey("numeroProtocolloAnnullato")) + } + if (parameters.containsKey("numeroProtocolloAnnullato")) { bean.setNumeroProtocolloAnnullato((String) parameters.get("numeroProtocolloAnnullato")); - if (parameters.containsKey("tipoAnnullato")) + } + if (parameters.containsKey("tipoAnnullato")) { bean.setTipoAnnullato((String) parameters.get("tipoAnnullato")); - - if (parameters.containsKey("dataProtocolloValido")) + } + if (parameters.containsKey("dataProtocolloValido")) { try { bean.setDataProtocolloValido(dfmt.parse((String) parameters.get("dataProtocolloValido"))); } catch (ParseException e) { } - if (parameters.containsKey("numeroProtocolloValido")) + } + if (parameters.containsKey("numeroProtocolloValido")) { bean.setNumeroProtocolloValido((String) parameters.get("numeroProtocolloValido")); - if (parameters.containsKey("tipoValido")) + } + if (parameters.containsKey("tipoValido")) { bean.setTipoValido((String) parameters.get("tipoValido")); - + } // ADT:bug id 14: correzione testo del documento di non autorizzazione if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_AUTORIZZATA) || avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME) || avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NO_PARERE)) { - if (Validator.isNull(parameters.get("motivazioni"))) + if (Validator.isNull(parameters.get("motivazioni"))) { parameters.put("motivazioni", parameters.get("testo_del_documento")); + } } - return bean; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoSoggettoBeanBuilder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoSoggettoBeanBuilder.java index 317945c3..4cd53b36 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoSoggettoBeanBuilder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoSoggettoBeanBuilder.java @@ -9,28 +9,23 @@ import com.liferay.portal.kernel.util.Validator; public class ReportAvvisoSoggettoBeanBuilder { - private ReportAvvisoSoggettoBeanBuilder() { - - } - - public static ReportAvvisoSoggettoBean build(Soggetto soggetto, long dettPraticaId) { - - ReportAvvisoSoggettoBean bean = new ReportAvvisoSoggettoBean(); - - bean.setTipoSoggetto(LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + soggetto.getTipologiaSoggetto())); - bean.setDenominazione(soggetto.getTitle()); - if (soggetto.getDettPraticaId() == dettPraticaId) { - bean.setTipoOperazione("aggiunto"); - } else if (soggetto.getDettPraticaIdRimozione() == dettPraticaId) { - if (Validator.isNotNull(soggetto.getSostituitoDa())) { - bean.setTipoOperazione("sostituito"); - } else { - bean.setTipoOperazione("rimosso"); - } - } - - return bean; - } - - + private ReportAvvisoSoggettoBeanBuilder() { + } + + public static ReportAvvisoSoggettoBean build(Soggetto soggetto, long dettPraticaId) { + + ReportAvvisoSoggettoBean bean = new ReportAvvisoSoggettoBean(); + bean.setTipoSoggetto(LanguageUtil.get(LocaleUtil.ITALIAN, "gc-soggetto-" + soggetto.getTipologiaSoggetto())); + bean.setDenominazione(soggetto.getTitle()); + if (soggetto.getDettPraticaId() == dettPraticaId) { + bean.setTipoOperazione("aggiunto"); + } else if (soggetto.getDettPraticaIdRimozione() == dettPraticaId) { + if (Validator.isNull(soggetto.getSostituitoDa())) { + bean.setTipoOperazione("rimosso"); + } else { + bean.setTipoOperazione("sostituito"); + } + } + return bean; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportSorteggioBeanBuilder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportSorteggioBeanBuilder.java deleted file mode 100644 index 4bf2d4e0..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportSorteggioBeanBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -package it.tref.liferay.portos.bo.report.builder.builder; - -import it.tref.liferay.portos.bo.model.DettPratica; -import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.model.Territorio; -import it.tref.liferay.portos.bo.report.builder.bean.ReportSorteggioBean; -import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; - -public class ReportSorteggioBeanBuilder { - - private ReportSorteggioBeanBuilder() { - - } - - public static ReportSorteggioBean build(Sorteggio sorteggio) throws SystemException { - - ReportSorteggioBean reportSorteggioBOBean = new ReportSorteggioBean(); - - try { - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(sorteggio.getDettPraticaId()); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - reportSorteggioBOBean.setFascia(territorio.getFascia()); - - //Task 32561 - reportSorteggioBOBean.setZona(territorio.getZona()); - - reportSorteggioBOBean.setProvincia(sorteggio.getProvincia()); - - } catch (PortalException e) { - } - - reportSorteggioBOBean.setNumeroEstrazione(String.valueOf(sorteggio.getNumeroEstrazione())); - - reportSorteggioBOBean.setTecnico(sorteggio.getTecnico()); - reportSorteggioBOBean.setCommittente(sorteggio.getCommittente()); - reportSorteggioBOBean.setCitta(sorteggio.getComune()); - reportSorteggioBOBean.setPratica(sorteggio.getPratica()); - - reportSorteggioBOBean.setFase(Boolean.parseBoolean(sorteggio.getMesePrecedente()) ? "1" : "2"); - - return reportSorteggioBOBean; - } - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerEstrazioneFirme.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerEstrazioneFirme.java index 089d2304..45016996 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerEstrazioneFirme.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerEstrazioneFirme.java @@ -4,15 +4,13 @@ import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; -import java.io.File; -import java.io.IOException; + import java.util.List; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import javax.servlet.http.HttpServletResponse; -import org.apache.commons.io.FileUtils; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.mime.MultipartEntityBuilder; @@ -31,7 +29,6 @@ import com.liferay.portal.kernel.messaging.Message; import com.liferay.portal.kernel.messaging.MessageListener; import com.liferay.portal.kernel.messaging.MessageListenerException; import com.liferay.portal.kernel.util.FileUtil; -import com.liferay.portal.kernel.util.PropsUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.UniqueList; import com.liferay.portal.kernel.workflow.WorkflowConstants; @@ -52,36 +49,30 @@ public class SchedulerEstrazioneFirme implements MessageListener { private static final Lock lock = new ReentrantLock(); + @Override public void receive(Message message) throws MessageListenerException { if (lock.tryLock()) { try { for (Company company : CompanyLocalServiceUtil.getCompanies()) { // campo abilitazione scheduler - // TODO creare la configurazione aggiuntiva per lo scheduler - // estrazione firme - boolean condition = Boolean.parseBoolean(ConfigurazioneLocalServiceUtil - .findByC_ChiaveString(company.getCompanyId(), - ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO)); - + // TODO creare la configurazione aggiuntiva per lo scheduler estrazione firme + boolean condition = Boolean.parseBoolean(ConfigurazioneLocalServiceUtil.findByC_ChiaveString( + company.getCompanyId(), ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO)); if (condition) { - List docPratiche = DocPraticaLocalServiceUtil.findByStaus( WorkflowConstants.STATUS_PENDING, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - - String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute( - "url_pdf_extractor", false); - + String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", + false); for (DocPratica docPratica : docPratiche) { DLFileEntry fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(docPratica .getDlFileEntryId()); User user = UserLocalServiceUtil.getRoleUsers( - RoleLocalServiceUtil.getRole(docPratica.getCompanyId(), - RoleConstants.ADMINISTRATOR).getRoleId()).get(0); - PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil - .create(user)); + RoleLocalServiceUtil + .getRole(docPratica.getCompanyId(), RoleConstants.ADMINISTRATOR) + .getRoleId()).get(0); + PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(user)); byte[] fileBytes = FileUtil.getBytes(fileEntry.getContentStream()); - MultipartEntityBuilder builder = MultipartEntityBuilder.create(); ContentBody body = new ByteArrayBody(fileBytes, fileEntry.getTitle()); builder.addPart("file", body); @@ -89,31 +80,23 @@ public class SchedulerEstrazioneFirme implements MessageListener { request.setEntity(builder.build()); CloseableHttpClient client = HttpClientBuilder.create().build(); HttpResponse response = client.execute(request); - int statusCode = response.getStatusLine().getStatusCode(); String responseBody = EntityUtils.toString(response.getEntity(), StringPool.UTF8); - if (statusCode == HttpServletResponse.SC_OK - || statusCode == HttpServletResponse.SC_CREATED) { + if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) { JSONArray arrayFirme = JSONFactoryUtil.createJSONObject(responseBody) .getJSONArray("cf"); List cf = new UniqueList(); for (int i = 0; i < arrayFirme.length(); i++) { cf.add(arrayFirme.getString(i)); } - DocPraticaLocalServiceUtil.addFirmeAndApprova(docPratica.getDocPraticaId(), - cf); + DocPraticaLocalServiceUtil.addFirmeAndApprova(docPratica.getDocPraticaId(), cf); _log.info("risposta ws " + responseBody + " numero firme " + cf.size()); - // if (cf.size() > 1) - // salvaCampione(fileEntry, fileBytes, cf.size() - // + "-firme"); } else { - String errorCode = JSONFactoryUtil.createJSONObject(responseBody).getString( - "errorCode"); - DocPraticaLocalServiceUtil.addErrorAndApprova(docPratica.getDocPraticaId(), - errorCode); - _log.warn("P7M REST extractor error. Response: " + new String(responseBody) - + " id=" + fileEntry.getFileEntryId()); - salvaCampione(fileEntry, fileBytes, "0-firme"); + String errorCode = JSONFactoryUtil.createJSONObject(responseBody) + .getString("errorCode"); + DocPraticaLocalServiceUtil.addErrorAndApprova(docPratica.getDocPraticaId(), errorCode); + _log.warn("P7M REST extractor error. Response: " + new String(responseBody) + " id=" + + fileEntry.getFileEntryId()); } } } @@ -127,19 +110,5 @@ public class SchedulerEstrazioneFirme implements MessageListener { lock.unlock(); } } - - } - - private static void salvaCampione(DLFileEntry fileEntry, byte[] fileBytes, String prefisso) { - String debugPath = PropsUtil.get("liferay.home") + "/debug"; - File debugFile = new File(debugPath); - if (!debugFile.exists()) - debugFile.mkdirs(); - debugFile = new File(debugPath + "/" + prefisso + "-" + fileEntry.getFileEntryId() + "." - + fileEntry.getExtension()); - try { - FileUtils.writeByteArrayToFile(debugFile, fileBytes); - } catch (IOException e) { - } } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java index c59999af..66e72733 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java @@ -57,43 +57,41 @@ public class SchedulerGeneraDocumento implements MessageListener { try { // campo abilitazione scheduler for (Company company : CompanyLocalServiceUtil.getCompanies()) { - String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString( - company.getCompanyId(), ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); - _log.debug("SchedulerGeneraDocumento - per company " + company.getCompanyId() - + " attivo? " + condition); + String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(company.getCompanyId(), + ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); + if (_log.isDebugEnabled()) { + _log.debug("SchedulerGeneraDocumento - per company " + company.getCompanyId() + " attivo? " + + condition); + } if (Boolean.parseBoolean(condition)) { - int count = AvvisoLocalServiceUtil.countAvvisiGenerazioneDocumento(); - _log.debug("SchedulerGeneraDocumento - numero avvisi " + count); - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List avvisi = AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento( - cursor, cursor + SIZE); - - for (Avviso avviso : avvisi) { + if (_log.isDebugEnabled()) { + _log.debug("SchedulerGeneraDocumento - numero avvisi " + count); + } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List avvisi = AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(cursor, cursor + + SIZE); + for (Avviso avviso : avvisi) { + if (_log.isDebugEnabled()) { _log.debug("SchedulerGeneraDocumento - avviso " + avviso.getAvvisoId()); + } + try { + FileEntry fileEntryTemplate = null; try { - FileEntry fileEntryTemplate = null; - try { - fileEntryTemplate = DLAppLocalServiceUtil.getFileEntry(avviso - .getFileEntryIdTemplate()); - } catch (PortalException e) { - // bloccato, non esiste file di - // template - _log.debug("SchedulerGeneraDocumento - non esiste file template"); - AvvisoLocalServiceUtil.updateAvvisoErrore(avviso.getAvvisoId(), - true); - } - if (fileEntryTemplate != null && avviso.getOldFileEntryIdBase() == 0L) { - _log.debug("SchedulerGeneraDocumento - inizio genera documento"); - generaDocumento(avviso, fileEntryTemplate.getFileEntryId()); - _log.debug("SchedulerGeneraDocumento - fine genera documento"); - } - } catch (Exception e) { - _log.error("Error", e); + fileEntryTemplate = DLAppLocalServiceUtil.getFileEntry(avviso + .getFileEntryIdTemplate()); + } catch (PortalException e) { + // bloccato, non esiste file di template + _log.debug("SchedulerGeneraDocumento - non esiste file template"); + AvvisoLocalServiceUtil.updateAvvisoErrore(avviso.getAvvisoId(), true); } + if (fileEntryTemplate != null) { + _log.debug("SchedulerGeneraDocumento - inizio genera documento"); + generaDocumento(avviso, fileEntryTemplate.getFileEntryId()); + _log.debug("SchedulerGeneraDocumento - fine genera documento"); + } + } catch (Exception e) { + _log.error("Error", e); } } } @@ -111,83 +109,56 @@ public class SchedulerGeneraDocumento implements MessageListener { private Long generaDocumento(Avviso avviso, long fileEntryIdTemplate) throws SystemException { Long idFileEntry = null; - try { long companyId = avviso.getCompanyId(); long groupId = avviso.getGroupId(); long userId = avviso.getUserId(); - ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); serviceContext.setScopeGroupId(groupId); serviceContext.setUserId(userId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); - long folderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, AvvisoUtil .getAllTipoDocumentoFolderProps().get(avviso.getTipoDocumento())); - - String fileName = AvvisoLocalServiceUtil.getFileNameAvviso(avviso.getClassPk(), - avviso.getTipoDocumento(), avviso.getAvvisoId(), "B"); - + String fileName = AvvisoLocalServiceUtil.getFileNameAvviso(avviso.getClassPk(), avviso.getTipoDocumento(), + avviso.getAvvisoId(), "B"); Map parameters = new HashMap(); if (Validator.isNotNull(avviso.getJsonParameters())) { JSONDeserializer> deserializer = JSONFactoryUtil.createJSONDeserializer(); parameters.putAll(deserializer.deserialize(avviso.getJsonParameters())); } Object bean; - if (DettPratica.class.getName().equals(avviso.getClassName())) { DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); if (dettPratica != null) { if (intPratica != null && Validator.isNotNull(intPratica.getStatusByUserId())) { User tecnico = UserLocalServiceUtil.fetchUserById(intPratica.getStatusByUserId()); if (tecnico != null) { - parameters.put(WorkflowConstants.WORKFLOW_PARAM_NAME_TECNICO, - tecnico.getFullName()); + parameters.put(WorkflowConstants.WORKFLOW_PARAM_NAME_TECNICO, tecnico.getFullName()); parameters.put("delegato", tecnico.getFullName()); } } } } bean = ReportAvvisoBeanBuilder.build(avviso, parameters); - - parameters.put(ReportConstants.LOGO_REGIONE, - getClass().getResource(ReportConstants.PATH_LOGO_REGIONE).getPath()); + parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(ReportConstants.PATH_LOGO_REGIONE) + .getPath()); parameters.put(ReportConstants.LOGO_DIPARTIMENTO, getClass().getResource(ReportConstants.PATH_LOGO_DIPARTIMENTO).getPath()); - - // avviso = gestioneProtocollazione(avviso, dettPratica); - - /* - * Message messageReport = new Message(); - * messageReport.put(ReportConstants.FILE_ENTRY_ID_TEMPLATE, - * fileEntryIdTemplate); - * messageReport.put(ReportConstants.FOLDER_ID_REPORT, folderId); - * messageReport.put(ReportConstants.REPORT_NAME, fileName); - * messageReport.put(ReportConstants.SERVICE_CONTEXT, - * serviceContext); - * messageReport.put(ReportConstants.REPORT_PARAMETERS, parameters); - * messageReport.put(ReportConstants.REPORT_DATASOURCE, bean); - */ - ReportDto reportDto = new ReportDto(); reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate }); reportDto.setFolderId(folderId); reportDto.setFileName(fileName); reportDto.setParameters(parameters); - // reportDto.setDataSource(bean); reportDto.setShowNumberOfPage(true); reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString()); - _log.info("generaDocumento: generateReport: " + fileEntryIdTemplate); ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, bean); idFileEntry = result.getFileEntryIds()[0]; if (Validator.isNotNull(idFileEntry)) { - if (avviso.getTipoAvviso().equalsIgnoreCase(AvvisoUtil.TIPO_AVVISO_DIRETTO)) { gestioneProtocollazione(avviso, idFileEntry); } - if (AvvisoUtil.TIPO_AVVISO_DIRETTO.equals(avviso.getTipoAvviso())) { AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBase(avviso.getAvvisoId(), idFileEntry); } else if (AvvisoUtil.TIPO_AVVISO_FIRMA.equals(avviso.getTipoAvviso())) { @@ -197,30 +168,18 @@ public class SchedulerGeneraDocumento implements MessageListener { } catch (Exception e) { _log.error("Error on AvvisoId = " + avviso.getAvvisoId(), e); } - return idFileEntry; } private Avviso gestioneProtocollazione(Avviso avviso, long fileEntryId) throws Exception { if (Validator.isNull(avviso.getProtocollo())) { - String protocollo = ProtocollazioneUtil.protocollaPartenza(avviso, fileEntryId); - if (Validator.isNull(protocollo)) { throw new Exception("errore nella protocollazione avviso"); } - avviso = AvvisoLocalServiceUtil.updateAvvisoProtocollo(avviso.getAvvisoId(), protocollo); } - return avviso; } - - // private void updateProtocollazione(Avviso avviso, DettPratica - // dettPratica, long fileEntryId) - // throws Exception { - // - // ProtocollazioneUtil.protocollaPartenza(dettPratica, avviso, fileEntryId); - // } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java index d64376ad..13e03129 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java @@ -38,69 +38,51 @@ public class SchedulerGeneraProtocollo implements MessageListener { @Override public void receive(Message message) throws MessageListenerException { - long avvisoId = 0l; - + long avvisoId = 0L; if (lock.tryLock()) { _log.debug("SchedulerGeneraProtocollo - inizio"); try { - List avvisiList = AvvisoLocalServiceUtil.getAvvisiPerAggiuntaProtocollo(-1, SIZE); if (Validator.isNotNull(avvisiList) && !avvisiList.isEmpty()) { for (Avviso avviso : avvisiList) { - _log.info("SchedulerGeneraProtocollo - avviso " + avviso.getAvvisoId()); - try { - avvisoId = avviso.getAvvisoId(); - FileEntry fileEntryBase = DLAppLocalServiceUtil.getFileEntry(avviso - .getFileEntryIdBase()); - + FileEntry fileEntryBase = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdBase()); if (Validator.isNotNull(fileEntryBase)) { generaProtocollo(avviso, fileEntryBase); } - } catch (PortalException e) { - _log.debug("SchedulerGeneraProtocollo - non esiste file base | avvisoId=" - + avvisoId); + _log.debug("SchedulerGeneraProtocollo - non esiste file base | avvisoId=" + avvisoId); } - } } - } catch (SystemException e) { _log.error(e, e); } finally { lock.unlock(); } } - } - private void generaProtocollo(Avviso avviso, FileEntry fileEntry) throws ReportGenerationException, - SystemException { + private void generaProtocollo(Avviso avviso, FileEntry fileEntry) throws ReportGenerationException, SystemException { long companyId = avviso.getCompanyId(); long userId = avviso.getUserId(); - ReportDto reportDto = new ReportDto(); reportDto.setFileEntryIds(new long[] { fileEntry.getFileEntryId() }); reportDto.setFolderId(fileEntry.getFolderId()); reportDto.setFileName(fileEntry.getTitle() + "_protocollato"); reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString()); - Map parameters = new HashMap(); parameters.put("protocollo", avviso.getProtocollo()); parameters.put("dtProtocollo", avviso.getDtProtocollo().getTime()); parameters.put("oggetto", avviso.getOggettoProtocollo()); reportDto.setParameters(parameters); - ReportResultDto result = ReportUtil.generateProtocollo(companyId, userId, reportDto); - long[] fileEntryIds = result.getFileEntryIds(); if (Validator.isNotNull(fileEntryIds) && (fileEntryIds.length > 0)) { long idFileEntry = fileEntryIds[0]; - Avviso avvisoModified = AvvisoLocalServiceUtil.fetchAvviso(avviso.getAvvisoId()); if (avvisoModified != null) { avvisoModified.setFileEntryIdProtocollo(idFileEntry); @@ -108,10 +90,8 @@ public class SchedulerGeneraProtocollo implements MessageListener { avvisoModified.setFileEntryIdInvio(idFileEntry); avvisoModified.setDtCreateFileEntryInvio(new Date()); } - AvvisoLocalServiceUtil.updateAvviso(avvisoModified); } } } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java index 7194549a..e724022f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java @@ -81,14 +81,15 @@ public class SchedulerInvioDocumento implements MessageListener { private static final int SIZE = 10; + @Override public void receive(Message message) throws MessageListenerException { if (lock.tryLock()) { try { // campo abilitazione scheduler for (Company company : CompanyLocalServiceUtil.getCompanies()) { - String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString( - company.getCompanyId(), ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO); + String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(company.getCompanyId(), + ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO); if (Boolean.parseBoolean(condition)) { processAvvisiInvioSuap(); processIntegrazioniInvioSignal(); @@ -109,56 +110,41 @@ public class SchedulerInvioDocumento implements MessageListener { private void processAvvisiInvioSuap() throws SystemException { int count = AvvisoLocalServiceUtil.countAvvisiInvioDocumento(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List avvisi = AvvisoLocalServiceUtil.getAvvisiInvioDocumento(cursor, cursor + SIZE); - - for (Avviso avviso : avvisi) { - + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List avvisi = AvvisoLocalServiceUtil.getAvvisiInvioDocumento(cursor, cursor + SIZE); + for (Avviso avviso : avvisi) { + try { + FileEntry fileEntry = null; try { - - FileEntry fileEntry = null; - try { - fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio()); - } catch (PortalException e) { - // bloccato - AvvisoLocalServiceUtil.updateAvvisoErrore(avviso.getAvvisoId(), true); - } - - if (fileEntry != null) { - // xxx senza suap non serve inviare - String url = StringPool.BLANK; - invioDocumento(avviso, fileEntry, url); - if (Validator.isNotNull(avviso.getControlloPraticaId())) { - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(avviso.getControlloPraticaId()); - Avviso avvisoSignal = AvvisoLocalServiceUtil.getAvvisoInvioSignal(avviso - .getAvvisoId()); - if (avvisoSignal != null) { - invioSignal(avvisoSignal, controlloPratica); - } - - Avviso avvisoTempistica = AvvisoLocalServiceUtil.getAvvisoTempistica(avviso - .getAvvisoId()); - if (avvisoTempistica != null) { - gestioneTempistica(avvisoTempistica, controlloPratica); - } - - Avviso avvisoInvioTecnico = AvvisoLocalServiceUtil - .getAvvisoInvioTecnico(avviso.getAvvisoId()); - if (avvisoInvioTecnico != null) { - sendToTecnico(avvisoInvioTecnico); - } + fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio()); + } catch (PortalException e) { + // bloccato + AvvisoLocalServiceUtil.updateAvvisoErrore(avviso.getAvvisoId(), true); + } + if (fileEntry != null) { + // XXX senza suap non serve inviare + String url = StringPool.BLANK; + invioDocumento(avviso, fileEntry, url); + if (Validator.isNotNull(avviso.getControlloPraticaId())) { + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil + .getControlloPratica(avviso.getControlloPraticaId()); + Avviso avvisoSignal = AvvisoLocalServiceUtil.getAvvisoInvioSignal(avviso.getAvvisoId()); + if (avvisoSignal != null) { + invioSignal(avvisoSignal, controlloPratica); + } + Avviso avvisoTempistica = AvvisoLocalServiceUtil.getAvvisoTempistica(avviso.getAvvisoId()); + if (avvisoTempistica != null) { + gestioneTempistica(avvisoTempistica, controlloPratica); + } + Avviso avvisoInvioTecnico = AvvisoLocalServiceUtil.getAvvisoInvioTecnico(avviso + .getAvvisoId()); + if (avvisoInvioTecnico != null) { + sendToTecnico(avvisoInvioTecnico); } - } - - } catch (Exception e) { - _log.error("Error", e); } + } catch (Exception e) { + _log.error("Error", e); } } } @@ -167,25 +153,19 @@ public class SchedulerInvioDocumento implements MessageListener { private void processAvvisiInvioSignal() throws SystemException { int count = AvvisoLocalServiceUtil.countAvvisiInvioSignal(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List avvisi = AvvisoLocalServiceUtil.getAvvisiInvioSignal(cursor, cursor + SIZE); - - for (Avviso avviso : avvisi) { - long controlloPraticaId = avviso.getControlloPraticaId(); - if (controlloPraticaId != 0) { - try { - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(avviso.getControlloPraticaId()); - invioSignal(avviso, controlloPratica); - } catch (Exception e) { - _log.info(e.getMessage() + " " + avviso.getAvvisoId() + " " - + avviso.getControlloPraticaId()); - _log.debug("Error", e); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List avvisi = AvvisoLocalServiceUtil.getAvvisiInvioSignal(cursor, cursor + SIZE); + for (Avviso avviso : avvisi) { + long controlloPraticaId = avviso.getControlloPraticaId(); + if (controlloPraticaId != 0) { + try { + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso + .getControlloPraticaId()); + invioSignal(avviso, controlloPratica); + } catch (Exception e) { + _log.info(e.getMessage() + ", avviso " + avviso.getAvvisoId() + ", controlloPratica " + + avviso.getControlloPraticaId()); + _log.debug("Error", e); } } } @@ -195,33 +175,20 @@ public class SchedulerInvioDocumento implements MessageListener { private void processIntegrazioniInvioSignal() throws SystemException { int count = DettPraticaLocalServiceUtil.countInvioSignal(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List integrazioni = DettPraticaLocalServiceUtil.getInviiSignal(cursor, cursor - + SIZE); - - for (DettPratica integrazione : integrazioni) { - try { - - List controlli = ControlloPraticaLocalServiceUtil - .findByIntPraticaId_Status(integrazione.getIntPraticaId(), - WorkflowConstants.STATUS_PENDING); - if (!controlli.isEmpty()) { - ControlloPratica controlloPratica = controlli.get(0); - - invioSignal(integrazione, controlloPratica, - WorkflowConstants.WORKFLOW_SIGNAL_INTEGRAZIONE); - } else { - _log.warn("signal non inviato per l'integrazione " - + integrazione.getDettPraticaId()); - } - - } catch (Exception e) { - _log.error("Error", e); + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List integrazioni = DettPraticaLocalServiceUtil.getInviiSignal(cursor, cursor + SIZE); + for (DettPratica integrazione : integrazioni) { + try { + List controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status( + integrazione.getIntPraticaId(), WorkflowConstants.STATUS_PENDING); + if (!controlli.isEmpty()) { + ControlloPratica controlloPratica = controlli.get(0); + invioSignal(integrazione, controlloPratica, WorkflowConstants.WORKFLOW_SIGNAL_INTEGRAZIONE); + } else { + _log.warn("signal non inviato per l'integrazione " + integrazione.getDettPraticaId()); } + } catch (Exception e) { + _log.error("Error", e); } } } @@ -230,54 +197,37 @@ public class SchedulerInvioDocumento implements MessageListener { private void processAvvisiTempistica() throws SystemException { int count = AvvisoLocalServiceUtil.countAvvisiTempistica(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List avvisi = AvvisoLocalServiceUtil.getAvvisiTempistica(cursor, cursor + SIZE); - - for (Avviso avviso : avvisi) { - long controlloPraticaId = avviso.getControlloPraticaId(); - if (controlloPraticaId > 0) { - try { - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(controlloPraticaId); - gestioneTempistica(avviso, controlloPratica); - } catch (Exception e) { - _log.info(e.getMessage() + " " + avviso.getAvvisoId() + " " - + avviso.getControlloPraticaId()); - _log.debug("Error", e); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List avvisi = AvvisoLocalServiceUtil.getAvvisiTempistica(cursor, cursor + SIZE); + for (Avviso avviso : avvisi) { + long controlloPraticaId = avviso.getControlloPraticaId(); + if (controlloPraticaId > 0) { + try { + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil + .getControlloPratica(controlloPraticaId); + gestioneTempistica(avviso, controlloPratica); + } catch (Exception e) { + _log.info(e.getMessage() + ", avviso " + avviso.getAvvisoId() + ", controlloPratica " + + avviso.getControlloPraticaId()); + _log.debug("Error", e); } } } } } - /** - * ADT: gestione notifiche al tecnico istruttore. Al momento gestisce solo - * notifica di assegnazione/riassegnazione - * - * @throws SystemException - */ + // ADT: gestione notifiche al tecnico istruttore. Al momento gestisce solo notifica di assegnazione/riassegnazione private void processAvvisiInvioTecnico() throws SystemException { - int count = AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew(); - if (count > 0) { - _log.info("trovati avvisi per invio email notifiche al tecnico:" + count); - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List avvisi = AvvisoLocalServiceUtil.getAvvisiInvioTecnicoNew(cursor, cursor + SIZE); - - for (Avviso avviso : avvisi) { - try { - // trattandosi solo di avvisi con tipo documento CI - // oppure SP si tratta di assegnazione istruttore - MailUtil.invioNotificaAssegnazioneIstruttore(avviso); - } catch (Exception e) { - _log.error("Error", e); - } + int count = AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew(); + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List avvisi = AvvisoLocalServiceUtil.getAvvisiInvioTecnicoNew(cursor, cursor + SIZE); + for (Avviso avviso : avvisi) { + try { + // trattandosi solo di avvisi con tipo documento CI oppure SP si tratta di assegnazione istruttore + MailUtil.invioNotificaAssegnazioneIstruttore(avviso); + } catch (Exception e) { + _log.error("Error", e); } } } @@ -285,13 +235,10 @@ public class SchedulerInvioDocumento implements MessageListener { private void invioDocumento(Avviso avviso, FileEntry fileEntry, String url) throws Exception { - // xxx senza suap non serve inviare l'avviso se non metterlo come - // inviato per farlo vedere nel - // FE + // XXX senza suap non serve inviare l'avviso se non metterlo come inviato per farlo vedere nel FE if (AvvisoUtil.DOCUMENTO_INVIATO.equalsIgnoreCase(avviso.getInviato())) { return; } - AvvisoLocalServiceUtil.updateAvvisoInvio(avviso.getAvvisoId()); inviaMailnotifica(avviso.getAvvisoId()); } @@ -299,21 +246,11 @@ public class SchedulerInvioDocumento implements MessageListener { private void inviaMailnotifica(long avvisoId) throws SystemException, PortalException { Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId); - long intPraticaId = avviso.getIntPraticaId(); DettPratica dettPratica = null; - - // String tipoDocumento = - // AvvisoUtil.getAllTipoDocumento().containsKey(avviso.getTipoDocumento()) - // ? - // AvvisoUtil.getAllTipoDocumento().get( - // avviso.getTipoDocumento()) : - // "label.admingeniocivile.avviso.tipoDocumento.avvisomanuale"; String tipoDocumento = avviso.translateTipoDocumento(); String tipoAvviso = LanguageUtil.get(LocaleUtil.ITALIAN, tipoDocumento); - String tipoAllegato = StringPool.BLANK; - if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) { tipoAllegato = "accettazione istanza di "; if (avviso.getClassName().equals(DettPratica.class.getName())) { @@ -327,8 +264,7 @@ public class SchedulerInvioDocumento implements MessageListener { break; } } else { - dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(avviso - .getIntPraticaId()); + dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(avviso.getIntPraticaId()); if (avviso.getClassName().equals(FineLavori.class.getName())) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(avviso.getClassPk()); tipoAllegato += LanguageUtil.get(LocaleUtil.ITALIAN, @@ -347,71 +283,52 @@ public class SchedulerInvioDocumento implements MessageListener { } } else { tipoAllegato = "documento di " - + LanguageUtil.get(LocaleUtil.ITALIAN, - tipoDocumento.replace("tipoDocumento", "documento")); + + LanguageUtil.get(LocaleUtil.ITALIAN, tipoDocumento.replace("tipoDocumento", "documento")); dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso.getClassPk()); if (Validator.isNull(dettPratica)) { - dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(avviso - .getIntPraticaId()); + dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(avviso.getIntPraticaId()); } } - - List soggetti = new ArrayList( - SoggettoLocalServiceUtil.getValidByIntPratica(intPraticaId)); - Soggetto committentePrincipale = SoggettoLocalServiceUtil - .getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, - dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE); - + List soggetti = new ArrayList(SoggettoLocalServiceUtil.getValidByIntPratica(intPraticaId)); + Soggetto committentePrincipale = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto( + intPraticaId, dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE); if (null == committentePrincipale) { - _log.error("inviaMailNotifica: il committente principale non esiste, intPraticaId = " - + intPraticaId); + _log.error("inviaMailNotifica: il committente principale non esiste, intPraticaId = " + intPraticaId); } else { soggetti.remove(committentePrincipale); } - String[] to = new String[soggetti.size()]; for (int i = 0; i < to.length; i++) { to[i] = soggetti.get(i).getEmail(); } - String[] cc = new String[0]; String[] ccn = new String[0]; - String tipoPratica = StringPool.BLANK; if (AzioniPraticheUtil.isDeposito(intPraticaId)) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } - String url = FascicoloURLUtil.getFascicoloFEViewURL(avviso.getCompanyId(), avviso.getIntPraticaId(), "/html/fascicolofe/view_fascicolo.jsp", StringPool.BLANK); - JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); templateVariables.put("tipoPratica", tipoPratica); templateVariables.put("tipoAvviso", tipoAvviso); templateVariables.put("tipoAllegato", tipoAllegato); templateVariables.put("link", url); - ServiceContext serviceContext = new ServiceContext(); serviceContext.setScopeGroupId(avviso.getGroupId()); serviceContext.setCompanyId(avviso.getCompanyId()); serviceContext.setUserId(avviso.getUserId()); - - MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, - Avviso.class.getName(), to, cc, ccn, "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, null, - serviceContext); - + MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), to, + cc, ccn, "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, null, serviceContext); if (null != committentePrincipale) { to = new String[] { committentePrincipale.getEmail() }; - List allegati = new ArrayList(); - long fileEntryId = 0l; - + long fileEntryId = 0L; String[] pdfInvio = new String[] { StatoPraticaConstants.CAMBIO_ISTRUTTORE, StatoPraticaConstants.SOTTOPOSTA_A_PARERE }; - // se è avviso di Vidimazione o di Avvio procedimento o di Cambio - // Istruttore => file protocollato + // se è avviso di Vidimazione o di Avvio procedimento o di Cambio Istruttore => file protocollato if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA) || ArrayUtil.contains(pdfInvio, avviso.getTipoDocumento())) { if (Validator.isNotNull(avviso.getFileEntryIdProtocollo())) { @@ -424,45 +341,34 @@ public class SchedulerInvioDocumento implements MessageListener { fileEntryId = avviso.getFileEntryIdInvio(); } } - if (Validator.isNotNull(fileEntryId)) { FileAttachment fileAttachment = new FileAttachment(); fileAttachment.setFileEntryId(avviso.getFileEntryIdProtocollo()); fileAttachment.generateFile(); allegati.add(fileAttachment); } - - MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, - Avviso.class.getName(), to, cc, ccn, "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, - allegati, serviceContext); - - String[] suapEnabled = new String[] { StatoPraticaConstants.CONFORME, - StatoPraticaConstants.NON_CONFORME }; + MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), + to, cc, ccn, "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, allegati, serviceContext); + String[] suapEnabled = new String[] { StatoPraticaConstants.CONFORME, StatoPraticaConstants.NON_CONFORME }; if ((AzioniPraticheUtil.isAutorizzazione(intPraticaId) && ArrayUtil.contains(suapEnabled, avviso.getTipoDocumento())) || (StatoPraticaConstants.VIDIMATA.equals(avviso.getTipoDocumento()))) { - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - Territorio territorio = TerritorioLocalServiceUtil - .getTerritorio(intPratica.getTerritorioId()); + Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - String eMail = StringPool.BLANK; if (dettPratica.getSuap()) { eMail = comune.getMailSuap(); } else { eMail = comune.getMailSue(); } - to = new String[] { eMail }; - templateVariables.put("cont", StringPool.BLANK); templateVariables.put("anno", StringPool.BLANK); templateVariables.put( "dataVidimazione", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format( intPratica.getDtPratica())); - if (to.length > 0 && to[0] != StringPool.BLANK) { MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), to, cc, ccn, "INVIO-SUAP", templateVariables, allegati, @@ -470,7 +376,6 @@ public class SchedulerInvioDocumento implements MessageListener { } } } - } private void invioSignal(DettPratica integrazione, ControlloPratica controlloPratica, String signalName) @@ -481,37 +386,22 @@ public class SchedulerInvioDocumento implements MessageListener { long companyId = controlloPratica.getCompanyId(); long userId = WorkflowUtil.getWorkflowInstanceCreateUserId(controlloPratica); try { - WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, workflowInstanceId); - - // Fix per errore su No KaleoTransition exists with the key - // {kaleoNodeId=xxx, - // name=signal_cittadino} ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(workflowInstanceId); - KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance - .getRootKaleoInstanceToken(serviceContext); - - // ADT:bug importazione portos1 in richiesta di integraione - this.checkPresenzaIstruttore(controlloPratica, integrazione, serviceContext, userId, - workflowInstanceId); - - if (rootKaleoInstanceToken.getCurrentKaleoNodeName().equals( - WorkflowConstants.WORKFLOW_SIGNAL_INTEGRAZIONE)) { - WorkflowInstanceManagerUtil.signalWorkflowInstance(companyId, userId, workflowInstanceId, - signalName, workflowInstance.getWorkflowContext()); + KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); + // ADT: bug importazione portos1 in richiesta di integrazione + checkPresenzaIstruttore(controlloPratica, integrazione, serviceContext, userId, workflowInstanceId); + if (rootKaleoInstanceToken.getCurrentKaleoNodeName().equals(WorkflowConstants.WORKFLOW_SIGNAL_INTEGRAZIONE)) { + WorkflowInstanceManagerUtil.signalWorkflowInstance(companyId, userId, workflowInstanceId, signalName, + workflowInstance.getWorkflowContext()); } - DettPraticaLocalServiceUtil.updateSignal(integrazione.getDettPraticaId(), new Date()); - - } catch (WorkflowException e) { - _log.error("Error on controllo pratica id : " + controlloPratica.getControlloPraticaId(), e); } catch (PortalException e) { _log.error("Error on controllo pratica id : " + controlloPratica.getControlloPraticaId(), e); } - } private void invioSignal(Avviso avviso, ControlloPratica controlloPratica) throws SystemException, @@ -524,31 +414,17 @@ public class SchedulerInvioDocumento implements MessageListener { long userId = WorkflowUtil.getWorkflowInstanceCreateUserId(controlloPratica); String signalName = WorkflowUtil.getSignalByTipoDocumento(avviso.getTipoDocumento()); try { - - WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance( - companyId, workflowInstanceId); - - // Fix per errore su No KaleoTransition exists with the key - // {kaleoNodeId=xxx, name=signal_ff} + WorkflowInstance workflowInstance = WorkflowInstanceManagerUtil.getWorkflowInstance(companyId, + workflowInstanceId); ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); - KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil - .getKaleoInstance(workflowInstanceId); - KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance - .getRootKaleoInstanceToken(serviceContext); - + KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil.getKaleoInstance(workflowInstanceId); + KaleoInstanceToken rootKaleoInstanceToken = kaleoInstance.getRootKaleoInstanceToken(serviceContext); if (rootKaleoInstanceToken.getCurrentKaleoNodeName().equals(signalName)) { WorkflowInstanceManagerUtil.signalWorkflowInstance(companyId, userId, workflowInstanceId, signalName, workflowInstance.getWorkflowContext()); } AvvisoLocalServiceUtil.updateAvvisoSignal(avviso.getAvvisoId(), new Date()); - // TODO capire se serve sempre - // if (signalName.equals(WorkflowConstants.JBPM_SIGNAL_INVIO)) { - // DettPraticaLocalServiceUtil.updateDettPraticaStatusTask(dettPratica.getDettPraticaId(), - // 0); - // } - } catch (WorkflowException e) { - _log.error("Error on controllo pratica id : " + controlloPratica.getControlloPraticaId(), e); } catch (PortalException e) { _log.error("Error on controllo pratica id : " + controlloPratica.getControlloPraticaId(), e); } @@ -562,41 +438,20 @@ public class SchedulerInvioDocumento implements MessageListener { // FIXME la tempistica non va bene mette le date sbagliate String tipoDocumento = avviso.getTipoDocumento(); - // String tipoDocumento = avviso.translateTipoDocumento(); Date dtInvio = avviso.getDtInvio(); if (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) { long intPraticaId = controlloPratica.getIntPraticaId(); - IntPratica intPratica = null; - try { - intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); - } catch (PortalException e) { - - _log.error(e, e); - } - // FIX prendo la data di vidimazione e non quella di sottoposto a - // parere per avvio dei tempi + // FIX prendo la data di vidimazione e non quella di sottoposto a parere per avvio dei tempi Avviso avvisoExtra = null; - if (Validator.isNotNull(intPratica.getDtSorteggio())) { - dtInvio = intPratica.getDtSorteggio(); - } else { - List documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento( - intPraticaId, StatoPraticaConstants.VIDIMATA); - avvisoExtra = documentiVid.get(0); - dtInvio = avvisoExtra.getDtInvio(); - } - // fino qui - - // TempisticaLocalServiceUtil.addTempistica(intPraticaId, - // dettPraticaId, TempisticaConstants.TIPO_PRATICA, dtInvio, - // serviceContext); + List documentiVid = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento(intPraticaId, + StatoPraticaConstants.VIDIMATA); + avvisoExtra = documentiVid.get(0); + dtInvio = avvisoExtra.getDtInvio(); Date now = new Date(); - // FIX come sopra if (avvisoExtra != null) { AvvisoLocalServiceUtil.updateAvvisoTempistica(avvisoExtra.getAvvisoId(), now); } - // fino qui - AvvisoLocalServiceUtil.updateAvvisoTempistica(avviso.getAvvisoId(), now); } else if (tipoDocumento.equals(StatoPraticaConstants.INTEGRAZIONE) || tipoDocumento.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)) { @@ -605,8 +460,7 @@ public class SchedulerInvioDocumento implements MessageListener { ServiceContext serviceContext = getServiceContext(controlloPratica); Tempistica tempistica = TempisticaLocalServiceUtil.getTempistica(serviceContext.getCompanyId(), intPraticaId, TempisticaConstants.TIPO_PRATICA, false); - // tempistica = null se pratica con cambio di stato forzato e no - // workflow + // tempistica = null se pratica con cambio di stato forzato e no workflow if (tempistica != null) { TempisticaLocalServiceUtil.stopTempistica(tempistica.getTempisticaId(), dtInvio); } @@ -622,8 +476,7 @@ public class SchedulerInvioDocumento implements MessageListener { ServiceContext serviceContext = getServiceContext(controlloPratica); Tempistica tempistica = TempisticaLocalServiceUtil.getTempistica(serviceContext.getCompanyId(), intPraticaId, TempisticaConstants.TIPO_PRATICA, false); - // tempstica = null se pratica con cambio di stato forzato e no - // workflow + // tempstica = null se pratica con cambio di stato forzato e no workflow if (tempistica != null) { TempisticaLocalServiceUtil.concludiTempistica(tempistica.getTempisticaId(), dtInvio); AvvisoLocalServiceUtil.updateAvvisoTempistica(avviso.getAvvisoId(), new Date()); @@ -638,85 +491,6 @@ public class SchedulerInvioDocumento implements MessageListener { private void sendToTecnico(Avviso avviso) throws SystemException, PortalException { // TODO inviare la mail con il nuovo sistema di mail. - // System.out.println("inviare la mail con il nuovo sistema di mail."); - // DettPratica dettPratica = - // DettPraticaLocalServiceUtil.getDettPratica(avviso.getDettPraticaId()); - // IntPratica intPratica = - // IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - // Territorio territorio = - // TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - // Comune comune = - // ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - // - // // tecnico da workflow - // User user = null; - // if (intPratica.isVariante()) { - // IntPratica intPraticaVariata = - // IntPraticaLocalServiceUtil.findByPratica_da_variare(intPratica.getTerritorioId(), - // true, - // intPratica.getIntPraticaId(), intPratica.getNumeroProgetto()).get(0); - // user = - // UserLocalServiceUtil.fetchUser(intPraticaVariata.getStatusByUserId()); - // } else { - // user = - // UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); - // } - // - // if (user == null) { - // // pratica senza workflow o nuova domanda - // AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), - // true); - // } else { - // - // String destinatario = user.getEmailAddress(); - // - // String mittente = PortletProps.get(TECNICO_MITTENTE); - // - // String oggetto = PortletProps.get(TECNICO_OGGETTO); - // - // // variante o integrazione - // String tipoPratica = StringPool.BLANK; - // if (intPratica.isVariante()) { - // tipoPratica = LanguageUtil.get(Locale.ITALIAN, - // "label.admingeniocivile.statopratica.variante"); - // } else { - // tipoPratica = - // LanguageUtil.get(Locale.ITALIAN, - // TipoIntegrazioneConstants.toLabel(dettPratica.getTipoIntegrazione())); - // } - // String tecnico = StringPool.BLANK; - // if (intPratica.getStatusByUserId() != 0l) { - // tecnico = - // UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()).getFullName(); - // } - // String corpo = - // StringUtil.replace( - // PortletProps.get(TECNICO_CORPO), - // new String[] {"[$NUMERO_PRATICA$]", "[$TIPO_PRATICA$]", "[$COMUNE$]", - // "[$DATA$]", - // "[$DESCRIZIONE_PROGETTO$]", "[$TECNICO$]"}, - // new String[] { - // intPratica.getNumeroProgetto(), - // tipoPratica, - // comune.getDescLong(), - // FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy", - // Locale.ITALY).format( - // avviso.getCreateDate()), intPratica.getDescLongIntervento(), - // tecnico}); - // - // try { - // - // CustomMailEngine.send(new InternetAddress(mittente), new - // InternetAddress(destinatario), - // oggetto, corpo, true); - // - // AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), - // true); - // - // } catch (Exception e) { - // _log.error("Error", e); - // } - // } } private ServiceContext getServiceContext(ControlloPratica controlloPratica) { @@ -728,25 +502,17 @@ public class SchedulerInvioDocumento implements MessageListener { return serviceContext; } - /** - * ADT: check congruenza WF - presenza dell'istruttore per pratiche - * importate da PORTOS1 - * - * - * @param transitionName - * @param workflowTaskId - */ + // ADT: check congruenza WF - presenza dell'istruttore per pratiche importate da PORTOS1 private void checkPresenzaIstruttore(ControlloPratica controlloPratica, DettPratica integrazione, ServiceContext serviceContext, long userId, long workflowInstanceId) { try { Map wfParameters = WorkflowUtil.getFormParameters(controlloPratica); String istruttore = (String) wfParameters.get("istruttore"); - _log.info("checkPresenzaIstruttore risposta integrazioni - istruttore presente sul workflow= " - + istruttore + " - -controlloPratica=" + controlloPratica.getControlloPraticaId()); + _log.info("checkPresenzaIstruttore risposta integrazioni - istruttore presente sul workflow= " + istruttore + + " - -controlloPratica=" + controlloPratica.getControlloPraticaId()); if (istruttore == null) { _log.info("checkPresenzaIstruttore gestione risposta integrazioni - rilevata incongrueza WF " - + "- istruttore non presente per dettpraticaid= " - + integrazione.getDettPraticaId() + + "- istruttore non presente per dettpraticaid= " + integrazione.getDettPraticaId() + " -controlloPratica=" + controlloPratica.getControlloPraticaId()); long istruttoreId = IntPraticaLocalServiceUtil.getIntPratica(integrazione.getIntPraticaId()) .getStatusByUserId(); @@ -757,8 +523,8 @@ public class SchedulerInvioDocumento implements MessageListener { JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); jsonFormParameters = jsonSerializer.serialize(parametri); serviceContext.setUserId(userId); - FormLogLocalServiceUtil.addFormLog(workflowInstanceId, 0l, "cambio-istruttore", - jsonFormParameters, serviceContext); + FormLogLocalServiceUtil.addFormLog(workflowInstanceId, 0L, "cambio-istruttore", jsonFormParameters, + serviceContext); _log.info("checkPresenzaIstruttore OK per controlloPratica = " + controlloPratica.getControlloPraticaId()); } else { @@ -766,15 +532,9 @@ public class SchedulerInvioDocumento implements MessageListener { + controlloPratica.getControlloPraticaId() + " - istruttore non calcolato - "); } } - } catch (Exception e) { - - _log.error("checkPresenzaIstruttore KO per controlloPratica = " - + controlloPratica.getControlloPraticaId() + " [" + e.getMessage() + " , " + e.getCause() - + "]"); - + _log.error("checkPresenzaIstruttore KO per controlloPratica = " + controlloPratica.getControlloPraticaId() + + " [" + e.getMessage() + " , " + e.getCause() + StringPool.CLOSE_BRACKET); } - } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java index b1403529..e5a29b82 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java @@ -11,11 +11,9 @@ import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; @@ -36,13 +34,11 @@ import com.liferay.portal.kernel.messaging.MessageListener; import com.liferay.portal.kernel.messaging.MessageListenerException; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.model.Company; import com.liferay.portal.model.User; import com.liferay.portal.security.auth.PrincipalThreadLocal; import com.liferay.portal.security.permission.PermissionChecker; import com.liferay.portal.security.permission.PermissionCheckerFactoryUtil; import com.liferay.portal.security.permission.PermissionThreadLocal; -import com.liferay.portal.service.CompanyLocalServiceUtil; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.UserLocalServiceUtil; @@ -59,293 +55,153 @@ public class SchedulerPratiche implements MessageListener { if (lock.tryLock()) { try { - - /* - * Fascicoli Senza progetto - */ - + // Fascicoli Senza progetto int count = IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List intPratiche = IntPraticaLocalServiceUtil.findFascicoliNotProgetto( - cursor, cursor + SIZE); - - for (IntPratica intPratica : intPratiche) { - - try { - - User user = UserLocalServiceUtil.getUser(intPratica.getUserId()); - PrincipalThreadLocal.setName(user.getUserId()); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil - .create(user); - PermissionThreadLocal.setPermissionChecker(permissionChecker); - - assegnaNumeroProgetto(intPratica); - - } catch (Exception e) { - _log.error("Error", e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List intPratiche = IntPraticaLocalServiceUtil.findFascicoliNotProgetto(cursor, cursor + + SIZE); + for (IntPratica intPratica : intPratiche) { + try { + User user = UserLocalServiceUtil.getUser(intPratica.getUserId()); + PrincipalThreadLocal.setName(user.getUserId()); + PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); + PermissionThreadLocal.setPermissionChecker(permissionChecker); + assegnaNumeroProgetto(intPratica); + } catch (Exception e) { + _log.error("Error", e); + } finally { + PermissionThreadLocal.setPermissionChecker(null); + PrincipalThreadLocal.setName(null); } } } - - /* - * Pratiche gestite ma senza protocollo - */ - + // Pratiche gestite ma senza protocollo count = DettPraticaLocalServiceUtil.countPraticheCompleteNotProtocollo(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List dettPratiche = DettPraticaLocalServiceUtil - .findPraticheCompleteNotProtocollo(cursor, cursor + SIZE); - - for (DettPratica dettPratica : dettPratiche) { - - try { - - User user = UserLocalServiceUtil.getUser(dettPratica.getUserId()); - PrincipalThreadLocal.setName(user.getUserId()); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil - .create(user); - PermissionThreadLocal.setPermissionChecker(permissionChecker); - - protocollazione(dettPratica.getCompanyId(), dettPratica.getGroupId(), - dettPratica); - - } catch (Exception e) { - _log.error("Error DettPraticaId=" + dettPratica.getDettPraticaId(), e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List dettPratiche = DettPraticaLocalServiceUtil.findPraticheCompleteNotProtocollo( + cursor, cursor + SIZE); + for (DettPratica dettPratica : dettPratiche) { + try { + User user = UserLocalServiceUtil.getUser(dettPratica.getUserId()); + PrincipalThreadLocal.setName(user.getUserId()); + PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); + PermissionThreadLocal.setPermissionChecker(permissionChecker); + protocollazione(dettPratica.getCompanyId(), dettPratica.getGroupId(), dettPratica); + } catch (Exception e) { + _log.error("Error DettPraticaId=" + dettPratica.getDettPraticaId(), e); + } finally { + PermissionThreadLocal.setPermissionChecker(null); + PrincipalThreadLocal.setName(null); } } } - - /* - * Fine Lavori complete ma senza protocollo - */ - + // Fine Lavori complete ma senza protocollo count = FineLavoriLocalServiceUtil.countFineLavoriCompleteNotProtocollo(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List fineLavoris = FineLavoriLocalServiceUtil - .findFineLavoriCompleteNotProtocollo(cursor, cursor + SIZE); - - for (FineLavori fineLavori : fineLavoris) { - - try { - - User user = UserLocalServiceUtil.getUser(fineLavori.getUserId()); - PrincipalThreadLocal.setName(user.getUserId()); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil - .create(user); - PermissionThreadLocal.setPermissionChecker(permissionChecker); - - protocollazione(fineLavori.getCompanyId(), fineLavori.getGroupId(), - fineLavori); - - } catch (Exception e) { - _log.error("Error fineLavoriId=" + fineLavori.getFineLavoriId(), e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List fineLavoris = FineLavoriLocalServiceUtil.findFineLavoriCompleteNotProtocollo( + cursor, cursor + SIZE); + for (FineLavori fineLavori : fineLavoris) { + try { + User user = UserLocalServiceUtil.getUser(fineLavori.getUserId()); + PrincipalThreadLocal.setName(user.getUserId()); + PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); + PermissionThreadLocal.setPermissionChecker(permissionChecker); + protocollazione(fineLavori.getCompanyId(), fineLavori.getGroupId(), fineLavori); + } catch (Exception e) { + _log.error("Error fineLavoriId=" + fineLavori.getFineLavoriId(), e); + } finally { + PermissionThreadLocal.setPermissionChecker(null); + PrincipalThreadLocal.setName(null); } } } - - /* - * Fine Lavori complete con protocollo non gestite - */ - + // Fine Lavori complete con protocollo non gestite count = FineLavoriLocalServiceUtil.countFineLavoriCompleteNotGestite(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List fineLavoris = FineLavoriLocalServiceUtil - .findFineLavoriCompleteNotGestite(cursor, cursor + SIZE); - - for (FineLavori fineLavori : fineLavoris) { - - try { - - User user = UserLocalServiceUtil.getUser(fineLavori.getUserId()); - PrincipalThreadLocal.setName(user.getUserId()); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil - .create(user); - PermissionThreadLocal.setPermissionChecker(permissionChecker); - creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(), - fineLavori.getUserId(), fineLavori.getIntPraticaId(), - fineLavori.getFineLavoriId(), FineLavori.class.getName()); - - fineLavori.setGestita(true); - FineLavoriLocalServiceUtil.updateFineLavori(fineLavori); - - } catch (Exception e) { - _log.error("Error", e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List fineLavoris = FineLavoriLocalServiceUtil.findFineLavoriCompleteNotGestite(cursor, + cursor + SIZE); + for (FineLavori fineLavori : fineLavoris) { + try { + User user = UserLocalServiceUtil.getUser(fineLavori.getUserId()); + PrincipalThreadLocal.setName(user.getUserId()); + PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); + PermissionThreadLocal.setPermissionChecker(permissionChecker); + creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(), + fineLavori.getUserId(), fineLavori.getIntPraticaId(), fineLavori.getFineLavoriId(), + FineLavori.class.getName()); + fineLavori.setGestita(true); + FineLavoriLocalServiceUtil.updateFineLavori(fineLavori); + } catch (Exception e) { + _log.error("Error", e); + } finally { + PermissionThreadLocal.setPermissionChecker(null); + PrincipalThreadLocal.setName(null); } } } - /* - * Collaudi complete ma senza protocollo - */ - + // Collaudi complete ma senza protocollo count = CollaudoLocalServiceUtil.countCollaudiCompletiNotProtocollo(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List collaudi = CollaudoLocalServiceUtil.findCollaudiCompletiNotProtocollo( - cursor, cursor + SIZE); - - for (Collaudo collaudo : collaudi) { - - try { - - User user = UserLocalServiceUtil.getUser(collaudo.getUserId()); - PrincipalThreadLocal.setName(user.getUserId()); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil - .create(user); - PermissionThreadLocal.setPermissionChecker(permissionChecker); - - protocollazione(collaudo.getCompanyId(), collaudo.getGroupId(), collaudo); - - } catch (Exception e) { - _log.error("Error collaudoId=" + collaudo.getCollaudoId(), e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List collaudi = CollaudoLocalServiceUtil.findCollaudiCompletiNotProtocollo(cursor, cursor + + SIZE); + for (Collaudo collaudo : collaudi) { + try { + User user = UserLocalServiceUtil.getUser(collaudo.getUserId()); + PrincipalThreadLocal.setName(user.getUserId()); + PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); + PermissionThreadLocal.setPermissionChecker(permissionChecker); + protocollazione(collaudo.getCompanyId(), collaudo.getGroupId(), collaudo); + } catch (Exception e) { + _log.error("Error collaudoId=" + collaudo.getCollaudoId(), e); + } finally { + PermissionThreadLocal.setPermissionChecker(null); + PrincipalThreadLocal.setName(null); } } } - /* - * Collaudi complete con protocollo non gestiti - */ - + // Collaudi complete con protocollo non gestiti count = CollaudoLocalServiceUtil.countCollaudiCompletiNotGestiti(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List collaudi = CollaudoLocalServiceUtil.findCollaudiCompletiNotGestiti( - cursor, cursor + SIZE); - - for (Collaudo collaudo : collaudi) { - - try { - - User user = UserLocalServiceUtil.getUser(collaudo.getUserId()); - PrincipalThreadLocal.setName(user.getUserId()); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil - .create(user); - PermissionThreadLocal.setPermissionChecker(permissionChecker); - creaAvvisoVidimazione(collaudo.getCompanyId(), collaudo.getGroupId(), - collaudo.getUserId(), collaudo.getIntPraticaId(), - collaudo.getCollaudoId(), Collaudo.class.getName()); - - collaudo.setGestita(true); - CollaudoLocalServiceUtil.updateCollaudo(collaudo); - - } catch (Exception e) { - _log.error("Error", e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List collaudi = CollaudoLocalServiceUtil.findCollaudiCompletiNotGestiti(cursor, cursor + + SIZE); + for (Collaudo collaudo : collaudi) { + try { + User user = UserLocalServiceUtil.getUser(collaudo.getUserId()); + PrincipalThreadLocal.setName(user.getUserId()); + PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); + PermissionThreadLocal.setPermissionChecker(permissionChecker); + creaAvvisoVidimazione(collaudo.getCompanyId(), collaudo.getGroupId(), collaudo.getUserId(), + collaudo.getIntPraticaId(), collaudo.getCollaudoId(), Collaudo.class.getName()); + collaudo.setGestita(true); + CollaudoLocalServiceUtil.updateCollaudo(collaudo); + } catch (Exception e) { + _log.error("Error", e); + } finally { + PermissionThreadLocal.setPermissionChecker(null); + PrincipalThreadLocal.setName(null); } } } - // generazioni documenti e avvio workflow count = DettPraticaLocalServiceUtil.countPraticheCompleteNotGestite(); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List dettPratiche = DettPraticaLocalServiceUtil - .findPraticheCompleteNotGestite(cursor, cursor + SIZE); - - for (DettPratica dettPratica : dettPratiche) { - - try { - - User user = UserLocalServiceUtil.getUser(dettPratica.getUserId()); - PrincipalThreadLocal.setName(user.getUserId()); - PermissionChecker permissionChecker = PermissionCheckerFactoryUtil - .create(user); - PermissionThreadLocal.setPermissionChecker(permissionChecker); - - gestionePratica(dettPratica); - - } catch (Exception e) { - _log.error("Error", e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } - } - } - } - - // versionamento - count = DettPraticaLocalServiceUtil.countPraticheCompletateNonversionate(); - - if (count > 0) { - - for (Company company : CompanyLocalServiceUtil.getCompanies()) { - String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString( - company.getCompanyId(), ConfigurazioneConstants.SCHEDULER_VERSIONING); - if (Boolean.parseBoolean(condition)) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List dettPratiche = DettPraticaLocalServiceUtil - .findPraticheCompletateNonVersionate(cursor, cursor + SIZE); - - for (DettPratica dettPratica : dettPratiche) { - - try { - - DettPraticaServiceUtil.sendToVersioning( - dettPratica.getDettPraticaId(), dettPratica.getCompanyId()); - - } catch (Exception e) { - _log.error("Error", e); - } finally { - PermissionThreadLocal.setPermissionChecker(null); - PrincipalThreadLocal.setName(null); - } - } - } - + for (int cursor = 0; cursor <= count; cursor += SIZE) { + List dettPratiche = DettPraticaLocalServiceUtil.findPraticheCompleteNotGestite(cursor, + cursor + SIZE); + for (DettPratica dettPratica : dettPratiche) { + try { + User user = UserLocalServiceUtil.getUser(dettPratica.getUserId()); + PrincipalThreadLocal.setName(user.getUserId()); + PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user); + PermissionThreadLocal.setPermissionChecker(permissionChecker); + gestionePratica(dettPratica); + } catch (Exception e) { + _log.error("Error", e); + } finally { + PermissionThreadLocal.setPermissionChecker(null); + PrincipalThreadLocal.setName(null); } } - } - } catch (SystemException e) { _log.error("Error", e); } finally { @@ -354,8 +210,9 @@ public class SchedulerPratiche implements MessageListener { } } - private void creaAvvisoVidimazione(long companyId, long groupId, long userId, long intPraticaId, - long classPk, String className) throws SystemException, PortalException { + private void creaAvvisoVidimazione(long companyId, long groupId, long userId, long intPraticaId, long classPk, + String className) throws SystemException, PortalException { + String descLong = StringPool.BLANK; Date dtAvviso = new Date(); String tipoAvviso = AvvisoUtil.TIPO_AVVISO_DIRETTO; @@ -371,184 +228,139 @@ public class SchedulerPratiche implements MessageListener { propertiesTemplateType = StatoPraticaConstants.VARIAZIONE_SOGGETTI; } } - String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get( - propertiesTemplateType); - long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, - propertiesTemplate); - - long controlloPraticaId = 0l; + String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(propertiesTemplateType); + long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, propertiesTemplate); + long controlloPraticaId = 0L; ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); serviceContext.setScopeGroupId(groupId); serviceContext.setUserId(userId); - AvvisoLocalServiceUtil.addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, className, controlloPraticaId, serviceContext); } private IntPratica assegnaNumeroProgetto(IntPratica intPratica) throws PortalException, SystemException { - // in caso di errore successivo alla protocollazione salto questa - // operazione - if (Validator.isNull(intPratica.getNumeroProgetto())) { + // in caso di errore successivo alla protocollazione salto questa operazione + if (Validator.isNull(intPratica.getNumeroProgetto())) { intPratica = IntPraticaLocalServiceUtil.addNumeroProgetto(intPratica.getIntPraticaId()); } return intPratica; } - public void gestionePratica(DettPratica dettPratica) throws Exception { + private void gestionePratica(DettPratica dettPratica) throws Exception { ServiceContext serviceContext = getServiceContext(dettPratica); - // protocollazione da servizio remoto protocollazione(serviceContext.getCompanyId(), serviceContext.getScopeGroupId(), dettPratica); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - intPratica = assegnaNumeroProgetto(intPratica); - String tipoIntegrazione = dettPratica.getTipoIntegrazione(); - - // 1o Avviso di ricezione corretta o in errore della pratica + // 1º Avviso di ricezione corretta o in errore della pratica int count = AvvisoLocalServiceUtil.countAvvisoByClassPk_ClassName(dettPratica.getDettPraticaId(), DettPratica.class.getName()); // in caso di errore non genere un nuovo avviso if (count == 0) { // tutte le integrazioni eccetto annulla valida - if (Validator.isNotNull(tipoIntegrazione)) { - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(tipoIntegrazione)) { // avviso pilotato per integrazioni String stato = StatoPraticaConstants.INTEGRAZIONE_ACCETTATA; AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato, dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, - AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0l); + AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0L); } else if (TipoIntegrazioneUtil.VARIANTE.equals(tipoIntegrazione)) { // avviso pilotato per varianti - String stato = null; - if (dettPratica.getVarianteSostanziale()) { - stato = StatoPraticaConstants.VIDIMATA; - } else { - stato = intPratica.getStatoPratica(); - } - AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), stato, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, - AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0l); + AvvisoLocalServiceUtil.createStandardAvvisoPratica(dettPratica.getIntPraticaId(), + StatoPraticaConstants.VIDIMATA, dettPratica.getDettPraticaId(), + DettPratica.class.getName(), serviceContext, AvvisoUtil.TIPO_AVVISO_DIRETTO, + StringPool.BLANK, 0L); } else if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione)) { - String propertiesTemplateType = StatoPraticaConstants.VARIAZIONE_SOGGETTI; String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get( propertiesTemplateType); long fileEntryIdTemplate = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( serviceContext.getCompanyId(), propertiesTemplate); - - AvvisoLocalServiceUtil.addAvviso(dettPratica.getIntPraticaId(), StringPool.BLANK, - new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, - fileEntryIdTemplate, dettPratica.getDettPraticaId(), DettPratica.class.getName(), - 0l, serviceContext); + AvvisoLocalServiceUtil.addAvviso(dettPratica.getIntPraticaId(), StringPool.BLANK, new Date(), + AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.VIDIMATA, fileEntryIdTemplate, + dettPratica.getDettPraticaId(), DettPratica.class.getName(), 0L, serviceContext); } - } else { // avviso standard da stato pratica - AvvisoLocalServiceUtil.createStandardAvvisoPratica(intPratica, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, - AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, 0l); + AvvisoLocalServiceUtil.createStandardAvvisoPratica(intPratica, dettPratica.getDettPraticaId(), + DettPratica.class.getName(), serviceContext, AvvisoUtil.TIPO_AVVISO_DIRETTO, StringPool.BLANK, + 0L); } } - // Avvio Workflow - if (!dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO) - && !(dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE) && !dettPratica - .getVarianteSostanziale())) { - - ControlloPratica cp = avvioWorkflow(dettPratica, dettPratica.getUserId(), serviceContext); - if (cp != null) - ControlloPraticaLocalServiceUtil.gestioneWFVarianti(cp); + if (!dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)) { + avvioWorkflow(dettPratica, dettPratica.getUserId(), serviceContext); } else { - _log.info("Workflow non avviato"); + _log.info("Workflow non avviato per pratica " + intPratica.getNumeroProgetto() + " (id " + + intPratica.getIntPraticaId() + ")"); } - - dettPratica = DettPraticaLocalServiceUtil.updateDettPraticaGestita(dettPratica.getDettPraticaId(), - true); - DettPraticaLocalServiceUtil.updateAsset(dettPratica, null, true); + dettPratica = DettPraticaLocalServiceUtil.updateDettPraticaGestita(dettPratica.getDettPraticaId(), true); } - private DettPratica protocollazione(long companyId, long groupId, DettPratica dettPratica) - throws Exception { + private DettPratica protocollazione(long companyId, long groupId, DettPratica dettPratica) throws Exception { - // in caso di errore successivo alla protocollazione salto questa - // operazione + // in caso di errore successivo alla protocollazione salto questa operazione if (Validator.isNull(dettPratica.getProtocollo())) { - String protocollo = null; - - String title = dettPratica.getDettPraticaId() + "_" + System.currentTimeMillis(); + String title = dettPratica.getDettPraticaId() + StringPool.UNDERLINE + System.currentTimeMillis(); protocollo = ProtocollazioneUtil.protocollaArrivo(dettPratica, title); if (Validator.isNull(protocollo)) { throw new Exception("errore nella protocollazione pratica"); } - - dettPratica = DettPraticaLocalServiceUtil.updateDettPraticaProtocollo( - dettPratica.getDettPraticaId(), protocollo); + dettPratica = DettPraticaLocalServiceUtil.updateDettPraticaProtocollo(dettPratica.getDettPraticaId(), + protocollo); } - return dettPratica; } private FineLavori protocollazione(long companyId, long groupId, FineLavori fineLavori) throws Exception { - // in caso di errore successivo alla protocollazione salto questa - // operazione + // in caso di errore successivo alla protocollazione salto questa operazione if (Validator.isNull(fineLavori.getProtocollo())) { - String protocollo = null; - - String title = fineLavori.getFineLavoriId() + "_" + System.currentTimeMillis(); + String title = fineLavori.getFineLavoriId() + StringPool.UNDERLINE + System.currentTimeMillis(); protocollo = ProtocollazioneUtil.protocollaArrivo(fineLavori, title); if (Validator.isNull(protocollo)) { throw new Exception("errore nella protocollazione fine lavori"); } - - fineLavori = FineLavoriLocalServiceUtil.updateFineLavoriProtocollo(fineLavori.getFineLavoriId(), - protocollo); + fineLavori = FineLavoriLocalServiceUtil + .updateFineLavoriProtocollo(fineLavori.getFineLavoriId(), protocollo); } - return fineLavori; } private Collaudo protocollazione(long companyId, long groupId, Collaudo collaudo) throws Exception { - // in caso di errore successivo alla protocollazione salto questa - // operazione + // in caso di errore successivo alla protocollazione salto questa operazione if (Validator.isNull(collaudo.getProtocollo())) { - String protocollo = null; - - String title = collaudo.getCollaudoId() + "_" + System.currentTimeMillis(); + String title = collaudo.getCollaudoId() + StringPool.UNDERLINE + System.currentTimeMillis(); protocollo = ProtocollazioneUtil.protocollaArrivo(collaudo, title); if (Validator.isNull(protocollo)) { throw new Exception("errore nella protocollazione collaudo"); } - - collaudo = CollaudoLocalServiceUtil - .updateCollaudoProtocollo(collaudo.getCollaudoId(), protocollo); + collaudo = CollaudoLocalServiceUtil.updateCollaudoProtocollo(collaudo.getCollaudoId(), protocollo); } - return collaudo; } - private ControlloPratica avvioWorkflow(DettPratica dettPratica, long userId, ServiceContext serviceContext) + public static ControlloPratica avvioWorkflow(DettPratica dettPratica, long userId, ServiceContext serviceContext) throws Exception { + if (dettPratica.isCompleta() && !dettPratica.isGestita()) { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); if (WorkflowUtil.needToStartWorkflow(dettPratica)) { boolean updateFlagControlloObbligatorio = true; // ADT: bug id=7 gestione workflow - ControlloPratica cp = ControlloPraticaLocalServiceUtil.addControlloPratica( - territorio.getGroupId(), userId, intPratica.getIntPraticaId(), - dettPratica.getDettPraticaId(), updateFlagControlloObbligatorio, serviceContext); + ControlloPratica cp = ControlloPraticaLocalServiceUtil.addControlloPratica(territorio.getGroupId(), + userId, intPratica.getIntPraticaId(), dettPratica.getDettPraticaId(), + updateFlagControlloObbligatorio, serviceContext); return cp; } } @@ -556,11 +368,11 @@ public class SchedulerPratiche implements MessageListener { } private ServiceContext getServiceContext(DettPratica dettPratica) { + ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(dettPratica.getCompanyId()); serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setUserId(dettPratica.getUserId()); return serviceContext; } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/VerificaPagamentiScheduler.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/VerificaPagamentiScheduler.java deleted file mode 100644 index cc22db43..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/VerificaPagamentiScheduler.java +++ /dev/null @@ -1,91 +0,0 @@ -package it.tref.liferay.portos.bo.scheduler; - -import it.tref.liferay.portos.bo.model.Pagamento; -import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; -import it.tref.liferay.portos.bo.util.PagamentiCommonUtil; -import it.tref.liferay.portos.bo.util.PagamentiUtil; - -import java.io.IOException; -import java.util.Calendar; -import java.util.Date; -import java.util.List; -import java.util.concurrent.locks.Lock; -import java.util.concurrent.locks.ReentrantLock; - -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.messaging.Message; -import com.liferay.portal.kernel.messaging.MessageListener; -import com.liferay.portal.kernel.messaging.MessageListenerException; -import com.liferay.portal.model.Company; -import com.liferay.portal.service.CompanyLocalServiceUtil; - -public class VerificaPagamentiScheduler implements MessageListener { - - private static final Log _log = LogFactoryUtil.getLog(VerificaPagamentiScheduler.class); - - private static final Lock lock = new ReentrantLock(); - - private final int SIZE = 10; - - // parametro per recupero dei pagamenti IRIS avviati dopo XX minuti - private final int DELAY_IN_MINUTE = 5; - - @Override - public void receive(Message message) throws MessageListenerException { - - if (lock.tryLock()) { - - try { - for (Company company : CompanyLocalServiceUtil.getCompanies()) { - boolean irisDisabled = !PagamentiCommonUtil.irisIsEnable(company.getCompanyId()); - - if (!irisDisabled) { - - Calendar calendar = Calendar.getInstance(); - calendar.add(Calendar.MINUTE, -DELAY_IN_MINUTE); - calendar.set(Calendar.SECOND, 0); - calendar.set(Calendar.MILLISECOND, 0); - - Date date = calendar.getTime(); - - int count = PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate( - PagamentoConstants.MEZZO_IRIS, PagamentoConstants.UTILIZZATA_IN_CORSO, date); - - if (count > 0) { - - for (int cursor = 0; cursor <= count; cursor += SIZE) { - - List pagamenti = PagamentoLocalServiceUtil - .findByMezzo_Utilizzata_CreateDate(PagamentoConstants.MEZZO_IRIS, - PagamentoConstants.UTILIZZATA_IN_CORSO, date, cursor, cursor - + SIZE); - - for (Pagamento pagamento : pagamenti) { - process(pagamento); - } - } - } - } - } - } catch (SystemException e) { - _log.error("Errore", e); - } finally { - lock.unlock(); - } - - } - } - - private void process(Pagamento pagamento) { - try { - PagamentiUtil.verificaPagamentoIRIS(pagamento); - } catch (IOException | PortalException | SystemException e) { - _log.error("Errore", e); - } - - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java index 49b3e834..fdfb2fa2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1161,63 +1157,6 @@ public abstract class AllegatoManualeLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1293,62 +1232,6 @@ public abstract class AllegatoManualeLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1576,81 +1459,6 @@ public abstract class AllegatoManualeLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2138,12 +1946,6 @@ public abstract class AllegatoManualeLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2152,12 +1954,6 @@ public abstract class AllegatoManualeLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2182,14 +1978,6 @@ public abstract class AllegatoManualeLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java index 83e547a7..161de966 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeLocalServiceClpInvoker.java @@ -122,60 +122,60 @@ public class AllegatoManualeLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "findByIntPratica"; + _methodName178 = "findByIntPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes178 = new String[] { "long" }; - _methodName199 = "findByIntPratica"; + _methodName179 = "findByIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName200 = "countByIntPratica"; + _methodName180 = "countByIntPratica"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName201 = "findByDettPratica"; + _methodName181 = "findByDettPratica"; - _methodParameterTypes201 = new String[] { "long" }; + _methodParameterTypes181 = new String[] { "long" }; - _methodName202 = "findByDettPratica"; + _methodName182 = "findByDettPratica"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "countByDettPratica"; + _methodName183 = "countByDettPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName204 = "addAllegatoManuale"; + _methodName184 = "addAllegatoManuale"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName205 = "deleteAllegatoManuale"; + _methodName185 = "deleteAllegatoManuale"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName206 = "deleteAllegatoManuale"; + _methodName186 = "deleteAllegatoManuale"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -291,56 +291,56 @@ public class AllegatoManualeLocalServiceClpInvoker { return AllegatoManualeLocalServiceUtil.updateAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return AllegatoManualeLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { AllegatoManualeLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return AllegatoManualeLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return AllegatoManualeLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return AllegatoManualeLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return AllegatoManualeLocalServiceUtil.addAllegatoManuale(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -349,13 +349,13 @@ public class AllegatoManualeLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return AllegatoManualeLocalServiceUtil.deleteAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AllegatoManualeLocalServiceUtil.deleteAllegatoManuale(((Long)arguments[0]).longValue()); } @@ -402,26 +402,26 @@ public class AllegatoManualeLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java index 8de7acfe..6ed1c724 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class AllegatoManualeServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java index dff507ed..cc435627 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AllegatoManualeServiceClpInvoker.java @@ -24,114 +24,114 @@ import java.util.Arrays; */ public class AllegatoManualeServiceClpInvoker { public AllegatoManualeServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "findByIntPratica"; + _methodName158 = "findByIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes158 = new String[] { "long" }; - _methodName179 = "findByIntPratica"; + _methodName159 = "findByIntPratica"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes159 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByIntPratica"; + _methodName160 = "countByIntPratica"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes160 = new String[] { "long" }; - _methodName181 = "findByDettPratica"; + _methodName161 = "findByDettPratica"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes161 = new String[] { "long" }; - _methodName182 = "findByDettPratica"; + _methodName162 = "findByDettPratica"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes162 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByDettPratica"; + _methodName163 = "countByDettPratica"; - _methodParameterTypes183 = new String[] { "long" }; + _methodParameterTypes163 = new String[] { "long" }; - _methodName184 = "addAllegatoManuale"; + _methodName164 = "addAllegatoManuale"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes164 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName185 = "deleteAllegatoManuale"; + _methodName165 = "deleteAllegatoManuale"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes165 = new String[] { "it.tref.liferay.portos.bo.model.AllegatoManuale" }; - _methodName186 = "deleteAllegatoManuale"; + _methodName166 = "deleteAllegatoManuale"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return AllegatoManualeServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { AllegatoManualeServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return AllegatoManualeServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return AllegatoManualeServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return AllegatoManualeServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return AllegatoManualeServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return AllegatoManualeServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return AllegatoManualeServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return AllegatoManualeServiceUtil.addAllegatoManuale(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -140,39 +140,39 @@ public class AllegatoManualeServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return AllegatoManualeServiceUtil.deleteAllegatoManuale((it.tref.liferay.portos.bo.model.AllegatoManuale)arguments[0]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return AllegatoManualeServiceUtil.deleteAllegatoManuale(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java index 77722053..7429c47f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1160,63 +1156,6 @@ public abstract class AsseverazioneLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1292,62 +1231,6 @@ public abstract class AsseverazioneLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1575,81 +1458,6 @@ public abstract class AsseverazioneLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2137,12 +1945,6 @@ public abstract class AsseverazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2151,12 +1953,6 @@ public abstract class AsseverazioneLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2181,14 +1977,6 @@ public abstract class AsseverazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java index 8cd8befc..0814c86b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java @@ -122,251 +122,251 @@ public class AsseverazioneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Asseverazione" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "anteprimaAsseverazione"; + _methodName178 = "anteprimaAsseverazione"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "java.lang.String", "com.liferay.portal.model.User", "it.tref.liferay.portos.bo.model.DettPratica", "java.lang.String" }; - _methodName199 = "testoAsseverazione"; + _methodName179 = "testoAsseverazione"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "java.lang.String", "com.liferay.portal.model.User", "long", "java.lang.String" }; - _methodName200 = "testoAsseverazione"; + _methodName180 = "testoAsseverazione"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes180 = new String[] { "java.lang.String", "java.lang.String", "long", "java.lang.String" }; - _methodName201 = "testoAsseverazione"; + _methodName181 = "testoAsseverazione"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "java.lang.String", "java.lang.String", "it.tref.liferay.portos.bo.model.DettPratica", "java.lang.String" }; - _methodName204 = "addAsseverazione"; + _methodName184 = "addAsseverazione"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName205 = "richiediAsseverazioni"; + _methodName185 = "richiediAsseverazioni"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName206 = "resetAsseverazione"; + _methodName186 = "resetAsseverazione"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName207 = "annullaAsseverazioni"; + _methodName187 = "annullaAsseverazioni"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes187 = new String[] { "long" }; - _methodName208 = "cambioStatoAsseverazione"; + _methodName188 = "cambioStatoAsseverazione"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "java.lang.String" }; - _methodName209 = "generateReportAsseverazione"; + _methodName189 = "generateReportAsseverazione"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes189 = new String[] { "it.tref.liferay.portos.bo.model.Asseverazione", "long" }; - _methodName210 = "cambioStatoAsseverazioni"; + _methodName190 = "cambioStatoAsseverazioni"; - _methodParameterTypes210 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes190 = new String[] { "long", "java.lang.String" }; - _methodName211 = "concludiAsseverazioniExpired"; + _methodName191 = "concludiAsseverazioniExpired"; - _methodParameterTypes211 = new String[] { "long" }; + _methodParameterTypes191 = new String[] { "long" }; - _methodName212 = "rimuoviFileAsseverazione"; + _methodName192 = "rimuoviFileAsseverazione"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName213 = "deleteAsseverazione"; + _methodName193 = "deleteAsseverazione"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes193 = new String[] { "it.tref.liferay.portos.bo.model.Asseverazione" }; - _methodName214 = "deleteAsseverazione"; + _methodName194 = "deleteAsseverazione"; - _methodParameterTypes214 = new String[] { "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName215 = "allegaFileAsseverazione"; + _methodName195 = "allegaFileAsseverazione"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes195 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName216 = "findByIntPratica"; + _methodName196 = "findByIntPratica"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes196 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName217 = "findByDettPratica"; + _methodName197 = "findByDettPratica"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes197 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName218 = "countByIntPratica"; + _methodName198 = "countByIntPratica"; - _methodParameterTypes218 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName219 = "countByDettPratica"; + _methodName199 = "countByDettPratica"; - _methodParameterTypes219 = new String[] { "long" }; + _methodParameterTypes199 = new String[] { "long" }; - _methodName220 = "findByIntPratica_CodiceFiscale"; + _methodName200 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes200 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName221 = "countByIntPratica_CodiceFiscale"; + _methodName201 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes221 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes201 = new String[] { "long", "java.lang.String" }; - _methodName222 = "findByCodiceFiscale_InEsito"; + _methodName202 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes202 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName223 = "countByCodiceFiscale_InEsito"; + _methodName203 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes203 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName224 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName204 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes204 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName225 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName205 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes205 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName226 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName206 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName227 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName207 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName228 = "findByIntPratica_InEsito"; + _methodName208 = "findByIntPratica_InEsito"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes208 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName229 = "countByIntPratica_InEsito"; + _methodName209 = "countByIntPratica_InEsito"; - _methodParameterTypes229 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes209 = new String[] { "long", "java.lang.String[][]" }; - _methodName230 = "findByDettPratica_InEsito"; + _methodName210 = "findByDettPratica_InEsito"; - _methodParameterTypes230 = new String[] { + _methodParameterTypes210 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName231 = "countByDettPratica_InEsito"; + _methodName211 = "countByDettPratica_InEsito"; - _methodParameterTypes231 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes211 = new String[] { "long", "java.lang.String[][]" }; - _methodName232 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName212 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes212 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName233 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName213 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes213 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName234 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName214 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName235 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName215 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName236 = "findByIntPratica_Tipologia_InEsito"; + _methodName216 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes216 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName237 = "findByDettPratica_Tipologia_InEsito"; + _methodName217 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes237 = new String[] { + _methodParameterTypes217 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName238 = "countByIntPratica_Tipologia_InEsito"; + _methodName218 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes238 = new String[] { + _methodParameterTypes218 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName239 = "countByDettPratica_Tipologia_InEsito"; + _methodName219 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes219 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; } @@ -484,50 +484,50 @@ public class AsseverazioneLocalServiceClpInvoker { return AsseverazioneLocalServiceUtil.updateAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return AsseverazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { AsseverazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AsseverazioneLocalServiceUtil.anteprimaAsseverazione((java.lang.String)arguments[0], (com.liferay.portal.model.User)arguments[1], (it.tref.liferay.portos.bo.model.DettPratica)arguments[2], (java.lang.String)arguments[3]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return AsseverazioneLocalServiceUtil.testoAsseverazione((java.lang.String)arguments[0], (com.liferay.portal.model.User)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return AsseverazioneLocalServiceUtil.testoAsseverazione((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return AsseverazioneLocalServiceUtil.testoAsseverazione((java.lang.String)arguments[0], (java.lang.String)arguments[1], (it.tref.liferay.portos.bo.model.DettPratica)arguments[2], (java.lang.String)arguments[3]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return AsseverazioneLocalServiceUtil.addAsseverazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -535,109 +535,109 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { AsseverazioneLocalServiceUtil.richiediAsseverazioni(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); return null; } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { AsseverazioneLocalServiceUtil.resetAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { AsseverazioneLocalServiceUtil.annullaAsseverazioni(((Long)arguments[0]).longValue()); return null; } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { AsseverazioneLocalServiceUtil.cambioStatoAsseverazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); return null; } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return AsseverazioneLocalServiceUtil.generateReportAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { AsseverazioneLocalServiceUtil.cambioStatoAsseverazioni(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { AsseverazioneLocalServiceUtil.concludiAsseverazioniExpired(((Long)arguments[0]).longValue()); return null; } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { AsseverazioneLocalServiceUtil.rimuoviFileAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return AsseverazioneLocalServiceUtil.deleteAsseverazione((it.tref.liferay.portos.bo.model.Asseverazione)arguments[0]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return AsseverazioneLocalServiceUtil.deleteAsseverazione(((Long)arguments[0]).longValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return AsseverazioneLocalServiceUtil.allegaFileAsseverazione(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -645,14 +645,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -660,14 +660,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -676,8 +676,8 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -686,20 +686,20 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -707,14 +707,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -722,14 +722,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -738,14 +738,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -754,15 +754,15 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -771,8 +771,8 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -781,14 +781,14 @@ public class AsseverazioneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return AsseverazioneLocalServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -836,10 +836,46 @@ public class AsseverazioneLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; @@ -848,6 +884,10 @@ public class AsseverazioneLocalServiceClpInvoker { private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; + private String _methodName202; + private String[] _methodParameterTypes202; + private String _methodName203; + private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; private String _methodName205; @@ -880,44 +920,4 @@ public class AsseverazioneLocalServiceClpInvoker { private String[] _methodParameterTypes218; private String _methodName219; private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName221; - private String[] _methodParameterTypes221; - private String _methodName222; - private String[] _methodParameterTypes222; - private String _methodName223; - private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; - private String _methodName226; - private String[] _methodParameterTypes226; - private String _methodName227; - private String[] _methodParameterTypes227; - private String _methodName228; - private String[] _methodParameterTypes228; - private String _methodName229; - private String[] _methodParameterTypes229; - private String _methodName230; - private String[] _methodParameterTypes230; - private String _methodName231; - private String[] _methodParameterTypes231; - private String _methodName232; - private String[] _methodParameterTypes232; - private String _methodName233; - private String[] _methodParameterTypes233; - private String _methodName234; - private String[] _methodParameterTypes234; - private String _methodName235; - private String[] _methodParameterTypes235; - private String _methodName236; - private String[] _methodParameterTypes236; - private String _methodName237; - private String[] _methodParameterTypes237; - private String _methodName238; - private String[] _methodParameterTypes238; - private String _methodName239; - private String[] _methodParameterTypes239; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java index 96f10dfc..56bc091e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class AsseverazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java index ec139b3c..2b83488b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java @@ -24,291 +24,291 @@ import java.util.Arrays; */ public class AsseverazioneServiceClpInvoker { public AsseverazioneServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "cambioStatoAsseverazione"; + _methodName158 = "cambioStatoAsseverazione"; - _methodParameterTypes178 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes158 = new String[] { "long", "java.lang.String" }; - _methodName179 = "cambioStatoAsseverazioni"; + _methodName159 = "cambioStatoAsseverazioni"; - _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes159 = new String[] { "long", "java.lang.String" }; - _methodName180 = "richiediAsseverazioni"; + _methodName160 = "richiediAsseverazioni"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes160 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName181 = "resetAsseverazione"; + _methodName161 = "resetAsseverazione"; - _methodParameterTypes181 = new String[] { "long", "long" }; + _methodParameterTypes161 = new String[] { "long", "long" }; - _methodName182 = "annullaAsseverazioni"; + _methodName162 = "annullaAsseverazioni"; - _methodParameterTypes182 = new String[] { "long" }; + _methodParameterTypes162 = new String[] { "long" }; - _methodName183 = "rimuoviFileAsseverazione"; + _methodName163 = "rimuoviFileAsseverazione"; - _methodParameterTypes183 = new String[] { "long" }; + _methodParameterTypes163 = new String[] { "long" }; - _methodName184 = "allegaFileAsseverazione"; + _methodName164 = "allegaFileAsseverazione"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes164 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName185 = "findByIntPratica"; + _methodName165 = "findByIntPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes165 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "findByDettPratica"; + _methodName166 = "findByDettPratica"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes166 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName187 = "countByIntPratica"; + _methodName167 = "countByIntPratica"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes167 = new String[] { "long" }; - _methodName188 = "countByDettPratica"; + _methodName168 = "countByDettPratica"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes168 = new String[] { "long" }; - _methodName189 = "findByIntPratica_CodiceFiscale"; + _methodName169 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes169 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName190 = "countByIntPratica_CodiceFiscale"; + _methodName170 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes190 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes170 = new String[] { "long", "java.lang.String" }; - _methodName191 = "findByCodiceFiscale_InEsito"; + _methodName171 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes171 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName192 = "countByCodiceFiscale_InEsito"; + _methodName172 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes172 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName193 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName173 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes173 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName194 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName174 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes174 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName195 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName175 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes175 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName196 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName176 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes176 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName197 = "findByIntPratica_InEsito"; + _methodName177 = "findByIntPratica_InEsito"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes177 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName198 = "countByIntPratica_InEsito"; + _methodName178 = "countByIntPratica_InEsito"; - _methodParameterTypes198 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes178 = new String[] { "long", "java.lang.String[][]" }; - _methodName199 = "findByDettPratica_InEsito"; + _methodName179 = "findByDettPratica_InEsito"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName200 = "countByDettPratica_InEsito"; + _methodName180 = "countByDettPratica_InEsito"; - _methodParameterTypes200 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes180 = new String[] { "long", "java.lang.String[][]" }; - _methodName201 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName181 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName202 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName182 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName203 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName183 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName184 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName205 = "findByIntPratica_Tipologia_InEsito"; + _methodName185 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "findByDettPratica_Tipologia_InEsito"; + _methodName186 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes186 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName207 = "countByIntPratica_Tipologia_InEsito"; + _methodName187 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName208 = "countByDettPratica_Tipologia_InEsito"; + _methodName188 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes188 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return AsseverazioneServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { AsseverazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { AsseverazioneServiceUtil.cambioStatoAsseverazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { AsseverazioneServiceUtil.cambioStatoAsseverazioni(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { AsseverazioneServiceUtil.richiediAsseverazioni(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); return null; } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { AsseverazioneServiceUtil.resetAsseverazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { AsseverazioneServiceUtil.annullaAsseverazioni(((Long)arguments[0]).longValue()); return null; } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { AsseverazioneServiceUtil.rimuoviFileAsseverazione(((Long)arguments[0]).longValue()); return null; } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return AsseverazioneServiceUtil.allegaFileAsseverazione(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -316,14 +316,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return AsseverazioneServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -331,14 +331,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return AsseverazioneServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -347,8 +347,8 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -357,20 +357,20 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -378,14 +378,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -393,14 +393,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return AsseverazioneServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -409,14 +409,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return AsseverazioneServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -425,15 +425,15 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return AsseverazioneServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -442,8 +442,8 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AsseverazioneServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -452,14 +452,14 @@ public class AsseverazioneServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return AsseverazioneServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return AsseverazioneServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -467,10 +467,50 @@ public class AsseverazioneServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; private String _methodName178; private String[] _methodParameterTypes178; private String _methodName179; @@ -493,44 +533,4 @@ public class AsseverazioneServiceClpInvoker { private String[] _methodParameterTypes187; private String _methodName188; private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java index 610ed7ec..a3a65d9d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1152,63 +1148,6 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1284,62 +1223,6 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1567,81 +1450,6 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2129,12 +1937,6 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2143,12 +1945,6 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2173,14 +1969,6 @@ public abstract class AvvisoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java index d0ff78f3..9f93fb12 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoLocalServiceClpInvoker.java @@ -122,455 +122,443 @@ public class AvvisoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "createStandardAvvisoPratica"; + _methodName178 = "createStandardAvvisoPratica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "long" }; - _methodName199 = "createStandardAvvisoPratica"; + _methodName179 = "createStandardAvvisoPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "java.lang.String", "long" }; - _methodName200 = "createStandardAvvisoPratica"; + _methodName180 = "createStandardAvvisoPratica"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "long" }; - _methodName201 = "createStandardAvvisoPratica"; + _methodName181 = "createStandardAvvisoPratica"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext", "java.lang.String", "java.lang.String", "long" }; - _methodName202 = "addAvviso"; + _methodName182 = "addAvviso"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName203 = "addAvviso"; + _methodName183 = "addAvviso"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName204 = "addAvviso"; + _methodName184 = "addAvviso"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", "java.lang.String", "java.lang.Long", "long", "java.lang.String", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName205 = "addAvvisoForImport"; + _methodName185 = "addAvvisoForImport"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "long", "long", "java.lang.String", - "java.lang.String", "long", "java.lang.String", "long", "long", + "java.lang.String", "long", "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName206 = "addAvviso"; + _methodName186 = "addAvviso"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes186 = new String[] { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName207 = "search"; + _methodName187 = "search"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes187 = new String[] { "long[][]", "java.lang.Long", "java.lang.String", "int", "int" }; - _methodName208 = "countSearch"; + _methodName188 = "countSearch"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes188 = new String[] { "long[][]", "java.lang.Long", "java.lang.String" }; - _methodName210 = "getAvvisiFirmatiByCF"; + _methodName190 = "getAvvisiFirmatiByCF"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes190 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName211 = "countAvvisiFirmatiByCF"; + _methodName191 = "countAvvisiFirmatiByCF"; - _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes191 = new String[] { "long", "java.lang.String" }; - _methodName213 = "getAvvisiDaFirmarePrimaFirmaByCF"; + _methodName193 = "getAvvisiDaFirmarePrimaFirmaByCF"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName214 = "countAvvisiDaFirmarePrimaFirmaByCF"; + _methodName194 = "countAvvisiDaFirmarePrimaFirmaByCF"; - _methodParameterTypes214 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; - _methodName215 = "deleteAvviso"; + _methodName195 = "deleteAvviso"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes195 = new String[] { "it.tref.liferay.portos.bo.model.Avviso" }; - _methodName216 = "deleteAvviso"; + _methodName196 = "deleteAvviso"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; - _methodName218 = "getAvvisiDaFirmarePrimaFirmaByNotCF"; + _methodName198 = "getAvvisiDaFirmarePrimaFirmaByNotCF"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes198 = new String[] { "long", "long[][]", "java.lang.String", "int", "int" }; - _methodName219 = "countAvvisiDaFirmarePrimaFirmaByNotCF"; + _methodName199 = "countAvvisiDaFirmarePrimaFirmaByNotCF"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes199 = new String[] { "long", "long[][]", "java.lang.String" }; - _methodName221 = "getAvvisiDaFirmarePrimaFirma"; - - _methodParameterTypes221 = new String[] { "long", "long[][]", "int", "int" }; + _methodName201 = "getAvvisiDaFirmarePrimaFirma"; - _methodName222 = "countAvvisiDaFirmarePrimaFirma"; + _methodParameterTypes201 = new String[] { "long", "long[][]", "int", "int" }; - _methodParameterTypes222 = new String[] { "long", "long[][]" }; + _methodName202 = "countAvvisiDaFirmarePrimaFirma"; - _methodName224 = "countAvvisiGenerazioneDocumento"; + _methodParameterTypes202 = new String[] { "long", "long[][]" }; - _methodParameterTypes224 = new String[] { }; + _methodName204 = "countAvvisiGenerazioneDocumento"; - _methodName225 = "getAvvisiGenerazioneDocumento"; + _methodParameterTypes204 = new String[] { }; - _methodParameterTypes225 = new String[] { "int", "int" }; + _methodName205 = "getAvvisiGenerazioneDocumento"; - _methodName226 = "dynamicQueryAvvisiGenerazioneDocumento"; + _methodParameterTypes205 = new String[] { "int", "int" }; - _methodParameterTypes226 = new String[] { }; + _methodName206 = "dynamicQueryAvvisiGenerazioneDocumento"; - _methodName227 = "countAvvisiFirmaDocumento"; + _methodParameterTypes206 = new String[] { }; - _methodParameterTypes227 = new String[] { }; + _methodName207 = "countAvvisiFirmaDocumento"; - _methodName228 = "getAvvisiFirmaDocumento"; + _methodParameterTypes207 = new String[] { }; - _methodParameterTypes228 = new String[] { "int", "int" }; + _methodName208 = "getAvvisiFirmaDocumento"; - _methodName229 = "dynamicQueryAvvisiFirmaDocumento"; + _methodParameterTypes208 = new String[] { "int", "int" }; - _methodParameterTypes229 = new String[] { }; + _methodName209 = "dynamicQueryAvvisiFirmaDocumento"; - _methodName230 = "countAvvisiInvioDocumento"; + _methodParameterTypes209 = new String[] { }; - _methodParameterTypes230 = new String[] { }; + _methodName210 = "countAvvisiInvioDocumento"; - _methodName231 = "getAvvisiInvioDocumento"; + _methodParameterTypes210 = new String[] { }; - _methodParameterTypes231 = new String[] { "int", "int" }; + _methodName211 = "getAvvisiInvioDocumento"; - _methodName232 = "dynamicQueryAvvisiInvioDocumento"; + _methodParameterTypes211 = new String[] { "int", "int" }; - _methodParameterTypes232 = new String[] { }; + _methodName212 = "dynamicQueryAvvisiInvioDocumento"; - _methodName233 = "countAvvisiInvioSignal"; + _methodParameterTypes212 = new String[] { }; - _methodParameterTypes233 = new String[] { }; + _methodName213 = "countAvvisiInvioSignal"; - _methodName234 = "getAvvisoInvioSignal"; + _methodParameterTypes213 = new String[] { }; - _methodParameterTypes234 = new String[] { "long" }; + _methodName214 = "getAvvisoInvioSignal"; - _methodName235 = "getAvvisiInvioSignal"; + _methodParameterTypes214 = new String[] { "long" }; - _methodParameterTypes235 = new String[] { "int", "int" }; + _methodName215 = "getAvvisiInvioSignal"; - _methodName236 = "dynamicQueryAvvisiInvioSignal"; + _methodParameterTypes215 = new String[] { "int", "int" }; - _methodParameterTypes236 = new String[] { "java.lang.Long" }; + _methodName216 = "dynamicQueryAvvisiInvioSignal"; - _methodName237 = "countAvvisiTempistica"; + _methodParameterTypes216 = new String[] { "java.lang.Long" }; - _methodParameterTypes237 = new String[] { }; - - _methodName238 = "getAvvisoTempistica"; + _methodName217 = "countAvvisiTempistica"; - _methodParameterTypes238 = new String[] { "long" }; + _methodParameterTypes217 = new String[] { }; - _methodName239 = "getAvvisiTempistica"; + _methodName218 = "getAvvisoTempistica"; - _methodParameterTypes239 = new String[] { "int", "int" }; + _methodParameterTypes218 = new String[] { "long" }; - _methodName240 = "dynamicQueryAvvisiTempistica"; + _methodName219 = "getAvvisiTempistica"; - _methodParameterTypes240 = new String[] { "java.lang.Long" }; + _methodParameterTypes219 = new String[] { "int", "int" }; - _methodName241 = "updateAvvisoDlFileEntryFirma"; + _methodName220 = "dynamicQueryAvvisiTempistica"; - _methodParameterTypes241 = new String[] { "long", "long" }; + _methodParameterTypes220 = new String[] { "java.lang.Long" }; - _methodName242 = "updateAvvisoPrimaFirma"; + _methodName221 = "updateAvvisoDlFileEntryFirma"; - _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes221 = new String[] { "long", "long" }; - _methodName243 = "updateAvvisoRollbackPrimaFirma"; + _methodName222 = "updateAvvisoPrimaFirma"; - _methodParameterTypes243 = new String[] { "long" }; + _methodParameterTypes222 = new String[] { "long", "java.lang.String" }; - _methodName244 = "updateAvvisoDlFileEntryIdBase"; + _methodName223 = "updateAvvisoRollbackPrimaFirma"; - _methodParameterTypes244 = new String[] { "long", "long" }; + _methodParameterTypes223 = new String[] { "long" }; - _methodName245 = "updateAvvisoDlFileEntryIdBaseSingola"; + _methodName224 = "updateAvvisoDlFileEntryIdBase"; - _methodParameterTypes245 = new String[] { "long", "long" }; + _methodParameterTypes224 = new String[] { "long", "long" }; - _methodName246 = "updateAvvisoDlFileEntryIdBaseAndInvio"; + _methodName225 = "updateAvvisoDlFileEntryIdBaseSingola"; - _methodParameterTypes246 = new String[] { "long", "long", "java.util.Date" }; + _methodParameterTypes225 = new String[] { "long", "long" }; - _methodName247 = "updateAvvisoDlFileEntryIdInvio"; + _methodName226 = "updateAvvisoDlFileEntryIdBaseAndInvio"; - _methodParameterTypes247 = new String[] { "long", "long", "java.util.Date" }; + _methodParameterTypes226 = new String[] { "long", "long", "java.util.Date" }; - _methodName248 = "updateAvvisoInvio"; + _methodName227 = "updateAvvisoDlFileEntryIdInvio"; - _methodParameterTypes248 = new String[] { "long" }; + _methodParameterTypes227 = new String[] { "long", "long", "java.util.Date" }; - _methodName249 = "updateAvvisoErrore"; + _methodName228 = "updateAvvisoInvio"; - _methodParameterTypes249 = new String[] { "long", "boolean" }; + _methodParameterTypes228 = new String[] { "long" }; - _methodName250 = "updateAvvisoAnnullato"; + _methodName229 = "updateAvvisoErrore"; - _methodParameterTypes250 = new String[] { "long", "boolean" }; + _methodParameterTypes229 = new String[] { "long", "boolean" }; - _methodName251 = "updateAvvisoSignal"; + _methodName230 = "updateAvvisoAnnullato"; - _methodParameterTypes251 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes230 = new String[] { "long", "boolean" }; - _methodName252 = "updateAvvisoSignal"; + _methodName231 = "updateAvvisoSignal"; - _methodParameterTypes252 = new String[] { "long", "boolean" }; + _methodParameterTypes231 = new String[] { "long", "java.util.Date" }; - _methodName253 = "updateAvvisoTempistica"; + _methodName232 = "updateAvvisoSignal"; - _methodParameterTypes253 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes232 = new String[] { "long", "boolean" }; - _methodName254 = "updateAvvisoTempistica"; + _methodName233 = "updateAvvisoTempistica"; - _methodParameterTypes254 = new String[] { "long", "boolean" }; + _methodParameterTypes233 = new String[] { "long", "java.util.Date" }; - _methodName255 = "updateAvvisoProtocollo"; + _methodName234 = "updateAvvisoTempistica"; - _methodParameterTypes255 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes234 = new String[] { "long", "boolean" }; - _methodName256 = "getAvvisoInvioTecnico"; + _methodName235 = "updateAvvisoProtocollo"; - _methodParameterTypes256 = new String[] { "long" }; + _methodParameterTypes235 = new String[] { "long", "java.lang.String" }; - _methodName257 = "countAvvisiInvioTecnico"; + _methodName236 = "getAvvisoInvioTecnico"; - _methodParameterTypes257 = new String[] { }; + _methodParameterTypes236 = new String[] { "long" }; - _methodName258 = "getAvvisiInvioTecnico"; + _methodName237 = "countAvvisiInvioTecnico"; - _methodParameterTypes258 = new String[] { "int", "int" }; + _methodParameterTypes237 = new String[] { }; - _methodName260 = "fetchAvvisoByOldAvvisoId"; + _methodName238 = "getAvvisiInvioTecnico"; - _methodParameterTypes260 = new String[] { "long" }; + _methodParameterTypes238 = new String[] { "int", "int" }; - _methodName261 = "updateAvvisoInviatoTecnico"; + _methodName240 = "updateAvvisoInviatoTecnico"; - _methodParameterTypes261 = new String[] { "long", "boolean" }; + _methodParameterTypes240 = new String[] { "long", "boolean" }; - _methodName262 = "findByClassPk_tipoDocumento"; + _methodName241 = "findByClassPk_tipoDocumento"; - _methodParameterTypes262 = new String[] { + _methodParameterTypes241 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName263 = "findByIntPraticaId_tipoDocumento"; + _methodName242 = "findByIntPraticaId_tipoDocumento"; - _methodParameterTypes263 = new String[] { + _methodParameterTypes242 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName264 = "findByIntPraticaIds_tipoDocumento"; + _methodName243 = "findByIntPraticaIds_tipoDocumento"; - _methodParameterTypes264 = new String[] { "long[][]", "java.lang.String" }; + _methodParameterTypes243 = new String[] { "long[][]", "java.lang.String" }; - _methodName265 = "findByClassPk_ExcludeTipoDocumento"; + _methodName244 = "findByClassPk_ExcludeTipoDocumento"; - _methodParameterTypes265 = new String[] { + _methodParameterTypes244 = new String[] { "java.lang.Long", "java.lang.String" }; - _methodName266 = "findByIntPratica"; + _methodName245 = "findByIntPratica"; - _methodParameterTypes266 = new String[] { + _methodParameterTypes245 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName267 = "findByIntPratica_Inviato"; + _methodName246 = "findByIntPratica_Inviato"; - _methodParameterTypes267 = new String[] { + _methodParameterTypes246 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName268 = "countByIntPratica"; + _methodName247 = "countByIntPratica"; - _methodParameterTypes268 = new String[] { "long" }; + _methodParameterTypes247 = new String[] { "long" }; - _methodName269 = "containsFileEntry"; + _methodName248 = "containsFileEntry"; - _methodParameterTypes269 = new String[] { "long", "long[][]", "long" }; + _methodParameterTypes248 = new String[] { "long", "long[][]", "long" }; - _methodName270 = "findByUUID"; + _methodName249 = "findByUUID"; - _methodParameterTypes270 = new String[] { "java.lang.String", "int", "int" }; + _methodParameterTypes249 = new String[] { "java.lang.String", "int", "int" }; - _methodName271 = "countAvvisoByClassPk"; + _methodName250 = "countAvvisoByClassPk"; - _methodParameterTypes271 = new String[] { "long" }; + _methodParameterTypes250 = new String[] { "long" }; - _methodName272 = "countAvvisoByClassPk_ClassName"; + _methodName251 = "countAvvisoByClassPk_ClassName"; - _methodParameterTypes272 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes251 = new String[] { "long", "java.lang.String" }; - _methodName273 = "findByProtocollo"; + _methodName252 = "findByProtocollo"; - _methodParameterTypes273 = new String[] { + _methodParameterTypes252 = new String[] { "long", "long", "java.lang.String" }; - _methodName274 = "fetchByProtocollo"; + _methodName253 = "fetchByProtocollo"; - _methodParameterTypes274 = new String[] { + _methodParameterTypes253 = new String[] { "long", "long", "java.lang.String" }; - _methodName275 = "fetchByProtocollo"; + _methodName254 = "fetchByProtocollo"; - _methodParameterTypes275 = new String[] { "java.lang.String" }; + _methodParameterTypes254 = new String[] { "java.lang.String" }; - _methodName277 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; + _methodName256 = "fetchLastAvvisoByIntPraticaPerStatoFinale"; - _methodParameterTypes277 = new String[] { "long" }; + _methodParameterTypes256 = new String[] { "long" }; - _methodName278 = "getListaAvvisiPerApplet"; + _methodName257 = "getListaAvvisiPerApplet"; - _methodParameterTypes278 = new String[] { "java.lang.String" }; + _methodParameterTypes257 = new String[] { "java.lang.String" }; - _methodName279 = "getAllTipoDocumentoFolderProps"; + _methodName258 = "getAllTipoDocumentoFolderProps"; - _methodParameterTypes279 = new String[] { }; + _methodParameterTypes258 = new String[] { }; - _methodName280 = "getFileNameAvviso"; + _methodName259 = "getFileNameAvviso"; - _methodParameterTypes280 = new String[] { + _methodParameterTypes259 = new String[] { "long", "java.lang.String", "java.lang.Long", "java.lang.String" }; - _methodName281 = "rilasciaFirma"; - - _methodParameterTypes281 = new String[] { "long" }; + _methodName260 = "rilasciaFirma"; - _methodName282 = "assegnaFirma"; - - _methodParameterTypes282 = new String[] { "long", "java.lang.String" }; - - _methodName283 = "getAvvisiWithOldFileEntryIdInvio"; - - _methodParameterTypes283 = new String[] { "int", "int" }; + _methodParameterTypes260 = new String[] { "long" }; - _methodName284 = "getAvvisiWithOldFileEntryIdBase"; + _methodName261 = "assegnaFirma"; - _methodParameterTypes284 = new String[] { "int", "int" }; + _methodParameterTypes261 = new String[] { "long", "java.lang.String" }; - _methodName285 = "getAvvisiRifiutatiByControlloPraticaId"; + _methodName262 = "getAvvisiRifiutatiByControlloPraticaId"; - _methodParameterTypes285 = new String[] { "long" }; + _methodParameterTypes262 = new String[] { "long" }; - _methodName286 = "addFileFirmato"; + _methodName263 = "addFileFirmato"; - _methodParameterTypes286 = new String[] { + _methodParameterTypes263 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName287 = "protocolliSearch"; + _methodName264 = "protocolliSearch"; - _methodParameterTypes287 = new String[] { + _methodParameterTypes264 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "int", "int" }; - _methodName288 = "countProtocolliSearch"; + _methodName265 = "countProtocolliSearch"; - _methodParameterTypes288 = new String[] { + _methodParameterTypes265 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String" }; - _methodName289 = "getAvvisiPerAggiuntaProtocollo"; + _methodName266 = "getAvvisiPerAggiuntaProtocollo"; - _methodParameterTypes289 = new String[] { "int", "int" }; + _methodParameterTypes266 = new String[] { "int", "int" }; - _methodName290 = "dynamicQueryAggiuntaProtocollo"; + _methodName267 = "dynamicQueryAggiuntaProtocollo"; - _methodParameterTypes290 = new String[] { }; + _methodParameterTypes267 = new String[] { }; - _methodName291 = "findByClassPk"; + _methodName268 = "findByClassPk"; - _methodParameterTypes291 = new String[] { "long" }; + _methodParameterTypes268 = new String[] { "long" }; - _methodName292 = "countAvvisiInvioTecnicoNew"; + _methodName269 = "countAvvisiInvioTecnicoNew"; - _methodParameterTypes292 = new String[] { }; + _methodParameterTypes269 = new String[] { }; - _methodName293 = "getAvvisiInvioTecnicoNew"; + _methodName270 = "getAvvisiInvioTecnicoNew"; - _methodParameterTypes293 = new String[] { "int", "int" }; + _methodParameterTypes270 = new String[] { "int", "int" }; - _methodName295 = "getAvvisoVidimazione"; + _methodName272 = "getAvvisoVidimazione"; - _methodParameterTypes295 = new String[] { "long", "long" }; + _methodParameterTypes272 = new String[] { "long", "long" }; - _methodName296 = "getLastAvvisoIntegrazione"; + _methodName273 = "getLastAvvisoIntegrazione"; - _methodParameterTypes296 = new String[] { "long" }; + _methodParameterTypes273 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -686,20 +674,20 @@ public class AvvisoLocalServiceClpInvoker { return AvvisoLocalServiceUtil.updateAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return AvvisoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { AvvisoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -708,8 +696,8 @@ public class AvvisoLocalServiceClpInvoker { ((Long)arguments[6]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -718,8 +706,8 @@ public class AvvisoLocalServiceClpInvoker { (java.lang.String)arguments[6], ((Long)arguments[7]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), @@ -729,8 +717,8 @@ public class AvvisoLocalServiceClpInvoker { ((Long)arguments[8]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return AvvisoLocalServiceUtil.createStandardAvvisoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -740,8 +728,8 @@ public class AvvisoLocalServiceClpInvoker { ((Long)arguments[7]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.util.Date)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -752,8 +740,8 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.util.Date)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -765,8 +753,8 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.util.Date)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -780,8 +768,8 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[13]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return AvvisoLocalServiceUtil.addAvvisoForImport((java.lang.String)arguments[0], (java.util.Date)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -791,334 +779,328 @@ public class AvvisoLocalServiceClpInvoker { ((Long)arguments[8]).longValue(), (java.lang.String)arguments[9], ((Long)arguments[10]).longValue(), - ((Long)arguments[11]).longValue(), - (java.lang.String)arguments[12], - (com.liferay.portal.service.ServiceContext)arguments[13]); + (java.lang.String)arguments[11], + (com.liferay.portal.service.ServiceContext)arguments[12]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return AvvisoLocalServiceUtil.addAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return AvvisoLocalServiceUtil.search((long[])arguments[0], (java.lang.Long)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return AvvisoLocalServiceUtil.countSearch((long[])arguments[0], (java.lang.Long)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiFirmatiByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiFirmatiByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirmaByCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return AvvisoLocalServiceUtil.deleteAvviso((it.tref.liferay.portos.bo.model.Avviso)arguments[0]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return AvvisoLocalServiceUtil.deleteAvviso(((Long)arguments[0]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirmaByNotCF(((Long)arguments[0]).longValue(), (long[])arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirmaByNotCF(((Long)arguments[0]).longValue(), (long[])arguments[1], (java.lang.String)arguments[2]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiDaFirmarePrimaFirma(((Long)arguments[0]).longValue(), (long[])arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiDaFirmarePrimaFirma(((Long)arguments[0]).longValue(), (long[])arguments[1]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiGenerazioneDocumento(); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiGenerazioneDocumento(); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiFirmaDocumento(); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiFirmaDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiFirmaDocumento(); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioDocumento(); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioDocumento(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiInvioDocumento(); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioSignal(); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoInvioSignal(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioSignal(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiInvioSignal((java.lang.Long)arguments[0]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiTempistica(); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoTempistica(((Long)arguments[0]).longValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiTempistica(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAvvisiTempistica((java.lang.Long)arguments[0]); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryFirma(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoPrimaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoRollbackPrimaFirma(((Long)arguments[0]).longValue()); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBase(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBaseSingola(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdBaseAndInvio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.Date)arguments[2]); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoDlFileEntryIdInvio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.Date)arguments[2]); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoInvio(((Long)arguments[0]).longValue()); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoErrore(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoAnnullato(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoSignal(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoSignal(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoTempistica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoInvioTecnico(((Long)arguments[0]).longValue()); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioTecnico(); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioTecnico(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { - return AvvisoLocalServiceUtil.fetchAvvisoByOldAvvisoId(((Long)arguments[0]).longValue()); - } - - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk_tipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPraticaIds_tipoDocumento((long[])arguments[0], (java.lang.String)arguments[1]); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk_ExcludeTipoDocumento((java.lang.Long)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return AvvisoLocalServiceUtil.findByIntPratica_Inviato(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -1126,159 +1108,147 @@ public class AvvisoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return AvvisoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return AvvisoLocalServiceUtil.containsFileEntry(((Long)arguments[0]).longValue(), (long[])arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return AvvisoLocalServiceUtil.findByUUID((java.lang.String)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisoByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisoByClassPk_ClassName(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return AvvisoLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { return AvvisoLocalServiceUtil.fetchByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return AvvisoLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return AvvisoLocalServiceUtil.fetchLastAvvisoByIntPraticaPerStatoFinale(((Long)arguments[0]).longValue()); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return AvvisoLocalServiceUtil.getListaAvvisiPerApplet((java.lang.String)arguments[0]); } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { return AvvisoLocalServiceUtil.getAllTipoDocumentoFolderProps(); } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return AvvisoLocalServiceUtil.getFileNameAvviso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Long)arguments[2], (java.lang.String)arguments[3]); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return AvvisoLocalServiceUtil.rilasciaFirma(((Long)arguments[0]).longValue()); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { return AvvisoLocalServiceUtil.assegnaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName283.equals(name) && - Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { - return AvvisoLocalServiceUtil.getAvvisiWithOldFileEntryIdInvio(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName284.equals(name) && - Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) { - return AvvisoLocalServiceUtil.getAvvisiWithOldFileEntryIdBase(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName285.equals(name) && - Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiRifiutatiByControlloPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName286.equals(name) && - Arrays.deepEquals(_methodParameterTypes286, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return AvvisoLocalServiceUtil.addFileFirmato(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName287.equals(name) && - Arrays.deepEquals(_methodParameterTypes287, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return AvvisoLocalServiceUtil.protocolliSearch((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName288.equals(name) && - Arrays.deepEquals(_methodParameterTypes288, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return AvvisoLocalServiceUtil.countProtocolliSearch((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName289.equals(name) && - Arrays.deepEquals(_methodParameterTypes289, parameterTypes)) { + if (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiPerAggiuntaProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName290.equals(name) && - Arrays.deepEquals(_methodParameterTypes290, parameterTypes)) { + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { return AvvisoLocalServiceUtil.dynamicQueryAggiuntaProtocollo(); } - if (_methodName291.equals(name) && - Arrays.deepEquals(_methodParameterTypes291, parameterTypes)) { + if (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { return AvvisoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName292.equals(name) && - Arrays.deepEquals(_methodParameterTypes292, parameterTypes)) { + if (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { return AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew(); } - if (_methodName293.equals(name) && - Arrays.deepEquals(_methodParameterTypes293, parameterTypes)) { + if (_methodName270.equals(name) && + Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisiInvioTecnicoNew(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName295.equals(name) && - Arrays.deepEquals(_methodParameterTypes295, parameterTypes)) { + if (_methodName272.equals(name) && + Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { return AvvisoLocalServiceUtil.getAvvisoVidimazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName296.equals(name) && - Arrays.deepEquals(_methodParameterTypes296, parameterTypes)) { + if (_methodName273.equals(name) && + Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { return AvvisoLocalServiceUtil.getLastAvvisoIntegrazione(((Long)arguments[0]).longValue()); } @@ -1325,22 +1295,52 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName192; - private String[] _methodParameterTypes192; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; private String _methodName202; private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; private String _methodName205; @@ -1351,10 +1351,14 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; + private String _methodName209; + private String[] _methodParameterTypes209; private String _methodName210; private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; + private String _methodName212; + private String[] _methodParameterTypes212; private String _methodName213; private String[] _methodParameterTypes213; private String _methodName214; @@ -1363,14 +1367,20 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; + private String _methodName217; + private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; private String _methodName219; private String[] _methodParameterTypes219; + private String _methodName220; + private String[] _methodParameterTypes220; private String _methodName221; private String[] _methodParameterTypes221; private String _methodName222; private String[] _methodParameterTypes222; + private String _methodName223; + private String[] _methodParameterTypes223; private String _methodName224; private String[] _methodParameterTypes224; private String _methodName225; @@ -1401,8 +1411,6 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes237; private String _methodName238; private String[] _methodParameterTypes238; - private String _methodName239; - private String[] _methodParameterTypes239; private String _methodName240; private String[] _methodParameterTypes240; private String _methodName241; @@ -1433,14 +1441,14 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes253; private String _methodName254; private String[] _methodParameterTypes254; - private String _methodName255; - private String[] _methodParameterTypes255; private String _methodName256; private String[] _methodParameterTypes256; private String _methodName257; private String[] _methodParameterTypes257; private String _methodName258; private String[] _methodParameterTypes258; + private String _methodName259; + private String[] _methodParameterTypes259; private String _methodName260; private String[] _methodParameterTypes260; private String _methodName261; @@ -1463,52 +1471,8 @@ public class AvvisoLocalServiceClpInvoker { private String[] _methodParameterTypes269; private String _methodName270; private String[] _methodParameterTypes270; - private String _methodName271; - private String[] _methodParameterTypes271; private String _methodName272; private String[] _methodParameterTypes272; private String _methodName273; private String[] _methodParameterTypes273; - private String _methodName274; - private String[] _methodParameterTypes274; - private String _methodName275; - private String[] _methodParameterTypes275; - private String _methodName277; - private String[] _methodParameterTypes277; - private String _methodName278; - private String[] _methodParameterTypes278; - private String _methodName279; - private String[] _methodParameterTypes279; - private String _methodName280; - private String[] _methodParameterTypes280; - private String _methodName281; - private String[] _methodParameterTypes281; - private String _methodName282; - private String[] _methodParameterTypes282; - private String _methodName283; - private String[] _methodParameterTypes283; - private String _methodName284; - private String[] _methodParameterTypes284; - private String _methodName285; - private String[] _methodParameterTypes285; - private String _methodName286; - private String[] _methodParameterTypes286; - private String _methodName287; - private String[] _methodParameterTypes287; - private String _methodName288; - private String[] _methodParameterTypes288; - private String _methodName289; - private String[] _methodParameterTypes289; - private String _methodName290; - private String[] _methodParameterTypes290; - private String _methodName291; - private String[] _methodParameterTypes291; - private String _methodName292; - private String[] _methodParameterTypes292; - private String _methodName293; - private String[] _methodParameterTypes293; - private String _methodName295; - private String[] _methodParameterTypes295; - private String _methodName296; - private String[] _methodParameterTypes296; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java index 224fa500..92d3e834 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class AvvisoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java index 2546bb4d..4c6deaf1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AvvisoServiceClpInvoker.java @@ -24,45 +24,45 @@ import java.util.Arrays; */ public class AvvisoServiceClpInvoker { public AvvisoServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "rilasciaFirma"; + _methodName158 = "rilasciaFirma"; - _methodParameterTypes178 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes158 = new String[] { "long", "java.lang.String" }; - _methodName179 = "assegnaFirma"; + _methodName159 = "assegnaFirma"; - _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes159 = new String[] { "long", "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return AvvisoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { AvvisoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return AvvisoServiceUtil.rilasciaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return AvvisoServiceUtil.assegnaFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } @@ -70,12 +70,12 @@ public class AvvisoServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java index 9a9d651e..17edc16f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1155,63 +1151,6 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1287,62 +1226,6 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1570,81 +1453,6 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2094,12 +1902,6 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2108,12 +1910,6 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2138,14 +1934,6 @@ public abstract class CollaudoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java index 04f46bb6..98ac5a74 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoLocalServiceClpInvoker.java @@ -122,156 +122,152 @@ public class CollaudoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName188 = "getBeanIdentifier"; + _methodName168 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes168 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName169 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes169 = new String[] { "java.lang.String" }; - _methodName195 = "addCollaudo"; + _methodName175 = "addCollaudo"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes175 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "deleteCollaudo"; + _methodName176 = "deleteCollaudo"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes176 = new String[] { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName197 = "deleteCollaudo"; + _methodName177 = "deleteCollaudo"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName198 = "updateCollaudo"; + _methodName178 = "updateCollaudo"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "java.lang.String" }; - _methodName199 = "getLastEditable"; + _methodName179 = "getLastEditable"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes179 = new String[] { "long" }; - _methodName200 = "getLastCompleted"; + _methodName180 = "getLastCompleted"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName201 = "updateEsitoPagamento"; + _methodName181 = "updateEsitoPagamento"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "long", "long", "java.lang.String" }; - _methodName202 = "updateEsitoPagamento"; + _methodName182 = "updateEsitoPagamento"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName203 = "updateEsito"; + _methodName183 = "updateEsito"; - _methodParameterTypes203 = new String[] { "long", "int" }; + _methodParameterTypes183 = new String[] { "long", "int" }; - _methodName206 = "updateCollaudoProtocollo"; + _methodName186 = "updateCollaudoProtocollo"; - _methodParameterTypes206 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes186 = new String[] { "long", "java.lang.String" }; - _methodName207 = "findByProtocollo"; + _methodName187 = "findByProtocollo"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes187 = new String[] { "long", "long", "java.lang.String" }; - _methodName208 = "fetchByProtocollo"; + _methodName188 = "fetchByProtocollo"; - _methodParameterTypes208 = new String[] { "java.lang.String" }; + _methodParameterTypes188 = new String[] { "java.lang.String" }; - _methodName209 = "pagaInvia"; + _methodName189 = "pagaInvia"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes189 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName210 = "findByIntPraticaId"; + _methodName190 = "findByIntPraticaId"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes190 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName211 = "countByIntPraticaId"; + _methodName191 = "countByIntPraticaId"; - _methodParameterTypes211 = new String[] { "long" }; + _methodParameterTypes191 = new String[] { "long" }; - _methodName212 = "findByIntPraticaId_Parziale"; + _methodName192 = "findByIntPraticaId_Parziale"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes192 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName213 = "countByIntPraticaId_Parziale"; + _methodName193 = "countByIntPraticaId_Parziale"; - _methodParameterTypes213 = new String[] { "long", "boolean" }; + _methodParameterTypes193 = new String[] { "long", "boolean" }; - _methodName214 = "findByIntPraticaId_Completata"; + _methodName194 = "findByIntPraticaId_Completata"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes194 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName215 = "countByIntPraticaId_Completata"; + _methodName195 = "countByIntPraticaId_Completata"; - _methodParameterTypes215 = new String[] { "long", "boolean" }; + _methodParameterTypes195 = new String[] { "long", "boolean" }; - _methodName216 = "findByCodiceFiscale_Completata"; + _methodName196 = "findByCodiceFiscale_Completata"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes196 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName217 = "countByCodiceFiscale_Completata"; + _methodName197 = "countByCodiceFiscale_Completata"; - _methodParameterTypes217 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes197 = new String[] { "java.lang.String", "boolean" }; - _methodName218 = "findByIntPraticaId_Parziale_leCollaudoId"; + _methodName198 = "findByIntPraticaId_Parziale_leCollaudoId"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes198 = new String[] { "long", "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName219 = "countByIntPraticaId_Parziale_leCollaudoId"; - - _methodParameterTypes219 = new String[] { "long", "long", "boolean" }; - - _methodName220 = "findCollaudiCompletiNotProtocollo"; + _methodName199 = "countByIntPraticaId_Parziale_leCollaudoId"; - _methodParameterTypes220 = new String[] { "int", "int" }; + _methodParameterTypes199 = new String[] { "long", "long", "boolean" }; - _methodName221 = "countCollaudiCompletiNotProtocollo"; + _methodName200 = "findCollaudiCompletiNotProtocollo"; - _methodParameterTypes221 = new String[] { }; + _methodParameterTypes200 = new String[] { "int", "int" }; - _methodName223 = "findCollaudiCompletiNotGestiti"; + _methodName201 = "countCollaudiCompletiNotProtocollo"; - _methodParameterTypes223 = new String[] { "int", "int" }; + _methodParameterTypes201 = new String[] { }; - _methodName224 = "countCollaudiCompletiNotGestiti"; + _methodName203 = "findCollaudiCompletiNotGestiti"; - _methodParameterTypes224 = new String[] { }; + _methodParameterTypes203 = new String[] { "int", "int" }; - _methodName226 = "fetchByOldDettPraticaId"; + _methodName204 = "countCollaudiCompletiNotGestiti"; - _methodParameterTypes226 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -387,36 +383,36 @@ public class CollaudoLocalServiceClpInvoker { return CollaudoLocalServiceUtil.updateCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return CollaudoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { CollaudoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return CollaudoLocalServiceUtil.addCollaudo(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return CollaudoLocalServiceUtil.deleteCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return CollaudoLocalServiceUtil.deleteCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return CollaudoLocalServiceUtil.updateCollaudo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -427,26 +423,26 @@ public class CollaudoLocalServiceClpInvoker { (java.lang.String)arguments[8]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return CollaudoLocalServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return CollaudoLocalServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { CollaudoLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); return null; } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { CollaudoLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); @@ -454,51 +450,51 @@ public class CollaudoLocalServiceClpInvoker { return null; } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return CollaudoLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return CollaudoLocalServiceUtil.updateCollaudoProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return CollaudoLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return CollaudoLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return CollaudoLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -506,14 +502,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -521,14 +517,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return CollaudoLocalServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -536,14 +532,14 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return CollaudoLocalServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return CollaudoLocalServiceUtil.findByIntPraticaId_Parziale_leCollaudoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue(), @@ -552,40 +548,35 @@ public class CollaudoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return CollaudoLocalServiceUtil.countByIntPraticaId_Parziale_leCollaudoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return CollaudoLocalServiceUtil.findCollaudiCompletiNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return CollaudoLocalServiceUtil.countCollaudiCompletiNotProtocollo(); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return CollaudoLocalServiceUtil.findCollaudiCompletiNotGestiti(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return CollaudoLocalServiceUtil.countCollaudiCompletiNotGestiti(); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { - return CollaudoLocalServiceUtil.fetchByOldDettPraticaId(((Long)arguments[0]).longValue()); - } - throw new UnsupportedOperationException(); } @@ -629,10 +620,46 @@ public class CollaudoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; private String _methodName188; private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; private String _methodName195; private String[] _methodParameterTypes195; private String _methodName196; @@ -647,46 +674,8 @@ public class CollaudoLocalServiceClpInvoker { private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; private String _methodName203; private String[] _methodParameterTypes203; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; - private String _methodName215; - private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName221; - private String[] _methodParameterTypes221; - private String _methodName223; - private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; - private String _methodName226; - private String[] _methodParameterTypes226; + private String _methodName204; + private String[] _methodParameterTypes204; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java index 389edb78..196f81dd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class CollaudoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java index 4a93b480..36b374ad 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/CollaudoServiceClpInvoker.java @@ -24,105 +24,105 @@ import java.util.Arrays; */ public class CollaudoServiceClpInvoker { public CollaudoServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; - _methodName174 = "getCollaudo"; + _methodName154 = "getCollaudo"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes154 = new String[] { "long" }; - _methodName175 = "addCollaudo"; + _methodName155 = "addCollaudo"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes155 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName176 = "deleteCollaudo"; + _methodName156 = "deleteCollaudo"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes156 = new String[] { "it.tref.liferay.portos.bo.model.Collaudo" }; - _methodName177 = "deleteCollaudo"; + _methodName157 = "deleteCollaudo"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes157 = new String[] { "long" }; - _methodName178 = "updateCollaudo"; + _methodName158 = "updateCollaudo"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes158 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "java.lang.String" }; - _methodName179 = "findByCodiceFiscale_Completata"; + _methodName159 = "findByCodiceFiscale_Completata"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes159 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByCodiceFiscale_Completata"; + _methodName160 = "countByCodiceFiscale_Completata"; - _methodParameterTypes180 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes160 = new String[] { "java.lang.String", "boolean" }; - _methodName181 = "getLastEditable"; + _methodName161 = "getLastEditable"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes161 = new String[] { "long" }; - _methodName182 = "pagaInvia"; + _methodName162 = "pagaInvia"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes162 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName183 = "updateEsito"; + _methodName163 = "updateEsito"; - _methodParameterTypes183 = new String[] { "long", "int" }; + _methodParameterTypes163 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return CollaudoServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { CollaudoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return CollaudoServiceUtil.getCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { return CollaudoServiceUtil.addCollaudo(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName156.equals(name) && + Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { return CollaudoServiceUtil.deleteCollaudo((it.tref.liferay.portos.bo.model.Collaudo)arguments[0]); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName157.equals(name) && + Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { return CollaudoServiceUtil.deleteCollaudo(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return CollaudoServiceUtil.updateCollaudo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -133,8 +133,8 @@ public class CollaudoServiceClpInvoker { (java.lang.String)arguments[8]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return CollaudoServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -142,26 +142,26 @@ public class CollaudoServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return CollaudoServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return CollaudoServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return CollaudoServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return CollaudoServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } @@ -169,28 +169,28 @@ public class CollaudoServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; + private String _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + private String _methodName156; + private String[] _methodParameterTypes156; + private String _methodName157; + private String[] _methodParameterTypes157; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java index 41ca9113..73fe0e94 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1123,63 +1119,6 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1255,62 +1194,6 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1538,81 +1421,6 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2062,12 +1870,6 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2076,12 +1878,6 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2106,14 +1902,6 @@ public abstract class ComuneLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java index a27a5435..e0a21e61 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java @@ -114,132 +114,132 @@ public class ComuneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Comune" }; - _methodName186 = "getBeanIdentifier"; + _methodName166 = "getBeanIdentifier"; - _methodParameterTypes186 = new String[] { }; + _methodParameterTypes166 = new String[] { }; - _methodName187 = "setBeanIdentifier"; + _methodName167 = "setBeanIdentifier"; - _methodParameterTypes187 = new String[] { "java.lang.String" }; + _methodParameterTypes167 = new String[] { "java.lang.String" }; - _methodName192 = "addComune"; + _methodName172 = "addComune"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes172 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName193 = "addComune"; + _methodName173 = "addComune"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes173 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName194 = "countByCompanyId"; + _methodName174 = "countByCompanyId"; - _methodParameterTypes194 = new String[] { "long" }; + _methodParameterTypes174 = new String[] { "long" }; - _methodName195 = "countByKeywords"; + _methodName175 = "countByKeywords"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; - _methodName196 = "deleteByCompanyId"; + _methodName176 = "deleteByCompanyId"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName197 = "deleteComune"; + _methodName177 = "deleteComune"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes177 = new String[] { "it.tref.liferay.portos.bo.model.Comune" }; - _methodName198 = "deleteComune"; + _methodName178 = "deleteComune"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes178 = new String[] { "long" }; - _methodName199 = "fetchByC_CB"; + _methodName179 = "fetchByC_CB"; - _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; - _methodName200 = "fetchByC_CI"; + _methodName180 = "fetchByC_CI"; - _methodParameterTypes200 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; - _methodName201 = "findByC_CP"; + _methodName181 = "findByC_CP"; - _methodParameterTypes201 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes181 = new String[] { "long", "java.lang.String" }; - _methodName202 = "findByCompanyDenominazione"; + _methodName182 = "findByCompanyDenominazione"; - _methodParameterTypes202 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes182 = new String[] { "long", "java.lang.String" }; - _methodName203 = "findByCompanyId"; + _methodName183 = "findByCompanyId"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName204 = "findByCompanyId"; + _methodName184 = "findByCompanyId"; - _methodParameterTypes204 = new String[] { "long", "int", "int" }; + _methodParameterTypes184 = new String[] { "long", "int", "int" }; - _methodName205 = "findByCompanyId"; + _methodName185 = "findByCompanyId"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "findByCompanyIdCodiceProvincia"; + _methodName186 = "findByCompanyIdCodiceProvincia"; - _methodParameterTypes206 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes186 = new String[] { "long", "java.lang.String" }; - _methodName207 = "findByCompanyIdCodiceProvincia"; + _methodName187 = "findByCompanyIdCodiceProvincia"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName208 = "findByKeywords"; + _methodName188 = "findByKeywords"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes188 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName209 = "getStatiEsteri"; + _methodName189 = "getStatiEsteri"; - _methodParameterTypes209 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; - _methodName210 = "updateComune"; + _methodName190 = "updateComune"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes190 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName211 = "updateComune"; + _methodName191 = "updateComune"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes191 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName212 = "getComuniForOrganizationByUserId"; + _methodName192 = "getComuniForOrganizationByUserId"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName213 = "getComuniForOrganizationByUserIdUfficioId"; + _methodName193 = "getComuniForOrganizationByUserIdUfficioId"; - _methodParameterTypes213 = new String[] { "long", "long" }; + _methodParameterTypes193 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -343,20 +343,20 @@ public class ComuneLocalServiceClpInvoker { return ComuneLocalServiceUtil.updateComune((it.tref.liferay.portos.bo.model.Comune)arguments[0]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return ComuneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { ComuneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return ComuneLocalServiceUtil.addComune(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -367,8 +367,8 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return ComuneLocalServiceUtil.addComune(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -378,86 +378,86 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ComuneLocalServiceUtil.countByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return ComuneLocalServiceUtil.countByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { ComuneLocalServiceUtil.deleteByCompanyId(((Long)arguments[0]).longValue()); return null; } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return ComuneLocalServiceUtil.deleteComune((it.tref.liferay.portos.bo.model.Comune)arguments[0]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ComuneLocalServiceUtil.deleteComune(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return ComuneLocalServiceUtil.fetchByC_CB(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ComuneLocalServiceUtil.fetchByC_CI(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return ComuneLocalServiceUtil.findByC_CP(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyDenominazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return ComuneLocalServiceUtil.findByCompanyIdCodiceProvincia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -465,8 +465,8 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ComuneLocalServiceUtil.findByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -474,13 +474,13 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ComuneLocalServiceUtil.getStatiEsteri(((Long)arguments[0]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -491,8 +491,8 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -502,13 +502,13 @@ public class ComuneLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ComuneLocalServiceUtil.getComuniForOrganizationByUserId(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -552,52 +552,52 @@ public class ComuneLocalServiceClpInvoker { private String[] _methodParameterTypes16; private String _methodName17; private String[] _methodParameterTypes17; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; private String _methodName186; private String[] _methodParameterTypes186; private String _methodName187; private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java index c2540dc7..3d509ccd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class ComuneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java index c0d85e03..3b73f80f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneServiceClpInvoker.java @@ -24,44 +24,44 @@ import java.util.Arrays; */ public class ComuneServiceClpInvoker { public ComuneServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; - _methodName174 = "getComune"; + _methodName154 = "getComune"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes154 = new String[] { "long" }; - _methodName175 = "getComunes"; + _methodName155 = "getComunes"; - _methodParameterTypes175 = new String[] { "int", "int" }; + _methodParameterTypes155 = new String[] { "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return ComuneServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { ComuneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return ComuneServiceUtil.getComune(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { return ComuneServiceUtil.getComunes(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } @@ -69,12 +69,12 @@ public class ComuneServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; + private String _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java index 5162e699..f87f1f01 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1160,63 +1156,6 @@ public abstract class ComunicazioneLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1292,62 +1231,6 @@ public abstract class ComunicazioneLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1575,81 +1458,6 @@ public abstract class ComunicazioneLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2099,12 +1907,6 @@ public abstract class ComunicazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2113,12 +1915,6 @@ public abstract class ComunicazioneLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2143,14 +1939,6 @@ public abstract class ComunicazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java index ef4aee14..35c8c4a7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneLocalServiceClpInvoker.java @@ -122,43 +122,43 @@ public class ComunicazioneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Comunicazione" }; - _methodName188 = "getBeanIdentifier"; + _methodName168 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes168 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName169 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes169 = new String[] { "java.lang.String" }; - _methodName194 = "addComunicazione"; + _methodName174 = "addComunicazione"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes174 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName195 = "updateComunicazione"; + _methodName175 = "updateComunicazione"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; - _methodName196 = "findByIntPratica"; + _methodName176 = "findByIntPratica"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName197 = "findByIntPratica"; + _methodName177 = "findByIntPratica"; - _methodParameterTypes197 = new String[] { + _methodParameterTypes177 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName198 = "countByIntPratica"; + _methodName178 = "countByIntPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes178 = new String[] { "long" }; - _methodName199 = "countNotAnsweredByIntPratica"; + _methodName179 = "countNotAnsweredByIntPratica"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes179 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -274,52 +274,52 @@ public class ComunicazioneLocalServiceClpInvoker { return ComunicazioneLocalServiceUtil.updateComunicazione((it.tref.liferay.portos.bo.model.Comunicazione)arguments[0]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return ComunicazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { ComunicazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ComunicazioneLocalServiceUtil.addComunicazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return ComunicazioneLocalServiceUtil.updateComunicazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return ComunicazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return ComunicazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ComunicazioneLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return ComunicazioneLocalServiceUtil.countNotAnsweredByIntPratica(((Long)arguments[0]).longValue()); } @@ -366,20 +366,20 @@ public class ComunicazioneLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java index 7d1079ab..3fc7388d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class ComunicazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java index 88924805..2991e5ba 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComunicazioneServiceClpInvoker.java @@ -24,50 +24,50 @@ import java.util.Arrays; */ public class ComunicazioneServiceClpInvoker { public ComunicazioneServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; - _methodName174 = "addComunicazione"; + _methodName154 = "addComunicazione"; - _methodParameterTypes174 = new String[] { + _methodParameterTypes154 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName175 = "updateComunicazione"; + _methodName155 = "updateComunicazione"; - _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes155 = new String[] { "long", "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return ComunicazioneServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { ComunicazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return ComunicazioneServiceUtil.addComunicazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { return ComunicazioneServiceUtil.updateComunicazione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } @@ -75,12 +75,12 @@ public class ComunicazioneServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; + private String _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java index 94633e8e..9891ab4e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1161,63 +1157,6 @@ public abstract class ConfigurazioneLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1293,62 +1232,6 @@ public abstract class ConfigurazioneLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1576,81 +1459,6 @@ public abstract class ConfigurazioneLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2100,12 +1908,6 @@ public abstract class ConfigurazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2114,12 +1916,6 @@ public abstract class ConfigurazioneLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2144,14 +1940,6 @@ public abstract class ConfigurazioneLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java index ef3ce4f7..eb16788f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneLocalServiceClpInvoker.java @@ -122,32 +122,32 @@ public class ConfigurazioneLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Configurazione" }; - _methodName188 = "getBeanIdentifier"; + _methodName168 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes168 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName169 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes169 = new String[] { "java.lang.String" }; - _methodName194 = "findByC_ChiaveLong"; + _methodName174 = "findByC_ChiaveLong"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes174 = new String[] { "long", "java.lang.String" }; - _methodName195 = "findByC_ChiaveString"; + _methodName175 = "findByC_ChiaveString"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; - _methodName196 = "storeConfig"; + _methodName176 = "storeConfig"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes176 = new String[] { "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName197 = "getAndIncrement"; + _methodName177 = "getAndIncrement"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes177 = new String[] { "long", "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -263,39 +263,39 @@ public class ConfigurazioneLocalServiceClpInvoker { return ConfigurazioneLocalServiceUtil.updateConfigurazione((it.tref.liferay.portos.bo.model.Configurazione)arguments[0]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return ConfigurazioneLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { ConfigurazioneLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return ConfigurazioneLocalServiceUtil.findByC_ChiaveString(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return ConfigurazioneLocalServiceUtil.storeConfig((java.lang.String)arguments[0], (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return ConfigurazioneLocalServiceUtil.getAndIncrement(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } @@ -343,16 +343,16 @@ public class ConfigurazioneLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java index 05bc4b45..1e57ba3f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class ConfigurazioneServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java index f45475a7..a9431d25 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ConfigurazioneServiceClpInvoker.java @@ -24,25 +24,25 @@ import java.util.Arrays; */ public class ConfigurazioneServiceClpInvoker { public ConfigurazioneServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; - _methodName174 = "findByC_ChiaveLong"; + _methodName154 = "findByC_ChiaveLong"; - _methodParameterTypes174 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes154 = new String[] { "long", "java.lang.String" }; - _methodName175 = "findByC_ChiaveString"; + _methodName155 = "findByC_ChiaveString"; - _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes155 = new String[] { "long", "java.lang.String" }; - _methodName176 = "storeConfig"; + _methodName156 = "storeConfig"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes156 = new String[] { "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -50,32 +50,32 @@ public class ConfigurazioneServiceClpInvoker { public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return ConfigurazioneServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { ConfigurazioneServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return ConfigurazioneServiceUtil.findByC_ChiaveLong(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { return ConfigurazioneServiceUtil.findByC_ChiaveString(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName156.equals(name) && + Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { ConfigurazioneServiceUtil.storeConfig((java.lang.String)arguments[0], (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -86,14 +86,14 @@ public class ConfigurazioneServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; - private String _methodName176; - private String[] _methodParameterTypes176; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; + private String _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + private String _methodName156; + private String[] _methodParameterTypes156; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java index 5b7bc8e3..47cc244e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceBaseImpl.java @@ -53,16 +53,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1169,63 +1165,6 @@ public abstract class ControlloPraticaLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1301,62 +1240,6 @@ public abstract class ControlloPraticaLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1584,81 +1467,6 @@ public abstract class ControlloPraticaLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2355,12 +2163,6 @@ public abstract class ControlloPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2369,12 +2171,6 @@ public abstract class ControlloPraticaLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2399,14 +2195,6 @@ public abstract class ControlloPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java index 4c6eacbd..93f48f5b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaLocalServiceClpInvoker.java @@ -122,133 +122,125 @@ public class ControlloPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName214 = "getBeanIdentifier"; + _methodName194 = "getBeanIdentifier"; - _methodParameterTypes214 = new String[] { }; + _methodParameterTypes194 = new String[] { }; - _methodName215 = "setBeanIdentifier"; + _methodName195 = "setBeanIdentifier"; - _methodParameterTypes215 = new String[] { "java.lang.String" }; + _methodParameterTypes195 = new String[] { "java.lang.String" }; - _methodName220 = "addControlloPratica"; + _methodName200 = "addControlloPratica"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes200 = new String[] { "long", "long", "long", "long", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName221 = "deleteControlloPratica"; + _methodName201 = "deleteControlloPratica"; - _methodParameterTypes221 = new String[] { "long" }; + _methodParameterTypes201 = new String[] { "long" }; - _methodName222 = "deleteControlloPratica"; + _methodName202 = "deleteControlloPratica"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes202 = new String[] { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName223 = "findByIntPraticaId_Status"; + _methodName203 = "findByIntPraticaId_Status"; - _methodParameterTypes223 = new String[] { "long", "int" }; + _methodParameterTypes203 = new String[] { "long", "int" }; - _methodName224 = "countByIntPraticaId_Status"; + _methodName204 = "countByIntPraticaId_Status"; - _methodParameterTypes224 = new String[] { "long", "int" }; + _methodParameterTypes204 = new String[] { "long", "int" }; - _methodName225 = "updateAsset"; + _methodName205 = "updateAsset"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes205 = new String[] { "long", "it.tref.liferay.portos.bo.model.ControlloPratica", "long[][]", "java.lang.String[][]", "long[][]", "java.util.Date" }; - _methodName226 = "deleteAsset"; + _methodName206 = "deleteAsset"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes206 = new String[] { "it.tref.liferay.portos.bo.model.ControlloPratica" }; - _methodName227 = "updateStatus"; + _methodName207 = "updateStatus"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes207 = new String[] { "long", "long", "int", "com.liferay.portal.service.ServiceContext", "java.util.List" }; - _methodName228 = "generazioneDocumento"; + _methodName208 = "generazioneDocumento"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes208 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.util.Map" }; - _methodName229 = "updateStatoPraticaGeneraDocumentoFinale"; + _methodName209 = "generaDocumentoFinale"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes209 = new String[] { "long", "java.lang.String", "long", "java.util.Map" }; - _methodName230 = "generaDocumentoFinale"; + _methodName210 = "updateIstruttore"; - _methodParameterTypes230 = new String[] { - "long", "java.lang.String", "long", "java.util.Map" - }; - - _methodName231 = "updateIstruttore"; - - _methodParameterTypes231 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes210 = new String[] { "long", "java.util.Map" }; - _methodName232 = "valutazioneEsitoFinale"; + _methodName211 = "valutazioneEsitoFinaleUpdateStatoPratica"; - _methodParameterTypes232 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes211 = new String[] { "long", "java.util.Map" }; - _methodName233 = "valutazioneEsitoFinaleUpdateStatoPratica"; + _methodName213 = "aggiornaStatoPerRichiestaIntegrazione"; - _methodParameterTypes233 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes213 = new String[] { "long", "java.util.Map" }; - _methodName235 = "aggiornaStatoPerRichiestaIntegrazione"; + _methodName214 = "getJsonListaIstruttori"; - _methodParameterTypes235 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes214 = new String[] { "long", "java.util.Map" }; - _methodName236 = "getJsonListaIstruttori"; + _methodName215 = "getJsonEsitoPratica"; - _methodParameterTypes236 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes215 = new String[] { "long", "java.util.Map" }; - _methodName237 = "getJsonEsitoPratica"; + _methodName223 = "addPraticheAlControllo"; - _methodParameterTypes237 = new String[] { "long", "java.util.Map" }; + _methodParameterTypes223 = new String[] { "long", "long" }; - _methodName238 = "addPraticheAlControllo"; + _methodName224 = "addPraticheAlControlloVarianti"; - _methodParameterTypes238 = new String[] { "long", "long" }; - - _methodName239 = "addPraticheAlControlloVarianti"; - - _methodParameterTypes239 = new String[] { + _methodParameterTypes224 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName240 = "getReturnValueScriptIniziale"; + _methodName225 = "getReturnValueScriptIniziale"; - _methodParameterTypes240 = new String[] { "long" }; + _methodParameterTypes225 = new String[] { "long" }; - _methodName241 = "getTipoEsito"; + _methodName226 = "getTipoEsito"; - _methodParameterTypes241 = new String[] { "long" }; + _methodParameterTypes226 = new String[] { "long" }; - _methodName242 = "findByIntPratica"; + _methodName227 = "findByIntPratica"; - _methodParameterTypes242 = new String[] { "long" }; + _methodParameterTypes227 = new String[] { "long" }; - _methodName243 = "calculateDateAvvioProcedimento"; + _methodName228 = "calculateDateAvvioProcedimento"; - _methodParameterTypes243 = new String[] { "long" }; + _methodParameterTypes228 = new String[] { "long" }; - _methodName244 = "gestioneWFVarianti"; + _methodName229 = "getOrganizationByControlloPraticaId"; - _methodParameterTypes244 = new String[] { - "it.tref.liferay.portos.bo.model.ControlloPratica" - }; + _methodParameterTypes229 = new String[] { "long" }; + + _methodName230 = "getCarichiLavoro"; + + _methodParameterTypes230 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -364,20 +356,20 @@ public class ControlloPraticaLocalServiceClpInvoker { return ControlloPraticaLocalServiceUtil.updateControlloPratica((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { ControlloPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addControlloPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -386,30 +378,30 @@ public class ControlloPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return ControlloPraticaLocalServiceUtil.deleteControlloPratica(((Long)arguments[0]).longValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return ControlloPraticaLocalServiceUtil.deleteControlloPratica((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return ControlloPraticaLocalServiceUtil.countByIntPraticaId_Status(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { ControlloPraticaLocalServiceUtil.updateAsset(((Long)arguments[0]).longValue(), (it.tref.liferay.portos.bo.model.ControlloPratica)arguments[1], (long[])arguments[2], (java.lang.String[])arguments[3], @@ -418,15 +410,15 @@ public class ControlloPraticaLocalServiceClpInvoker { return null; } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { ControlloPraticaLocalServiceUtil.deleteAsset((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); return null; } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return ControlloPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -434,108 +426,98 @@ public class ControlloPraticaLocalServiceClpInvoker { (java.util.List)arguments[4]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return ControlloPraticaLocalServiceUtil.generazioneDocumento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), (java.util.Map)arguments[4]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { - return ControlloPraticaLocalServiceUtil.updateStatoPraticaGeneraDocumentoFinale(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - ((Long)arguments[2]).longValue(), - (java.util.Map)arguments[3]); - } - - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return ControlloPraticaLocalServiceUtil.generaDocumentoFinale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), (java.util.Map)arguments[3]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { ControlloPraticaLocalServiceUtil.updateIstruttore(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); return null; } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { - return ControlloPraticaLocalServiceUtil.valutazioneEsitoFinale(((Long)arguments[0]).longValue(), - (java.util.Map)arguments[1]); - } - - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return ControlloPraticaLocalServiceUtil.valutazioneEsitoFinaleUpdateStatoPratica(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { ControlloPraticaLocalServiceUtil.aggiornaStatoPerRichiestaIntegrazione(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); return null; } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getJsonListaIstruttori(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getJsonEsitoPratica(((Long)arguments[0]).longValue(), (java.util.Map)arguments[1]); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addPraticheAlControllo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return ControlloPraticaLocalServiceUtil.addPraticheAlControlloVarianti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getReturnValueScriptIniziale(((Long)arguments[0]).longValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return ControlloPraticaLocalServiceUtil.getTipoEsito(((Long)arguments[0]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return ControlloPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return ControlloPraticaLocalServiceUtil.calculateDateAvvioProcedimento(((Long)arguments[0]).longValue()); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { - ControlloPraticaLocalServiceUtil.gestioneWFVarianti((it.tref.liferay.portos.bo.model.ControlloPratica)arguments[0]); + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + return ControlloPraticaLocalServiceUtil.getOrganizationByControlloPraticaId(((Long)arguments[0]).longValue()); + } - return null; + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + return ControlloPraticaLocalServiceUtil.getCarichiLavoro(((Long)arguments[0]).longValue(), + ((Integer)arguments[1]).intValue()); } throw new UnsupportedOperationException(); @@ -581,16 +563,40 @@ public class ControlloPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName200; + private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; + private String _methodName202; + private String[] _methodParameterTypes202; + private String _methodName203; + private String[] _methodParameterTypes203; + private String _methodName204; + private String[] _methodParameterTypes204; + private String _methodName205; + private String[] _methodParameterTypes205; + private String _methodName206; + private String[] _methodParameterTypes206; + private String _methodName207; + private String[] _methodParameterTypes207; + private String _methodName208; + private String[] _methodParameterTypes208; + private String _methodName209; + private String[] _methodParameterTypes209; + private String _methodName210; + private String[] _methodParameterTypes210; + private String _methodName211; + private String[] _methodParameterTypes211; + private String _methodName213; + private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; private String _methodName215; private String[] _methodParameterTypes215; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName221; - private String[] _methodParameterTypes221; - private String _methodName222; - private String[] _methodParameterTypes222; private String _methodName223; private String[] _methodParameterTypes223; private String _methodName224; @@ -607,30 +613,4 @@ public class ControlloPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes229; private String _methodName230; private String[] _methodParameterTypes230; - private String _methodName231; - private String[] _methodParameterTypes231; - private String _methodName232; - private String[] _methodParameterTypes232; - private String _methodName233; - private String[] _methodParameterTypes233; - private String _methodName235; - private String[] _methodParameterTypes235; - private String _methodName236; - private String[] _methodParameterTypes236; - private String _methodName237; - private String[] _methodParameterTypes237; - private String _methodName238; - private String[] _methodParameterTypes238; - private String _methodName239; - private String[] _methodParameterTypes239; - private String _methodName240; - private String[] _methodParameterTypes240; - private String _methodName241; - private String[] _methodParameterTypes241; - private String _methodName242; - private String[] _methodParameterTypes242; - private String _methodName243; - private String[] _methodParameterTypes243; - private String _methodName244; - private String[] _methodParameterTypes244; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java index afb15f62..3a5390a2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceBaseImpl.java @@ -44,16 +44,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -875,63 +871,6 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1007,62 +946,6 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1290,81 +1173,6 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2056,12 +1864,6 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2070,12 +1872,6 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2100,14 +1896,6 @@ public abstract class ControlloPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java index e302b28d..31a4d55b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ControlloPraticaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class ControlloPraticaServiceClpInvoker { public ControlloPraticaServiceClpInvoker() { - _methodName194 = "getBeanIdentifier"; + _methodName174 = "getBeanIdentifier"; - _methodParameterTypes194 = new String[] { }; + _methodParameterTypes174 = new String[] { }; - _methodName195 = "setBeanIdentifier"; + _methodName175 = "setBeanIdentifier"; - _methodParameterTypes195 = new String[] { "java.lang.String" }; + _methodParameterTypes175 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ControlloPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { ControlloPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class ControlloPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java index 6cdf925e..08cfc40b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1152,63 +1148,6 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1284,62 +1223,6 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1567,81 +1450,6 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2129,12 +1937,6 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2143,12 +1945,6 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2173,14 +1969,6 @@ public abstract class DelegaLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java index a3ca7c3b..ace3bbe5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaLocalServiceClpInvoker.java @@ -122,236 +122,236 @@ public class DelegaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "addDelega"; + _methodName178 = "addDelega"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "cambioStato"; + _methodName179 = "cambioStato"; - _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes179 = new String[] { "long", "java.lang.String" }; - _methodName200 = "concludiDeleghePagamento"; + _methodName180 = "concludiDeleghePagamento"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName201 = "deleteDelega"; + _methodName181 = "deleteDelega"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName202 = "deleteDelega"; + _methodName182 = "deleteDelega"; - _methodParameterTypes202 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName203 = "findByIntPratica"; + _methodName183 = "findByIntPratica"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "findByDettPratica"; + _methodName184 = "findByDettPratica"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName205 = "countByIntPratica"; + _methodName185 = "countByIntPratica"; - _methodParameterTypes205 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName206 = "countByDettPratica"; + _methodName186 = "countByDettPratica"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName207 = "findByIntPratica_CodiceFiscale"; + _methodName187 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName208 = "findByCodiceFiscale"; + _methodName188 = "findByCodiceFiscale"; - _methodParameterTypes208 = new String[] { "java.lang.String" }; + _methodParameterTypes188 = new String[] { "java.lang.String" }; - _methodName209 = "countByIntPratica_CodiceFiscale"; + _methodName189 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes209 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; - _methodName210 = "findByCodiceFiscale_InEsito"; + _methodName190 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes190 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName211 = "countByCodiceFiscale_InEsito"; + _methodName191 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes191 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName212 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName192 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes192 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName213 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName193 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName214 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName194 = "findByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes194 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName215 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName195 = "countByDettPratica_CodiceFiscale_InEsito"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName216 = "findByIntPratica_InEsito"; + _methodName196 = "findByIntPratica_InEsito"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes196 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName217 = "countByIntPratica_InEsito"; + _methodName197 = "countByIntPratica_InEsito"; - _methodParameterTypes217 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes197 = new String[] { "long", "java.lang.String[][]" }; - _methodName218 = "findByDettPratica_InEsito"; + _methodName198 = "findByDettPratica_InEsito"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes198 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName219 = "findCfByDettPratica_InEsito"; + _methodName199 = "findCfByDettPratica_InEsito"; - _methodParameterTypes219 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes199 = new String[] { "long", "java.lang.String[][]" }; - _methodName220 = "findByDettPratica_InEsito"; + _methodName200 = "findByDettPratica_InEsito"; - _methodParameterTypes220 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes200 = new String[] { "long", "java.lang.String[][]" }; - _methodName221 = "findCfByDettPratica_Tipologia_InEsito"; + _methodName201 = "findCfByDettPratica_Tipologia_InEsito"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName222 = "findByDettPratica_Tipologia_InEsito"; + _methodName202 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes202 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName224 = "countByDettPratica_InEsito"; + _methodName204 = "countByDettPratica_InEsito"; - _methodParameterTypes224 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes204 = new String[] { "long", "java.lang.String[][]" }; - _methodName225 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName205 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes205 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName226 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName206 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes226 = new String[] { + _methodParameterTypes206 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName227 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName207 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName228 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName208 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes208 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName229 = "findByDettPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName209 = "findByDettPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes209 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName230 = "countByDettPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName210 = "countByDettPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes230 = new String[] { + _methodParameterTypes210 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName231 = "findByIntPratica_Tipologia_InEsito"; + _methodName211 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes231 = new String[] { + _methodParameterTypes211 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName232 = "findByDettPratica_Tipologia_InEsito"; + _methodName212 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes212 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName233 = "countByIntPratica_Tipologia_InEsito"; + _methodName213 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes233 = new String[] { + _methodParameterTypes213 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName234 = "findByDettPratica_Tipologia_InEsito"; + _methodName214 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName235 = "countByDettPratica_Tipologia_InEsito"; + _methodName215 = "countByDettPratica_Tipologia_InEsito"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String[][]", "java.lang.String[][]" }; - _methodName236 = "generaDocumentoConcludiDelegaGeologo"; + _methodName216 = "generaDocumentoConcludiDelegaGeologo"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes216 = new String[] { "long", "it.tref.liferay.portos.bo.model.Delega", "com.liferay.portal.service.ServiceContext" }; @@ -470,20 +470,20 @@ public class DelegaLocalServiceClpInvoker { return DelegaLocalServiceUtil.updateDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DelegaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { DelegaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DelegaLocalServiceUtil.addDelega(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -491,57 +491,57 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return DelegaLocalServiceUtil.cambioStato(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { DelegaLocalServiceUtil.concludiDeleghePagamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DelegaLocalServiceUtil.deleteDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return DelegaLocalServiceUtil.deleteDelega(((Long)arguments[0]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -549,19 +549,19 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return DelegaLocalServiceUtil.findByCodiceFiscale((java.lang.String)arguments[0]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return DelegaLocalServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -569,14 +569,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return DelegaLocalServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -585,14 +585,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -601,14 +601,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -616,14 +616,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -631,40 +631,40 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DelegaLocalServiceUtil.findCfByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DelegaLocalServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -673,14 +673,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DelegaLocalServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -689,15 +689,15 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -707,16 +707,16 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -725,8 +725,8 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -735,14 +735,14 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DelegaLocalServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DelegaLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2], @@ -751,15 +751,15 @@ public class DelegaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { DelegaLocalServiceUtil.generaDocumentoConcludiDelegaGeologo(((Long)arguments[0]).longValue(), (it.tref.liferay.portos.bo.model.Delega)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -810,10 +810,50 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; @@ -824,8 +864,6 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes201; private String _methodName202; private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; private String _methodName205; @@ -852,42 +890,4 @@ public class DelegaLocalServiceClpInvoker { private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName221; - private String[] _methodParameterTypes221; - private String _methodName222; - private String[] _methodParameterTypes222; - private String _methodName224; - private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; - private String _methodName226; - private String[] _methodParameterTypes226; - private String _methodName227; - private String[] _methodParameterTypes227; - private String _methodName228; - private String[] _methodParameterTypes228; - private String _methodName229; - private String[] _methodParameterTypes229; - private String _methodName230; - private String[] _methodParameterTypes230; - private String _methodName231; - private String[] _methodParameterTypes231; - private String _methodName232; - private String[] _methodParameterTypes232; - private String _methodName233; - private String[] _methodParameterTypes233; - private String _methodName234; - private String[] _methodParameterTypes234; - private String _methodName235; - private String[] _methodParameterTypes235; - private String _methodName236; - private String[] _methodParameterTypes236; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java index 653c7d29..aa3563d2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class DelegaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java index 3ff64913..823b0127 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DelegaServiceClpInvoker.java @@ -24,193 +24,193 @@ import java.util.Arrays; */ public class DelegaServiceClpInvoker { public DelegaServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "addDelega"; + _methodName158 = "addDelega"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes158 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "annullaDelega"; + _methodName159 = "annullaDelega"; - _methodParameterTypes179 = new String[] { "long" }; + _methodParameterTypes159 = new String[] { "long" }; - _methodName180 = "annullaDelega"; + _methodName160 = "annullaDelega"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes160 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName181 = "deleteDelega"; + _methodName161 = "deleteDelega"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes161 = new String[] { "it.tref.liferay.portos.bo.model.Delega" }; - _methodName182 = "deleteDelega"; + _methodName162 = "deleteDelega"; - _methodParameterTypes182 = new String[] { "long" }; + _methodParameterTypes162 = new String[] { "long" }; - _methodName183 = "cambioStato"; + _methodName163 = "cambioStato"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes163 = new String[] { "long", "long", "java.lang.String" }; - _methodName184 = "findByIntPratica"; + _methodName164 = "findByIntPratica"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes164 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName185 = "findByDettPratica"; + _methodName165 = "findByDettPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes165 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "countByIntPratica"; + _methodName166 = "countByIntPratica"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; - _methodName187 = "countByDettPratica"; + _methodName167 = "countByDettPratica"; - _methodParameterTypes187 = new String[] { "long" }; + _methodParameterTypes167 = new String[] { "long" }; - _methodName188 = "findByIntPratica_CodiceFiscale"; + _methodName168 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes168 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName189 = "countByIntPratica_CodiceFiscale"; + _methodName169 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes189 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes169 = new String[] { "long", "java.lang.String" }; - _methodName190 = "findByCodiceFiscale_InEsito"; + _methodName170 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes170 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName191 = "countByCodiceFiscale_InEsito"; + _methodName171 = "countByCodiceFiscale_InEsito"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes171 = new String[] { "java.lang.String", "java.lang.String[][]" }; - _methodName192 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName172 = "findByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes172 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName193 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName173 = "countByIntPratica_CodiceFiscale_InEsito"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes173 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; - _methodName194 = "findByIntPratica_InEsito"; + _methodName174 = "findByIntPratica_InEsito"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes174 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName195 = "countByIntPratica_InEsito"; + _methodName175 = "countByIntPratica_InEsito"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes175 = new String[] { "long", "java.lang.String[][]" }; - _methodName196 = "findByDettPratica_InEsito"; + _methodName176 = "findByDettPratica_InEsito"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes176 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName197 = "countByDettPratica_InEsito"; + _methodName177 = "countByDettPratica_InEsito"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes177 = new String[] { "long", "java.lang.String[][]" }; - _methodName198 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName178 = "findByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName199 = "countByCodiceFiscale_Tipologia_InEsito"; + _methodName179 = "countByCodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName200 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName180 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName201 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName181 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String[][]" }; - _methodName202 = "findByIntPratica_Tipologia_InEsito"; + _methodName182 = "findByIntPratica_Tipologia_InEsito"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "findByDettPratica_Tipologia_InEsito"; + _methodName183 = "findByDettPratica_Tipologia_InEsito"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "long", "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "countByIntPratica_Tipologia_InEsito"; + _methodName184 = "countByIntPratica_Tipologia_InEsito"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "java.lang.String[][]" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return DelegaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { DelegaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return DelegaServiceUtil.addDelega(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -218,60 +218,60 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return DelegaServiceUtil.annullaDelega(((Long)arguments[0]).longValue()); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return DelegaServiceUtil.annullaDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return DelegaServiceUtil.deleteDelega((it.tref.liferay.portos.bo.model.Delega)arguments[0]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return DelegaServiceUtil.deleteDelega(((Long)arguments[0]).longValue()); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return DelegaServiceUtil.cambioStato(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return DelegaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return DelegaServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DelegaServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return DelegaServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -279,14 +279,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return DelegaServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -294,14 +294,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return DelegaServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], (java.lang.String[])arguments[1]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -310,14 +310,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -325,14 +325,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return DelegaServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), @@ -340,14 +340,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return DelegaServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DelegaServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -356,14 +356,14 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return DelegaServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3], @@ -372,15 +372,15 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String[])arguments[3]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return DelegaServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -389,8 +389,8 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DelegaServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2], @@ -399,8 +399,8 @@ public class DelegaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DelegaServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); } @@ -408,10 +408,50 @@ public class DelegaServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; private String _methodName178; private String[] _methodParameterTypes178; private String _methodName179; @@ -426,44 +466,4 @@ public class DelegaServiceClpInvoker { private String[] _methodParameterTypes183; private String _methodName184; private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java index 1c4b56e2..6f230409 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceBaseImpl.java @@ -53,16 +53,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1166,63 +1162,6 @@ public abstract class DettPraticaLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1298,62 +1237,6 @@ public abstract class DettPraticaLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1581,81 +1464,6 @@ public abstract class DettPraticaLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2409,12 +2217,6 @@ public abstract class DettPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2423,12 +2225,6 @@ public abstract class DettPraticaLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2453,14 +2249,6 @@ public abstract class DettPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java index 9486eff6..fd6d8941 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaLocalServiceClpInvoker.java @@ -122,128 +122,121 @@ public class DettPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName220 = "getBeanIdentifier"; + _methodName200 = "getBeanIdentifier"; - _methodParameterTypes220 = new String[] { }; + _methodParameterTypes200 = new String[] { }; - _methodName221 = "setBeanIdentifier"; + _methodName201 = "setBeanIdentifier"; - _methodParameterTypes221 = new String[] { "java.lang.String" }; + _methodParameterTypes201 = new String[] { "java.lang.String" }; - _methodName227 = "addDettPratica"; + _methodName207 = "addDettPratica"; - _methodParameterTypes227 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName228 = "addDettPraticaToIntPratica"; + _methodName208 = "addDettPraticaToIntPratica"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes208 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName229 = "addDettPraticaClonedToIntPratica"; + _methodName209 = "addDettPraticaClonedToIntPratica"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes209 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName231 = "cloneDettagliSoggetti"; + _methodName211 = "cloneDettagliSoggetti"; - _methodParameterTypes231 = new String[] { "long", "long" }; + _methodParameterTypes211 = new String[] { "long", "long" }; - _methodName232 = "addDettPraticaForImport"; + _methodName212 = "addDettPraticaForImport"; - _methodParameterTypes232 = new String[] { + _methodParameterTypes212 = new String[] { "com.liferay.portal.service.ServiceContext" }; - _methodName233 = "getLastEditableByIntPratica"; + _methodName213 = "getLastEditableByIntPratica"; - _methodParameterTypes233 = new String[] { "long" }; + _methodParameterTypes213 = new String[] { "long" }; - _methodName234 = "getLastCompletedByIntPratica"; + _methodName214 = "getLastCompletedByIntPratica"; - _methodParameterTypes234 = new String[] { "long" }; + _methodParameterTypes214 = new String[] { "long" }; - _methodName235 = "getLastCompletedBeforeDettPraticaByIntPratica"; + _methodName215 = "getLastCompletedBeforeDettPraticaByIntPratica"; - _methodParameterTypes235 = new String[] { "long", "long" }; + _methodParameterTypes215 = new String[] { "long", "long" }; - _methodName236 = "getLastCompletedByIntPraticaAndProtocolloNotEmpty"; + _methodName216 = "getLastCompletedByIntPraticaAndProtocolloNotEmpty"; - _methodParameterTypes236 = new String[] { "long" }; + _methodParameterTypes216 = new String[] { "long" }; - _methodName237 = "getLastdByIntPraticaAndTipoPratica"; + _methodName217 = "getLastdByIntPraticaAndTipoPratica"; - _methodParameterTypes237 = new String[] { "long", "java.util.List" }; + _methodParameterTypes217 = new String[] { "long", "java.util.List" }; - _methodName238 = "getLastEditabledByIntPraticaAndTipoPratica"; + _methodName218 = "getLastEditabledByIntPraticaAndTipoPratica"; - _methodParameterTypes238 = new String[] { "long", "java.util.List" }; + _methodParameterTypes218 = new String[] { "long", "java.util.List" }; - _methodName239 = "findCompletedByIntPraticaAndTipoPratica"; + _methodName219 = "findCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes239 = new String[] { "long", "java.util.List" }; + _methodParameterTypes219 = new String[] { "long", "java.util.List" }; - _methodName240 = "countCompletedByIntPraticaAndTipoPratica"; + _methodName220 = "countCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes240 = new String[] { "long", "java.util.List" }; + _methodParameterTypes220 = new String[] { "long", "java.util.List" }; - _methodName241 = "findCompletedByIntPraticaAndSuccessivoDettPratica"; + _methodName221 = "findCompletedByIntPraticaAndSuccessivoDettPratica"; - _methodParameterTypes241 = new String[] { "long", "long" }; + _methodParameterTypes221 = new String[] { "long", "long" }; - _methodName242 = "deleteDettPratica"; + _methodName222 = "deleteDettPratica"; - _methodParameterTypes242 = new String[] { + _methodParameterTypes222 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName243 = "deleteDettPratica"; - - _methodParameterTypes243 = new String[] { "long" }; + _methodName223 = "deleteDettPratica"; - _methodName244 = "getByOldDettPraticaId"; + _methodParameterTypes223 = new String[] { "long" }; - _methodParameterTypes244 = new String[] { "long" }; + _methodName224 = "search"; - _methodName245 = "search"; - - _methodParameterTypes245 = new String[] { + _methodParameterTypes224 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName246 = "searchCount"; + _methodName225 = "searchCount"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes225 = new String[] { "com.liferay.portal.kernel.search.SearchContext" }; - _methodName247 = "updateDettPraticaSoggetti"; + _methodName226 = "updateDettPraticaSoggetti"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes226 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName248 = "updateDettPratica"; + _methodName227 = "updateDettPratica"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes227 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.util.Date", "int", "boolean", "long", - "long", "java.lang.String", "java.lang.String", + "java.lang.String", "java.util.Date", "int", "long", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.String", "long", "long", - "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "boolean", "java.util.Date", "java.util.Date", - "java.util.Date", "java.lang.String", "boolean", "long", "int", + "java.lang.String", "long", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "long", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -279,26 +272,23 @@ public class DettPraticaLocalServiceClpInvoker { "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", - "java.lang.String", "java.lang.String", "boolean", + "boolean", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "com.liferay.portal.service.ServiceContext", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", "java.lang.Boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "double" + "boolean", "boolean", "boolean", "double", "java.lang.String" }; - _methodName249 = "updateDettPraticaDatiDomanda"; + _methodName228 = "updateDettPraticaDatiDomanda"; - _methodParameterTypes249 = new String[] { + _methodParameterTypes228 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "boolean", "java.lang.String", "java.lang.String", - "java.lang.String", "boolean", "java.lang.String", "boolean", - "long", "int", "java.lang.String", "java.lang.String", + "boolean", "java.lang.String", "java.lang.String", + "java.lang.String", "boolean", "long", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -320,47 +310,44 @@ public class DettPraticaLocalServiceClpInvoker { "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "boolean", "boolean", "boolean", + "java.lang.String", "java.lang.String", "boolean", + "java.lang.String", "com.liferay.portal.service.ServiceContext", + "boolean", "java.lang.String", "java.lang.String", + "java.lang.String", "java.lang.String", "java.lang.Boolean", + "java.lang.Boolean", "java.lang.Boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "java.lang.String", - "java.lang.String", "boolean", "java.lang.String", - "com.liferay.portal.service.ServiceContext", "boolean", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", - "java.lang.Boolean", "java.lang.String", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean" + "boolean", "boolean", "boolean", "java.lang.String" }; - _methodName250 = "updateDettPraticaDatiIntegrazione"; + _methodName229 = "updateDettPraticaDatiIntegrazione"; - _methodParameterTypes250 = new String[] { + _methodParameterTypes229 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", - "java.lang.String", "java.lang.String", "boolean", "boolean", - "boolean", "boolean", "java.lang.String", "java.lang.String", - "java.lang.String", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "java.lang.String", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "java.lang.String", - "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "java.lang.String", - "boolean", "boolean", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", + "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "java.lang.String", "java.lang.String", + "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "java.lang.String", "boolean", "boolean", + "boolean", "boolean", "boolean", "java.lang.String", "boolean", + "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", + "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", + "boolean", "boolean", "boolean", "boolean", "boolean", "com.liferay.portal.service.ServiceContext", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean" + "boolean", "boolean", "boolean", "java.lang.String" }; - _methodName252 = "updateDettPraticaGeologo"; + _methodName230 = "updateDettPraticaGeologo"; - _methodParameterTypes252 = new String[] { + _methodParameterTypes230 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -372,9 +359,9 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext", "boolean" }; - _methodName253 = "updateDettPraticaPagamento"; + _methodName231 = "updateDettPraticaPagamento"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes231 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", @@ -384,39 +371,39 @@ public class DettPraticaLocalServiceClpInvoker { "java.lang.Double", "com.liferay.portal.service.ServiceContext" }; - _methodName254 = "updateCheckPagamenti"; + _methodName232 = "updateCheckPagamenti"; - _methodParameterTypes254 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes232 = new String[] { "long", "boolean", "boolean" }; - _methodName255 = "updateEsitoPagamento"; + _methodName233 = "updateEsitoPagamento"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes233 = new String[] { "long", "long", "java.lang.String" }; - _methodName256 = "updateEsitoPagamento"; + _methodName234 = "updateEsitoPagamento"; - _methodParameterTypes256 = new String[] { + _methodParameterTypes234 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName257 = "isControlloObbligatorio"; + _methodName235 = "isControlloObbligatorio"; - _methodParameterTypes257 = new String[] { + _methodParameterTypes235 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName258 = "updateEsito"; + _methodName236 = "updateEsito"; - _methodParameterTypes258 = new String[] { "long", "int" }; + _methodParameterTypes236 = new String[] { "long", "int" }; - _methodName260 = "updateEsitoIntegrazione"; + _methodName238 = "updateEsitoIntegrazione"; - _methodParameterTypes260 = new String[] { "long", "int" }; + _methodParameterTypes238 = new String[] { "long", "int" }; - _methodName261 = "pagaInvia"; + _methodName239 = "pagaInvia"; - _methodParameterTypes261 = new String[] { + _methodParameterTypes239 = new String[] { "long", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", @@ -427,149 +414,136 @@ public class DettPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName264 = "updateStatus"; + _methodName240 = "updateStatus"; - _methodParameterTypes264 = new String[] { + _methodParameterTypes240 = new String[] { "long", "long", "int", "com.liferay.portal.service.ServiceContext" }; - _methodName267 = "updateDettPraticaProtocollo"; + _methodName243 = "updateDettPraticaProtocollo"; - _methodParameterTypes267 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes243 = new String[] { "long", "java.lang.String" }; - _methodName268 = "findByProtocollo"; + _methodName244 = "findByProtocollo"; - _methodParameterTypes268 = new String[] { + _methodParameterTypes244 = new String[] { "long", "long", "java.lang.String" }; - _methodName269 = "fetchByProtocollo"; + _methodName245 = "fetchByProtocollo"; - _methodParameterTypes269 = new String[] { + _methodParameterTypes245 = new String[] { "long", "long", "java.lang.String" }; - _methodName270 = "fetchByProtocollo"; + _methodName246 = "fetchByProtocollo"; - _methodParameterTypes270 = new String[] { "java.lang.String" }; + _methodParameterTypes246 = new String[] { "java.lang.String" }; - _methodName271 = "findByIntPraticaId"; + _methodName247 = "findByIntPraticaId"; - _methodParameterTypes271 = new String[] { "long" }; + _methodParameterTypes247 = new String[] { "long" }; - _methodName272 = "findByIntPraticaIdInviate"; + _methodName248 = "findByIntPraticaIdInviate"; - _methodParameterTypes272 = new String[] { "long", "int", "int" }; + _methodParameterTypes248 = new String[] { "long", "int", "int" }; - _methodName273 = "findPraticheCompleteNotProtocollo"; + _methodName249 = "findPraticheCompleteNotProtocollo"; - _methodParameterTypes273 = new String[] { "int", "int" }; + _methodParameterTypes249 = new String[] { "int", "int" }; - _methodName274 = "countPraticheCompleteNotProtocollo"; + _methodName250 = "countPraticheCompleteNotProtocollo"; - _methodParameterTypes274 = new String[] { }; + _methodParameterTypes250 = new String[] { }; - _methodName276 = "findPraticheCompleteNotGestite"; + _methodName252 = "findPraticheCompleteNotGestite"; - _methodParameterTypes276 = new String[] { "int", "int" }; + _methodParameterTypes252 = new String[] { "int", "int" }; - _methodName277 = "countPraticheCompleteNotGestite"; + _methodName253 = "countPraticheCompleteNotGestite"; - _methodParameterTypes277 = new String[] { }; + _methodParameterTypes253 = new String[] { }; - _methodName279 = "findByIntPraticaId_TipoIntegrazione_Completa"; + _methodName255 = "findByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes279 = new String[] { + _methodParameterTypes255 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName280 = "countByIntPraticaId_TipoIntegrazione_Completa"; + _methodName256 = "countByIntPraticaId_TipoIntegrazione_Completa"; - _methodParameterTypes280 = new String[] { + _methodParameterTypes256 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName281 = "findPraticheCompletateNonVersionate"; - - _methodParameterTypes281 = new String[] { "int", "int" }; - - _methodName282 = "countPraticheCompletateNonversionate"; + _methodName257 = "updateDettPraticaGestita"; - _methodParameterTypes282 = new String[] { }; + _methodParameterTypes257 = new String[] { "long", "boolean" }; - _methodName284 = "updateDettPraticaGestita"; + _methodName258 = "updateStatus"; - _methodParameterTypes284 = new String[] { "long", "boolean" }; - - _methodName285 = "updateAsset"; - - _methodParameterTypes285 = new String[] { - "it.tref.liferay.portos.bo.model.DettPratica", "long[][]", - "boolean" - }; - - _methodName286 = "updateStatus"; - - _methodParameterTypes286 = new String[] { "long", "int" }; + _methodParameterTypes258 = new String[] { "long", "int" }; - _methodName287 = "updateSignal"; + _methodName259 = "updateSignal"; - _methodParameterTypes287 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes259 = new String[] { "long", "java.util.Date" }; - _methodName288 = "countInvioSignal"; + _methodName260 = "countInvioSignal"; - _methodParameterTypes288 = new String[] { }; + _methodParameterTypes260 = new String[] { }; - _methodName289 = "getInvioSignal"; + _methodName261 = "getInvioSignal"; - _methodParameterTypes289 = new String[] { "long" }; + _methodParameterTypes261 = new String[] { "long" }; - _methodName290 = "getInviiSignal"; + _methodName262 = "getInviiSignal"; - _methodParameterTypes290 = new String[] { "int", "int" }; + _methodParameterTypes262 = new String[] { "int", "int" }; - _methodName291 = "dynamicQueryInvioSignal"; + _methodName263 = "dynamicQueryInvioSignal"; - _methodParameterTypes291 = new String[] { "java.lang.Long" }; + _methodParameterTypes263 = new String[] { "java.lang.Long" }; - _methodName292 = "findByPagamentoId"; + _methodName264 = "findByPagamentoId"; - _methodParameterTypes292 = new String[] { "long" }; + _methodParameterTypes264 = new String[] { "long" }; - _methodName293 = "updatePrincipale"; + _methodName265 = "updatePrincipale"; - _methodParameterTypes293 = new String[] { + _methodParameterTypes265 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName294 = "sendToVersioning"; + _methodName266 = "getDettPraticaFields"; - _methodParameterTypes294 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes266 = new String[] { }; - _methodName295 = "getNumeroDiVersioni"; + _methodName267 = "getVersioni"; - _methodParameterTypes295 = new String[] { "java.lang.String" }; + _methodParameterTypes267 = new String[] { "long" }; - _methodName296 = "getVersionNumber"; + _methodName268 = "callForChanges"; - _methodParameterTypes296 = new String[] { "java.lang.String", "int" }; + _methodParameterTypes268 = new String[] { "long" }; - _methodName298 = "callForChanges"; + _methodName269 = "isNumber"; - _methodParameterTypes298 = new String[] { "java.lang.String" }; + _methodParameterTypes269 = new String[] { "java.lang.String" }; - _methodName299 = "fetchByOldDettPraticaId"; + _methodName270 = "format"; - _methodParameterTypes299 = new String[] { "long" }; + _methodParameterTypes270 = new String[] { + "java.lang.String", "java.io.Serializable" + }; - _methodName300 = "countVariateByIntPratica"; + _methodName271 = "countVariateByIntPratica"; - _methodParameterTypes300 = new String[] { "long" }; + _methodParameterTypes271 = new String[] { "long" }; - _methodName301 = "getFirstCompletedByIntPratica"; + _methodName273 = "getFirstCompletedByIntPratica"; - _methodParameterTypes301 = new String[] { "long" }; + _methodParameterTypes273 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -685,128 +659,123 @@ public class DettPraticaLocalServiceClpInvoker { return DettPraticaLocalServiceUtil.updateDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DettPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { DettPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaToIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaClonedToIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return DettPraticaLocalServiceUtil.cloneDettagliSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DettPraticaLocalServiceUtil.addDettPraticaForImport((com.liferay.portal.service.ServiceContext)arguments[0]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastEditableByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedBeforeDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastCompletedByIntPraticaAndProtocolloNotEmpty(((Long)arguments[0]).longValue()); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastdByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return DettPraticaLocalServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndSuccessivoDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return DettPraticaLocalServiceUtil.deleteDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return DettPraticaLocalServiceUtil.deleteDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { - return DettPraticaLocalServiceUtil.getByOldDettPraticaId(((Long)arguments[0]).longValue()); - } - - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return DettPraticaLocalServiceUtil.search((com.liferay.portal.kernel.search.SearchContext)arguments[0]); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return DettPraticaLocalServiceUtil.searchCount((com.liferay.portal.kernel.search.SearchContext)arguments[0]); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -815,8 +784,8 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -829,106 +798,108 @@ public class DettPraticaLocalServiceClpInvoker { (java.lang.String)arguments[11], (java.lang.String)arguments[12], (java.util.Date)arguments[13], ((Integer)arguments[14]).intValue(), - ((Boolean)arguments[15]).booleanValue(), - ((Long)arguments[16]).longValue(), - ((Long)arguments[17]).longValue(), + ((Long)arguments[15]).longValue(), + (java.lang.String)arguments[16], + (java.lang.String)arguments[17], (java.lang.String)arguments[18], (java.lang.String)arguments[19], (java.lang.String)arguments[20], (java.lang.String)arguments[21], (java.lang.String)arguments[22], - (java.lang.String)arguments[23], - (java.lang.String)arguments[24], - ((Long)arguments[25]).longValue(), - ((Long)arguments[26]).longValue(), - ((Boolean)arguments[27]).booleanValue(), - ((Boolean)arguments[28]).booleanValue(), + ((Long)arguments[23]).longValue(), + ((Boolean)arguments[24]).booleanValue(), + ((Boolean)arguments[25]).booleanValue(), + (java.lang.String)arguments[26], + (java.lang.String)arguments[27], + (java.lang.String)arguments[28], ((Boolean)arguments[29]).booleanValue(), - (java.lang.String)arguments[30], - (java.lang.String)arguments[31], + ((Long)arguments[30]).longValue(), + ((Integer)arguments[31]).intValue(), (java.lang.String)arguments[32], (java.lang.String)arguments[33], - ((Boolean)arguments[34]).booleanValue(), - ((Boolean)arguments[35]).booleanValue(), - (java.util.Date)arguments[36], (java.util.Date)arguments[37], - (java.util.Date)arguments[38], (java.lang.String)arguments[39], - ((Boolean)arguments[40]).booleanValue(), - ((Long)arguments[41]).longValue(), - ((Integer)arguments[42]).intValue(), + (java.lang.String)arguments[34], + (java.lang.String)arguments[35], + (java.lang.String)arguments[36], + (java.lang.String)arguments[37], + (java.lang.String)arguments[38], + (java.lang.String)arguments[39], + (java.lang.String)arguments[40], + (java.lang.String)arguments[41], + (java.lang.String)arguments[42], (java.lang.String)arguments[43], (java.lang.String)arguments[44], (java.lang.String)arguments[45], - (java.lang.String)arguments[46], - (java.lang.String)arguments[47], - (java.lang.String)arguments[48], - (java.lang.String)arguments[49], - (java.lang.String)arguments[50], - (java.lang.String)arguments[51], - (java.lang.String)arguments[52], - (java.lang.String)arguments[53], - (java.lang.String)arguments[54], - (java.lang.String)arguments[55], - (java.lang.String)arguments[56], + ((Boolean)arguments[46]).booleanValue(), + ((Boolean)arguments[47]).booleanValue(), + ((Boolean)arguments[48]).booleanValue(), + ((Boolean)arguments[49]).booleanValue(), + ((Boolean)arguments[50]).booleanValue(), + ((Boolean)arguments[51]).booleanValue(), + ((Boolean)arguments[52]).booleanValue(), + ((Boolean)arguments[53]).booleanValue(), + ((Boolean)arguments[54]).booleanValue(), + ((Boolean)arguments[55]).booleanValue(), + ((Boolean)arguments[56]).booleanValue(), (java.lang.String)arguments[57], - ((Boolean)arguments[58]).booleanValue(), + (java.lang.String)arguments[58], ((Boolean)arguments[59]).booleanValue(), ((Boolean)arguments[60]).booleanValue(), ((Boolean)arguments[61]).booleanValue(), ((Boolean)arguments[62]).booleanValue(), - ((Boolean)arguments[63]).booleanValue(), - ((Boolean)arguments[64]).booleanValue(), - ((Boolean)arguments[65]).booleanValue(), + (java.lang.String)arguments[63], + (java.lang.String)arguments[64], + (java.lang.String)arguments[65], ((Boolean)arguments[66]).booleanValue(), ((Boolean)arguments[67]).booleanValue(), ((Boolean)arguments[68]).booleanValue(), - (java.lang.String)arguments[69], - (java.lang.String)arguments[70], + ((Boolean)arguments[69]).booleanValue(), + ((Boolean)arguments[70]).booleanValue(), ((Boolean)arguments[71]).booleanValue(), - ((Boolean)arguments[72]).booleanValue(), + (java.lang.String)arguments[72], ((Boolean)arguments[73]).booleanValue(), ((Boolean)arguments[74]).booleanValue(), - (java.lang.String)arguments[75], - (java.lang.String)arguments[76], - (java.lang.String)arguments[77], + ((Boolean)arguments[75]).booleanValue(), + ((Boolean)arguments[76]).booleanValue(), + ((Boolean)arguments[77]).booleanValue(), ((Boolean)arguments[78]).booleanValue(), - ((Boolean)arguments[79]).booleanValue(), - ((Boolean)arguments[80]).booleanValue(), + (java.lang.String)arguments[79], + (java.lang.String)arguments[80], ((Boolean)arguments[81]).booleanValue(), ((Boolean)arguments[82]).booleanValue(), ((Boolean)arguments[83]).booleanValue(), - (java.lang.String)arguments[84], + ((Boolean)arguments[84]).booleanValue(), ((Boolean)arguments[85]).booleanValue(), ((Boolean)arguments[86]).booleanValue(), ((Boolean)arguments[87]).booleanValue(), ((Boolean)arguments[88]).booleanValue(), - ((Boolean)arguments[89]).booleanValue(), + (java.lang.String)arguments[89], ((Boolean)arguments[90]).booleanValue(), - (java.lang.String)arguments[91], - (java.lang.String)arguments[92], + ((Boolean)arguments[91]).booleanValue(), + ((Boolean)arguments[92]).booleanValue(), ((Boolean)arguments[93]).booleanValue(), ((Boolean)arguments[94]).booleanValue(), - ((Boolean)arguments[95]).booleanValue(), + (java.lang.String)arguments[95], ((Boolean)arguments[96]).booleanValue(), ((Boolean)arguments[97]).booleanValue(), ((Boolean)arguments[98]).booleanValue(), ((Boolean)arguments[99]).booleanValue(), ((Boolean)arguments[100]).booleanValue(), - (java.lang.String)arguments[101], + ((Boolean)arguments[101]).booleanValue(), ((Boolean)arguments[102]).booleanValue(), ((Boolean)arguments[103]).booleanValue(), ((Boolean)arguments[104]).booleanValue(), - ((Boolean)arguments[105]).booleanValue(), - ((Boolean)arguments[106]).booleanValue(), + (java.lang.String)arguments[105], + (java.lang.String)arguments[106], (java.lang.String)arguments[107], - ((Boolean)arguments[108]).booleanValue(), - ((Boolean)arguments[109]).booleanValue(), - ((Boolean)arguments[110]).booleanValue(), - ((Boolean)arguments[111]).booleanValue(), - ((Boolean)arguments[112]).booleanValue(), - ((Boolean)arguments[113]).booleanValue(), - ((Boolean)arguments[114]).booleanValue(), - ((Boolean)arguments[115]).booleanValue(), - ((Boolean)arguments[116]).booleanValue(), + (java.lang.String)arguments[108], + (java.lang.String)arguments[109], + (java.lang.String)arguments[110], + (java.lang.String)arguments[111], + (java.lang.String)arguments[112], + (java.lang.String)arguments[113], + (java.lang.String)arguments[114], + (java.lang.String)arguments[115], + (java.lang.String)arguments[116], (java.lang.String)arguments[117], (java.lang.String)arguments[118], (java.lang.String)arguments[119], @@ -940,41 +911,41 @@ public class DettPraticaLocalServiceClpInvoker { (java.lang.String)arguments[125], (java.lang.String)arguments[126], (java.lang.String)arguments[127], - (java.lang.String)arguments[128], - (java.lang.String)arguments[129], - (java.lang.String)arguments[130], - (java.lang.String)arguments[131], - (java.lang.String)arguments[132], - (java.lang.String)arguments[133], - (java.lang.String)arguments[134], - (java.lang.String)arguments[135], - (java.lang.String)arguments[136], - (java.lang.String)arguments[137], - (java.lang.String)arguments[138], - (java.lang.String)arguments[139], - (java.util.Date)arguments[140], + (java.util.Date)arguments[128], + (java.lang.Double)arguments[129], + (java.lang.Double)arguments[130], + (java.lang.Double)arguments[131], + (java.lang.Double)arguments[132], + (java.lang.Double)arguments[133], + (java.lang.Double)arguments[134], + (java.lang.Double)arguments[135], + (java.lang.Double)arguments[136], + (java.lang.Double)arguments[137], + (java.lang.Double)arguments[138], + (java.lang.Double)arguments[139], + (java.lang.Double)arguments[140], (java.lang.Double)arguments[141], (java.lang.Double)arguments[142], (java.lang.Double)arguments[143], - (java.lang.Double)arguments[144], - (java.lang.Double)arguments[145], - (java.lang.Double)arguments[146], - (java.lang.Double)arguments[147], - (java.lang.Double)arguments[148], - (java.lang.Double)arguments[149], - (java.lang.Double)arguments[150], - (java.lang.Double)arguments[151], - (java.lang.Double)arguments[152], - (java.lang.Double)arguments[153], - (java.lang.Double)arguments[154], - (java.lang.Double)arguments[155], - (java.lang.String)arguments[156], - (java.lang.String)arguments[157], - (java.lang.String)arguments[158], + (java.lang.String)arguments[144], + (java.lang.String)arguments[145], + (java.lang.String)arguments[146], + ((Boolean)arguments[147]).booleanValue(), + ((Boolean)arguments[148]).booleanValue(), + ((Boolean)arguments[149]).booleanValue(), + ((Boolean)arguments[150]).booleanValue(), + ((Boolean)arguments[151]).booleanValue(), + ((Boolean)arguments[152]).booleanValue(), + ((Boolean)arguments[153]).booleanValue(), + ((Boolean)arguments[154]).booleanValue(), + ((Boolean)arguments[155]).booleanValue(), + ((Boolean)arguments[156]).booleanValue(), + ((Boolean)arguments[157]).booleanValue(), + ((Boolean)arguments[158]).booleanValue(), ((Boolean)arguments[159]).booleanValue(), ((Boolean)arguments[160]).booleanValue(), ((Boolean)arguments[161]).booleanValue(), - ((Boolean)arguments[162]).booleanValue(), + (java.lang.String)arguments[162], ((Boolean)arguments[163]).booleanValue(), ((Boolean)arguments[164]).booleanValue(), ((Boolean)arguments[165]).booleanValue(), @@ -986,23 +957,23 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[171]).booleanValue(), ((Boolean)arguments[172]).booleanValue(), ((Boolean)arguments[173]).booleanValue(), - (java.lang.String)arguments[174], + ((Boolean)arguments[174]).booleanValue(), ((Boolean)arguments[175]).booleanValue(), ((Boolean)arguments[176]).booleanValue(), - ((Boolean)arguments[177]).booleanValue(), - ((Boolean)arguments[178]).booleanValue(), + (java.lang.String)arguments[177], + (java.lang.String)arguments[178], ((Boolean)arguments[179]).booleanValue(), - ((Boolean)arguments[180]).booleanValue(), - ((Boolean)arguments[181]).booleanValue(), + (java.lang.String)arguments[180], + (com.liferay.portal.service.ServiceContext)arguments[181], ((Boolean)arguments[182]).booleanValue(), - ((Boolean)arguments[183]).booleanValue(), - ((Boolean)arguments[184]).booleanValue(), - ((Boolean)arguments[185]).booleanValue(), - ((Boolean)arguments[186]).booleanValue(), - ((Boolean)arguments[187]).booleanValue(), - ((Boolean)arguments[188]).booleanValue(), - ((Boolean)arguments[189]).booleanValue(), - ((Boolean)arguments[190]).booleanValue(), + (java.lang.String)arguments[183], + (java.lang.String)arguments[184], + (java.lang.String)arguments[185], + (java.lang.String)arguments[186], + (java.lang.Boolean)arguments[187], + (java.lang.Boolean)arguments[188], + (java.lang.Boolean)arguments[189], + (java.lang.String)arguments[190], ((Boolean)arguments[191]).booleanValue(), ((Boolean)arguments[192]).booleanValue(), ((Boolean)arguments[193]).booleanValue(), @@ -1011,34 +982,13 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[196]).booleanValue(), ((Boolean)arguments[197]).booleanValue(), ((Boolean)arguments[198]).booleanValue(), - (java.lang.String)arguments[199], - (java.lang.String)arguments[200], - ((Boolean)arguments[201]).booleanValue(), - (java.lang.String)arguments[202], - (com.liferay.portal.service.ServiceContext)arguments[203], - ((Boolean)arguments[204]).booleanValue(), - (java.lang.String)arguments[205], - (java.lang.String)arguments[206], - (java.lang.String)arguments[207], - (java.lang.String)arguments[208], - (java.lang.Boolean)arguments[209], - (java.lang.Boolean)arguments[210], - (java.lang.Boolean)arguments[211], - (java.lang.String)arguments[212], - ((Boolean)arguments[213]).booleanValue(), - ((Boolean)arguments[214]).booleanValue(), - ((Boolean)arguments[215]).booleanValue(), - ((Boolean)arguments[216]).booleanValue(), - ((Boolean)arguments[217]).booleanValue(), - ((Boolean)arguments[218]).booleanValue(), - ((Boolean)arguments[219]).booleanValue(), - ((Boolean)arguments[220]).booleanValue(), - ((Boolean)arguments[221]).booleanValue(), - ((Double)arguments[222]).doubleValue()); + ((Boolean)arguments[199]).booleanValue(), + ((Double)arguments[200]).doubleValue(), + (java.lang.String)arguments[201]); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaDatiDomanda(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1048,15 +998,15 @@ public class DettPraticaLocalServiceClpInvoker { (java.lang.String)arguments[9], (java.lang.String)arguments[10], ((Boolean)arguments[11]).booleanValue(), - ((Boolean)arguments[12]).booleanValue(), + (java.lang.String)arguments[12], (java.lang.String)arguments[13], (java.lang.String)arguments[14], - (java.lang.String)arguments[15], - ((Boolean)arguments[16]).booleanValue(), - (java.lang.String)arguments[17], - ((Boolean)arguments[18]).booleanValue(), - ((Long)arguments[19]).longValue(), - ((Integer)arguments[20]).intValue(), + ((Boolean)arguments[15]).booleanValue(), + ((Long)arguments[16]).longValue(), + ((Integer)arguments[17]).intValue(), + (java.lang.String)arguments[18], + (java.lang.String)arguments[19], + (java.lang.String)arguments[20], (java.lang.String)arguments[21], (java.lang.String)arguments[22], (java.lang.String)arguments[23], @@ -1068,10 +1018,10 @@ public class DettPraticaLocalServiceClpInvoker { (java.lang.String)arguments[29], (java.lang.String)arguments[30], (java.lang.String)arguments[31], - (java.lang.String)arguments[32], - (java.lang.String)arguments[33], - (java.lang.String)arguments[34], - (java.lang.String)arguments[35], + ((Boolean)arguments[32]).booleanValue(), + ((Boolean)arguments[33]).booleanValue(), + ((Boolean)arguments[34]).booleanValue(), + ((Boolean)arguments[35]).booleanValue(), ((Boolean)arguments[36]).booleanValue(), ((Boolean)arguments[37]).booleanValue(), ((Boolean)arguments[38]).booleanValue(), @@ -1079,60 +1029,60 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[40]).booleanValue(), ((Boolean)arguments[41]).booleanValue(), ((Boolean)arguments[42]).booleanValue(), - ((Boolean)arguments[43]).booleanValue(), - ((Boolean)arguments[44]).booleanValue(), + (java.lang.String)arguments[43], + (java.lang.String)arguments[44], ((Boolean)arguments[45]).booleanValue(), ((Boolean)arguments[46]).booleanValue(), - (java.lang.String)arguments[47], - (java.lang.String)arguments[48], - ((Boolean)arguments[49]).booleanValue(), - ((Boolean)arguments[50]).booleanValue(), - ((Boolean)arguments[51]).booleanValue(), + ((Boolean)arguments[47]).booleanValue(), + ((Boolean)arguments[48]).booleanValue(), + (java.lang.String)arguments[49], + (java.lang.String)arguments[50], + (java.lang.String)arguments[51], ((Boolean)arguments[52]).booleanValue(), - (java.lang.String)arguments[53], - (java.lang.String)arguments[54], - (java.lang.String)arguments[55], + ((Boolean)arguments[53]).booleanValue(), + ((Boolean)arguments[54]).booleanValue(), + ((Boolean)arguments[55]).booleanValue(), ((Boolean)arguments[56]).booleanValue(), ((Boolean)arguments[57]).booleanValue(), - ((Boolean)arguments[58]).booleanValue(), + (java.lang.String)arguments[58], ((Boolean)arguments[59]).booleanValue(), ((Boolean)arguments[60]).booleanValue(), ((Boolean)arguments[61]).booleanValue(), - (java.lang.String)arguments[62], + ((Boolean)arguments[62]).booleanValue(), ((Boolean)arguments[63]).booleanValue(), ((Boolean)arguments[64]).booleanValue(), - ((Boolean)arguments[65]).booleanValue(), - ((Boolean)arguments[66]).booleanValue(), + (java.lang.String)arguments[65], + (java.lang.String)arguments[66], ((Boolean)arguments[67]).booleanValue(), ((Boolean)arguments[68]).booleanValue(), - (java.lang.String)arguments[69], - (java.lang.String)arguments[70], + ((Boolean)arguments[69]).booleanValue(), + ((Boolean)arguments[70]).booleanValue(), ((Boolean)arguments[71]).booleanValue(), ((Boolean)arguments[72]).booleanValue(), ((Boolean)arguments[73]).booleanValue(), ((Boolean)arguments[74]).booleanValue(), - ((Boolean)arguments[75]).booleanValue(), + (java.lang.String)arguments[75], ((Boolean)arguments[76]).booleanValue(), ((Boolean)arguments[77]).booleanValue(), ((Boolean)arguments[78]).booleanValue(), - (java.lang.String)arguments[79], + ((Boolean)arguments[79]).booleanValue(), ((Boolean)arguments[80]).booleanValue(), - ((Boolean)arguments[81]).booleanValue(), + (java.lang.String)arguments[81], ((Boolean)arguments[82]).booleanValue(), ((Boolean)arguments[83]).booleanValue(), ((Boolean)arguments[84]).booleanValue(), - (java.lang.String)arguments[85], + ((Boolean)arguments[85]).booleanValue(), ((Boolean)arguments[86]).booleanValue(), ((Boolean)arguments[87]).booleanValue(), ((Boolean)arguments[88]).booleanValue(), ((Boolean)arguments[89]).booleanValue(), ((Boolean)arguments[90]).booleanValue(), - ((Boolean)arguments[91]).booleanValue(), - ((Boolean)arguments[92]).booleanValue(), + (java.lang.String)arguments[91], + (java.lang.String)arguments[92], ((Boolean)arguments[93]).booleanValue(), ((Boolean)arguments[94]).booleanValue(), - (java.lang.String)arguments[95], - (java.lang.String)arguments[96], + ((Boolean)arguments[95]).booleanValue(), + ((Boolean)arguments[96]).booleanValue(), ((Boolean)arguments[97]).booleanValue(), ((Boolean)arguments[98]).booleanValue(), ((Boolean)arguments[99]).booleanValue(), @@ -1144,11 +1094,11 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[105]).booleanValue(), ((Boolean)arguments[106]).booleanValue(), ((Boolean)arguments[107]).booleanValue(), - ((Boolean)arguments[108]).booleanValue(), + (java.lang.String)arguments[108], ((Boolean)arguments[109]).booleanValue(), ((Boolean)arguments[110]).booleanValue(), ((Boolean)arguments[111]).booleanValue(), - (java.lang.String)arguments[112], + ((Boolean)arguments[112]).booleanValue(), ((Boolean)arguments[113]).booleanValue(), ((Boolean)arguments[114]).booleanValue(), ((Boolean)arguments[115]).booleanValue(), @@ -1159,47 +1109,34 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[120]).booleanValue(), ((Boolean)arguments[121]).booleanValue(), ((Boolean)arguments[122]).booleanValue(), - ((Boolean)arguments[123]).booleanValue(), - ((Boolean)arguments[124]).booleanValue(), + (java.lang.String)arguments[123], + (java.lang.String)arguments[124], ((Boolean)arguments[125]).booleanValue(), - ((Boolean)arguments[126]).booleanValue(), - ((Boolean)arguments[127]).booleanValue(), + (java.lang.String)arguments[126], + (com.liferay.portal.service.ServiceContext)arguments[127], ((Boolean)arguments[128]).booleanValue(), - ((Boolean)arguments[129]).booleanValue(), - ((Boolean)arguments[130]).booleanValue(), - ((Boolean)arguments[131]).booleanValue(), - ((Boolean)arguments[132]).booleanValue(), - ((Boolean)arguments[133]).booleanValue(), - ((Boolean)arguments[134]).booleanValue(), - ((Boolean)arguments[135]).booleanValue(), - ((Boolean)arguments[136]).booleanValue(), - (java.lang.String)arguments[137], - (java.lang.String)arguments[138], + (java.lang.String)arguments[129], + (java.lang.String)arguments[130], + (java.lang.String)arguments[131], + (java.lang.String)arguments[132], + (java.lang.Boolean)arguments[133], + (java.lang.Boolean)arguments[134], + (java.lang.Boolean)arguments[135], + (java.lang.String)arguments[136], + ((Boolean)arguments[137]).booleanValue(), + ((Boolean)arguments[138]).booleanValue(), ((Boolean)arguments[139]).booleanValue(), - (java.lang.String)arguments[140], - (com.liferay.portal.service.ServiceContext)arguments[141], + ((Boolean)arguments[140]).booleanValue(), + ((Boolean)arguments[141]).booleanValue(), ((Boolean)arguments[142]).booleanValue(), - (java.lang.String)arguments[143], - (java.lang.String)arguments[144], - (java.lang.String)arguments[145], - (java.lang.String)arguments[146], - (java.lang.Boolean)arguments[147], - (java.lang.Boolean)arguments[148], - (java.lang.Boolean)arguments[149], - (java.lang.String)arguments[150], - ((Boolean)arguments[151]).booleanValue(), - ((Boolean)arguments[152]).booleanValue(), - ((Boolean)arguments[153]).booleanValue(), - ((Boolean)arguments[154]).booleanValue(), - ((Boolean)arguments[155]).booleanValue(), - ((Boolean)arguments[156]).booleanValue(), - ((Boolean)arguments[157]).booleanValue(), - ((Boolean)arguments[158]).booleanValue(), - ((Boolean)arguments[159]).booleanValue()); + ((Boolean)arguments[143]).booleanValue(), + ((Boolean)arguments[144]).booleanValue(), + ((Boolean)arguments[145]).booleanValue(), + (java.lang.String)arguments[146]); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaDatiIntegrazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1220,31 +1157,31 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[19]).booleanValue(), ((Boolean)arguments[20]).booleanValue(), ((Boolean)arguments[21]).booleanValue(), - ((Boolean)arguments[22]).booleanValue(), + (java.lang.String)arguments[22], (java.lang.String)arguments[23], - (java.lang.String)arguments[24], + ((Boolean)arguments[24]).booleanValue(), ((Boolean)arguments[25]).booleanValue(), ((Boolean)arguments[26]).booleanValue(), ((Boolean)arguments[27]).booleanValue(), - ((Boolean)arguments[28]).booleanValue(), + (java.lang.String)arguments[28], (java.lang.String)arguments[29], (java.lang.String)arguments[30], - (java.lang.String)arguments[31], + ((Boolean)arguments[31]).booleanValue(), ((Boolean)arguments[32]).booleanValue(), ((Boolean)arguments[33]).booleanValue(), ((Boolean)arguments[34]).booleanValue(), ((Boolean)arguments[35]).booleanValue(), ((Boolean)arguments[36]).booleanValue(), - ((Boolean)arguments[37]).booleanValue(), - (java.lang.String)arguments[38], + (java.lang.String)arguments[37], + ((Boolean)arguments[38]).booleanValue(), ((Boolean)arguments[39]).booleanValue(), ((Boolean)arguments[40]).booleanValue(), ((Boolean)arguments[41]).booleanValue(), ((Boolean)arguments[42]).booleanValue(), ((Boolean)arguments[43]).booleanValue(), - ((Boolean)arguments[44]).booleanValue(), + (java.lang.String)arguments[44], (java.lang.String)arguments[45], - (java.lang.String)arguments[46], + ((Boolean)arguments[46]).booleanValue(), ((Boolean)arguments[47]).booleanValue(), ((Boolean)arguments[48]).booleanValue(), ((Boolean)arguments[49]).booleanValue(), @@ -1252,14 +1189,14 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[51]).booleanValue(), ((Boolean)arguments[52]).booleanValue(), ((Boolean)arguments[53]).booleanValue(), - ((Boolean)arguments[54]).booleanValue(), - (java.lang.String)arguments[55], + (java.lang.String)arguments[54], + ((Boolean)arguments[55]).booleanValue(), ((Boolean)arguments[56]).booleanValue(), ((Boolean)arguments[57]).booleanValue(), ((Boolean)arguments[58]).booleanValue(), ((Boolean)arguments[59]).booleanValue(), - ((Boolean)arguments[60]).booleanValue(), - (java.lang.String)arguments[61], + (java.lang.String)arguments[60], + ((Boolean)arguments[61]).booleanValue(), ((Boolean)arguments[62]).booleanValue(), ((Boolean)arguments[63]).booleanValue(), ((Boolean)arguments[64]).booleanValue(), @@ -1268,8 +1205,8 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[67]).booleanValue(), ((Boolean)arguments[68]).booleanValue(), ((Boolean)arguments[69]).booleanValue(), - ((Boolean)arguments[70]).booleanValue(), - (java.lang.String)arguments[71], + (java.lang.String)arguments[70], + ((Boolean)arguments[71]).booleanValue(), ((Boolean)arguments[72]).booleanValue(), ((Boolean)arguments[73]).booleanValue(), ((Boolean)arguments[74]).booleanValue(), @@ -1282,8 +1219,8 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[81]).booleanValue(), ((Boolean)arguments[82]).booleanValue(), ((Boolean)arguments[83]).booleanValue(), - ((Boolean)arguments[84]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[85], + (com.liferay.portal.service.ServiceContext)arguments[84], + ((Boolean)arguments[85]).booleanValue(), ((Boolean)arguments[86]).booleanValue(), ((Boolean)arguments[87]).booleanValue(), ((Boolean)arguments[88]).booleanValue(), @@ -1293,11 +1230,11 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[92]).booleanValue(), ((Boolean)arguments[93]).booleanValue(), ((Boolean)arguments[94]).booleanValue(), - ((Boolean)arguments[95]).booleanValue()); + (java.lang.String)arguments[95]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaGeologo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1324,8 +1261,8 @@ public class DettPraticaLocalServiceClpInvoker { ((Boolean)arguments[27]).booleanValue()); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaPagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.Double)arguments[3], (java.lang.Double)arguments[4], @@ -1344,49 +1281,45 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[19]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return DettPraticaLocalServiceUtil.updateCheckPagamenti(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { - DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + return DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); - - return null; } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { - DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + return DettPraticaLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); - - return null; } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return DettPraticaLocalServiceUtil.isControlloObbligatorio((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return DettPraticaLocalServiceUtil.updateEsitoIntegrazione(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return DettPraticaLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.Double)arguments[1], (java.lang.Double)arguments[2], (java.lang.Double)arguments[3], (java.lang.Double)arguments[4], @@ -1406,192 +1339,168 @@ public class DettPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[20]); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return DettPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return DettPraticaLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return DettPraticaLocalServiceUtil.fetchByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return DettPraticaLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaIdInviate(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompleteNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompleteNotProtocollo(); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return DettPraticaLocalServiceUtil.findPraticheCompleteNotGestite(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { return DettPraticaLocalServiceUtil.countPraticheCompleteNotGestite(); } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { return DettPraticaLocalServiceUtil.findByIntPraticaId_TipoIntegrazione_Completa(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return DettPraticaLocalServiceUtil.countByIntPraticaId_TipoIntegrazione_Completa(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { - return DettPraticaLocalServiceUtil.findPraticheCompletateNonVersionate(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { - return DettPraticaLocalServiceUtil.countPraticheCompletateNonversionate(); - } - - if (_methodName284.equals(name) && - Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return DettPraticaLocalServiceUtil.updateDettPraticaGestita(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName285.equals(name) && - Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { - DettPraticaLocalServiceUtil.updateAsset((it.tref.liferay.portos.bo.model.DettPratica)arguments[0], - (long[])arguments[1], ((Boolean)arguments[2]).booleanValue()); - - return null; - } - - if (_methodName286.equals(name) && - Arrays.deepEquals(_methodParameterTypes286, parameterTypes)) { - DettPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + return DettPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); - - return null; } - if (_methodName287.equals(name) && - Arrays.deepEquals(_methodParameterTypes287, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return DettPraticaLocalServiceUtil.updateSignal(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName288.equals(name) && - Arrays.deepEquals(_methodParameterTypes288, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return DettPraticaLocalServiceUtil.countInvioSignal(); } - if (_methodName289.equals(name) && - Arrays.deepEquals(_methodParameterTypes289, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { return DettPraticaLocalServiceUtil.getInvioSignal(((Long)arguments[0]).longValue()); } - if (_methodName290.equals(name) && - Arrays.deepEquals(_methodParameterTypes290, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return DettPraticaLocalServiceUtil.getInviiSignal(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName291.equals(name) && - Arrays.deepEquals(_methodParameterTypes291, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return DettPraticaLocalServiceUtil.dynamicQueryInvioSignal((java.lang.Long)arguments[0]); } - if (_methodName292.equals(name) && - Arrays.deepEquals(_methodParameterTypes292, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return DettPraticaLocalServiceUtil.findByPagamentoId(((Long)arguments[0]).longValue()); } - if (_methodName293.equals(name) && - Arrays.deepEquals(_methodParameterTypes293, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return DettPraticaLocalServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName294.equals(name) && - Arrays.deepEquals(_methodParameterTypes294, parameterTypes)) { - DettPraticaLocalServiceUtil.sendToVersioning(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1]); - - return null; + if (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + return DettPraticaLocalServiceUtil.getDettPraticaFields(); } - if (_methodName295.equals(name) && - Arrays.deepEquals(_methodParameterTypes295, parameterTypes)) { - return DettPraticaLocalServiceUtil.getNumeroDiVersioni((java.lang.String)arguments[0]); + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + return DettPraticaLocalServiceUtil.getVersioni(((Long)arguments[0]).longValue()); } - if (_methodName296.equals(name) && - Arrays.deepEquals(_methodParameterTypes296, parameterTypes)) { - return DettPraticaLocalServiceUtil.getVersionNumber((java.lang.String)arguments[0], - ((Integer)arguments[1]).intValue()); + if (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + return DettPraticaLocalServiceUtil.callForChanges(((Long)arguments[0]).longValue()); } - if (_methodName298.equals(name) && - Arrays.deepEquals(_methodParameterTypes298, parameterTypes)) { - return DettPraticaLocalServiceUtil.callForChanges((java.lang.String)arguments[0]); + if (_methodName269.equals(name) && + Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + return DettPraticaLocalServiceUtil.isNumber((java.lang.String)arguments[0]); } - if (_methodName299.equals(name) && - Arrays.deepEquals(_methodParameterTypes299, parameterTypes)) { - return DettPraticaLocalServiceUtil.fetchByOldDettPraticaId(((Long)arguments[0]).longValue()); + if (_methodName270.equals(name) && + Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + return DettPraticaLocalServiceUtil.format((java.lang.String)arguments[0], + (java.io.Serializable)arguments[1]); } - if (_methodName300.equals(name) && - Arrays.deepEquals(_methodParameterTypes300, parameterTypes)) { + if (_methodName271.equals(name) && + Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { return DettPraticaLocalServiceUtil.countVariateByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName301.equals(name) && - Arrays.deepEquals(_methodParameterTypes301, parameterTypes)) { + if (_methodName273.equals(name) && + Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { return DettPraticaLocalServiceUtil.getFirstCompletedByIntPratica(((Long)arguments[0]).longValue()); } @@ -1638,16 +1547,56 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName200; + private String[] _methodParameterTypes200; + private String _methodName201; + private String[] _methodParameterTypes201; + private String _methodName207; + private String[] _methodParameterTypes207; + private String _methodName208; + private String[] _methodParameterTypes208; + private String _methodName209; + private String[] _methodParameterTypes209; + private String _methodName211; + private String[] _methodParameterTypes211; + private String _methodName212; + private String[] _methodParameterTypes212; + private String _methodName213; + private String[] _methodParameterTypes213; + private String _methodName214; + private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; + private String _methodName216; + private String[] _methodParameterTypes216; + private String _methodName217; + private String[] _methodParameterTypes217; + private String _methodName218; + private String[] _methodParameterTypes218; + private String _methodName219; + private String[] _methodParameterTypes219; private String _methodName220; private String[] _methodParameterTypes220; private String _methodName221; private String[] _methodParameterTypes221; + private String _methodName222; + private String[] _methodParameterTypes222; + private String _methodName223; + private String[] _methodParameterTypes223; + private String _methodName224; + private String[] _methodParameterTypes224; + private String _methodName225; + private String[] _methodParameterTypes225; + private String _methodName226; + private String[] _methodParameterTypes226; private String _methodName227; private String[] _methodParameterTypes227; private String _methodName228; private String[] _methodParameterTypes228; private String _methodName229; private String[] _methodParameterTypes229; + private String _methodName230; + private String[] _methodParameterTypes230; private String _methodName231; private String[] _methodParameterTypes231; private String _methodName232; @@ -1660,18 +1609,12 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes235; private String _methodName236; private String[] _methodParameterTypes236; - private String _methodName237; - private String[] _methodParameterTypes237; private String _methodName238; private String[] _methodParameterTypes238; private String _methodName239; private String[] _methodParameterTypes239; private String _methodName240; private String[] _methodParameterTypes240; - private String _methodName241; - private String[] _methodParameterTypes241; - private String _methodName242; - private String[] _methodParameterTypes242; private String _methodName243; private String[] _methodParameterTypes243; private String _methodName244; @@ -1692,8 +1635,6 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes252; private String _methodName253; private String[] _methodParameterTypes253; - private String _methodName254; - private String[] _methodParameterTypes254; private String _methodName255; private String[] _methodParameterTypes255; private String _methodName256; @@ -1702,12 +1643,22 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes257; private String _methodName258; private String[] _methodParameterTypes258; + private String _methodName259; + private String[] _methodParameterTypes259; private String _methodName260; private String[] _methodParameterTypes260; private String _methodName261; private String[] _methodParameterTypes261; + private String _methodName262; + private String[] _methodParameterTypes262; + private String _methodName263; + private String[] _methodParameterTypes263; private String _methodName264; private String[] _methodParameterTypes264; + private String _methodName265; + private String[] _methodParameterTypes265; + private String _methodName266; + private String[] _methodParameterTypes266; private String _methodName267; private String[] _methodParameterTypes267; private String _methodName268; @@ -1718,56 +1669,6 @@ public class DettPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes270; private String _methodName271; private String[] _methodParameterTypes271; - private String _methodName272; - private String[] _methodParameterTypes272; private String _methodName273; private String[] _methodParameterTypes273; - private String _methodName274; - private String[] _methodParameterTypes274; - private String _methodName276; - private String[] _methodParameterTypes276; - private String _methodName277; - private String[] _methodParameterTypes277; - private String _methodName279; - private String[] _methodParameterTypes279; - private String _methodName280; - private String[] _methodParameterTypes280; - private String _methodName281; - private String[] _methodParameterTypes281; - private String _methodName282; - private String[] _methodParameterTypes282; - private String _methodName284; - private String[] _methodParameterTypes284; - private String _methodName285; - private String[] _methodParameterTypes285; - private String _methodName286; - private String[] _methodParameterTypes286; - private String _methodName287; - private String[] _methodParameterTypes287; - private String _methodName288; - private String[] _methodParameterTypes288; - private String _methodName289; - private String[] _methodParameterTypes289; - private String _methodName290; - private String[] _methodParameterTypes290; - private String _methodName291; - private String[] _methodParameterTypes291; - private String _methodName292; - private String[] _methodParameterTypes292; - private String _methodName293; - private String[] _methodParameterTypes293; - private String _methodName294; - private String[] _methodParameterTypes294; - private String _methodName295; - private String[] _methodParameterTypes295; - private String _methodName296; - private String[] _methodParameterTypes296; - private String _methodName298; - private String[] _methodParameterTypes298; - private String _methodName299; - private String[] _methodParameterTypes299; - private String _methodName300; - private String[] _methodParameterTypes300; - private String _methodName301; - private String[] _methodParameterTypes301; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java index 6da7bf76..d6ebc26b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceBaseImpl.java @@ -44,16 +44,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -875,63 +871,6 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1007,62 +946,6 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1290,81 +1173,6 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2113,12 +1921,6 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2127,12 +1929,6 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2157,14 +1953,6 @@ public abstract class DettPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java index 70c2e33b..bad7c2a4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DettPraticaServiceClpInvoker.java @@ -24,74 +24,71 @@ import java.util.Arrays; */ public class DettPraticaServiceClpInvoker { public DettPraticaServiceClpInvoker() { - _methodName200 = "getBeanIdentifier"; + _methodName180 = "getBeanIdentifier"; - _methodParameterTypes200 = new String[] { }; + _methodParameterTypes180 = new String[] { }; - _methodName201 = "setBeanIdentifier"; + _methodName181 = "setBeanIdentifier"; - _methodParameterTypes201 = new String[] { "java.lang.String" }; + _methodParameterTypes181 = new String[] { "java.lang.String" }; - _methodName206 = "getDettPratica"; + _methodName186 = "getDettPratica"; - _methodParameterTypes206 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName207 = "addDettPratica"; + _methodName187 = "addDettPratica"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes187 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName208 = "addDettPraticaToIntPratica"; + _methodName188 = "addDettPraticaToIntPratica"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes188 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName209 = "addDettPraticaClonedToIntPratica"; + _methodName189 = "addDettPraticaClonedToIntPratica"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes189 = new String[] { "long", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName210 = "getLastEditableByIntPratica"; + _methodName190 = "getLastEditableByIntPratica"; - _methodParameterTypes210 = new String[] { "long" }; + _methodParameterTypes190 = new String[] { "long" }; - _methodName211 = "deleteDettPratica"; + _methodName191 = "deleteDettPratica"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes191 = new String[] { "it.tref.liferay.portos.bo.model.DettPratica" }; - _methodName212 = "deleteDettPratica"; + _methodName192 = "deleteDettPratica"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName213 = "updateDettPraticaSoggetti"; + _methodName193 = "updateDettPraticaSoggetti"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes193 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName214 = "updateDettPratica"; + _methodName194 = "updateDettPratica"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes194 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.util.Date", "int", "boolean", "long", - "long", "java.lang.String", "java.lang.String", + "java.lang.String", "java.util.Date", "int", "long", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.String", "long", "long", - "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "boolean", "java.util.Date", "java.util.Date", - "java.util.Date", "java.lang.String", "boolean", "long", "int", + "java.lang.String", "long", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "long", "int", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", @@ -127,44 +124,43 @@ public class DettPraticaServiceClpInvoker { "boolean", "boolean", "boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", - "java.lang.String", "java.lang.String", "boolean", + "boolean", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "com.liferay.portal.service.ServiceContext", "boolean", "boolean", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.Boolean", "java.lang.Boolean", "java.lang.Boolean", "java.lang.String", "boolean", "boolean", "boolean", "boolean", - "boolean", "boolean", "boolean", "boolean", "boolean", "double" + "boolean", "boolean", "boolean", "boolean", "boolean", "double", + "java.lang.String" }; - _methodName215 = "fetchDettPratica"; + _methodName195 = "fetchDettPratica"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName216 = "getLastCompletedByIntPratica"; + _methodName196 = "getLastCompletedByIntPratica"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; - _methodName217 = "getLastdByIntPraticaAndTipoPratica"; + _methodName197 = "getLastdByIntPraticaAndTipoPratica"; - _methodParameterTypes217 = new String[] { "long", "java.util.List" }; + _methodParameterTypes197 = new String[] { "long", "java.util.List" }; - _methodName218 = "getLastEditabledByIntPraticaAndTipoPratica"; + _methodName198 = "getLastEditabledByIntPraticaAndTipoPratica"; - _methodParameterTypes218 = new String[] { "long", "java.util.List" }; + _methodParameterTypes198 = new String[] { "long", "java.util.List" }; - _methodName219 = "findCompletedByIntPraticaAndTipoPratica"; + _methodName199 = "findCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes219 = new String[] { "long", "java.util.List" }; + _methodParameterTypes199 = new String[] { "long", "java.util.List" }; - _methodName220 = "countCompletedByIntPraticaAndTipoPratica"; + _methodName200 = "countCompletedByIntPraticaAndTipoPratica"; - _methodParameterTypes220 = new String[] { "long", "java.util.List" }; + _methodParameterTypes200 = new String[] { "long", "java.util.List" }; - _methodName221 = "pagaInvia"; + _methodName201 = "pagaInvia"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", "java.lang.Double", @@ -175,98 +171,104 @@ public class DettPraticaServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName222 = "updateCheckPagamenti"; + _methodName202 = "updateCheckPagamenti"; - _methodParameterTypes222 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes202 = new String[] { "long", "boolean", "boolean" }; - _methodName223 = "updateEsito"; + _methodName203 = "updateEsito"; - _methodParameterTypes223 = new String[] { "long", "int" }; + _methodParameterTypes203 = new String[] { "long", "int" }; - _methodName224 = "updateEsitoIntegrazione"; + _methodName204 = "updateEsitoIntegrazione"; - _methodParameterTypes224 = new String[] { "long", "int" }; + _methodParameterTypes204 = new String[] { "long", "int" }; - _methodName225 = "updatePrincipale"; + _methodName205 = "updatePrincipale"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes205 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName226 = "getNumeroDiVersioni"; + _methodName206 = "getDettPraticaFields"; + + _methodParameterTypes206 = new String[] { }; + + _methodName207 = "getVersioni"; - _methodParameterTypes226 = new String[] { "long", "long" }; + _methodParameterTypes207 = new String[] { "long" }; - _methodName227 = "getJsonVersion"; + _methodName208 = "callForChanges"; - _methodParameterTypes227 = new String[] { "long", "long", "int" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName228 = "callForChanges"; + _methodName209 = "isNumber"; - _methodParameterTypes228 = new String[] { "long", "long", "int" }; + _methodParameterTypes209 = new String[] { "java.lang.String" }; - _methodName229 = "sendToVersioning"; + _methodName210 = "format"; - _methodParameterTypes229 = new String[] { "long", "long" }; + _methodParameterTypes210 = new String[] { + "java.lang.String", "java.io.Serializable" + }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return DettPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { DettPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DettPraticaServiceUtil.getDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return DettPraticaServiceUtil.addDettPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return DettPraticaServiceUtil.addDettPraticaToIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return DettPraticaServiceUtil.getLastEditableByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return DettPraticaServiceUtil.deleteDettPratica((it.tref.liferay.portos.bo.model.DettPratica)arguments[0]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return DettPraticaServiceUtil.deleteDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return DettPraticaServiceUtil.updateDettPraticaSoggetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -275,8 +277,8 @@ public class DettPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DettPraticaServiceUtil.updateDettPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -289,106 +291,108 @@ public class DettPraticaServiceClpInvoker { (java.lang.String)arguments[11], (java.lang.String)arguments[12], (java.util.Date)arguments[13], ((Integer)arguments[14]).intValue(), - ((Boolean)arguments[15]).booleanValue(), - ((Long)arguments[16]).longValue(), - ((Long)arguments[17]).longValue(), + ((Long)arguments[15]).longValue(), + (java.lang.String)arguments[16], + (java.lang.String)arguments[17], (java.lang.String)arguments[18], (java.lang.String)arguments[19], (java.lang.String)arguments[20], (java.lang.String)arguments[21], (java.lang.String)arguments[22], - (java.lang.String)arguments[23], - (java.lang.String)arguments[24], - ((Long)arguments[25]).longValue(), - ((Long)arguments[26]).longValue(), - ((Boolean)arguments[27]).booleanValue(), - ((Boolean)arguments[28]).booleanValue(), + ((Long)arguments[23]).longValue(), + ((Boolean)arguments[24]).booleanValue(), + ((Boolean)arguments[25]).booleanValue(), + (java.lang.String)arguments[26], + (java.lang.String)arguments[27], + (java.lang.String)arguments[28], ((Boolean)arguments[29]).booleanValue(), - (java.lang.String)arguments[30], - (java.lang.String)arguments[31], + ((Long)arguments[30]).longValue(), + ((Integer)arguments[31]).intValue(), (java.lang.String)arguments[32], (java.lang.String)arguments[33], - ((Boolean)arguments[34]).booleanValue(), - ((Boolean)arguments[35]).booleanValue(), - (java.util.Date)arguments[36], (java.util.Date)arguments[37], - (java.util.Date)arguments[38], (java.lang.String)arguments[39], - ((Boolean)arguments[40]).booleanValue(), - ((Long)arguments[41]).longValue(), - ((Integer)arguments[42]).intValue(), + (java.lang.String)arguments[34], + (java.lang.String)arguments[35], + (java.lang.String)arguments[36], + (java.lang.String)arguments[37], + (java.lang.String)arguments[38], + (java.lang.String)arguments[39], + (java.lang.String)arguments[40], + (java.lang.String)arguments[41], + (java.lang.String)arguments[42], (java.lang.String)arguments[43], (java.lang.String)arguments[44], (java.lang.String)arguments[45], - (java.lang.String)arguments[46], - (java.lang.String)arguments[47], - (java.lang.String)arguments[48], - (java.lang.String)arguments[49], - (java.lang.String)arguments[50], - (java.lang.String)arguments[51], - (java.lang.String)arguments[52], - (java.lang.String)arguments[53], - (java.lang.String)arguments[54], - (java.lang.String)arguments[55], - (java.lang.String)arguments[56], + ((Boolean)arguments[46]).booleanValue(), + ((Boolean)arguments[47]).booleanValue(), + ((Boolean)arguments[48]).booleanValue(), + ((Boolean)arguments[49]).booleanValue(), + ((Boolean)arguments[50]).booleanValue(), + ((Boolean)arguments[51]).booleanValue(), + ((Boolean)arguments[52]).booleanValue(), + ((Boolean)arguments[53]).booleanValue(), + ((Boolean)arguments[54]).booleanValue(), + ((Boolean)arguments[55]).booleanValue(), + ((Boolean)arguments[56]).booleanValue(), (java.lang.String)arguments[57], - ((Boolean)arguments[58]).booleanValue(), + (java.lang.String)arguments[58], ((Boolean)arguments[59]).booleanValue(), ((Boolean)arguments[60]).booleanValue(), ((Boolean)arguments[61]).booleanValue(), ((Boolean)arguments[62]).booleanValue(), - ((Boolean)arguments[63]).booleanValue(), - ((Boolean)arguments[64]).booleanValue(), - ((Boolean)arguments[65]).booleanValue(), + (java.lang.String)arguments[63], + (java.lang.String)arguments[64], + (java.lang.String)arguments[65], ((Boolean)arguments[66]).booleanValue(), ((Boolean)arguments[67]).booleanValue(), ((Boolean)arguments[68]).booleanValue(), - (java.lang.String)arguments[69], - (java.lang.String)arguments[70], + ((Boolean)arguments[69]).booleanValue(), + ((Boolean)arguments[70]).booleanValue(), ((Boolean)arguments[71]).booleanValue(), - ((Boolean)arguments[72]).booleanValue(), + (java.lang.String)arguments[72], ((Boolean)arguments[73]).booleanValue(), ((Boolean)arguments[74]).booleanValue(), - (java.lang.String)arguments[75], - (java.lang.String)arguments[76], - (java.lang.String)arguments[77], + ((Boolean)arguments[75]).booleanValue(), + ((Boolean)arguments[76]).booleanValue(), + ((Boolean)arguments[77]).booleanValue(), ((Boolean)arguments[78]).booleanValue(), - ((Boolean)arguments[79]).booleanValue(), - ((Boolean)arguments[80]).booleanValue(), + (java.lang.String)arguments[79], + (java.lang.String)arguments[80], ((Boolean)arguments[81]).booleanValue(), ((Boolean)arguments[82]).booleanValue(), ((Boolean)arguments[83]).booleanValue(), - (java.lang.String)arguments[84], + ((Boolean)arguments[84]).booleanValue(), ((Boolean)arguments[85]).booleanValue(), ((Boolean)arguments[86]).booleanValue(), ((Boolean)arguments[87]).booleanValue(), ((Boolean)arguments[88]).booleanValue(), - ((Boolean)arguments[89]).booleanValue(), + (java.lang.String)arguments[89], ((Boolean)arguments[90]).booleanValue(), - (java.lang.String)arguments[91], - (java.lang.String)arguments[92], + ((Boolean)arguments[91]).booleanValue(), + ((Boolean)arguments[92]).booleanValue(), ((Boolean)arguments[93]).booleanValue(), ((Boolean)arguments[94]).booleanValue(), - ((Boolean)arguments[95]).booleanValue(), + (java.lang.String)arguments[95], ((Boolean)arguments[96]).booleanValue(), ((Boolean)arguments[97]).booleanValue(), ((Boolean)arguments[98]).booleanValue(), ((Boolean)arguments[99]).booleanValue(), ((Boolean)arguments[100]).booleanValue(), - (java.lang.String)arguments[101], + ((Boolean)arguments[101]).booleanValue(), ((Boolean)arguments[102]).booleanValue(), ((Boolean)arguments[103]).booleanValue(), ((Boolean)arguments[104]).booleanValue(), - ((Boolean)arguments[105]).booleanValue(), - ((Boolean)arguments[106]).booleanValue(), + (java.lang.String)arguments[105], + (java.lang.String)arguments[106], (java.lang.String)arguments[107], - ((Boolean)arguments[108]).booleanValue(), - ((Boolean)arguments[109]).booleanValue(), - ((Boolean)arguments[110]).booleanValue(), - ((Boolean)arguments[111]).booleanValue(), - ((Boolean)arguments[112]).booleanValue(), - ((Boolean)arguments[113]).booleanValue(), - ((Boolean)arguments[114]).booleanValue(), - ((Boolean)arguments[115]).booleanValue(), - ((Boolean)arguments[116]).booleanValue(), + (java.lang.String)arguments[108], + (java.lang.String)arguments[109], + (java.lang.String)arguments[110], + (java.lang.String)arguments[111], + (java.lang.String)arguments[112], + (java.lang.String)arguments[113], + (java.lang.String)arguments[114], + (java.lang.String)arguments[115], + (java.lang.String)arguments[116], (java.lang.String)arguments[117], (java.lang.String)arguments[118], (java.lang.String)arguments[119], @@ -400,41 +404,41 @@ public class DettPraticaServiceClpInvoker { (java.lang.String)arguments[125], (java.lang.String)arguments[126], (java.lang.String)arguments[127], - (java.lang.String)arguments[128], - (java.lang.String)arguments[129], - (java.lang.String)arguments[130], - (java.lang.String)arguments[131], - (java.lang.String)arguments[132], - (java.lang.String)arguments[133], - (java.lang.String)arguments[134], - (java.lang.String)arguments[135], - (java.lang.String)arguments[136], - (java.lang.String)arguments[137], - (java.lang.String)arguments[138], - (java.lang.String)arguments[139], - (java.util.Date)arguments[140], + (java.util.Date)arguments[128], + (java.lang.Double)arguments[129], + (java.lang.Double)arguments[130], + (java.lang.Double)arguments[131], + (java.lang.Double)arguments[132], + (java.lang.Double)arguments[133], + (java.lang.Double)arguments[134], + (java.lang.Double)arguments[135], + (java.lang.Double)arguments[136], + (java.lang.Double)arguments[137], + (java.lang.Double)arguments[138], + (java.lang.Double)arguments[139], + (java.lang.Double)arguments[140], (java.lang.Double)arguments[141], (java.lang.Double)arguments[142], (java.lang.Double)arguments[143], - (java.lang.Double)arguments[144], - (java.lang.Double)arguments[145], - (java.lang.Double)arguments[146], - (java.lang.Double)arguments[147], - (java.lang.Double)arguments[148], - (java.lang.Double)arguments[149], - (java.lang.Double)arguments[150], - (java.lang.Double)arguments[151], - (java.lang.Double)arguments[152], - (java.lang.Double)arguments[153], - (java.lang.Double)arguments[154], - (java.lang.Double)arguments[155], - (java.lang.String)arguments[156], - (java.lang.String)arguments[157], - (java.lang.String)arguments[158], + (java.lang.String)arguments[144], + (java.lang.String)arguments[145], + (java.lang.String)arguments[146], + ((Boolean)arguments[147]).booleanValue(), + ((Boolean)arguments[148]).booleanValue(), + ((Boolean)arguments[149]).booleanValue(), + ((Boolean)arguments[150]).booleanValue(), + ((Boolean)arguments[151]).booleanValue(), + ((Boolean)arguments[152]).booleanValue(), + ((Boolean)arguments[153]).booleanValue(), + ((Boolean)arguments[154]).booleanValue(), + ((Boolean)arguments[155]).booleanValue(), + ((Boolean)arguments[156]).booleanValue(), + ((Boolean)arguments[157]).booleanValue(), + ((Boolean)arguments[158]).booleanValue(), ((Boolean)arguments[159]).booleanValue(), ((Boolean)arguments[160]).booleanValue(), ((Boolean)arguments[161]).booleanValue(), - ((Boolean)arguments[162]).booleanValue(), + (java.lang.String)arguments[162], ((Boolean)arguments[163]).booleanValue(), ((Boolean)arguments[164]).booleanValue(), ((Boolean)arguments[165]).booleanValue(), @@ -446,95 +450,74 @@ public class DettPraticaServiceClpInvoker { ((Boolean)arguments[171]).booleanValue(), ((Boolean)arguments[172]).booleanValue(), ((Boolean)arguments[173]).booleanValue(), - (java.lang.String)arguments[174], + ((Boolean)arguments[174]).booleanValue(), ((Boolean)arguments[175]).booleanValue(), ((Boolean)arguments[176]).booleanValue(), - ((Boolean)arguments[177]).booleanValue(), - ((Boolean)arguments[178]).booleanValue(), + (java.lang.String)arguments[177], + (java.lang.String)arguments[178], ((Boolean)arguments[179]).booleanValue(), - ((Boolean)arguments[180]).booleanValue(), - ((Boolean)arguments[181]).booleanValue(), + (java.lang.String)arguments[180], + (com.liferay.portal.service.ServiceContext)arguments[181], ((Boolean)arguments[182]).booleanValue(), ((Boolean)arguments[183]).booleanValue(), ((Boolean)arguments[184]).booleanValue(), - ((Boolean)arguments[185]).booleanValue(), - ((Boolean)arguments[186]).booleanValue(), - ((Boolean)arguments[187]).booleanValue(), - ((Boolean)arguments[188]).booleanValue(), - ((Boolean)arguments[189]).booleanValue(), - ((Boolean)arguments[190]).booleanValue(), - ((Boolean)arguments[191]).booleanValue(), - ((Boolean)arguments[192]).booleanValue(), + (java.lang.String)arguments[185], + (java.lang.String)arguments[186], + (java.lang.String)arguments[187], + (java.lang.String)arguments[188], + (java.lang.Boolean)arguments[189], + (java.lang.Boolean)arguments[190], + (java.lang.Boolean)arguments[191], + (java.lang.String)arguments[192], ((Boolean)arguments[193]).booleanValue(), ((Boolean)arguments[194]).booleanValue(), ((Boolean)arguments[195]).booleanValue(), ((Boolean)arguments[196]).booleanValue(), ((Boolean)arguments[197]).booleanValue(), ((Boolean)arguments[198]).booleanValue(), - (java.lang.String)arguments[199], - (java.lang.String)arguments[200], + ((Boolean)arguments[199]).booleanValue(), + ((Boolean)arguments[200]).booleanValue(), ((Boolean)arguments[201]).booleanValue(), - (java.lang.String)arguments[202], - (com.liferay.portal.service.ServiceContext)arguments[203], - ((Boolean)arguments[204]).booleanValue(), - ((Boolean)arguments[205]).booleanValue(), - ((Boolean)arguments[206]).booleanValue(), - (java.lang.String)arguments[207], - (java.lang.String)arguments[208], - (java.lang.String)arguments[209], - (java.lang.String)arguments[210], - (java.lang.Boolean)arguments[211], - (java.lang.Boolean)arguments[212], - (java.lang.Boolean)arguments[213], - (java.lang.String)arguments[214], - ((Boolean)arguments[215]).booleanValue(), - ((Boolean)arguments[216]).booleanValue(), - ((Boolean)arguments[217]).booleanValue(), - ((Boolean)arguments[218]).booleanValue(), - ((Boolean)arguments[219]).booleanValue(), - ((Boolean)arguments[220]).booleanValue(), - ((Boolean)arguments[221]).booleanValue(), - ((Boolean)arguments[222]).booleanValue(), - ((Boolean)arguments[223]).booleanValue(), - ((Double)arguments[224]).doubleValue()); + ((Double)arguments[202]).doubleValue(), + (java.lang.String)arguments[203]); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DettPraticaServiceUtil.fetchDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DettPraticaServiceUtil.getLastCompletedByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DettPraticaServiceUtil.getLastdByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DettPraticaServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.Double)arguments[1], (java.lang.Double)arguments[2], (java.lang.Double)arguments[3], (java.lang.Double)arguments[4], @@ -554,66 +537,104 @@ public class DettPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[20]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DettPraticaServiceUtil.updateCheckPagamenti(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return DettPraticaServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DettPraticaServiceUtil.updateEsitoIntegrazione(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DettPraticaServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { - return DettPraticaServiceUtil.getNumeroDiVersioni(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + return DettPraticaServiceUtil.getDettPraticaFields(); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { - return DettPraticaServiceUtil.getJsonVersion(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue(), - ((Integer)arguments[2]).intValue()); + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + return DettPraticaServiceUtil.getVersioni(((Long)arguments[0]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { - return DettPraticaServiceUtil.callForChanges(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue(), - ((Integer)arguments[2]).intValue()); + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + return DettPraticaServiceUtil.callForChanges(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { - DettPraticaServiceUtil.sendToVersioning(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + return DettPraticaServiceUtil.isNumber((java.lang.String)arguments[0]); + } - return null; + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + return DettPraticaServiceUtil.format((java.lang.String)arguments[0], + (java.io.Serializable)arguments[1]); } throw new UnsupportedOperationException(); } + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; + private String _methodName198; + private String[] _methodParameterTypes198; + private String _methodName199; + private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; + private String _methodName202; + private String[] _methodParameterTypes202; + private String _methodName203; + private String[] _methodParameterTypes203; + private String _methodName204; + private String[] _methodParameterTypes204; + private String _methodName205; + private String[] _methodParameterTypes205; private String _methodName206; private String[] _methodParameterTypes206; private String _methodName207; @@ -624,42 +645,4 @@ public class DettPraticaServiceClpInvoker { private String[] _methodParameterTypes209; private String _methodName210; private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; - private String _methodName215; - private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName221; - private String[] _methodParameterTypes221; - private String _methodName222; - private String[] _methodParameterTypes222; - private String _methodName223; - private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; - private String _methodName226; - private String[] _methodParameterTypes226; - private String _methodName227; - private String[] _methodParameterTypes227; - private String _methodName228; - private String[] _methodParameterTypes228; - private String _methodName229; - private String[] _methodParameterTypes229; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java index e5703c72..54c4f237 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1160,63 +1156,6 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1292,62 +1231,6 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1575,81 +1458,6 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2137,12 +1945,6 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2151,12 +1953,6 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2181,14 +1977,6 @@ public abstract class DocAggiuntivaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java index 03622555..ca3377dc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaLocalServiceClpInvoker.java @@ -122,80 +122,76 @@ public class DocAggiuntivaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "findByIntPratica"; + _methodName178 = "findByIntPratica"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes178 = new String[] { "long" }; - _methodName199 = "findByIntPratica"; + _methodName179 = "findByIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName200 = "countByIntPratica"; + _methodName180 = "countByIntPratica"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName201 = "findByDettPratica"; + _methodName181 = "findByDettPratica"; - _methodParameterTypes201 = new String[] { "long" }; + _methodParameterTypes181 = new String[] { "long" }; - _methodName202 = "findByDettPratica"; + _methodName182 = "findByDettPratica"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "countByDettPratica"; + _methodName183 = "countByDettPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName204 = "findByIntPraticaFeVisible"; + _methodName184 = "findByIntPraticaFeVisible"; - _methodParameterTypes204 = new String[] { "long", "boolean" }; + _methodParameterTypes184 = new String[] { "long", "boolean" }; - _methodName205 = "findByIntPraticaFeVisible"; + _methodName185 = "findByIntPraticaFeVisible"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName206 = "countByIntPraticaFeVisible"; + _methodName186 = "countByIntPraticaFeVisible"; - _methodParameterTypes206 = new String[] { "long", "boolean" }; + _methodParameterTypes186 = new String[] { "long", "boolean" }; - _methodName207 = "addDocAggiuntiva"; + _methodName187 = "addDocAggiuntiva"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes187 = new String[] { "long", "long", "long", "java.lang.String", "boolean", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName208 = "deleteDocAggiuntiva"; + _methodName188 = "deleteDocAggiuntiva"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes188 = new String[] { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName209 = "deleteDocAggiuntiva"; + _methodName189 = "deleteDocAggiuntiva"; - _methodParameterTypes209 = new String[] { "long" }; - - _methodName210 = "fetchByOldFileEntryId"; - - _methodParameterTypes210 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -311,62 +307,62 @@ public class DocAggiuntivaLocalServiceClpInvoker { return DocAggiuntivaLocalServiceUtil.updateDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { DocAggiuntivaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -374,14 +370,14 @@ public class DocAggiuntivaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.countByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.addDocAggiuntiva(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -391,21 +387,16 @@ public class DocAggiuntivaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[7]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return DocAggiuntivaLocalServiceUtil.deleteDocAggiuntiva(((Long)arguments[0]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { - return DocAggiuntivaLocalServiceUtil.fetchByOldFileEntryId(((Long)arguments[0]).longValue()); - } - throw new UnsupportedOperationException(); } @@ -449,34 +440,32 @@ public class DocAggiuntivaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java index a9092713..1fee3a21 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class DocAggiuntivaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java index d837742e..f63b49f4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocAggiuntivaServiceClpInvoker.java @@ -24,136 +24,136 @@ import java.util.Arrays; */ public class DocAggiuntivaServiceClpInvoker { public DocAggiuntivaServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "findByIntPratica"; + _methodName158 = "findByIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes158 = new String[] { "long" }; - _methodName179 = "findByIntPratica"; + _methodName159 = "findByIntPratica"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes159 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName180 = "countByIntPratica"; + _methodName160 = "countByIntPratica"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes160 = new String[] { "long" }; - _methodName181 = "findByDettPratica"; + _methodName161 = "findByDettPratica"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes161 = new String[] { "long" }; - _methodName182 = "findByDettPratica"; + _methodName162 = "findByDettPratica"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes162 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByDettPratica"; + _methodName163 = "countByDettPratica"; - _methodParameterTypes183 = new String[] { "long" }; + _methodParameterTypes163 = new String[] { "long" }; - _methodName184 = "findByIntPraticaFeVisible"; + _methodName164 = "findByIntPraticaFeVisible"; - _methodParameterTypes184 = new String[] { "long", "boolean" }; + _methodParameterTypes164 = new String[] { "long", "boolean" }; - _methodName185 = "findByIntPratica"; + _methodName165 = "findByIntPratica"; - _methodParameterTypes185 = new String[] { + _methodParameterTypes165 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName186 = "countByIntPraticaFeVisible"; + _methodName166 = "countByIntPraticaFeVisible"; - _methodParameterTypes186 = new String[] { "long", "boolean" }; + _methodParameterTypes166 = new String[] { "long", "boolean" }; - _methodName187 = "addDocAggiuntiva"; + _methodName167 = "addDocAggiuntiva"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes167 = new String[] { "long", "long", "long", "java.lang.String", "boolean", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName188 = "deleteDocAggiuntiva"; + _methodName168 = "deleteDocAggiuntiva"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes168 = new String[] { "it.tref.liferay.portos.bo.model.DocAggiuntiva" }; - _methodName189 = "deleteDocAggiuntiva"; + _methodName169 = "deleteDocAggiuntiva"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes169 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return DocAggiuntivaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { DocAggiuntivaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return DocAggiuntivaServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return DocAggiuntivaServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return DocAggiuntivaServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return DocAggiuntivaServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return DocAggiuntivaServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -161,14 +161,14 @@ public class DocAggiuntivaServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DocAggiuntivaServiceUtil.countByIntPraticaFeVisible(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return DocAggiuntivaServiceUtil.addDocAggiuntiva(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -178,45 +178,45 @@ public class DocAggiuntivaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[7]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return DocAggiuntivaServiceUtil.deleteDocAggiuntiva((it.tref.liferay.portos.bo.model.DocAggiuntiva)arguments[0]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return DocAggiuntivaServiceUtil.deleteDocAggiuntiva(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java index 127ff1e6..55e4d7b9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1159,63 +1155,6 @@ public abstract class DocPraticaLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1291,62 +1230,6 @@ public abstract class DocPraticaLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1574,81 +1457,6 @@ public abstract class DocPraticaLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2136,12 +1944,6 @@ public abstract class DocPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2150,12 +1952,6 @@ public abstract class DocPraticaLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2180,14 +1976,6 @@ public abstract class DocPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java index 27ffb8d8..ea89aed2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaLocalServiceClpInvoker.java @@ -122,27 +122,27 @@ public class DocPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "deleteDocPratica"; + _methodName178 = "deleteDocPratica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName199 = "deleteDocPratica"; + _methodName179 = "deleteDocPratica"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes179 = new String[] { "long" }; - _methodName200 = "addDocPratica"; + _methodName180 = "addDocPratica"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes180 = new String[] { "long", "java.lang.String", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", @@ -150,221 +150,203 @@ public class DocPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName201 = "addDocPratica"; + _methodName181 = "addDocPratica"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "addDocPratica"; + _methodName182 = "addDocPratica"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName203 = "addDocPraticaForImport"; - - _methodParameterTypes203 = new String[] { - "long", "java.lang.String", "long", "long", "byte[][]", - "java.lang.String", "java.lang.String", "boolean", - "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "java.lang.String", "long", "java.util.Date", "long", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName204 = "addAttachment"; + _methodName183 = "addAttachment"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes183 = new String[] { "long", "long", "long", "java.lang.String", "byte[][]", "java.lang.String" }; - _methodName205 = "getAttachment"; + _methodName184 = "getAttachment"; - _methodParameterTypes205 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName206 = "addFirma"; + _methodName185 = "addFirma"; - _methodParameterTypes206 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; - _methodName207 = "addFirmeAndApprova"; + _methodName186 = "addFirmeAndApprova"; - _methodParameterTypes207 = new String[] { "long", "java.util.List" }; + _methodParameterTypes186 = new String[] { "long", "java.util.List" }; - _methodName208 = "addErrorAndApprova"; + _methodName187 = "addErrorAndApprova"; - _methodParameterTypes208 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; - _methodName209 = "removeFirma"; + _methodName188 = "removeFirma"; - _methodParameterTypes209 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes188 = new String[] { "long", "java.lang.String" }; - _methodName210 = "updateDocPraticaAggiornato"; + _methodName189 = "updateDocPraticaAggiornato"; - _methodParameterTypes210 = new String[] { "long", "boolean" }; + _methodParameterTypes189 = new String[] { "long", "boolean" }; - _methodName211 = "countDocPraticaDaInviareDax"; + _methodName190 = "countDocPraticaDaInviareDax"; - _methodParameterTypes211 = new String[] { }; + _methodParameterTypes190 = new String[] { }; - _methodName212 = "getDocPraticaDaInviareDax"; + _methodName191 = "getDocPraticaDaInviareDax"; - _methodParameterTypes212 = new String[] { "int", "int" }; + _methodParameterTypes191 = new String[] { "int", "int" }; - _methodName214 = "countByClassPk"; + _methodName193 = "countByClassPk"; - _methodParameterTypes214 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "long" }; - _methodName215 = "findByClassPk"; + _methodName194 = "findByClassPk"; - _methodParameterTypes215 = new String[] { "long", "int", "int" }; + _methodParameterTypes194 = new String[] { "long", "int", "int" }; - _methodName216 = "findByIntPratica"; + _methodName195 = "findByIntPratica"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName217 = "findByClassPk"; + _methodName196 = "findByClassPk"; - _methodParameterTypes217 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; - _methodName218 = "findByStaus"; + _methodName197 = "findByStaus"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes197 = new String[] { "int", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName219 = "countByStatus"; + _methodName198 = "countByStatus"; - _methodParameterTypes219 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long" }; - _methodName220 = "countByClassPk_Tipologia"; + _methodName199 = "countByClassPk_Tipologia"; - _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; - _methodName221 = "findByClassPk_Tipologia"; + _methodName200 = "findByClassPk_Tipologia"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes200 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName222 = "findByIntPratica_Tipologia"; + _methodName201 = "findByIntPratica_Tipologia"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName223 = "findByIntPratica_ClassPk_Tipologia"; + _methodName202 = "findByIntPratica_ClassPk_Tipologia"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes202 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName224 = "findByIntPratica_ClassPk_Tipologie"; - - _methodParameterTypes224 = new String[] { "long", "long", "java.util.List" }; - - _methodName225 = "findByIntPratica_ClassPkEqual_Tipologie"; + _methodName203 = "findByIntPratica_ClassPk_Tipologie"; - _methodParameterTypes225 = new String[] { "long", "long", "java.util.List" }; + _methodParameterTypes203 = new String[] { "long", "long", "java.util.List" }; - _methodName226 = "fetchByC_Group_DlFileEntry_Version"; + _methodName204 = "findByIntPratica_ClassPkEqual_Tipologie"; - _methodParameterTypes226 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes204 = new String[] { "long", "long", "java.util.List" }; - _methodName227 = "fetchByOldDocPraticaId"; + _methodName205 = "fetchByC_Group_DlFileEntry_Version"; - _methodParameterTypes227 = new String[] { "long" }; + _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; - _methodName228 = "findDistinctDlFileEntryId"; + _methodName206 = "findDistinctDlFileEntryId"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName229 = "findDistinctDlFileEntryId"; + _methodName207 = "findDistinctDlFileEntryId"; - _methodParameterTypes229 = new String[] { + _methodParameterTypes207 = new String[] { "long[][]", "java.lang.String", "int", "int" }; - _methodName230 = "getValidByIntPratica"; + _methodName208 = "getValidByIntPratica"; - _methodParameterTypes230 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName231 = "getValidByIntPratica_Tipologia"; + _methodName209 = "getValidByIntPratica_Tipologia"; - _methodParameterTypes231 = new String[] { + _methodParameterTypes209 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName232 = "countValidTmpByIntPratica_Tipologia"; + _methodName210 = "countValidTmpByIntPratica_Tipologia"; - _methodParameterTypes232 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes210 = new String[] { "long", "java.lang.String" }; - _methodName233 = "getValidTmpByIntPratica"; + _methodName211 = "getValidTmpByIntPratica"; - _methodParameterTypes233 = new String[] { "long", "int", "int" }; + _methodParameterTypes211 = new String[] { "long", "int", "int" }; - _methodName234 = "getValidTmpByIntPratica_Tipologia"; + _methodName212 = "getValidTmpByIntPratica_Tipologia"; - _methodParameterTypes234 = new String[] { + _methodParameterTypes212 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName235 = "getValidTmpByIntPratica_DettPratica_Tipologia"; + _methodName213 = "getValidTmpByIntPratica_DettPratica_Tipologia"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes213 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName236 = "getValidTmpByIntPratica_Tipologie"; + _methodName214 = "getValidTmpByIntPratica_Tipologie"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String[][]", "int", "int" }; - _methodName237 = "countValidTmpByIntPratica_Tipologie"; + _methodName215 = "countValidTmpByIntPratica_Tipologie"; - _methodParameterTypes237 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes215 = new String[] { "long", "java.lang.String[][]" }; - _methodName239 = "getInvalidByIntPratica"; + _methodName217 = "getInvalidByIntPratica"; - _methodParameterTypes239 = new String[] { "long" }; + _methodParameterTypes217 = new String[] { "long" }; - _methodName240 = "getInvalidTmpByIntPratica"; + _methodName218 = "getInvalidTmpByIntPratica"; - _methodParameterTypes240 = new String[] { "long" }; + _methodParameterTypes218 = new String[] { "long" }; - _methodName241 = "getValidUntilClassPkByIntPratica"; + _methodName219 = "getValidUntilClassPkByIntPratica"; - _methodParameterTypes241 = new String[] { + _methodParameterTypes219 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName242 = "completeInvalidation"; - - _methodParameterTypes242 = new String[] { "long" }; - - _methodName243 = "getDocPraticaWithOldFileEntryId"; + _methodName220 = "completeInvalidation"; - _methodParameterTypes243 = new String[] { "int", "int" }; + _methodParameterTypes220 = new String[] { "long" }; - _methodName244 = "addDocPraticaAnnullamento"; + _methodName221 = "addDocPraticaAnnullamento"; - _methodParameterTypes244 = new String[] { + _methodParameterTypes221 = new String[] { "long", "java.lang.String", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName245 = "findByIntPratica_ClassPk_TipologiaNew"; + _methodName222 = "findByIntPratica_ClassPk_TipologiaNew"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes222 = new String[] { "long", "long", "java.lang.String", "int", "int" }; } @@ -482,30 +464,30 @@ public class DocPraticaLocalServiceClpInvoker { return DocPraticaLocalServiceUtil.updateDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return DocPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { DocPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return DocPraticaLocalServiceUtil.deleteDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return DocPraticaLocalServiceUtil.deleteDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -521,8 +503,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[15]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -532,8 +514,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[8]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -544,26 +526,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[8]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { - return DocPraticaLocalServiceUtil.addDocPraticaForImport(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - ((Long)arguments[2]).longValue(), - ((Long)arguments[3]).longValue(), (byte[])arguments[4], - (java.lang.String)arguments[5], (java.lang.String)arguments[6], - ((Boolean)arguments[7]).booleanValue(), - (java.lang.String)arguments[8], (java.lang.String)arguments[9], - (java.lang.String)arguments[10], - ((Boolean)arguments[11]).booleanValue(), - (java.lang.String)arguments[12], - ((Long)arguments[13]).longValue(), - (java.util.Date)arguments[14], - ((Long)arguments[15]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[16]); - } - - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return DocPraticaLocalServiceUtil.addAttachment(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -571,119 +535,119 @@ public class DocPraticaLocalServiceClpInvoker { (java.lang.String)arguments[5]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return DocPraticaLocalServiceUtil.getAttachment(((Long)arguments[0]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { DocPraticaLocalServiceUtil.addFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { DocPraticaLocalServiceUtil.addFirmeAndApprova(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); return null; } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { DocPraticaLocalServiceUtil.addErrorAndApprova(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { DocPraticaLocalServiceUtil.removeFirma(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return DocPraticaLocalServiceUtil.updateDocPraticaAggiornato(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return DocPraticaLocalServiceUtil.countDocPraticaDaInviareDax(); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return DocPraticaLocalServiceUtil.getDocPraticaDaInviareDax(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return DocPraticaLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return DocPraticaLocalServiceUtil.findByStaus(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return DocPraticaLocalServiceUtil.countByStatus(((Long)arguments[0]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return DocPraticaLocalServiceUtil.countByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return DocPraticaLocalServiceUtil.findByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -691,83 +655,78 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_Tipologie(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.List)arguments[2]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPkEqual_Tipologie(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.util.List)arguments[2]); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return DocPraticaLocalServiceUtil.fetchByC_Group_DlFileEntry_Version(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { - return DocPraticaLocalServiceUtil.fetchByOldDocPraticaId(((Long)arguments[0]).longValue()); - } - - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return DocPraticaLocalServiceUtil.findDistinctDlFileEntryId(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return DocPraticaLocalServiceUtil.findDistinctDlFileEntryId((long[])arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_DettPratica_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -775,32 +734,32 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologie(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return DocPraticaLocalServiceUtil.countValidTmpByIntPratica_Tipologie(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return DocPraticaLocalServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return DocPraticaLocalServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return DocPraticaLocalServiceUtil.getValidUntilClassPkByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -808,21 +767,15 @@ public class DocPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { DocPraticaLocalServiceUtil.completeInvalidation(((Long)arguments[0]).longValue()); return null; } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { - return DocPraticaLocalServiceUtil.getDocPraticaWithOldFileEntryId(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return DocPraticaLocalServiceUtil.addDocPraticaAnnullamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -833,8 +786,8 @@ public class DocPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return DocPraticaLocalServiceUtil.findByIntPratica_ClassPk_TipologiaNew(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -885,10 +838,48 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName192; - private String[] _methodParameterTypes192; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; @@ -919,12 +910,12 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes211; private String _methodName212; private String[] _methodParameterTypes212; + private String _methodName213; + private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; private String _methodName215; private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; private String _methodName218; @@ -937,48 +928,4 @@ public class DocPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes221; private String _methodName222; private String[] _methodParameterTypes222; - private String _methodName223; - private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; - private String _methodName226; - private String[] _methodParameterTypes226; - private String _methodName227; - private String[] _methodParameterTypes227; - private String _methodName228; - private String[] _methodParameterTypes228; - private String _methodName229; - private String[] _methodParameterTypes229; - private String _methodName230; - private String[] _methodParameterTypes230; - private String _methodName231; - private String[] _methodParameterTypes231; - private String _methodName232; - private String[] _methodParameterTypes232; - private String _methodName233; - private String[] _methodParameterTypes233; - private String _methodName234; - private String[] _methodParameterTypes234; - private String _methodName235; - private String[] _methodParameterTypes235; - private String _methodName236; - private String[] _methodParameterTypes236; - private String _methodName237; - private String[] _methodParameterTypes237; - private String _methodName239; - private String[] _methodParameterTypes239; - private String _methodName240; - private String[] _methodParameterTypes240; - private String _methodName241; - private String[] _methodParameterTypes241; - private String _methodName242; - private String[] _methodParameterTypes242; - private String _methodName243; - private String[] _methodParameterTypes243; - private String _methodName244; - private String[] _methodParameterTypes244; - private String _methodName245; - private String[] _methodParameterTypes245; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java index 92a141be..06e94e9c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class DocPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java index 18d98461..4793849f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/DocPraticaServiceClpInvoker.java @@ -24,17 +24,17 @@ import java.util.Arrays; */ public class DocPraticaServiceClpInvoker { public DocPraticaServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "addDocPratica"; + _methodName158 = "addDocPratica"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes158 = new String[] { "long", "java.lang.String", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.lang.String", @@ -42,89 +42,89 @@ public class DocPraticaServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "getDocPratica"; + _methodName159 = "getDocPratica"; - _methodParameterTypes179 = new String[] { "long" }; + _methodParameterTypes159 = new String[] { "long" }; - _methodName180 = "countByClassPk_Tipologia"; + _methodName160 = "countByClassPk_Tipologia"; - _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes160 = new String[] { "long", "java.lang.String" }; - _methodName181 = "findByClassPk_Tipologia"; + _methodName161 = "findByClassPk_Tipologia"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes161 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName182 = "findByIntPratica_Tipologia"; + _methodName162 = "findByIntPratica_Tipologia"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes162 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName183 = "findByIntPratica_ClassPk_Tipologia"; + _methodName163 = "findByIntPratica_ClassPk_Tipologia"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes163 = new String[] { "long", "long", "java.lang.String", "int", "int" }; - _methodName184 = "deleteDocPratica"; + _methodName164 = "deleteDocPratica"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes164 = new String[] { "it.tref.liferay.portos.bo.model.DocPratica" }; - _methodName185 = "deleteDocPratica"; + _methodName165 = "deleteDocPratica"; - _methodParameterTypes185 = new String[] { "long" }; + _methodParameterTypes165 = new String[] { "long" }; - _methodName186 = "getValidByIntPratica"; + _methodName166 = "getValidByIntPratica"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; - _methodName187 = "getValidByIntPratica_Tipologia"; + _methodName167 = "getValidByIntPratica_Tipologia"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes167 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName188 = "getValidTmpByIntPratica_Tipologia"; + _methodName168 = "getValidTmpByIntPratica_Tipologia"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes168 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName189 = "getInvalidByIntPratica"; + _methodName169 = "getInvalidByIntPratica"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes169 = new String[] { "long" }; - _methodName190 = "getInvalidTmpByIntPratica"; + _methodName170 = "getInvalidTmpByIntPratica"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes170 = new String[] { "long" }; - _methodName191 = "getValidUntilClassPkByIntPratica"; + _methodName171 = "getValidUntilClassPkByIntPratica"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes171 = new String[] { "long", "long", "java.lang.String", "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return DocPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { DocPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return DocPraticaServiceUtil.addDocPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue(), @@ -141,35 +141,35 @@ public class DocPraticaServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[16]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return DocPraticaServiceUtil.getDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return DocPraticaServiceUtil.countByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return DocPraticaServiceUtil.findByClassPk_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return DocPraticaServiceUtil.findByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return DocPraticaServiceUtil.findByIntPratica_ClassPk_Tipologia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -177,49 +177,49 @@ public class DocPraticaServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return DocPraticaServiceUtil.deleteDocPratica((it.tref.liferay.portos.bo.model.DocPratica)arguments[0]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return DocPraticaServiceUtil.deleteDocPratica(((Long)arguments[0]).longValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return DocPraticaServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return DocPraticaServiceUtil.getValidByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return DocPraticaServiceUtil.getValidTmpByIntPratica_Tipologia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return DocPraticaServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return DocPraticaServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return DocPraticaServiceUtil.getValidUntilClassPkByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], @@ -230,36 +230,36 @@ public class DocPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java index de8c5e7b..9e4a2e82 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1160,63 +1156,6 @@ public abstract class FineLavoriLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1292,62 +1231,6 @@ public abstract class FineLavoriLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1575,81 +1458,6 @@ public abstract class FineLavoriLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2099,12 +1907,6 @@ public abstract class FineLavoriLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2113,12 +1915,6 @@ public abstract class FineLavoriLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2143,14 +1939,6 @@ public abstract class FineLavoriLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java index a80b8189..fac7f427 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriLocalServiceClpInvoker.java @@ -122,192 +122,188 @@ public class FineLavoriLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName188 = "getBeanIdentifier"; + _methodName168 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes168 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName169 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes169 = new String[] { "java.lang.String" }; - _methodName195 = "addFineLavori"; + _methodName175 = "addFineLavori"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes175 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "deleteFineLavori"; + _methodName176 = "deleteFineLavori"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes176 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName197 = "deleteFineLavori"; + _methodName177 = "deleteFineLavori"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName198 = "updateFineLavori"; + _methodName178 = "updateFineLavori"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "java.lang.String" }; - _methodName199 = "getLastEditable"; + _methodName179 = "getLastEditable"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes179 = new String[] { "long" }; - _methodName200 = "getLastCompleted"; + _methodName180 = "getLastCompleted"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName201 = "pagaInvia"; + _methodName181 = "pagaInvia"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "updateEsitoPagamento"; + _methodName182 = "updateEsitoPagamento"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "long", "java.lang.String" }; - _methodName203 = "updateEsitoPagamento"; + _methodName183 = "updateEsitoPagamento"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "long", "long", "long", "java.lang.String" }; - _methodName204 = "updateEsito"; + _methodName184 = "updateEsito"; - _methodParameterTypes204 = new String[] { "long", "int" }; + _methodParameterTypes184 = new String[] { "long", "int" }; - _methodName207 = "updateFineLavoriProtocollo"; + _methodName187 = "updateFineLavoriProtocollo"; - _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; - _methodName208 = "findByProtocollo"; + _methodName188 = "findByProtocollo"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "java.lang.String" }; - _methodName209 = "fetchByProtocollo"; + _methodName189 = "fetchByProtocollo"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes189 = new String[] { "long", "long", "java.lang.String" }; - _methodName210 = "fetchByProtocollo"; + _methodName190 = "fetchByProtocollo"; - _methodParameterTypes210 = new String[] { "java.lang.String" }; + _methodParameterTypes190 = new String[] { "java.lang.String" }; - _methodName211 = "findByIntPraticaId"; + _methodName191 = "findByIntPraticaId"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes191 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName212 = "countByIntPraticaId"; + _methodName192 = "countByIntPraticaId"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName213 = "findByIntPraticaId_Parziale"; + _methodName193 = "findByIntPraticaId_Parziale"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes193 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName214 = "countByIntPraticaId_Parziale"; + _methodName194 = "countByIntPraticaId_Parziale"; - _methodParameterTypes214 = new String[] { "long", "boolean" }; + _methodParameterTypes194 = new String[] { "long", "boolean" }; - _methodName215 = "findByIntPraticaId_Completata"; + _methodName195 = "findByIntPraticaId_Completata"; - _methodParameterTypes215 = new String[] { + _methodParameterTypes195 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName216 = "countByIntPraticaId_Completata"; + _methodName196 = "countByIntPraticaId_Completata"; - _methodParameterTypes216 = new String[] { "long", "boolean" }; + _methodParameterTypes196 = new String[] { "long", "boolean" }; - _methodName217 = "findByIntPraticaId_CodiceFiscale"; + _methodName197 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName218 = "countByIntPraticaId_CodiceFiscale"; + _methodName198 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes218 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; - _methodName219 = "findByCodiceFiscale_Completata"; + _methodName199 = "findByCodiceFiscale_Completata"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes199 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName220 = "countByCodiceFiscale_Completata"; + _methodName200 = "countByCodiceFiscale_Completata"; - _methodParameterTypes220 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes200 = new String[] { "java.lang.String", "boolean" }; - _methodName221 = "findByIntPraticaId_Parziale_Completata"; + _methodName201 = "findByIntPraticaId_Parziale_Completata"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes201 = new String[] { "long", "boolean", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName222 = "countByIntPraticaId_Parziale_Completata"; + _methodName202 = "countByIntPraticaId_Parziale_Completata"; - _methodParameterTypes222 = new String[] { "long", "boolean", "boolean" }; + _methodParameterTypes202 = new String[] { "long", "boolean", "boolean" }; - _methodName223 = "findByIntPraticaId_Parziale_leFineLavoriId"; + _methodName203 = "findByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes203 = new String[] { "long", "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName224 = "countByIntPraticaId_Parziale_leFineLavoriId"; - - _methodParameterTypes224 = new String[] { "long", "long", "boolean" }; - - _methodName225 = "findFineLavoriCompleteNotProtocollo"; + _methodName204 = "countByIntPraticaId_Parziale_leFineLavoriId"; - _methodParameterTypes225 = new String[] { "int", "int" }; + _methodParameterTypes204 = new String[] { "long", "long", "boolean" }; - _methodName226 = "countFineLavoriCompleteNotProtocollo"; + _methodName205 = "findFineLavoriCompleteNotProtocollo"; - _methodParameterTypes226 = new String[] { }; + _methodParameterTypes205 = new String[] { "int", "int" }; - _methodName228 = "findFineLavoriCompleteNotGestite"; + _methodName206 = "countFineLavoriCompleteNotProtocollo"; - _methodParameterTypes228 = new String[] { "int", "int" }; + _methodParameterTypes206 = new String[] { }; - _methodName229 = "countFineLavoriCompleteNotGestite"; + _methodName208 = "findFineLavoriCompleteNotGestite"; - _methodParameterTypes229 = new String[] { }; + _methodParameterTypes208 = new String[] { "int", "int" }; - _methodName231 = "findIntPraticaByFineLavori"; + _methodName209 = "countFineLavoriCompleteNotGestite"; - _methodParameterTypes231 = new String[] { }; + _methodParameterTypes209 = new String[] { }; - _methodName232 = "findIntPraticaByFineLavori"; + _methodName211 = "findIntPraticaByFineLavori"; - _methodParameterTypes232 = new String[] { "java.lang.String" }; + _methodParameterTypes211 = new String[] { }; - _methodName233 = "fetchByOldDettPraticaId"; + _methodName212 = "findIntPraticaByFineLavori"; - _methodParameterTypes233 = new String[] { "long" }; + _methodParameterTypes212 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -423,36 +419,36 @@ public class FineLavoriLocalServiceClpInvoker { return FineLavoriLocalServiceUtil.updateFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return FineLavoriLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { FineLavoriLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return FineLavoriLocalServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return FineLavoriLocalServiceUtil.deleteFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return FineLavoriLocalServiceUtil.deleteFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return FineLavoriLocalServiceUtil.updateFineLavori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -464,33 +460,33 @@ public class FineLavoriLocalServiceClpInvoker { (java.lang.String)arguments[9]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return FineLavoriLocalServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return FineLavoriLocalServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return FineLavoriLocalServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { FineLavoriLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); return null; } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { FineLavoriLocalServiceUtil.updateEsitoPagamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); @@ -498,50 +494,50 @@ public class FineLavoriLocalServiceClpInvoker { return null; } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return FineLavoriLocalServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return FineLavoriLocalServiceUtil.updateFineLavoriProtocollo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return FineLavoriLocalServiceUtil.findByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return FineLavoriLocalServiceUtil.fetchByProtocollo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return FineLavoriLocalServiceUtil.fetchByProtocollo((java.lang.String)arguments[0]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -549,14 +545,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -564,14 +560,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -579,14 +575,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return FineLavoriLocalServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -594,14 +590,14 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return FineLavoriLocalServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue(), @@ -610,15 +606,15 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return FineLavoriLocalServiceUtil.findByIntPraticaId_Parziale_leFineLavoriId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue(), @@ -627,50 +623,45 @@ public class FineLavoriLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_leFineLavoriId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Boolean)arguments[2]).booleanValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return FineLavoriLocalServiceUtil.findFineLavoriCompleteNotProtocollo(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return FineLavoriLocalServiceUtil.countFineLavoriCompleteNotProtocollo(); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return FineLavoriLocalServiceUtil.findFineLavoriCompleteNotGestite(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return FineLavoriLocalServiceUtil.countFineLavoriCompleteNotGestite(); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return FineLavoriLocalServiceUtil.findIntPraticaByFineLavori(); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return FineLavoriLocalServiceUtil.findIntPraticaByFineLavori((java.lang.String)arguments[0]); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { - return FineLavoriLocalServiceUtil.fetchByOldDettPraticaId(((Long)arguments[0]).longValue()); - } - throw new UnsupportedOperationException(); } @@ -714,10 +705,46 @@ public class FineLavoriLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName187; + private String[] _methodParameterTypes187; private String _methodName188; private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; private String _methodName195; private String[] _methodParameterTypes195; private String _methodName196; @@ -738,54 +765,16 @@ public class FineLavoriLocalServiceClpInvoker { private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; - private String _methodName207; - private String[] _methodParameterTypes207; + private String _methodName205; + private String[] _methodParameterTypes205; + private String _methodName206; + private String[] _methodParameterTypes206; private String _methodName208; private String[] _methodParameterTypes208; private String _methodName209; private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; private String _methodName212; private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; - private String _methodName215; - private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName221; - private String[] _methodParameterTypes221; - private String _methodName222; - private String[] _methodParameterTypes222; - private String _methodName223; - private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; - private String _methodName226; - private String[] _methodParameterTypes226; - private String _methodName228; - private String[] _methodParameterTypes228; - private String _methodName229; - private String[] _methodParameterTypes229; - private String _methodName231; - private String[] _methodParameterTypes231; - private String _methodName232; - private String[] _methodParameterTypes232; - private String _methodName233; - private String[] _methodParameterTypes233; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java index 3eee78dd..4b63d80a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class FineLavoriServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java index 5a734acb..2951fe12 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/FineLavoriServiceClpInvoker.java @@ -24,142 +24,142 @@ import java.util.Arrays; */ public class FineLavoriServiceClpInvoker { public FineLavoriServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; - _methodName174 = "getFineLavori"; + _methodName154 = "getFineLavori"; - _methodParameterTypes174 = new String[] { "long" }; + _methodParameterTypes154 = new String[] { "long" }; - _methodName175 = "addFineLavori"; + _methodName155 = "addFineLavori"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes155 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName176 = "deleteFineLavori"; + _methodName156 = "deleteFineLavori"; - _methodParameterTypes176 = new String[] { + _methodParameterTypes156 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName177 = "deleteFineLavori"; + _methodName157 = "deleteFineLavori"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes157 = new String[] { "long" }; - _methodName178 = "updateFineLavori"; + _methodName158 = "updateFineLavori"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes158 = new String[] { "it.tref.liferay.portos.bo.model.FineLavori" }; - _methodName179 = "updateFineLavori"; + _methodName159 = "updateFineLavori"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes159 = new String[] { "long", "long", "long", "boolean", "boolean", "java.util.Date", "java.lang.String", "boolean", "boolean", "java.lang.String" }; - _methodName180 = "getLastEditable"; + _methodName160 = "getLastEditable"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes160 = new String[] { "long" }; - _methodName181 = "getLastCompleted"; + _methodName161 = "getLastCompleted"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes161 = new String[] { "long" }; - _methodName182 = "findByIntPraticaId_Parziale"; + _methodName162 = "findByIntPraticaId_Parziale"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes162 = new String[] { "long", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName183 = "countByIntPraticaId_Parziale"; + _methodName163 = "countByIntPraticaId_Parziale"; - _methodParameterTypes183 = new String[] { "long", "boolean" }; + _methodParameterTypes163 = new String[] { "long", "boolean" }; - _methodName184 = "pagaInvia"; + _methodName164 = "pagaInvia"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes164 = new String[] { "long", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName185 = "updateEsito"; + _methodName165 = "updateEsito"; - _methodParameterTypes185 = new String[] { "long", "int" }; + _methodParameterTypes165 = new String[] { "long", "int" }; - _methodName186 = "findByIntPraticaId_CodiceFiscale"; + _methodName166 = "findByIntPraticaId_CodiceFiscale"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes166 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName187 = "countByIntPraticaId_CodiceFiscale"; + _methodName167 = "countByIntPraticaId_CodiceFiscale"; - _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes167 = new String[] { "long", "java.lang.String" }; - _methodName188 = "findByCodiceFiscale_Completata"; + _methodName168 = "findByCodiceFiscale_Completata"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes168 = new String[] { "java.lang.String", "boolean", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName189 = "countByCodiceFiscale_Completata"; + _methodName169 = "countByCodiceFiscale_Completata"; - _methodParameterTypes189 = new String[] { "java.lang.String", "boolean" }; + _methodParameterTypes169 = new String[] { "java.lang.String", "boolean" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return FineLavoriServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { FineLavoriServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return FineLavoriServiceUtil.getFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { return FineLavoriServiceUtil.addFineLavori(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName156.equals(name) && + Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { return FineLavoriServiceUtil.deleteFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName157.equals(name) && + Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { return FineLavoriServiceUtil.deleteFineLavori(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return FineLavoriServiceUtil.updateFineLavori((it.tref.liferay.portos.bo.model.FineLavori)arguments[0]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return FineLavoriServiceUtil.updateFineLavori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -171,18 +171,18 @@ public class FineLavoriServiceClpInvoker { (java.lang.String)arguments[9]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return FineLavoriServiceUtil.getLastEditable(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return FineLavoriServiceUtil.getLastCompleted(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return FineLavoriServiceUtil.findByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -190,27 +190,27 @@ public class FineLavoriServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return FineLavoriServiceUtil.countByIntPraticaId_Parziale(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return FineLavoriServiceUtil.pagaInvia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return FineLavoriServiceUtil.updateEsito(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return FineLavoriServiceUtil.findByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -218,14 +218,14 @@ public class FineLavoriServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return FineLavoriServiceUtil.countByIntPraticaId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return FineLavoriServiceUtil.findByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), @@ -233,8 +233,8 @@ public class FineLavoriServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return FineLavoriServiceUtil.countByCodiceFiscale_Completata((java.lang.String)arguments[0], ((Boolean)arguments[1]).booleanValue()); } @@ -242,40 +242,40 @@ public class FineLavoriServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; + private String _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + private String _methodName156; + private String[] _methodParameterTypes156; + private String _methodName157; + private String[] _methodParameterTypes157; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; private String _methodName168; private String[] _methodParameterTypes168; private String _methodName169; private String[] _methodParameterTypes169; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java index bc314451..385f911f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1102,63 +1098,6 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1234,62 +1173,6 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1517,81 +1400,6 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2041,12 +1849,6 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2055,12 +1857,6 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2085,14 +1881,6 @@ public abstract class HistoryWorkflowActionLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java index c7fd3e28..ef575328 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionLocalServiceClpInvoker.java @@ -106,21 +106,21 @@ public class HistoryWorkflowActionLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.HistoryWorkflowAction" }; - _methodName184 = "getBeanIdentifier"; + _methodName164 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes164 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName165 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes165 = new String[] { "java.lang.String" }; - _methodName190 = "findByIntPratica"; + _methodName170 = "findByIntPratica"; - _methodParameterTypes190 = new String[] { "long", "int" }; + _methodParameterTypes170 = new String[] { "long", "int" }; - _methodName191 = "findByIntPratica"; + _methodName171 = "findByIntPratica"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes171 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -212,26 +212,26 @@ public class HistoryWorkflowActionLocalServiceClpInvoker { return HistoryWorkflowActionLocalServiceUtil.updateHistoryWorkflowAction((it.tref.liferay.portos.bo.model.HistoryWorkflowAction)arguments[0]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { HistoryWorkflowActionLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return HistoryWorkflowActionLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } @@ -270,12 +270,12 @@ public class HistoryWorkflowActionLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java index 315c213d..0ea47fbb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -870,63 +866,6 @@ public abstract class HistoryWorkflowActionServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1002,62 +941,6 @@ public abstract class HistoryWorkflowActionServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1285,81 +1168,6 @@ public abstract class HistoryWorkflowActionServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1804,12 +1612,6 @@ public abstract class HistoryWorkflowActionServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1818,12 +1620,6 @@ public abstract class HistoryWorkflowActionServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1848,14 +1644,6 @@ public abstract class HistoryWorkflowActionServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java index 0389f010..1427ee24 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/HistoryWorkflowActionServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class HistoryWorkflowActionServiceClpInvoker { public HistoryWorkflowActionServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return HistoryWorkflowActionServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { HistoryWorkflowActionServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class HistoryWorkflowActionServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVLocalServiceBaseImpl.java deleted file mode 100644 index 46d36b29..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVLocalServiceBaseImpl.java +++ /dev/null @@ -1,2176 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.kernel.bean.IdentifiableBean; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -import com.liferay.portal.kernel.dao.orm.Projection; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.search.Indexable; -import com.liferay.portal.kernel.search.IndexableType; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.model.PersistedModel; -import com.liferay.portal.service.BaseLocalServiceImpl; -import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil; -import com.liferay.portal.service.persistence.UserPersistence; - -import it.tref.liferay.portos.bo.model.IUV; -import it.tref.liferay.portos.bo.service.IUVLocalService; -import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; -import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; -import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; -import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; -import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; -import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; - -import java.io.Serializable; - -import java.util.List; - -import javax.sql.DataSource; - -/** - * Provides the base implementation for the i u v local service. - * - *

- * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.IUVLocalServiceImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.impl.IUVLocalServiceImpl - * @see it.tref.liferay.portos.bo.service.IUVLocalServiceUtil - * @generated - */ -public abstract class IUVLocalServiceBaseImpl extends BaseLocalServiceImpl - implements IUVLocalService, IdentifiableBean { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.IUVLocalServiceUtil} to access the i u v local service. - */ - - /** - * Adds the i u v to the database. Also notifies the appropriate model listeners. - * - * @param iuv the i u v - * @return the i u v that was added - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.REINDEX) - @Override - public IUV addIUV(IUV iuv) throws SystemException { - iuv.setNew(true); - - return iuvPersistence.update(iuv); - } - - /** - * Creates a new i u v with the primary key. Does not add the i u v to the database. - * - * @param iuvId the primary key for the new i u v - * @return the new i u v - */ - @Override - public IUV createIUV(long iuvId) { - return iuvPersistence.create(iuvId); - } - - /** - * Deletes the i u v with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param iuvId the primary key of the i u v - * @return the i u v that was removed - * @throws PortalException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.DELETE) - @Override - public IUV deleteIUV(long iuvId) throws PortalException, SystemException { - return iuvPersistence.remove(iuvId); - } - - /** - * Deletes the i u v from the database. Also notifies the appropriate model listeners. - * - * @param iuv the i u v - * @return the i u v that was removed - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.DELETE) - @Override - public IUV deleteIUV(IUV iuv) throws SystemException { - return iuvPersistence.remove(iuv); - } - - @Override - public DynamicQuery dynamicQuery() { - Class clazz = getClass(); - - return DynamicQueryFactoryUtil.forClass(IUV.class, - clazz.getClassLoader()); - } - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery) - throws SystemException { - return iuvPersistence.findWithDynamicQuery(dynamicQuery); - } - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) - throws SystemException { - return iuvPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return iuvPersistence.findWithDynamicQuery(dynamicQuery, start, end, - orderByComparator); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount(DynamicQuery dynamicQuery) - throws SystemException { - return iuvPersistence.countWithDynamicQuery(dynamicQuery); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount(DynamicQuery dynamicQuery, - Projection projection) throws SystemException { - return iuvPersistence.countWithDynamicQuery(dynamicQuery, projection); - } - - @Override - public IUV fetchIUV(long iuvId) throws SystemException { - return iuvPersistence.fetchByPrimaryKey(iuvId); - } - - /** - * Returns the i u v with the matching UUID and company. - * - * @param uuid the i u v's UUID - * @param companyId the primary key of the company - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchIUVByUuidAndCompanyId(String uuid, long companyId) - throws SystemException { - return iuvPersistence.fetchByUuid_C_First(uuid, companyId, null); - } - - /** - * Returns the i u v matching the UUID and group. - * - * @param uuid the i u v's UUID - * @param groupId the primary key of the group - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchIUVByUuidAndGroupId(String uuid, long groupId) - throws SystemException { - return iuvPersistence.fetchByUUID_G(uuid, groupId); - } - - /** - * Returns the i u v with the primary key. - * - * @param iuvId the primary key of the i u v - * @return the i u v - * @throws PortalException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV getIUV(long iuvId) throws PortalException, SystemException { - return iuvPersistence.findByPrimaryKey(iuvId); - } - - @Override - public PersistedModel getPersistedModel(Serializable primaryKeyObj) - throws PortalException, SystemException { - return iuvPersistence.findByPrimaryKey(primaryKeyObj); - } - - /** - * Returns the i u v with the matching UUID and company. - * - * @param uuid the i u v's UUID - * @param companyId the primary key of the company - * @return the matching i u v - * @throws PortalException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV getIUVByUuidAndCompanyId(String uuid, long companyId) - throws PortalException, SystemException { - return iuvPersistence.findByUuid_C_First(uuid, companyId, null); - } - - /** - * Returns the i u v matching the UUID and group. - * - * @param uuid the i u v's UUID - * @param groupId the primary key of the group - * @return the matching i u v - * @throws PortalException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV getIUVByUuidAndGroupId(String uuid, long groupId) - throws PortalException, SystemException { - return iuvPersistence.findByUUID_G(uuid, groupId); - } - - /** - * Returns a range of all the i u vs. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List getIUVs(int start, int end) throws SystemException { - return iuvPersistence.findAll(start, end); - } - - /** - * Returns the number of i u vs. - * - * @return the number of i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int getIUVsCount() throws SystemException { - return iuvPersistence.countAll(); - } - - /** - * Updates the i u v in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param iuv the i u v - * @return the i u v that was updated - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.REINDEX) - @Override - public IUV updateIUV(IUV iuv) throws SystemException { - return iuvPersistence.update(iuv); - } - - /** - * Returns the allegato manuale local service. - * - * @return the allegato manuale local service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { - return allegatoManualeLocalService; - } - - /** - * Sets the allegato manuale local service. - * - * @param allegatoManualeLocalService the allegato manuale local service - */ - public void setAllegatoManualeLocalService( - it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { - this.allegatoManualeLocalService = allegatoManualeLocalService; - } - - /** - * Returns the allegato manuale remote service. - * - * @return the allegato manuale remote service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { - return allegatoManualeService; - } - - /** - * Sets the allegato manuale remote service. - * - * @param allegatoManualeService the allegato manuale remote service - */ - public void setAllegatoManualeService( - it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { - this.allegatoManualeService = allegatoManualeService; - } - - /** - * Returns the allegato manuale persistence. - * - * @return the allegato manuale persistence - */ - public AllegatoManualePersistence getAllegatoManualePersistence() { - return allegatoManualePersistence; - } - - /** - * Sets the allegato manuale persistence. - * - * @param allegatoManualePersistence the allegato manuale persistence - */ - public void setAllegatoManualePersistence( - AllegatoManualePersistence allegatoManualePersistence) { - this.allegatoManualePersistence = allegatoManualePersistence; - } - - /** - * Returns the asseverazione local service. - * - * @return the asseverazione local service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { - return asseverazioneLocalService; - } - - /** - * Sets the asseverazione local service. - * - * @param asseverazioneLocalService the asseverazione local service - */ - public void setAsseverazioneLocalService( - it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { - this.asseverazioneLocalService = asseverazioneLocalService; - } - - /** - * Returns the asseverazione remote service. - * - * @return the asseverazione remote service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { - return asseverazioneService; - } - - /** - * Sets the asseverazione remote service. - * - * @param asseverazioneService the asseverazione remote service - */ - public void setAsseverazioneService( - it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { - this.asseverazioneService = asseverazioneService; - } - - /** - * Returns the asseverazione persistence. - * - * @return the asseverazione persistence - */ - public AsseverazionePersistence getAsseverazionePersistence() { - return asseverazionePersistence; - } - - /** - * Sets the asseverazione persistence. - * - * @param asseverazionePersistence the asseverazione persistence - */ - public void setAsseverazionePersistence( - AsseverazionePersistence asseverazionePersistence) { - this.asseverazionePersistence = asseverazionePersistence; - } - - /** - * Returns the avviso local service. - * - * @return the avviso local service - */ - public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { - return avvisoLocalService; - } - - /** - * Sets the avviso local service. - * - * @param avvisoLocalService the avviso local service - */ - public void setAvvisoLocalService( - it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { - this.avvisoLocalService = avvisoLocalService; - } - - /** - * Returns the avviso remote service. - * - * @return the avviso remote service - */ - public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { - return avvisoService; - } - - /** - * Sets the avviso remote service. - * - * @param avvisoService the avviso remote service - */ - public void setAvvisoService( - it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { - this.avvisoService = avvisoService; - } - - /** - * Returns the avviso persistence. - * - * @return the avviso persistence - */ - public AvvisoPersistence getAvvisoPersistence() { - return avvisoPersistence; - } - - /** - * Sets the avviso persistence. - * - * @param avvisoPersistence the avviso persistence - */ - public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { - this.avvisoPersistence = avvisoPersistence; - } - - /** - * Returns the collaudo local service. - * - * @return the collaudo local service - */ - public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { - return collaudoLocalService; - } - - /** - * Sets the collaudo local service. - * - * @param collaudoLocalService the collaudo local service - */ - public void setCollaudoLocalService( - it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { - this.collaudoLocalService = collaudoLocalService; - } - - /** - * Returns the collaudo remote service. - * - * @return the collaudo remote service - */ - public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { - return collaudoService; - } - - /** - * Sets the collaudo remote service. - * - * @param collaudoService the collaudo remote service - */ - public void setCollaudoService( - it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { - this.collaudoService = collaudoService; - } - - /** - * Returns the collaudo persistence. - * - * @return the collaudo persistence - */ - public CollaudoPersistence getCollaudoPersistence() { - return collaudoPersistence; - } - - /** - * Sets the collaudo persistence. - * - * @param collaudoPersistence the collaudo persistence - */ - public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { - this.collaudoPersistence = collaudoPersistence; - } - - /** - * Returns the comune local service. - * - * @return the comune local service - */ - public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { - return comuneLocalService; - } - - /** - * Sets the comune local service. - * - * @param comuneLocalService the comune local service - */ - public void setComuneLocalService( - it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { - this.comuneLocalService = comuneLocalService; - } - - /** - * Returns the comune remote service. - * - * @return the comune remote service - */ - public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { - return comuneService; - } - - /** - * Sets the comune remote service. - * - * @param comuneService the comune remote service - */ - public void setComuneService( - it.tref.liferay.portos.bo.service.ComuneService comuneService) { - this.comuneService = comuneService; - } - - /** - * Returns the comune persistence. - * - * @return the comune persistence - */ - public ComunePersistence getComunePersistence() { - return comunePersistence; - } - - /** - * Sets the comune persistence. - * - * @param comunePersistence the comune persistence - */ - public void setComunePersistence(ComunePersistence comunePersistence) { - this.comunePersistence = comunePersistence; - } - - /** - * Returns the comunicazione local service. - * - * @return the comunicazione local service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { - return comunicazioneLocalService; - } - - /** - * Sets the comunicazione local service. - * - * @param comunicazioneLocalService the comunicazione local service - */ - public void setComunicazioneLocalService( - it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { - this.comunicazioneLocalService = comunicazioneLocalService; - } - - /** - * Returns the comunicazione remote service. - * - * @return the comunicazione remote service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { - return comunicazioneService; - } - - /** - * Sets the comunicazione remote service. - * - * @param comunicazioneService the comunicazione remote service - */ - public void setComunicazioneService( - it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { - this.comunicazioneService = comunicazioneService; - } - - /** - * Returns the comunicazione persistence. - * - * @return the comunicazione persistence - */ - public ComunicazionePersistence getComunicazionePersistence() { - return comunicazionePersistence; - } - - /** - * Sets the comunicazione persistence. - * - * @param comunicazionePersistence the comunicazione persistence - */ - public void setComunicazionePersistence( - ComunicazionePersistence comunicazionePersistence) { - this.comunicazionePersistence = comunicazionePersistence; - } - - /** - * Returns the configurazione local service. - * - * @return the configurazione local service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { - return configurazioneLocalService; - } - - /** - * Sets the configurazione local service. - * - * @param configurazioneLocalService the configurazione local service - */ - public void setConfigurazioneLocalService( - it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { - this.configurazioneLocalService = configurazioneLocalService; - } - - /** - * Returns the configurazione remote service. - * - * @return the configurazione remote service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { - return configurazioneService; - } - - /** - * Sets the configurazione remote service. - * - * @param configurazioneService the configurazione remote service - */ - public void setConfigurazioneService( - it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { - this.configurazioneService = configurazioneService; - } - - /** - * Returns the configurazione persistence. - * - * @return the configurazione persistence - */ - public ConfigurazionePersistence getConfigurazionePersistence() { - return configurazionePersistence; - } - - /** - * Sets the configurazione persistence. - * - * @param configurazionePersistence the configurazione persistence - */ - public void setConfigurazionePersistence( - ConfigurazionePersistence configurazionePersistence) { - this.configurazionePersistence = configurazionePersistence; - } - - /** - * Returns the controllo pratica local service. - * - * @return the controllo pratica local service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { - return controlloPraticaLocalService; - } - - /** - * Sets the controllo pratica local service. - * - * @param controlloPraticaLocalService the controllo pratica local service - */ - public void setControlloPraticaLocalService( - it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { - this.controlloPraticaLocalService = controlloPraticaLocalService; - } - - /** - * Returns the controllo pratica remote service. - * - * @return the controllo pratica remote service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { - return controlloPraticaService; - } - - /** - * Sets the controllo pratica remote service. - * - * @param controlloPraticaService the controllo pratica remote service - */ - public void setControlloPraticaService( - it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { - this.controlloPraticaService = controlloPraticaService; - } - - /** - * Returns the controllo pratica persistence. - * - * @return the controllo pratica persistence - */ - public ControlloPraticaPersistence getControlloPraticaPersistence() { - return controlloPraticaPersistence; - } - - /** - * Sets the controllo pratica persistence. - * - * @param controlloPraticaPersistence the controllo pratica persistence - */ - public void setControlloPraticaPersistence( - ControlloPraticaPersistence controlloPraticaPersistence) { - this.controlloPraticaPersistence = controlloPraticaPersistence; - } - - /** - * Returns the delega local service. - * - * @return the delega local service - */ - public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { - return delegaLocalService; - } - - /** - * Sets the delega local service. - * - * @param delegaLocalService the delega local service - */ - public void setDelegaLocalService( - it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { - this.delegaLocalService = delegaLocalService; - } - - /** - * Returns the delega remote service. - * - * @return the delega remote service - */ - public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { - return delegaService; - } - - /** - * Sets the delega remote service. - * - * @param delegaService the delega remote service - */ - public void setDelegaService( - it.tref.liferay.portos.bo.service.DelegaService delegaService) { - this.delegaService = delegaService; - } - - /** - * Returns the delega persistence. - * - * @return the delega persistence - */ - public DelegaPersistence getDelegaPersistence() { - return delegaPersistence; - } - - /** - * Sets the delega persistence. - * - * @param delegaPersistence the delega persistence - */ - public void setDelegaPersistence(DelegaPersistence delegaPersistence) { - this.delegaPersistence = delegaPersistence; - } - - /** - * Returns the dett pratica local service. - * - * @return the dett pratica local service - */ - public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { - return dettPraticaLocalService; - } - - /** - * Sets the dett pratica local service. - * - * @param dettPraticaLocalService the dett pratica local service - */ - public void setDettPraticaLocalService( - it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { - this.dettPraticaLocalService = dettPraticaLocalService; - } - - /** - * Returns the dett pratica remote service. - * - * @return the dett pratica remote service - */ - public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { - return dettPraticaService; - } - - /** - * Sets the dett pratica remote service. - * - * @param dettPraticaService the dett pratica remote service - */ - public void setDettPraticaService( - it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { - this.dettPraticaService = dettPraticaService; - } - - /** - * Returns the dett pratica persistence. - * - * @return the dett pratica persistence - */ - public DettPraticaPersistence getDettPraticaPersistence() { - return dettPraticaPersistence; - } - - /** - * Sets the dett pratica persistence. - * - * @param dettPraticaPersistence the dett pratica persistence - */ - public void setDettPraticaPersistence( - DettPraticaPersistence dettPraticaPersistence) { - this.dettPraticaPersistence = dettPraticaPersistence; - } - - /** - * Returns the doc aggiuntiva local service. - * - * @return the doc aggiuntiva local service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { - return docAggiuntivaLocalService; - } - - /** - * Sets the doc aggiuntiva local service. - * - * @param docAggiuntivaLocalService the doc aggiuntiva local service - */ - public void setDocAggiuntivaLocalService( - it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { - this.docAggiuntivaLocalService = docAggiuntivaLocalService; - } - - /** - * Returns the doc aggiuntiva remote service. - * - * @return the doc aggiuntiva remote service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { - return docAggiuntivaService; - } - - /** - * Sets the doc aggiuntiva remote service. - * - * @param docAggiuntivaService the doc aggiuntiva remote service - */ - public void setDocAggiuntivaService( - it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { - this.docAggiuntivaService = docAggiuntivaService; - } - - /** - * Returns the doc aggiuntiva persistence. - * - * @return the doc aggiuntiva persistence - */ - public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { - return docAggiuntivaPersistence; - } - - /** - * Sets the doc aggiuntiva persistence. - * - * @param docAggiuntivaPersistence the doc aggiuntiva persistence - */ - public void setDocAggiuntivaPersistence( - DocAggiuntivaPersistence docAggiuntivaPersistence) { - this.docAggiuntivaPersistence = docAggiuntivaPersistence; - } - - /** - * Returns the doc pratica local service. - * - * @return the doc pratica local service - */ - public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { - return docPraticaLocalService; - } - - /** - * Sets the doc pratica local service. - * - * @param docPraticaLocalService the doc pratica local service - */ - public void setDocPraticaLocalService( - it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { - this.docPraticaLocalService = docPraticaLocalService; - } - - /** - * Returns the doc pratica remote service. - * - * @return the doc pratica remote service - */ - public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { - return docPraticaService; - } - - /** - * Sets the doc pratica remote service. - * - * @param docPraticaService the doc pratica remote service - */ - public void setDocPraticaService( - it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { - this.docPraticaService = docPraticaService; - } - - /** - * Returns the doc pratica persistence. - * - * @return the doc pratica persistence - */ - public DocPraticaPersistence getDocPraticaPersistence() { - return docPraticaPersistence; - } - - /** - * Sets the doc pratica persistence. - * - * @param docPraticaPersistence the doc pratica persistence - */ - public void setDocPraticaPersistence( - DocPraticaPersistence docPraticaPersistence) { - this.docPraticaPersistence = docPraticaPersistence; - } - - /** - * Returns the fine lavori local service. - * - * @return the fine lavori local service - */ - public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { - return fineLavoriLocalService; - } - - /** - * Sets the fine lavori local service. - * - * @param fineLavoriLocalService the fine lavori local service - */ - public void setFineLavoriLocalService( - it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { - this.fineLavoriLocalService = fineLavoriLocalService; - } - - /** - * Returns the fine lavori remote service. - * - * @return the fine lavori remote service - */ - public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { - return fineLavoriService; - } - - /** - * Sets the fine lavori remote service. - * - * @param fineLavoriService the fine lavori remote service - */ - public void setFineLavoriService( - it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { - this.fineLavoriService = fineLavoriService; - } - - /** - * Returns the fine lavori persistence. - * - * @return the fine lavori persistence - */ - public FineLavoriPersistence getFineLavoriPersistence() { - return fineLavoriPersistence; - } - - /** - * Sets the fine lavori persistence. - * - * @param fineLavoriPersistence the fine lavori persistence - */ - public void setFineLavoriPersistence( - FineLavoriPersistence fineLavoriPersistence) { - this.fineLavoriPersistence = fineLavoriPersistence; - } - - /** - * Returns the history workflow action local service. - * - * @return the history workflow action local service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { - return historyWorkflowActionLocalService; - } - - /** - * Sets the history workflow action local service. - * - * @param historyWorkflowActionLocalService the history workflow action local service - */ - public void setHistoryWorkflowActionLocalService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { - this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; - } - - /** - * Returns the history workflow action remote service. - * - * @return the history workflow action remote service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { - return historyWorkflowActionService; - } - - /** - * Sets the history workflow action remote service. - * - * @param historyWorkflowActionService the history workflow action remote service - */ - public void setHistoryWorkflowActionService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { - this.historyWorkflowActionService = historyWorkflowActionService; - } - - /** - * Returns the history workflow action persistence. - * - * @return the history workflow action persistence - */ - public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { - return historyWorkflowActionPersistence; - } - - /** - * Sets the history workflow action persistence. - * - * @param historyWorkflowActionPersistence the history workflow action persistence - */ - public void setHistoryWorkflowActionPersistence( - HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { - this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; - } - - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - - /** - * Returns the int pratica local service. - * - * @return the int pratica local service - */ - public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { - return intPraticaLocalService; - } - - /** - * Sets the int pratica local service. - * - * @param intPraticaLocalService the int pratica local service - */ - public void setIntPraticaLocalService( - it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { - this.intPraticaLocalService = intPraticaLocalService; - } - - /** - * Returns the int pratica remote service. - * - * @return the int pratica remote service - */ - public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { - return intPraticaService; - } - - /** - * Sets the int pratica remote service. - * - * @param intPraticaService the int pratica remote service - */ - public void setIntPraticaService( - it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { - this.intPraticaService = intPraticaService; - } - - /** - * Returns the int pratica persistence. - * - * @return the int pratica persistence - */ - public IntPraticaPersistence getIntPraticaPersistence() { - return intPraticaPersistence; - } - - /** - * Sets the int pratica persistence. - * - * @param intPraticaPersistence the int pratica persistence - */ - public void setIntPraticaPersistence( - IntPraticaPersistence intPraticaPersistence) { - this.intPraticaPersistence = intPraticaPersistence; - } - - /** - * Returns the int pratica finder. - * - * @return the int pratica finder - */ - public IntPraticaFinder getIntPraticaFinder() { - return intPraticaFinder; - } - - /** - * Sets the int pratica finder. - * - * @param intPraticaFinder the int pratica finder - */ - public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { - this.intPraticaFinder = intPraticaFinder; - } - - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - - /** - * Returns the pagamento local service. - * - * @return the pagamento local service - */ - public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { - return pagamentoLocalService; - } - - /** - * Sets the pagamento local service. - * - * @param pagamentoLocalService the pagamento local service - */ - public void setPagamentoLocalService( - it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { - this.pagamentoLocalService = pagamentoLocalService; - } - - /** - * Returns the pagamento remote service. - * - * @return the pagamento remote service - */ - public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { - return pagamentoService; - } - - /** - * Sets the pagamento remote service. - * - * @param pagamentoService the pagamento remote service - */ - public void setPagamentoService( - it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { - this.pagamentoService = pagamentoService; - } - - /** - * Returns the pagamento persistence. - * - * @return the pagamento persistence - */ - public PagamentoPersistence getPagamentoPersistence() { - return pagamentoPersistence; - } - - /** - * Sets the pagamento persistence. - * - * @param pagamentoPersistence the pagamento persistence - */ - public void setPagamentoPersistence( - PagamentoPersistence pagamentoPersistence) { - this.pagamentoPersistence = pagamentoPersistence; - } - - /** - * Returns the parere geologo local service. - * - * @return the parere geologo local service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { - return parereGeologoLocalService; - } - - /** - * Sets the parere geologo local service. - * - * @param parereGeologoLocalService the parere geologo local service - */ - public void setParereGeologoLocalService( - it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { - this.parereGeologoLocalService = parereGeologoLocalService; - } - - /** - * Returns the parere geologo remote service. - * - * @return the parere geologo remote service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { - return parereGeologoService; - } - - /** - * Sets the parere geologo remote service. - * - * @param parereGeologoService the parere geologo remote service - */ - public void setParereGeologoService( - it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { - this.parereGeologoService = parereGeologoService; - } - - /** - * Returns the parere geologo persistence. - * - * @return the parere geologo persistence - */ - public ParereGeologoPersistence getParereGeologoPersistence() { - return parereGeologoPersistence; - } - - /** - * Sets the parere geologo persistence. - * - * @param parereGeologoPersistence the parere geologo persistence - */ - public void setParereGeologoPersistence( - ParereGeologoPersistence parereGeologoPersistence) { - this.parereGeologoPersistence = parereGeologoPersistence; - } - - /** - * Returns the provincia local service. - * - * @return the provincia local service - */ - public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { - return provinciaLocalService; - } - - /** - * Sets the provincia local service. - * - * @param provinciaLocalService the provincia local service - */ - public void setProvinciaLocalService( - it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { - this.provinciaLocalService = provinciaLocalService; - } - - /** - * Returns the provincia remote service. - * - * @return the provincia remote service - */ - public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { - return provinciaService; - } - - /** - * Sets the provincia remote service. - * - * @param provinciaService the provincia remote service - */ - public void setProvinciaService( - it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { - this.provinciaService = provinciaService; - } - - /** - * Returns the provincia persistence. - * - * @return the provincia persistence - */ - public ProvinciaPersistence getProvinciaPersistence() { - return provinciaPersistence; - } - - /** - * Sets the provincia persistence. - * - * @param provinciaPersistence the provincia persistence - */ - public void setProvinciaPersistence( - ProvinciaPersistence provinciaPersistence) { - this.provinciaPersistence = provinciaPersistence; - } - - /** - * Returns the soggetto local service. - * - * @return the soggetto local service - */ - public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { - return soggettoLocalService; - } - - /** - * Sets the soggetto local service. - * - * @param soggettoLocalService the soggetto local service - */ - public void setSoggettoLocalService( - it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { - this.soggettoLocalService = soggettoLocalService; - } - - /** - * Returns the soggetto remote service. - * - * @return the soggetto remote service - */ - public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { - return soggettoService; - } - - /** - * Sets the soggetto remote service. - * - * @param soggettoService the soggetto remote service - */ - public void setSoggettoService( - it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { - this.soggettoService = soggettoService; - } - - /** - * Returns the soggetto persistence. - * - * @return the soggetto persistence - */ - public SoggettoPersistence getSoggettoPersistence() { - return soggettoPersistence; - } - - /** - * Sets the soggetto persistence. - * - * @param soggettoPersistence the soggetto persistence - */ - public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { - this.soggettoPersistence = soggettoPersistence; - } - - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - - /** - * Returns the storico soggetto pratica local service. - * - * @return the storico soggetto pratica local service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { - return storicoSoggettoPraticaLocalService; - } - - /** - * Sets the storico soggetto pratica local service. - * - * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service - */ - public void setStoricoSoggettoPraticaLocalService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { - this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; - } - - /** - * Returns the storico soggetto pratica remote service. - * - * @return the storico soggetto pratica remote service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { - return storicoSoggettoPraticaService; - } - - /** - * Sets the storico soggetto pratica remote service. - * - * @param storicoSoggettoPraticaService the storico soggetto pratica remote service - */ - public void setStoricoSoggettoPraticaService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { - this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; - } - - /** - * Returns the storico soggetto pratica persistence. - * - * @return the storico soggetto pratica persistence - */ - public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { - return storicoSoggettoPraticaPersistence; - } - - /** - * Sets the storico soggetto pratica persistence. - * - * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence - */ - public void setStoricoSoggettoPraticaPersistence( - StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { - this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; - } - - /** - * Returns the tempistica local service. - * - * @return the tempistica local service - */ - public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { - return tempisticaLocalService; - } - - /** - * Sets the tempistica local service. - * - * @param tempisticaLocalService the tempistica local service - */ - public void setTempisticaLocalService( - it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { - this.tempisticaLocalService = tempisticaLocalService; - } - - /** - * Returns the tempistica remote service. - * - * @return the tempistica remote service - */ - public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { - return tempisticaService; - } - - /** - * Sets the tempistica remote service. - * - * @param tempisticaService the tempistica remote service - */ - public void setTempisticaService( - it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { - this.tempisticaService = tempisticaService; - } - - /** - * Returns the tempistica persistence. - * - * @return the tempistica persistence - */ - public TempisticaPersistence getTempisticaPersistence() { - return tempisticaPersistence; - } - - /** - * Sets the tempistica persistence. - * - * @param tempisticaPersistence the tempistica persistence - */ - public void setTempisticaPersistence( - TempisticaPersistence tempisticaPersistence) { - this.tempisticaPersistence = tempisticaPersistence; - } - - /** - * Returns the tempistica finder. - * - * @return the tempistica finder - */ - public TempisticaFinder getTempisticaFinder() { - return tempisticaFinder; - } - - /** - * Sets the tempistica finder. - * - * @param tempisticaFinder the tempistica finder - */ - public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { - this.tempisticaFinder = tempisticaFinder; - } - - /** - * Returns the territorio local service. - * - * @return the territorio local service - */ - public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { - return territorioLocalService; - } - - /** - * Sets the territorio local service. - * - * @param territorioLocalService the territorio local service - */ - public void setTerritorioLocalService( - it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { - this.territorioLocalService = territorioLocalService; - } - - /** - * Returns the territorio remote service. - * - * @return the territorio remote service - */ - public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { - return territorioService; - } - - /** - * Sets the territorio remote service. - * - * @param territorioService the territorio remote service - */ - public void setTerritorioService( - it.tref.liferay.portos.bo.service.TerritorioService territorioService) { - this.territorioService = territorioService; - } - - /** - * Returns the territorio persistence. - * - * @return the territorio persistence - */ - public TerritorioPersistence getTerritorioPersistence() { - return territorioPersistence; - } - - /** - * Sets the territorio persistence. - * - * @param territorioPersistence the territorio persistence - */ - public void setTerritorioPersistence( - TerritorioPersistence territorioPersistence) { - this.territorioPersistence = territorioPersistence; - } - - /** - * Returns the counter local service. - * - * @return the counter local service - */ - public com.liferay.counter.service.CounterLocalService getCounterLocalService() { - return counterLocalService; - } - - /** - * Sets the counter local service. - * - * @param counterLocalService the counter local service - */ - public void setCounterLocalService( - com.liferay.counter.service.CounterLocalService counterLocalService) { - this.counterLocalService = counterLocalService; - } - - /** - * Returns the resource local service. - * - * @return the resource local service - */ - public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { - return resourceLocalService; - } - - /** - * Sets the resource local service. - * - * @param resourceLocalService the resource local service - */ - public void setResourceLocalService( - com.liferay.portal.service.ResourceLocalService resourceLocalService) { - this.resourceLocalService = resourceLocalService; - } - - /** - * Returns the user local service. - * - * @return the user local service - */ - public com.liferay.portal.service.UserLocalService getUserLocalService() { - return userLocalService; - } - - /** - * Sets the user local service. - * - * @param userLocalService the user local service - */ - public void setUserLocalService( - com.liferay.portal.service.UserLocalService userLocalService) { - this.userLocalService = userLocalService; - } - - /** - * Returns the user remote service. - * - * @return the user remote service - */ - public com.liferay.portal.service.UserService getUserService() { - return userService; - } - - /** - * Sets the user remote service. - * - * @param userService the user remote service - */ - public void setUserService( - com.liferay.portal.service.UserService userService) { - this.userService = userService; - } - - /** - * Returns the user persistence. - * - * @return the user persistence - */ - public UserPersistence getUserPersistence() { - return userPersistence; - } - - /** - * Sets the user persistence. - * - * @param userPersistence the user persistence - */ - public void setUserPersistence(UserPersistence userPersistence) { - this.userPersistence = userPersistence; - } - - public void afterPropertiesSet() { - Class clazz = getClass(); - - _classLoader = clazz.getClassLoader(); - - PersistedModelLocalServiceRegistryUtil.register("it.tref.liferay.portos.bo.model.IUV", - iuvLocalService); - } - - public void destroy() { - PersistedModelLocalServiceRegistryUtil.unregister( - "it.tref.liferay.portos.bo.model.IUV"); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public String getBeanIdentifier() { - return _beanIdentifier; - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(String beanIdentifier) { - _beanIdentifier = beanIdentifier; - } - - @Override - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(_classLoader); - } - - try { - return _clpInvoker.invokeMethod(name, parameterTypes, arguments); - } - finally { - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(contextClassLoader); - } - } - } - - protected Class getModelClass() { - return IUV.class; - } - - protected String getModelClassName() { - return IUV.class.getName(); - } - - /** - * Performs an SQL query. - * - * @param sql the sql query - */ - protected void runSQL(String sql) throws SystemException { - try { - DataSource dataSource = iuvPersistence.getDataSource(); - - SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, - sql, new int[0]); - - sqlUpdate.update(); - } - catch (Exception e) { - throw new SystemException(e); - } - } - - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; - @BeanReference(type = AllegatoManualePersistence.class) - protected AllegatoManualePersistence allegatoManualePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; - @BeanReference(type = AsseverazionePersistence.class) - protected AsseverazionePersistence asseverazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) - protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) - protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; - @BeanReference(type = AvvisoPersistence.class) - protected AvvisoPersistence avvisoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) - protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) - protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; - @BeanReference(type = CollaudoPersistence.class) - protected CollaudoPersistence collaudoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) - protected it.tref.liferay.portos.bo.service.ComuneService comuneService; - @BeanReference(type = ComunePersistence.class) - protected ComunePersistence comunePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; - @BeanReference(type = ComunicazionePersistence.class) - protected ComunicazionePersistence comunicazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; - @BeanReference(type = ConfigurazionePersistence.class) - protected ConfigurazionePersistence configurazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; - @BeanReference(type = ControlloPraticaPersistence.class) - protected ControlloPraticaPersistence controlloPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) - protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) - protected it.tref.liferay.portos.bo.service.DelegaService delegaService; - @BeanReference(type = DelegaPersistence.class) - protected DelegaPersistence delegaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; - @BeanReference(type = DettPraticaPersistence.class) - protected DettPraticaPersistence dettPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; - @BeanReference(type = DocAggiuntivaPersistence.class) - protected DocAggiuntivaPersistence docAggiuntivaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; - @BeanReference(type = DocPraticaPersistence.class) - protected DocPraticaPersistence docPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; - @BeanReference(type = FineLavoriPersistence.class) - protected FineLavoriPersistence fineLavoriPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; - @BeanReference(type = HistoryWorkflowActionPersistence.class) - protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; - @BeanReference(type = IntPraticaPersistence.class) - protected IntPraticaPersistence intPraticaPersistence; - @BeanReference(type = IntPraticaFinder.class) - protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) - protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) - protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; - @BeanReference(type = PagamentoPersistence.class) - protected PagamentoPersistence pagamentoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; - @BeanReference(type = ParereGeologoPersistence.class) - protected ParereGeologoPersistence parereGeologoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; - @BeanReference(type = ProvinciaPersistence.class) - protected ProvinciaPersistence provinciaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) - protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) - protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; - @BeanReference(type = SoggettoPersistence.class) - protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; - @BeanReference(type = StoricoSoggettoPraticaPersistence.class) - protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) - protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) - protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; - @BeanReference(type = TempisticaPersistence.class) - protected TempisticaPersistence tempisticaPersistence; - @BeanReference(type = TempisticaFinder.class) - protected TempisticaFinder tempisticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) - protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) - protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; - @BeanReference(type = TerritorioPersistence.class) - protected TerritorioPersistence territorioPersistence; - @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) - protected com.liferay.counter.service.CounterLocalService counterLocalService; - @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) - protected com.liferay.portal.service.ResourceLocalService resourceLocalService; - @BeanReference(type = com.liferay.portal.service.UserLocalService.class) - protected com.liferay.portal.service.UserLocalService userLocalService; - @BeanReference(type = com.liferay.portal.service.UserService.class) - protected com.liferay.portal.service.UserService userService; - @BeanReference(type = UserPersistence.class) - protected UserPersistence userPersistence; - private String _beanIdentifier; - private ClassLoader _classLoader; - private IUVLocalServiceClpInvoker _clpInvoker = new IUVLocalServiceClpInvoker(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVLocalServiceClpInvoker.java deleted file mode 100644 index 32790f66..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVLocalServiceClpInvoker.java +++ /dev/null @@ -1,344 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import it.tref.liferay.portos.bo.service.IUVLocalServiceUtil; - -import java.util.Arrays; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class IUVLocalServiceClpInvoker { - public IUVLocalServiceClpInvoker() { - _methodName0 = "addIUV"; - - _methodParameterTypes0 = new String[] { - "it.tref.liferay.portos.bo.model.IUV" - }; - - _methodName1 = "createIUV"; - - _methodParameterTypes1 = new String[] { "long" }; - - _methodName2 = "deleteIUV"; - - _methodParameterTypes2 = new String[] { "long" }; - - _methodName3 = "deleteIUV"; - - _methodParameterTypes3 = new String[] { - "it.tref.liferay.portos.bo.model.IUV" - }; - - _methodName4 = "dynamicQuery"; - - _methodParameterTypes4 = new String[] { }; - - _methodName5 = "dynamicQuery"; - - _methodParameterTypes5 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName6 = "dynamicQuery"; - - _methodParameterTypes6 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" - }; - - _methodName7 = "dynamicQuery"; - - _methodParameterTypes7 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName8 = "dynamicQueryCount"; - - _methodParameterTypes8 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName9 = "dynamicQueryCount"; - - _methodParameterTypes9 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", - "com.liferay.portal.kernel.dao.orm.Projection" - }; - - _methodName10 = "fetchIUV"; - - _methodParameterTypes10 = new String[] { "long" }; - - _methodName11 = "fetchIUVByUuidAndCompanyId"; - - _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; - - _methodName12 = "fetchIUVByUuidAndGroupId"; - - _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; - - _methodName13 = "getIUV"; - - _methodParameterTypes13 = new String[] { "long" }; - - _methodName14 = "getPersistedModel"; - - _methodParameterTypes14 = new String[] { "java.io.Serializable" }; - - _methodName15 = "getIUVByUuidAndCompanyId"; - - _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; - - _methodName16 = "getIUVByUuidAndGroupId"; - - _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; - - _methodName17 = "getIUVs"; - - _methodParameterTypes17 = new String[] { "int", "int" }; - - _methodName18 = "getIUVsCount"; - - _methodParameterTypes18 = new String[] { }; - - _methodName19 = "updateIUV"; - - _methodParameterTypes19 = new String[] { - "it.tref.liferay.portos.bo.model.IUV" - }; - - _methodName188 = "getBeanIdentifier"; - - _methodParameterTypes188 = new String[] { }; - - _methodName189 = "setBeanIdentifier"; - - _methodParameterTypes189 = new String[] { "java.lang.String" }; - - _methodName194 = "addIUV"; - - _methodParameterTypes194 = new String[] { - "long", "java.lang.String", "java.lang.String", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName195 = "findByPagamento"; - - _methodParameterTypes195 = new String[] { "long" }; - - _methodName196 = "findByTipoPagamento"; - - _methodParameterTypes196 = new String[] { "java.lang.String" }; - } - - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - if (_methodName0.equals(name) && - Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) { - return IUVLocalServiceUtil.addIUV((it.tref.liferay.portos.bo.model.IUV)arguments[0]); - } - - if (_methodName1.equals(name) && - Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) { - return IUVLocalServiceUtil.createIUV(((Long)arguments[0]).longValue()); - } - - if (_methodName2.equals(name) && - Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) { - return IUVLocalServiceUtil.deleteIUV(((Long)arguments[0]).longValue()); - } - - if (_methodName3.equals(name) && - Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) { - return IUVLocalServiceUtil.deleteIUV((it.tref.liferay.portos.bo.model.IUV)arguments[0]); - } - - if (_methodName4.equals(name) && - Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) { - return IUVLocalServiceUtil.dynamicQuery(); - } - - if (_methodName5.equals(name) && - Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) { - return IUVLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); - } - - if (_methodName6.equals(name) && - Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) { - return IUVLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue()); - } - - if (_methodName7.equals(name) && - Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) { - return IUVLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); - } - - if (_methodName8.equals(name) && - Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) { - return IUVLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); - } - - if (_methodName9.equals(name) && - Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) { - return IUVLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - (com.liferay.portal.kernel.dao.orm.Projection)arguments[1]); - } - - if (_methodName10.equals(name) && - Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) { - return IUVLocalServiceUtil.fetchIUV(((Long)arguments[0]).longValue()); - } - - if (_methodName11.equals(name) && - Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) { - return IUVLocalServiceUtil.fetchIUVByUuidAndCompanyId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName12.equals(name) && - Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) { - return IUVLocalServiceUtil.fetchIUVByUuidAndGroupId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName13.equals(name) && - Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) { - return IUVLocalServiceUtil.getIUV(((Long)arguments[0]).longValue()); - } - - if (_methodName14.equals(name) && - Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) { - return IUVLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]); - } - - if (_methodName15.equals(name) && - Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) { - return IUVLocalServiceUtil.getIUVByUuidAndCompanyId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName16.equals(name) && - Arrays.deepEquals(_methodParameterTypes16, parameterTypes)) { - return IUVLocalServiceUtil.getIUVByUuidAndGroupId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName17.equals(name) && - Arrays.deepEquals(_methodParameterTypes17, parameterTypes)) { - return IUVLocalServiceUtil.getIUVs(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName18.equals(name) && - Arrays.deepEquals(_methodParameterTypes18, parameterTypes)) { - return IUVLocalServiceUtil.getIUVsCount(); - } - - if (_methodName19.equals(name) && - Arrays.deepEquals(_methodParameterTypes19, parameterTypes)) { - return IUVLocalServiceUtil.updateIUV((it.tref.liferay.portos.bo.model.IUV)arguments[0]); - } - - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { - return IUVLocalServiceUtil.getBeanIdentifier(); - } - - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { - IUVLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); - - return null; - } - - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { - return IUVLocalServiceUtil.addIUV(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - (com.liferay.portal.service.ServiceContext)arguments[3]); - } - - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { - return IUVLocalServiceUtil.findByPagamento(((Long)arguments[0]).longValue()); - } - - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { - return IUVLocalServiceUtil.findByTipoPagamento((java.lang.String)arguments[0]); - } - - throw new UnsupportedOperationException(); - } - - private String _methodName0; - private String[] _methodParameterTypes0; - private String _methodName1; - private String[] _methodParameterTypes1; - private String _methodName2; - private String[] _methodParameterTypes2; - private String _methodName3; - private String[] _methodParameterTypes3; - private String _methodName4; - private String[] _methodParameterTypes4; - private String _methodName5; - private String[] _methodParameterTypes5; - private String _methodName6; - private String[] _methodParameterTypes6; - private String _methodName7; - private String[] _methodParameterTypes7; - private String _methodName8; - private String[] _methodParameterTypes8; - private String _methodName9; - private String[] _methodParameterTypes9; - private String _methodName10; - private String[] _methodParameterTypes10; - private String _methodName11; - private String[] _methodParameterTypes11; - private String _methodName12; - private String[] _methodParameterTypes12; - private String _methodName13; - private String[] _methodParameterTypes13; - private String _methodName14; - private String[] _methodParameterTypes14; - private String _methodName15; - private String[] _methodParameterTypes15; - private String _methodName16; - private String[] _methodParameterTypes16; - private String _methodName17; - private String[] _methodParameterTypes17; - private String _methodName18; - private String[] _methodParameterTypes18; - private String _methodName19; - private String[] _methodParameterTypes19; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVServiceBaseImpl.java deleted file mode 100644 index 6052c582..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVServiceBaseImpl.java +++ /dev/null @@ -1,1891 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.kernel.bean.IdentifiableBean; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.service.BaseServiceImpl; -import com.liferay.portal.service.persistence.UserPersistence; - -import it.tref.liferay.portos.bo.model.IUV; -import it.tref.liferay.portos.bo.service.IUVService; -import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; -import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; -import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; -import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; -import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; -import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; - -import javax.sql.DataSource; - -/** - * Provides the base implementation for the i u v remote service. - * - *

- * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.IUVServiceImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.impl.IUVServiceImpl - * @see it.tref.liferay.portos.bo.service.IUVServiceUtil - * @generated - */ -public abstract class IUVServiceBaseImpl extends BaseServiceImpl - implements IUVService, IdentifiableBean { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.IUVServiceUtil} to access the i u v remote service. - */ - - /** - * Returns the allegato manuale local service. - * - * @return the allegato manuale local service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { - return allegatoManualeLocalService; - } - - /** - * Sets the allegato manuale local service. - * - * @param allegatoManualeLocalService the allegato manuale local service - */ - public void setAllegatoManualeLocalService( - it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { - this.allegatoManualeLocalService = allegatoManualeLocalService; - } - - /** - * Returns the allegato manuale remote service. - * - * @return the allegato manuale remote service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { - return allegatoManualeService; - } - - /** - * Sets the allegato manuale remote service. - * - * @param allegatoManualeService the allegato manuale remote service - */ - public void setAllegatoManualeService( - it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { - this.allegatoManualeService = allegatoManualeService; - } - - /** - * Returns the allegato manuale persistence. - * - * @return the allegato manuale persistence - */ - public AllegatoManualePersistence getAllegatoManualePersistence() { - return allegatoManualePersistence; - } - - /** - * Sets the allegato manuale persistence. - * - * @param allegatoManualePersistence the allegato manuale persistence - */ - public void setAllegatoManualePersistence( - AllegatoManualePersistence allegatoManualePersistence) { - this.allegatoManualePersistence = allegatoManualePersistence; - } - - /** - * Returns the asseverazione local service. - * - * @return the asseverazione local service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { - return asseverazioneLocalService; - } - - /** - * Sets the asseverazione local service. - * - * @param asseverazioneLocalService the asseverazione local service - */ - public void setAsseverazioneLocalService( - it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { - this.asseverazioneLocalService = asseverazioneLocalService; - } - - /** - * Returns the asseverazione remote service. - * - * @return the asseverazione remote service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { - return asseverazioneService; - } - - /** - * Sets the asseverazione remote service. - * - * @param asseverazioneService the asseverazione remote service - */ - public void setAsseverazioneService( - it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { - this.asseverazioneService = asseverazioneService; - } - - /** - * Returns the asseverazione persistence. - * - * @return the asseverazione persistence - */ - public AsseverazionePersistence getAsseverazionePersistence() { - return asseverazionePersistence; - } - - /** - * Sets the asseverazione persistence. - * - * @param asseverazionePersistence the asseverazione persistence - */ - public void setAsseverazionePersistence( - AsseverazionePersistence asseverazionePersistence) { - this.asseverazionePersistence = asseverazionePersistence; - } - - /** - * Returns the avviso local service. - * - * @return the avviso local service - */ - public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { - return avvisoLocalService; - } - - /** - * Sets the avviso local service. - * - * @param avvisoLocalService the avviso local service - */ - public void setAvvisoLocalService( - it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { - this.avvisoLocalService = avvisoLocalService; - } - - /** - * Returns the avviso remote service. - * - * @return the avviso remote service - */ - public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { - return avvisoService; - } - - /** - * Sets the avviso remote service. - * - * @param avvisoService the avviso remote service - */ - public void setAvvisoService( - it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { - this.avvisoService = avvisoService; - } - - /** - * Returns the avviso persistence. - * - * @return the avviso persistence - */ - public AvvisoPersistence getAvvisoPersistence() { - return avvisoPersistence; - } - - /** - * Sets the avviso persistence. - * - * @param avvisoPersistence the avviso persistence - */ - public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { - this.avvisoPersistence = avvisoPersistence; - } - - /** - * Returns the collaudo local service. - * - * @return the collaudo local service - */ - public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { - return collaudoLocalService; - } - - /** - * Sets the collaudo local service. - * - * @param collaudoLocalService the collaudo local service - */ - public void setCollaudoLocalService( - it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { - this.collaudoLocalService = collaudoLocalService; - } - - /** - * Returns the collaudo remote service. - * - * @return the collaudo remote service - */ - public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { - return collaudoService; - } - - /** - * Sets the collaudo remote service. - * - * @param collaudoService the collaudo remote service - */ - public void setCollaudoService( - it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { - this.collaudoService = collaudoService; - } - - /** - * Returns the collaudo persistence. - * - * @return the collaudo persistence - */ - public CollaudoPersistence getCollaudoPersistence() { - return collaudoPersistence; - } - - /** - * Sets the collaudo persistence. - * - * @param collaudoPersistence the collaudo persistence - */ - public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { - this.collaudoPersistence = collaudoPersistence; - } - - /** - * Returns the comune local service. - * - * @return the comune local service - */ - public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { - return comuneLocalService; - } - - /** - * Sets the comune local service. - * - * @param comuneLocalService the comune local service - */ - public void setComuneLocalService( - it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { - this.comuneLocalService = comuneLocalService; - } - - /** - * Returns the comune remote service. - * - * @return the comune remote service - */ - public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { - return comuneService; - } - - /** - * Sets the comune remote service. - * - * @param comuneService the comune remote service - */ - public void setComuneService( - it.tref.liferay.portos.bo.service.ComuneService comuneService) { - this.comuneService = comuneService; - } - - /** - * Returns the comune persistence. - * - * @return the comune persistence - */ - public ComunePersistence getComunePersistence() { - return comunePersistence; - } - - /** - * Sets the comune persistence. - * - * @param comunePersistence the comune persistence - */ - public void setComunePersistence(ComunePersistence comunePersistence) { - this.comunePersistence = comunePersistence; - } - - /** - * Returns the comunicazione local service. - * - * @return the comunicazione local service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { - return comunicazioneLocalService; - } - - /** - * Sets the comunicazione local service. - * - * @param comunicazioneLocalService the comunicazione local service - */ - public void setComunicazioneLocalService( - it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { - this.comunicazioneLocalService = comunicazioneLocalService; - } - - /** - * Returns the comunicazione remote service. - * - * @return the comunicazione remote service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { - return comunicazioneService; - } - - /** - * Sets the comunicazione remote service. - * - * @param comunicazioneService the comunicazione remote service - */ - public void setComunicazioneService( - it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { - this.comunicazioneService = comunicazioneService; - } - - /** - * Returns the comunicazione persistence. - * - * @return the comunicazione persistence - */ - public ComunicazionePersistence getComunicazionePersistence() { - return comunicazionePersistence; - } - - /** - * Sets the comunicazione persistence. - * - * @param comunicazionePersistence the comunicazione persistence - */ - public void setComunicazionePersistence( - ComunicazionePersistence comunicazionePersistence) { - this.comunicazionePersistence = comunicazionePersistence; - } - - /** - * Returns the configurazione local service. - * - * @return the configurazione local service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { - return configurazioneLocalService; - } - - /** - * Sets the configurazione local service. - * - * @param configurazioneLocalService the configurazione local service - */ - public void setConfigurazioneLocalService( - it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { - this.configurazioneLocalService = configurazioneLocalService; - } - - /** - * Returns the configurazione remote service. - * - * @return the configurazione remote service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { - return configurazioneService; - } - - /** - * Sets the configurazione remote service. - * - * @param configurazioneService the configurazione remote service - */ - public void setConfigurazioneService( - it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { - this.configurazioneService = configurazioneService; - } - - /** - * Returns the configurazione persistence. - * - * @return the configurazione persistence - */ - public ConfigurazionePersistence getConfigurazionePersistence() { - return configurazionePersistence; - } - - /** - * Sets the configurazione persistence. - * - * @param configurazionePersistence the configurazione persistence - */ - public void setConfigurazionePersistence( - ConfigurazionePersistence configurazionePersistence) { - this.configurazionePersistence = configurazionePersistence; - } - - /** - * Returns the controllo pratica local service. - * - * @return the controllo pratica local service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { - return controlloPraticaLocalService; - } - - /** - * Sets the controllo pratica local service. - * - * @param controlloPraticaLocalService the controllo pratica local service - */ - public void setControlloPraticaLocalService( - it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { - this.controlloPraticaLocalService = controlloPraticaLocalService; - } - - /** - * Returns the controllo pratica remote service. - * - * @return the controllo pratica remote service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { - return controlloPraticaService; - } - - /** - * Sets the controllo pratica remote service. - * - * @param controlloPraticaService the controllo pratica remote service - */ - public void setControlloPraticaService( - it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { - this.controlloPraticaService = controlloPraticaService; - } - - /** - * Returns the controllo pratica persistence. - * - * @return the controllo pratica persistence - */ - public ControlloPraticaPersistence getControlloPraticaPersistence() { - return controlloPraticaPersistence; - } - - /** - * Sets the controllo pratica persistence. - * - * @param controlloPraticaPersistence the controllo pratica persistence - */ - public void setControlloPraticaPersistence( - ControlloPraticaPersistence controlloPraticaPersistence) { - this.controlloPraticaPersistence = controlloPraticaPersistence; - } - - /** - * Returns the delega local service. - * - * @return the delega local service - */ - public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { - return delegaLocalService; - } - - /** - * Sets the delega local service. - * - * @param delegaLocalService the delega local service - */ - public void setDelegaLocalService( - it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { - this.delegaLocalService = delegaLocalService; - } - - /** - * Returns the delega remote service. - * - * @return the delega remote service - */ - public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { - return delegaService; - } - - /** - * Sets the delega remote service. - * - * @param delegaService the delega remote service - */ - public void setDelegaService( - it.tref.liferay.portos.bo.service.DelegaService delegaService) { - this.delegaService = delegaService; - } - - /** - * Returns the delega persistence. - * - * @return the delega persistence - */ - public DelegaPersistence getDelegaPersistence() { - return delegaPersistence; - } - - /** - * Sets the delega persistence. - * - * @param delegaPersistence the delega persistence - */ - public void setDelegaPersistence(DelegaPersistence delegaPersistence) { - this.delegaPersistence = delegaPersistence; - } - - /** - * Returns the dett pratica local service. - * - * @return the dett pratica local service - */ - public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { - return dettPraticaLocalService; - } - - /** - * Sets the dett pratica local service. - * - * @param dettPraticaLocalService the dett pratica local service - */ - public void setDettPraticaLocalService( - it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { - this.dettPraticaLocalService = dettPraticaLocalService; - } - - /** - * Returns the dett pratica remote service. - * - * @return the dett pratica remote service - */ - public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { - return dettPraticaService; - } - - /** - * Sets the dett pratica remote service. - * - * @param dettPraticaService the dett pratica remote service - */ - public void setDettPraticaService( - it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { - this.dettPraticaService = dettPraticaService; - } - - /** - * Returns the dett pratica persistence. - * - * @return the dett pratica persistence - */ - public DettPraticaPersistence getDettPraticaPersistence() { - return dettPraticaPersistence; - } - - /** - * Sets the dett pratica persistence. - * - * @param dettPraticaPersistence the dett pratica persistence - */ - public void setDettPraticaPersistence( - DettPraticaPersistence dettPraticaPersistence) { - this.dettPraticaPersistence = dettPraticaPersistence; - } - - /** - * Returns the doc aggiuntiva local service. - * - * @return the doc aggiuntiva local service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { - return docAggiuntivaLocalService; - } - - /** - * Sets the doc aggiuntiva local service. - * - * @param docAggiuntivaLocalService the doc aggiuntiva local service - */ - public void setDocAggiuntivaLocalService( - it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { - this.docAggiuntivaLocalService = docAggiuntivaLocalService; - } - - /** - * Returns the doc aggiuntiva remote service. - * - * @return the doc aggiuntiva remote service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { - return docAggiuntivaService; - } - - /** - * Sets the doc aggiuntiva remote service. - * - * @param docAggiuntivaService the doc aggiuntiva remote service - */ - public void setDocAggiuntivaService( - it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { - this.docAggiuntivaService = docAggiuntivaService; - } - - /** - * Returns the doc aggiuntiva persistence. - * - * @return the doc aggiuntiva persistence - */ - public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { - return docAggiuntivaPersistence; - } - - /** - * Sets the doc aggiuntiva persistence. - * - * @param docAggiuntivaPersistence the doc aggiuntiva persistence - */ - public void setDocAggiuntivaPersistence( - DocAggiuntivaPersistence docAggiuntivaPersistence) { - this.docAggiuntivaPersistence = docAggiuntivaPersistence; - } - - /** - * Returns the doc pratica local service. - * - * @return the doc pratica local service - */ - public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { - return docPraticaLocalService; - } - - /** - * Sets the doc pratica local service. - * - * @param docPraticaLocalService the doc pratica local service - */ - public void setDocPraticaLocalService( - it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { - this.docPraticaLocalService = docPraticaLocalService; - } - - /** - * Returns the doc pratica remote service. - * - * @return the doc pratica remote service - */ - public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { - return docPraticaService; - } - - /** - * Sets the doc pratica remote service. - * - * @param docPraticaService the doc pratica remote service - */ - public void setDocPraticaService( - it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { - this.docPraticaService = docPraticaService; - } - - /** - * Returns the doc pratica persistence. - * - * @return the doc pratica persistence - */ - public DocPraticaPersistence getDocPraticaPersistence() { - return docPraticaPersistence; - } - - /** - * Sets the doc pratica persistence. - * - * @param docPraticaPersistence the doc pratica persistence - */ - public void setDocPraticaPersistence( - DocPraticaPersistence docPraticaPersistence) { - this.docPraticaPersistence = docPraticaPersistence; - } - - /** - * Returns the fine lavori local service. - * - * @return the fine lavori local service - */ - public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { - return fineLavoriLocalService; - } - - /** - * Sets the fine lavori local service. - * - * @param fineLavoriLocalService the fine lavori local service - */ - public void setFineLavoriLocalService( - it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { - this.fineLavoriLocalService = fineLavoriLocalService; - } - - /** - * Returns the fine lavori remote service. - * - * @return the fine lavori remote service - */ - public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { - return fineLavoriService; - } - - /** - * Sets the fine lavori remote service. - * - * @param fineLavoriService the fine lavori remote service - */ - public void setFineLavoriService( - it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { - this.fineLavoriService = fineLavoriService; - } - - /** - * Returns the fine lavori persistence. - * - * @return the fine lavori persistence - */ - public FineLavoriPersistence getFineLavoriPersistence() { - return fineLavoriPersistence; - } - - /** - * Sets the fine lavori persistence. - * - * @param fineLavoriPersistence the fine lavori persistence - */ - public void setFineLavoriPersistence( - FineLavoriPersistence fineLavoriPersistence) { - this.fineLavoriPersistence = fineLavoriPersistence; - } - - /** - * Returns the history workflow action local service. - * - * @return the history workflow action local service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { - return historyWorkflowActionLocalService; - } - - /** - * Sets the history workflow action local service. - * - * @param historyWorkflowActionLocalService the history workflow action local service - */ - public void setHistoryWorkflowActionLocalService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { - this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; - } - - /** - * Returns the history workflow action remote service. - * - * @return the history workflow action remote service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { - return historyWorkflowActionService; - } - - /** - * Sets the history workflow action remote service. - * - * @param historyWorkflowActionService the history workflow action remote service - */ - public void setHistoryWorkflowActionService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { - this.historyWorkflowActionService = historyWorkflowActionService; - } - - /** - * Returns the history workflow action persistence. - * - * @return the history workflow action persistence - */ - public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { - return historyWorkflowActionPersistence; - } - - /** - * Sets the history workflow action persistence. - * - * @param historyWorkflowActionPersistence the history workflow action persistence - */ - public void setHistoryWorkflowActionPersistence( - HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { - this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; - } - - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - - /** - * Returns the int pratica local service. - * - * @return the int pratica local service - */ - public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { - return intPraticaLocalService; - } - - /** - * Sets the int pratica local service. - * - * @param intPraticaLocalService the int pratica local service - */ - public void setIntPraticaLocalService( - it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { - this.intPraticaLocalService = intPraticaLocalService; - } - - /** - * Returns the int pratica remote service. - * - * @return the int pratica remote service - */ - public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { - return intPraticaService; - } - - /** - * Sets the int pratica remote service. - * - * @param intPraticaService the int pratica remote service - */ - public void setIntPraticaService( - it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { - this.intPraticaService = intPraticaService; - } - - /** - * Returns the int pratica persistence. - * - * @return the int pratica persistence - */ - public IntPraticaPersistence getIntPraticaPersistence() { - return intPraticaPersistence; - } - - /** - * Sets the int pratica persistence. - * - * @param intPraticaPersistence the int pratica persistence - */ - public void setIntPraticaPersistence( - IntPraticaPersistence intPraticaPersistence) { - this.intPraticaPersistence = intPraticaPersistence; - } - - /** - * Returns the int pratica finder. - * - * @return the int pratica finder - */ - public IntPraticaFinder getIntPraticaFinder() { - return intPraticaFinder; - } - - /** - * Sets the int pratica finder. - * - * @param intPraticaFinder the int pratica finder - */ - public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { - this.intPraticaFinder = intPraticaFinder; - } - - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - - /** - * Returns the pagamento local service. - * - * @return the pagamento local service - */ - public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { - return pagamentoLocalService; - } - - /** - * Sets the pagamento local service. - * - * @param pagamentoLocalService the pagamento local service - */ - public void setPagamentoLocalService( - it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { - this.pagamentoLocalService = pagamentoLocalService; - } - - /** - * Returns the pagamento remote service. - * - * @return the pagamento remote service - */ - public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { - return pagamentoService; - } - - /** - * Sets the pagamento remote service. - * - * @param pagamentoService the pagamento remote service - */ - public void setPagamentoService( - it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { - this.pagamentoService = pagamentoService; - } - - /** - * Returns the pagamento persistence. - * - * @return the pagamento persistence - */ - public PagamentoPersistence getPagamentoPersistence() { - return pagamentoPersistence; - } - - /** - * Sets the pagamento persistence. - * - * @param pagamentoPersistence the pagamento persistence - */ - public void setPagamentoPersistence( - PagamentoPersistence pagamentoPersistence) { - this.pagamentoPersistence = pagamentoPersistence; - } - - /** - * Returns the parere geologo local service. - * - * @return the parere geologo local service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { - return parereGeologoLocalService; - } - - /** - * Sets the parere geologo local service. - * - * @param parereGeologoLocalService the parere geologo local service - */ - public void setParereGeologoLocalService( - it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { - this.parereGeologoLocalService = parereGeologoLocalService; - } - - /** - * Returns the parere geologo remote service. - * - * @return the parere geologo remote service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { - return parereGeologoService; - } - - /** - * Sets the parere geologo remote service. - * - * @param parereGeologoService the parere geologo remote service - */ - public void setParereGeologoService( - it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { - this.parereGeologoService = parereGeologoService; - } - - /** - * Returns the parere geologo persistence. - * - * @return the parere geologo persistence - */ - public ParereGeologoPersistence getParereGeologoPersistence() { - return parereGeologoPersistence; - } - - /** - * Sets the parere geologo persistence. - * - * @param parereGeologoPersistence the parere geologo persistence - */ - public void setParereGeologoPersistence( - ParereGeologoPersistence parereGeologoPersistence) { - this.parereGeologoPersistence = parereGeologoPersistence; - } - - /** - * Returns the provincia local service. - * - * @return the provincia local service - */ - public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { - return provinciaLocalService; - } - - /** - * Sets the provincia local service. - * - * @param provinciaLocalService the provincia local service - */ - public void setProvinciaLocalService( - it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { - this.provinciaLocalService = provinciaLocalService; - } - - /** - * Returns the provincia remote service. - * - * @return the provincia remote service - */ - public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { - return provinciaService; - } - - /** - * Sets the provincia remote service. - * - * @param provinciaService the provincia remote service - */ - public void setProvinciaService( - it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { - this.provinciaService = provinciaService; - } - - /** - * Returns the provincia persistence. - * - * @return the provincia persistence - */ - public ProvinciaPersistence getProvinciaPersistence() { - return provinciaPersistence; - } - - /** - * Sets the provincia persistence. - * - * @param provinciaPersistence the provincia persistence - */ - public void setProvinciaPersistence( - ProvinciaPersistence provinciaPersistence) { - this.provinciaPersistence = provinciaPersistence; - } - - /** - * Returns the soggetto local service. - * - * @return the soggetto local service - */ - public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { - return soggettoLocalService; - } - - /** - * Sets the soggetto local service. - * - * @param soggettoLocalService the soggetto local service - */ - public void setSoggettoLocalService( - it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { - this.soggettoLocalService = soggettoLocalService; - } - - /** - * Returns the soggetto remote service. - * - * @return the soggetto remote service - */ - public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { - return soggettoService; - } - - /** - * Sets the soggetto remote service. - * - * @param soggettoService the soggetto remote service - */ - public void setSoggettoService( - it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { - this.soggettoService = soggettoService; - } - - /** - * Returns the soggetto persistence. - * - * @return the soggetto persistence - */ - public SoggettoPersistence getSoggettoPersistence() { - return soggettoPersistence; - } - - /** - * Sets the soggetto persistence. - * - * @param soggettoPersistence the soggetto persistence - */ - public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { - this.soggettoPersistence = soggettoPersistence; - } - - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - - /** - * Returns the storico soggetto pratica local service. - * - * @return the storico soggetto pratica local service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { - return storicoSoggettoPraticaLocalService; - } - - /** - * Sets the storico soggetto pratica local service. - * - * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service - */ - public void setStoricoSoggettoPraticaLocalService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { - this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; - } - - /** - * Returns the storico soggetto pratica remote service. - * - * @return the storico soggetto pratica remote service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { - return storicoSoggettoPraticaService; - } - - /** - * Sets the storico soggetto pratica remote service. - * - * @param storicoSoggettoPraticaService the storico soggetto pratica remote service - */ - public void setStoricoSoggettoPraticaService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { - this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; - } - - /** - * Returns the storico soggetto pratica persistence. - * - * @return the storico soggetto pratica persistence - */ - public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { - return storicoSoggettoPraticaPersistence; - } - - /** - * Sets the storico soggetto pratica persistence. - * - * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence - */ - public void setStoricoSoggettoPraticaPersistence( - StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { - this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; - } - - /** - * Returns the tempistica local service. - * - * @return the tempistica local service - */ - public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { - return tempisticaLocalService; - } - - /** - * Sets the tempistica local service. - * - * @param tempisticaLocalService the tempistica local service - */ - public void setTempisticaLocalService( - it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { - this.tempisticaLocalService = tempisticaLocalService; - } - - /** - * Returns the tempistica remote service. - * - * @return the tempistica remote service - */ - public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { - return tempisticaService; - } - - /** - * Sets the tempistica remote service. - * - * @param tempisticaService the tempistica remote service - */ - public void setTempisticaService( - it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { - this.tempisticaService = tempisticaService; - } - - /** - * Returns the tempistica persistence. - * - * @return the tempistica persistence - */ - public TempisticaPersistence getTempisticaPersistence() { - return tempisticaPersistence; - } - - /** - * Sets the tempistica persistence. - * - * @param tempisticaPersistence the tempistica persistence - */ - public void setTempisticaPersistence( - TempisticaPersistence tempisticaPersistence) { - this.tempisticaPersistence = tempisticaPersistence; - } - - /** - * Returns the tempistica finder. - * - * @return the tempistica finder - */ - public TempisticaFinder getTempisticaFinder() { - return tempisticaFinder; - } - - /** - * Sets the tempistica finder. - * - * @param tempisticaFinder the tempistica finder - */ - public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { - this.tempisticaFinder = tempisticaFinder; - } - - /** - * Returns the territorio local service. - * - * @return the territorio local service - */ - public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { - return territorioLocalService; - } - - /** - * Sets the territorio local service. - * - * @param territorioLocalService the territorio local service - */ - public void setTerritorioLocalService( - it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { - this.territorioLocalService = territorioLocalService; - } - - /** - * Returns the territorio remote service. - * - * @return the territorio remote service - */ - public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { - return territorioService; - } - - /** - * Sets the territorio remote service. - * - * @param territorioService the territorio remote service - */ - public void setTerritorioService( - it.tref.liferay.portos.bo.service.TerritorioService territorioService) { - this.territorioService = territorioService; - } - - /** - * Returns the territorio persistence. - * - * @return the territorio persistence - */ - public TerritorioPersistence getTerritorioPersistence() { - return territorioPersistence; - } - - /** - * Sets the territorio persistence. - * - * @param territorioPersistence the territorio persistence - */ - public void setTerritorioPersistence( - TerritorioPersistence territorioPersistence) { - this.territorioPersistence = territorioPersistence; - } - - /** - * Returns the counter local service. - * - * @return the counter local service - */ - public com.liferay.counter.service.CounterLocalService getCounterLocalService() { - return counterLocalService; - } - - /** - * Sets the counter local service. - * - * @param counterLocalService the counter local service - */ - public void setCounterLocalService( - com.liferay.counter.service.CounterLocalService counterLocalService) { - this.counterLocalService = counterLocalService; - } - - /** - * Returns the resource local service. - * - * @return the resource local service - */ - public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { - return resourceLocalService; - } - - /** - * Sets the resource local service. - * - * @param resourceLocalService the resource local service - */ - public void setResourceLocalService( - com.liferay.portal.service.ResourceLocalService resourceLocalService) { - this.resourceLocalService = resourceLocalService; - } - - /** - * Returns the user local service. - * - * @return the user local service - */ - public com.liferay.portal.service.UserLocalService getUserLocalService() { - return userLocalService; - } - - /** - * Sets the user local service. - * - * @param userLocalService the user local service - */ - public void setUserLocalService( - com.liferay.portal.service.UserLocalService userLocalService) { - this.userLocalService = userLocalService; - } - - /** - * Returns the user remote service. - * - * @return the user remote service - */ - public com.liferay.portal.service.UserService getUserService() { - return userService; - } - - /** - * Sets the user remote service. - * - * @param userService the user remote service - */ - public void setUserService( - com.liferay.portal.service.UserService userService) { - this.userService = userService; - } - - /** - * Returns the user persistence. - * - * @return the user persistence - */ - public UserPersistence getUserPersistence() { - return userPersistence; - } - - /** - * Sets the user persistence. - * - * @param userPersistence the user persistence - */ - public void setUserPersistence(UserPersistence userPersistence) { - this.userPersistence = userPersistence; - } - - public void afterPropertiesSet() { - Class clazz = getClass(); - - _classLoader = clazz.getClassLoader(); - } - - public void destroy() { - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public String getBeanIdentifier() { - return _beanIdentifier; - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(String beanIdentifier) { - _beanIdentifier = beanIdentifier; - } - - @Override - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(_classLoader); - } - - try { - return _clpInvoker.invokeMethod(name, parameterTypes, arguments); - } - finally { - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(contextClassLoader); - } - } - } - - protected Class getModelClass() { - return IUV.class; - } - - protected String getModelClassName() { - return IUV.class.getName(); - } - - /** - * Performs an SQL query. - * - * @param sql the sql query - */ - protected void runSQL(String sql) throws SystemException { - try { - DataSource dataSource = iuvPersistence.getDataSource(); - - SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, - sql, new int[0]); - - sqlUpdate.update(); - } - catch (Exception e) { - throw new SystemException(e); - } - } - - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; - @BeanReference(type = AllegatoManualePersistence.class) - protected AllegatoManualePersistence allegatoManualePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; - @BeanReference(type = AsseverazionePersistence.class) - protected AsseverazionePersistence asseverazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) - protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) - protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; - @BeanReference(type = AvvisoPersistence.class) - protected AvvisoPersistence avvisoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) - protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) - protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; - @BeanReference(type = CollaudoPersistence.class) - protected CollaudoPersistence collaudoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) - protected it.tref.liferay.portos.bo.service.ComuneService comuneService; - @BeanReference(type = ComunePersistence.class) - protected ComunePersistence comunePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; - @BeanReference(type = ComunicazionePersistence.class) - protected ComunicazionePersistence comunicazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; - @BeanReference(type = ConfigurazionePersistence.class) - protected ConfigurazionePersistence configurazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; - @BeanReference(type = ControlloPraticaPersistence.class) - protected ControlloPraticaPersistence controlloPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) - protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) - protected it.tref.liferay.portos.bo.service.DelegaService delegaService; - @BeanReference(type = DelegaPersistence.class) - protected DelegaPersistence delegaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; - @BeanReference(type = DettPraticaPersistence.class) - protected DettPraticaPersistence dettPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; - @BeanReference(type = DocAggiuntivaPersistence.class) - protected DocAggiuntivaPersistence docAggiuntivaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; - @BeanReference(type = DocPraticaPersistence.class) - protected DocPraticaPersistence docPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; - @BeanReference(type = FineLavoriPersistence.class) - protected FineLavoriPersistence fineLavoriPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; - @BeanReference(type = HistoryWorkflowActionPersistence.class) - protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; - @BeanReference(type = IntPraticaPersistence.class) - protected IntPraticaPersistence intPraticaPersistence; - @BeanReference(type = IntPraticaFinder.class) - protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) - protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) - protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; - @BeanReference(type = PagamentoPersistence.class) - protected PagamentoPersistence pagamentoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; - @BeanReference(type = ParereGeologoPersistence.class) - protected ParereGeologoPersistence parereGeologoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; - @BeanReference(type = ProvinciaPersistence.class) - protected ProvinciaPersistence provinciaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) - protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) - protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; - @BeanReference(type = SoggettoPersistence.class) - protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; - @BeanReference(type = StoricoSoggettoPraticaPersistence.class) - protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) - protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) - protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; - @BeanReference(type = TempisticaPersistence.class) - protected TempisticaPersistence tempisticaPersistence; - @BeanReference(type = TempisticaFinder.class) - protected TempisticaFinder tempisticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) - protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) - protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; - @BeanReference(type = TerritorioPersistence.class) - protected TerritorioPersistence territorioPersistence; - @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) - protected com.liferay.counter.service.CounterLocalService counterLocalService; - @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) - protected com.liferay.portal.service.ResourceLocalService resourceLocalService; - @BeanReference(type = com.liferay.portal.service.UserLocalService.class) - protected com.liferay.portal.service.UserLocalService userLocalService; - @BeanReference(type = com.liferay.portal.service.UserService.class) - protected com.liferay.portal.service.UserService userService; - @BeanReference(type = UserPersistence.class) - protected UserPersistence userPersistence; - private String _beanIdentifier; - private ClassLoader _classLoader; - private IUVServiceClpInvoker _clpInvoker = new IUVServiceClpInvoker(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVServiceClpInvoker.java deleted file mode 100644 index 31f1aa9b..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IUVServiceClpInvoker.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import it.tref.liferay.portos.bo.service.IUVServiceUtil; - -import java.util.Arrays; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class IUVServiceClpInvoker { - public IUVServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; - - _methodParameterTypes168 = new String[] { }; - - _methodName169 = "setBeanIdentifier"; - - _methodParameterTypes169 = new String[] { "java.lang.String" }; - } - - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { - return IUVServiceUtil.getBeanIdentifier(); - } - - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { - IUVServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); - - return null; - } - - throw new UnsupportedOperationException(); - } - - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloLocalServiceBaseImpl.java deleted file mode 100644 index 38de18a5..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloLocalServiceBaseImpl.java +++ /dev/null @@ -1,2187 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.kernel.bean.IdentifiableBean; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -import com.liferay.portal.kernel.dao.orm.Projection; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.search.Indexable; -import com.liferay.portal.kernel.search.IndexableType; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.model.PersistedModel; -import com.liferay.portal.service.BaseLocalServiceImpl; -import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil; -import com.liferay.portal.service.persistence.UserPersistence; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; -import it.tref.liferay.portos.bo.service.InfoFascicoloLocalService; -import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; -import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; -import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; -import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; -import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; -import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; - -import java.io.Serializable; - -import java.util.List; - -import javax.sql.DataSource; - -/** - * Provides the base implementation for the info fascicolo local service. - * - *

- * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloLocalServiceImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.impl.InfoFascicoloLocalServiceImpl - * @see it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil - * @generated - */ -public abstract class InfoFascicoloLocalServiceBaseImpl - extends BaseLocalServiceImpl implements InfoFascicoloLocalService, - IdentifiableBean { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil} to access the info fascicolo local service. - */ - - /** - * Adds the info fascicolo to the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was added - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.REINDEX) - @Override - public InfoFascicolo addInfoFascicolo(InfoFascicolo infoFascicolo) - throws SystemException { - infoFascicolo.setNew(true); - - return infoFascicoloPersistence.update(infoFascicolo); - } - - /** - * Creates a new info fascicolo with the primary key. Does not add the info fascicolo to the database. - * - * @param infoFascicoloId the primary key for the new info fascicolo - * @return the new info fascicolo - */ - @Override - public InfoFascicolo createInfoFascicolo(long infoFascicoloId) { - return infoFascicoloPersistence.create(infoFascicoloId); - } - - /** - * Deletes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.DELETE) - @Override - public InfoFascicolo deleteInfoFascicolo(long infoFascicoloId) - throws PortalException, SystemException { - return infoFascicoloPersistence.remove(infoFascicoloId); - } - - /** - * Deletes the info fascicolo from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.DELETE) - @Override - public InfoFascicolo deleteInfoFascicolo(InfoFascicolo infoFascicolo) - throws SystemException { - return infoFascicoloPersistence.remove(infoFascicolo); - } - - @Override - public DynamicQuery dynamicQuery() { - Class clazz = getClass(); - - return DynamicQueryFactoryUtil.forClass(InfoFascicolo.class, - clazz.getClassLoader()); - } - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery) - throws SystemException { - return infoFascicoloPersistence.findWithDynamicQuery(dynamicQuery); - } - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) - throws SystemException { - return infoFascicoloPersistence.findWithDynamicQuery(dynamicQuery, - start, end); - } - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return infoFascicoloPersistence.findWithDynamicQuery(dynamicQuery, - start, end, orderByComparator); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount(DynamicQuery dynamicQuery) - throws SystemException { - return infoFascicoloPersistence.countWithDynamicQuery(dynamicQuery); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount(DynamicQuery dynamicQuery, - Projection projection) throws SystemException { - return infoFascicoloPersistence.countWithDynamicQuery(dynamicQuery, - projection); - } - - @Override - public InfoFascicolo fetchInfoFascicolo(long infoFascicoloId) - throws SystemException { - return infoFascicoloPersistence.fetchByPrimaryKey(infoFascicoloId); - } - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchInfoFascicoloByUuidAndCompanyId(String uuid, - long companyId) throws SystemException { - return infoFascicoloPersistence.fetchByUuid_C_First(uuid, companyId, - null); - } - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchInfoFascicoloByUuidAndGroupId(String uuid, - long groupId) throws SystemException { - return infoFascicoloPersistence.fetchByUUID_G(uuid, groupId); - } - - /** - * Returns the info fascicolo with the primary key. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo - * @throws PortalException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo getInfoFascicolo(long infoFascicoloId) - throws PortalException, SystemException { - return infoFascicoloPersistence.findByPrimaryKey(infoFascicoloId); - } - - @Override - public PersistedModel getPersistedModel(Serializable primaryKeyObj) - throws PortalException, SystemException { - return infoFascicoloPersistence.findByPrimaryKey(primaryKeyObj); - } - - /** - * Returns the info fascicolo with the matching UUID and company. - * - * @param uuid the info fascicolo's UUID - * @param companyId the primary key of the company - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo getInfoFascicoloByUuidAndCompanyId(String uuid, - long companyId) throws PortalException, SystemException { - return infoFascicoloPersistence.findByUuid_C_First(uuid, companyId, null); - } - - /** - * Returns the info fascicolo matching the UUID and group. - * - * @param uuid the info fascicolo's UUID - * @param groupId the primary key of the group - * @return the matching info fascicolo - * @throws PortalException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo getInfoFascicoloByUuidAndGroupId(String uuid, - long groupId) throws PortalException, SystemException { - return infoFascicoloPersistence.findByUUID_G(uuid, groupId); - } - - /** - * Returns a range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List getInfoFascicolos(int start, int end) - throws SystemException { - return infoFascicoloPersistence.findAll(start, end); - } - - /** - * Returns the number of info fascicolos. - * - * @return the number of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public int getInfoFascicolosCount() throws SystemException { - return infoFascicoloPersistence.countAll(); - } - - /** - * Updates the info fascicolo in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param infoFascicolo the info fascicolo - * @return the info fascicolo that was updated - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.REINDEX) - @Override - public InfoFascicolo updateInfoFascicolo(InfoFascicolo infoFascicolo) - throws SystemException { - return infoFascicoloPersistence.update(infoFascicolo); - } - - /** - * Returns the allegato manuale local service. - * - * @return the allegato manuale local service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { - return allegatoManualeLocalService; - } - - /** - * Sets the allegato manuale local service. - * - * @param allegatoManualeLocalService the allegato manuale local service - */ - public void setAllegatoManualeLocalService( - it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { - this.allegatoManualeLocalService = allegatoManualeLocalService; - } - - /** - * Returns the allegato manuale remote service. - * - * @return the allegato manuale remote service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { - return allegatoManualeService; - } - - /** - * Sets the allegato manuale remote service. - * - * @param allegatoManualeService the allegato manuale remote service - */ - public void setAllegatoManualeService( - it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { - this.allegatoManualeService = allegatoManualeService; - } - - /** - * Returns the allegato manuale persistence. - * - * @return the allegato manuale persistence - */ - public AllegatoManualePersistence getAllegatoManualePersistence() { - return allegatoManualePersistence; - } - - /** - * Sets the allegato manuale persistence. - * - * @param allegatoManualePersistence the allegato manuale persistence - */ - public void setAllegatoManualePersistence( - AllegatoManualePersistence allegatoManualePersistence) { - this.allegatoManualePersistence = allegatoManualePersistence; - } - - /** - * Returns the asseverazione local service. - * - * @return the asseverazione local service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { - return asseverazioneLocalService; - } - - /** - * Sets the asseverazione local service. - * - * @param asseverazioneLocalService the asseverazione local service - */ - public void setAsseverazioneLocalService( - it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { - this.asseverazioneLocalService = asseverazioneLocalService; - } - - /** - * Returns the asseverazione remote service. - * - * @return the asseverazione remote service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { - return asseverazioneService; - } - - /** - * Sets the asseverazione remote service. - * - * @param asseverazioneService the asseverazione remote service - */ - public void setAsseverazioneService( - it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { - this.asseverazioneService = asseverazioneService; - } - - /** - * Returns the asseverazione persistence. - * - * @return the asseverazione persistence - */ - public AsseverazionePersistence getAsseverazionePersistence() { - return asseverazionePersistence; - } - - /** - * Sets the asseverazione persistence. - * - * @param asseverazionePersistence the asseverazione persistence - */ - public void setAsseverazionePersistence( - AsseverazionePersistence asseverazionePersistence) { - this.asseverazionePersistence = asseverazionePersistence; - } - - /** - * Returns the avviso local service. - * - * @return the avviso local service - */ - public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { - return avvisoLocalService; - } - - /** - * Sets the avviso local service. - * - * @param avvisoLocalService the avviso local service - */ - public void setAvvisoLocalService( - it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { - this.avvisoLocalService = avvisoLocalService; - } - - /** - * Returns the avviso remote service. - * - * @return the avviso remote service - */ - public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { - return avvisoService; - } - - /** - * Sets the avviso remote service. - * - * @param avvisoService the avviso remote service - */ - public void setAvvisoService( - it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { - this.avvisoService = avvisoService; - } - - /** - * Returns the avviso persistence. - * - * @return the avviso persistence - */ - public AvvisoPersistence getAvvisoPersistence() { - return avvisoPersistence; - } - - /** - * Sets the avviso persistence. - * - * @param avvisoPersistence the avviso persistence - */ - public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { - this.avvisoPersistence = avvisoPersistence; - } - - /** - * Returns the collaudo local service. - * - * @return the collaudo local service - */ - public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { - return collaudoLocalService; - } - - /** - * Sets the collaudo local service. - * - * @param collaudoLocalService the collaudo local service - */ - public void setCollaudoLocalService( - it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { - this.collaudoLocalService = collaudoLocalService; - } - - /** - * Returns the collaudo remote service. - * - * @return the collaudo remote service - */ - public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { - return collaudoService; - } - - /** - * Sets the collaudo remote service. - * - * @param collaudoService the collaudo remote service - */ - public void setCollaudoService( - it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { - this.collaudoService = collaudoService; - } - - /** - * Returns the collaudo persistence. - * - * @return the collaudo persistence - */ - public CollaudoPersistence getCollaudoPersistence() { - return collaudoPersistence; - } - - /** - * Sets the collaudo persistence. - * - * @param collaudoPersistence the collaudo persistence - */ - public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { - this.collaudoPersistence = collaudoPersistence; - } - - /** - * Returns the comune local service. - * - * @return the comune local service - */ - public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { - return comuneLocalService; - } - - /** - * Sets the comune local service. - * - * @param comuneLocalService the comune local service - */ - public void setComuneLocalService( - it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { - this.comuneLocalService = comuneLocalService; - } - - /** - * Returns the comune remote service. - * - * @return the comune remote service - */ - public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { - return comuneService; - } - - /** - * Sets the comune remote service. - * - * @param comuneService the comune remote service - */ - public void setComuneService( - it.tref.liferay.portos.bo.service.ComuneService comuneService) { - this.comuneService = comuneService; - } - - /** - * Returns the comune persistence. - * - * @return the comune persistence - */ - public ComunePersistence getComunePersistence() { - return comunePersistence; - } - - /** - * Sets the comune persistence. - * - * @param comunePersistence the comune persistence - */ - public void setComunePersistence(ComunePersistence comunePersistence) { - this.comunePersistence = comunePersistence; - } - - /** - * Returns the comunicazione local service. - * - * @return the comunicazione local service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { - return comunicazioneLocalService; - } - - /** - * Sets the comunicazione local service. - * - * @param comunicazioneLocalService the comunicazione local service - */ - public void setComunicazioneLocalService( - it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { - this.comunicazioneLocalService = comunicazioneLocalService; - } - - /** - * Returns the comunicazione remote service. - * - * @return the comunicazione remote service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { - return comunicazioneService; - } - - /** - * Sets the comunicazione remote service. - * - * @param comunicazioneService the comunicazione remote service - */ - public void setComunicazioneService( - it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { - this.comunicazioneService = comunicazioneService; - } - - /** - * Returns the comunicazione persistence. - * - * @return the comunicazione persistence - */ - public ComunicazionePersistence getComunicazionePersistence() { - return comunicazionePersistence; - } - - /** - * Sets the comunicazione persistence. - * - * @param comunicazionePersistence the comunicazione persistence - */ - public void setComunicazionePersistence( - ComunicazionePersistence comunicazionePersistence) { - this.comunicazionePersistence = comunicazionePersistence; - } - - /** - * Returns the configurazione local service. - * - * @return the configurazione local service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { - return configurazioneLocalService; - } - - /** - * Sets the configurazione local service. - * - * @param configurazioneLocalService the configurazione local service - */ - public void setConfigurazioneLocalService( - it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { - this.configurazioneLocalService = configurazioneLocalService; - } - - /** - * Returns the configurazione remote service. - * - * @return the configurazione remote service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { - return configurazioneService; - } - - /** - * Sets the configurazione remote service. - * - * @param configurazioneService the configurazione remote service - */ - public void setConfigurazioneService( - it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { - this.configurazioneService = configurazioneService; - } - - /** - * Returns the configurazione persistence. - * - * @return the configurazione persistence - */ - public ConfigurazionePersistence getConfigurazionePersistence() { - return configurazionePersistence; - } - - /** - * Sets the configurazione persistence. - * - * @param configurazionePersistence the configurazione persistence - */ - public void setConfigurazionePersistence( - ConfigurazionePersistence configurazionePersistence) { - this.configurazionePersistence = configurazionePersistence; - } - - /** - * Returns the controllo pratica local service. - * - * @return the controllo pratica local service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { - return controlloPraticaLocalService; - } - - /** - * Sets the controllo pratica local service. - * - * @param controlloPraticaLocalService the controllo pratica local service - */ - public void setControlloPraticaLocalService( - it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { - this.controlloPraticaLocalService = controlloPraticaLocalService; - } - - /** - * Returns the controllo pratica remote service. - * - * @return the controllo pratica remote service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { - return controlloPraticaService; - } - - /** - * Sets the controllo pratica remote service. - * - * @param controlloPraticaService the controllo pratica remote service - */ - public void setControlloPraticaService( - it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { - this.controlloPraticaService = controlloPraticaService; - } - - /** - * Returns the controllo pratica persistence. - * - * @return the controllo pratica persistence - */ - public ControlloPraticaPersistence getControlloPraticaPersistence() { - return controlloPraticaPersistence; - } - - /** - * Sets the controllo pratica persistence. - * - * @param controlloPraticaPersistence the controllo pratica persistence - */ - public void setControlloPraticaPersistence( - ControlloPraticaPersistence controlloPraticaPersistence) { - this.controlloPraticaPersistence = controlloPraticaPersistence; - } - - /** - * Returns the delega local service. - * - * @return the delega local service - */ - public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { - return delegaLocalService; - } - - /** - * Sets the delega local service. - * - * @param delegaLocalService the delega local service - */ - public void setDelegaLocalService( - it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { - this.delegaLocalService = delegaLocalService; - } - - /** - * Returns the delega remote service. - * - * @return the delega remote service - */ - public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { - return delegaService; - } - - /** - * Sets the delega remote service. - * - * @param delegaService the delega remote service - */ - public void setDelegaService( - it.tref.liferay.portos.bo.service.DelegaService delegaService) { - this.delegaService = delegaService; - } - - /** - * Returns the delega persistence. - * - * @return the delega persistence - */ - public DelegaPersistence getDelegaPersistence() { - return delegaPersistence; - } - - /** - * Sets the delega persistence. - * - * @param delegaPersistence the delega persistence - */ - public void setDelegaPersistence(DelegaPersistence delegaPersistence) { - this.delegaPersistence = delegaPersistence; - } - - /** - * Returns the dett pratica local service. - * - * @return the dett pratica local service - */ - public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { - return dettPraticaLocalService; - } - - /** - * Sets the dett pratica local service. - * - * @param dettPraticaLocalService the dett pratica local service - */ - public void setDettPraticaLocalService( - it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { - this.dettPraticaLocalService = dettPraticaLocalService; - } - - /** - * Returns the dett pratica remote service. - * - * @return the dett pratica remote service - */ - public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { - return dettPraticaService; - } - - /** - * Sets the dett pratica remote service. - * - * @param dettPraticaService the dett pratica remote service - */ - public void setDettPraticaService( - it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { - this.dettPraticaService = dettPraticaService; - } - - /** - * Returns the dett pratica persistence. - * - * @return the dett pratica persistence - */ - public DettPraticaPersistence getDettPraticaPersistence() { - return dettPraticaPersistence; - } - - /** - * Sets the dett pratica persistence. - * - * @param dettPraticaPersistence the dett pratica persistence - */ - public void setDettPraticaPersistence( - DettPraticaPersistence dettPraticaPersistence) { - this.dettPraticaPersistence = dettPraticaPersistence; - } - - /** - * Returns the doc aggiuntiva local service. - * - * @return the doc aggiuntiva local service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { - return docAggiuntivaLocalService; - } - - /** - * Sets the doc aggiuntiva local service. - * - * @param docAggiuntivaLocalService the doc aggiuntiva local service - */ - public void setDocAggiuntivaLocalService( - it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { - this.docAggiuntivaLocalService = docAggiuntivaLocalService; - } - - /** - * Returns the doc aggiuntiva remote service. - * - * @return the doc aggiuntiva remote service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { - return docAggiuntivaService; - } - - /** - * Sets the doc aggiuntiva remote service. - * - * @param docAggiuntivaService the doc aggiuntiva remote service - */ - public void setDocAggiuntivaService( - it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { - this.docAggiuntivaService = docAggiuntivaService; - } - - /** - * Returns the doc aggiuntiva persistence. - * - * @return the doc aggiuntiva persistence - */ - public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { - return docAggiuntivaPersistence; - } - - /** - * Sets the doc aggiuntiva persistence. - * - * @param docAggiuntivaPersistence the doc aggiuntiva persistence - */ - public void setDocAggiuntivaPersistence( - DocAggiuntivaPersistence docAggiuntivaPersistence) { - this.docAggiuntivaPersistence = docAggiuntivaPersistence; - } - - /** - * Returns the doc pratica local service. - * - * @return the doc pratica local service - */ - public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { - return docPraticaLocalService; - } - - /** - * Sets the doc pratica local service. - * - * @param docPraticaLocalService the doc pratica local service - */ - public void setDocPraticaLocalService( - it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { - this.docPraticaLocalService = docPraticaLocalService; - } - - /** - * Returns the doc pratica remote service. - * - * @return the doc pratica remote service - */ - public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { - return docPraticaService; - } - - /** - * Sets the doc pratica remote service. - * - * @param docPraticaService the doc pratica remote service - */ - public void setDocPraticaService( - it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { - this.docPraticaService = docPraticaService; - } - - /** - * Returns the doc pratica persistence. - * - * @return the doc pratica persistence - */ - public DocPraticaPersistence getDocPraticaPersistence() { - return docPraticaPersistence; - } - - /** - * Sets the doc pratica persistence. - * - * @param docPraticaPersistence the doc pratica persistence - */ - public void setDocPraticaPersistence( - DocPraticaPersistence docPraticaPersistence) { - this.docPraticaPersistence = docPraticaPersistence; - } - - /** - * Returns the fine lavori local service. - * - * @return the fine lavori local service - */ - public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { - return fineLavoriLocalService; - } - - /** - * Sets the fine lavori local service. - * - * @param fineLavoriLocalService the fine lavori local service - */ - public void setFineLavoriLocalService( - it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { - this.fineLavoriLocalService = fineLavoriLocalService; - } - - /** - * Returns the fine lavori remote service. - * - * @return the fine lavori remote service - */ - public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { - return fineLavoriService; - } - - /** - * Sets the fine lavori remote service. - * - * @param fineLavoriService the fine lavori remote service - */ - public void setFineLavoriService( - it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { - this.fineLavoriService = fineLavoriService; - } - - /** - * Returns the fine lavori persistence. - * - * @return the fine lavori persistence - */ - public FineLavoriPersistence getFineLavoriPersistence() { - return fineLavoriPersistence; - } - - /** - * Sets the fine lavori persistence. - * - * @param fineLavoriPersistence the fine lavori persistence - */ - public void setFineLavoriPersistence( - FineLavoriPersistence fineLavoriPersistence) { - this.fineLavoriPersistence = fineLavoriPersistence; - } - - /** - * Returns the history workflow action local service. - * - * @return the history workflow action local service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { - return historyWorkflowActionLocalService; - } - - /** - * Sets the history workflow action local service. - * - * @param historyWorkflowActionLocalService the history workflow action local service - */ - public void setHistoryWorkflowActionLocalService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { - this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; - } - - /** - * Returns the history workflow action remote service. - * - * @return the history workflow action remote service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { - return historyWorkflowActionService; - } - - /** - * Sets the history workflow action remote service. - * - * @param historyWorkflowActionService the history workflow action remote service - */ - public void setHistoryWorkflowActionService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { - this.historyWorkflowActionService = historyWorkflowActionService; - } - - /** - * Returns the history workflow action persistence. - * - * @return the history workflow action persistence - */ - public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { - return historyWorkflowActionPersistence; - } - - /** - * Sets the history workflow action persistence. - * - * @param historyWorkflowActionPersistence the history workflow action persistence - */ - public void setHistoryWorkflowActionPersistence( - HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { - this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; - } - - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - - /** - * Returns the int pratica local service. - * - * @return the int pratica local service - */ - public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { - return intPraticaLocalService; - } - - /** - * Sets the int pratica local service. - * - * @param intPraticaLocalService the int pratica local service - */ - public void setIntPraticaLocalService( - it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { - this.intPraticaLocalService = intPraticaLocalService; - } - - /** - * Returns the int pratica remote service. - * - * @return the int pratica remote service - */ - public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { - return intPraticaService; - } - - /** - * Sets the int pratica remote service. - * - * @param intPraticaService the int pratica remote service - */ - public void setIntPraticaService( - it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { - this.intPraticaService = intPraticaService; - } - - /** - * Returns the int pratica persistence. - * - * @return the int pratica persistence - */ - public IntPraticaPersistence getIntPraticaPersistence() { - return intPraticaPersistence; - } - - /** - * Sets the int pratica persistence. - * - * @param intPraticaPersistence the int pratica persistence - */ - public void setIntPraticaPersistence( - IntPraticaPersistence intPraticaPersistence) { - this.intPraticaPersistence = intPraticaPersistence; - } - - /** - * Returns the int pratica finder. - * - * @return the int pratica finder - */ - public IntPraticaFinder getIntPraticaFinder() { - return intPraticaFinder; - } - - /** - * Sets the int pratica finder. - * - * @param intPraticaFinder the int pratica finder - */ - public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { - this.intPraticaFinder = intPraticaFinder; - } - - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - - /** - * Returns the pagamento local service. - * - * @return the pagamento local service - */ - public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { - return pagamentoLocalService; - } - - /** - * Sets the pagamento local service. - * - * @param pagamentoLocalService the pagamento local service - */ - public void setPagamentoLocalService( - it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { - this.pagamentoLocalService = pagamentoLocalService; - } - - /** - * Returns the pagamento remote service. - * - * @return the pagamento remote service - */ - public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { - return pagamentoService; - } - - /** - * Sets the pagamento remote service. - * - * @param pagamentoService the pagamento remote service - */ - public void setPagamentoService( - it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { - this.pagamentoService = pagamentoService; - } - - /** - * Returns the pagamento persistence. - * - * @return the pagamento persistence - */ - public PagamentoPersistence getPagamentoPersistence() { - return pagamentoPersistence; - } - - /** - * Sets the pagamento persistence. - * - * @param pagamentoPersistence the pagamento persistence - */ - public void setPagamentoPersistence( - PagamentoPersistence pagamentoPersistence) { - this.pagamentoPersistence = pagamentoPersistence; - } - - /** - * Returns the parere geologo local service. - * - * @return the parere geologo local service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { - return parereGeologoLocalService; - } - - /** - * Sets the parere geologo local service. - * - * @param parereGeologoLocalService the parere geologo local service - */ - public void setParereGeologoLocalService( - it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { - this.parereGeologoLocalService = parereGeologoLocalService; - } - - /** - * Returns the parere geologo remote service. - * - * @return the parere geologo remote service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { - return parereGeologoService; - } - - /** - * Sets the parere geologo remote service. - * - * @param parereGeologoService the parere geologo remote service - */ - public void setParereGeologoService( - it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { - this.parereGeologoService = parereGeologoService; - } - - /** - * Returns the parere geologo persistence. - * - * @return the parere geologo persistence - */ - public ParereGeologoPersistence getParereGeologoPersistence() { - return parereGeologoPersistence; - } - - /** - * Sets the parere geologo persistence. - * - * @param parereGeologoPersistence the parere geologo persistence - */ - public void setParereGeologoPersistence( - ParereGeologoPersistence parereGeologoPersistence) { - this.parereGeologoPersistence = parereGeologoPersistence; - } - - /** - * Returns the provincia local service. - * - * @return the provincia local service - */ - public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { - return provinciaLocalService; - } - - /** - * Sets the provincia local service. - * - * @param provinciaLocalService the provincia local service - */ - public void setProvinciaLocalService( - it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { - this.provinciaLocalService = provinciaLocalService; - } - - /** - * Returns the provincia remote service. - * - * @return the provincia remote service - */ - public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { - return provinciaService; - } - - /** - * Sets the provincia remote service. - * - * @param provinciaService the provincia remote service - */ - public void setProvinciaService( - it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { - this.provinciaService = provinciaService; - } - - /** - * Returns the provincia persistence. - * - * @return the provincia persistence - */ - public ProvinciaPersistence getProvinciaPersistence() { - return provinciaPersistence; - } - - /** - * Sets the provincia persistence. - * - * @param provinciaPersistence the provincia persistence - */ - public void setProvinciaPersistence( - ProvinciaPersistence provinciaPersistence) { - this.provinciaPersistence = provinciaPersistence; - } - - /** - * Returns the soggetto local service. - * - * @return the soggetto local service - */ - public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { - return soggettoLocalService; - } - - /** - * Sets the soggetto local service. - * - * @param soggettoLocalService the soggetto local service - */ - public void setSoggettoLocalService( - it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { - this.soggettoLocalService = soggettoLocalService; - } - - /** - * Returns the soggetto remote service. - * - * @return the soggetto remote service - */ - public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { - return soggettoService; - } - - /** - * Sets the soggetto remote service. - * - * @param soggettoService the soggetto remote service - */ - public void setSoggettoService( - it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { - this.soggettoService = soggettoService; - } - - /** - * Returns the soggetto persistence. - * - * @return the soggetto persistence - */ - public SoggettoPersistence getSoggettoPersistence() { - return soggettoPersistence; - } - - /** - * Sets the soggetto persistence. - * - * @param soggettoPersistence the soggetto persistence - */ - public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { - this.soggettoPersistence = soggettoPersistence; - } - - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - - /** - * Returns the storico soggetto pratica local service. - * - * @return the storico soggetto pratica local service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { - return storicoSoggettoPraticaLocalService; - } - - /** - * Sets the storico soggetto pratica local service. - * - * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service - */ - public void setStoricoSoggettoPraticaLocalService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { - this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; - } - - /** - * Returns the storico soggetto pratica remote service. - * - * @return the storico soggetto pratica remote service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { - return storicoSoggettoPraticaService; - } - - /** - * Sets the storico soggetto pratica remote service. - * - * @param storicoSoggettoPraticaService the storico soggetto pratica remote service - */ - public void setStoricoSoggettoPraticaService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { - this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; - } - - /** - * Returns the storico soggetto pratica persistence. - * - * @return the storico soggetto pratica persistence - */ - public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { - return storicoSoggettoPraticaPersistence; - } - - /** - * Sets the storico soggetto pratica persistence. - * - * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence - */ - public void setStoricoSoggettoPraticaPersistence( - StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { - this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; - } - - /** - * Returns the tempistica local service. - * - * @return the tempistica local service - */ - public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { - return tempisticaLocalService; - } - - /** - * Sets the tempistica local service. - * - * @param tempisticaLocalService the tempistica local service - */ - public void setTempisticaLocalService( - it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { - this.tempisticaLocalService = tempisticaLocalService; - } - - /** - * Returns the tempistica remote service. - * - * @return the tempistica remote service - */ - public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { - return tempisticaService; - } - - /** - * Sets the tempistica remote service. - * - * @param tempisticaService the tempistica remote service - */ - public void setTempisticaService( - it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { - this.tempisticaService = tempisticaService; - } - - /** - * Returns the tempistica persistence. - * - * @return the tempistica persistence - */ - public TempisticaPersistence getTempisticaPersistence() { - return tempisticaPersistence; - } - - /** - * Sets the tempistica persistence. - * - * @param tempisticaPersistence the tempistica persistence - */ - public void setTempisticaPersistence( - TempisticaPersistence tempisticaPersistence) { - this.tempisticaPersistence = tempisticaPersistence; - } - - /** - * Returns the tempistica finder. - * - * @return the tempistica finder - */ - public TempisticaFinder getTempisticaFinder() { - return tempisticaFinder; - } - - /** - * Sets the tempistica finder. - * - * @param tempisticaFinder the tempistica finder - */ - public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { - this.tempisticaFinder = tempisticaFinder; - } - - /** - * Returns the territorio local service. - * - * @return the territorio local service - */ - public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { - return territorioLocalService; - } - - /** - * Sets the territorio local service. - * - * @param territorioLocalService the territorio local service - */ - public void setTerritorioLocalService( - it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { - this.territorioLocalService = territorioLocalService; - } - - /** - * Returns the territorio remote service. - * - * @return the territorio remote service - */ - public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { - return territorioService; - } - - /** - * Sets the territorio remote service. - * - * @param territorioService the territorio remote service - */ - public void setTerritorioService( - it.tref.liferay.portos.bo.service.TerritorioService territorioService) { - this.territorioService = territorioService; - } - - /** - * Returns the territorio persistence. - * - * @return the territorio persistence - */ - public TerritorioPersistence getTerritorioPersistence() { - return territorioPersistence; - } - - /** - * Sets the territorio persistence. - * - * @param territorioPersistence the territorio persistence - */ - public void setTerritorioPersistence( - TerritorioPersistence territorioPersistence) { - this.territorioPersistence = territorioPersistence; - } - - /** - * Returns the counter local service. - * - * @return the counter local service - */ - public com.liferay.counter.service.CounterLocalService getCounterLocalService() { - return counterLocalService; - } - - /** - * Sets the counter local service. - * - * @param counterLocalService the counter local service - */ - public void setCounterLocalService( - com.liferay.counter.service.CounterLocalService counterLocalService) { - this.counterLocalService = counterLocalService; - } - - /** - * Returns the resource local service. - * - * @return the resource local service - */ - public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { - return resourceLocalService; - } - - /** - * Sets the resource local service. - * - * @param resourceLocalService the resource local service - */ - public void setResourceLocalService( - com.liferay.portal.service.ResourceLocalService resourceLocalService) { - this.resourceLocalService = resourceLocalService; - } - - /** - * Returns the user local service. - * - * @return the user local service - */ - public com.liferay.portal.service.UserLocalService getUserLocalService() { - return userLocalService; - } - - /** - * Sets the user local service. - * - * @param userLocalService the user local service - */ - public void setUserLocalService( - com.liferay.portal.service.UserLocalService userLocalService) { - this.userLocalService = userLocalService; - } - - /** - * Returns the user remote service. - * - * @return the user remote service - */ - public com.liferay.portal.service.UserService getUserService() { - return userService; - } - - /** - * Sets the user remote service. - * - * @param userService the user remote service - */ - public void setUserService( - com.liferay.portal.service.UserService userService) { - this.userService = userService; - } - - /** - * Returns the user persistence. - * - * @return the user persistence - */ - public UserPersistence getUserPersistence() { - return userPersistence; - } - - /** - * Sets the user persistence. - * - * @param userPersistence the user persistence - */ - public void setUserPersistence(UserPersistence userPersistence) { - this.userPersistence = userPersistence; - } - - public void afterPropertiesSet() { - Class clazz = getClass(); - - _classLoader = clazz.getClassLoader(); - - PersistedModelLocalServiceRegistryUtil.register("it.tref.liferay.portos.bo.model.InfoFascicolo", - infoFascicoloLocalService); - } - - public void destroy() { - PersistedModelLocalServiceRegistryUtil.unregister( - "it.tref.liferay.portos.bo.model.InfoFascicolo"); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public String getBeanIdentifier() { - return _beanIdentifier; - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(String beanIdentifier) { - _beanIdentifier = beanIdentifier; - } - - @Override - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(_classLoader); - } - - try { - return _clpInvoker.invokeMethod(name, parameterTypes, arguments); - } - finally { - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(contextClassLoader); - } - } - } - - protected Class getModelClass() { - return InfoFascicolo.class; - } - - protected String getModelClassName() { - return InfoFascicolo.class.getName(); - } - - /** - * Performs an SQL query. - * - * @param sql the sql query - */ - protected void runSQL(String sql) throws SystemException { - try { - DataSource dataSource = infoFascicoloPersistence.getDataSource(); - - SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, - sql, new int[0]); - - sqlUpdate.update(); - } - catch (Exception e) { - throw new SystemException(e); - } - } - - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; - @BeanReference(type = AllegatoManualePersistence.class) - protected AllegatoManualePersistence allegatoManualePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; - @BeanReference(type = AsseverazionePersistence.class) - protected AsseverazionePersistence asseverazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) - protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) - protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; - @BeanReference(type = AvvisoPersistence.class) - protected AvvisoPersistence avvisoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) - protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) - protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; - @BeanReference(type = CollaudoPersistence.class) - protected CollaudoPersistence collaudoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) - protected it.tref.liferay.portos.bo.service.ComuneService comuneService; - @BeanReference(type = ComunePersistence.class) - protected ComunePersistence comunePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; - @BeanReference(type = ComunicazionePersistence.class) - protected ComunicazionePersistence comunicazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; - @BeanReference(type = ConfigurazionePersistence.class) - protected ConfigurazionePersistence configurazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; - @BeanReference(type = ControlloPraticaPersistence.class) - protected ControlloPraticaPersistence controlloPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) - protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) - protected it.tref.liferay.portos.bo.service.DelegaService delegaService; - @BeanReference(type = DelegaPersistence.class) - protected DelegaPersistence delegaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; - @BeanReference(type = DettPraticaPersistence.class) - protected DettPraticaPersistence dettPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; - @BeanReference(type = DocAggiuntivaPersistence.class) - protected DocAggiuntivaPersistence docAggiuntivaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; - @BeanReference(type = DocPraticaPersistence.class) - protected DocPraticaPersistence docPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; - @BeanReference(type = FineLavoriPersistence.class) - protected FineLavoriPersistence fineLavoriPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; - @BeanReference(type = HistoryWorkflowActionPersistence.class) - protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; - @BeanReference(type = IntPraticaPersistence.class) - protected IntPraticaPersistence intPraticaPersistence; - @BeanReference(type = IntPraticaFinder.class) - protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) - protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) - protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; - @BeanReference(type = PagamentoPersistence.class) - protected PagamentoPersistence pagamentoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; - @BeanReference(type = ParereGeologoPersistence.class) - protected ParereGeologoPersistence parereGeologoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; - @BeanReference(type = ProvinciaPersistence.class) - protected ProvinciaPersistence provinciaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) - protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) - protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; - @BeanReference(type = SoggettoPersistence.class) - protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; - @BeanReference(type = StoricoSoggettoPraticaPersistence.class) - protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) - protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) - protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; - @BeanReference(type = TempisticaPersistence.class) - protected TempisticaPersistence tempisticaPersistence; - @BeanReference(type = TempisticaFinder.class) - protected TempisticaFinder tempisticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) - protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) - protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; - @BeanReference(type = TerritorioPersistence.class) - protected TerritorioPersistence territorioPersistence; - @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) - protected com.liferay.counter.service.CounterLocalService counterLocalService; - @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) - protected com.liferay.portal.service.ResourceLocalService resourceLocalService; - @BeanReference(type = com.liferay.portal.service.UserLocalService.class) - protected com.liferay.portal.service.UserLocalService userLocalService; - @BeanReference(type = com.liferay.portal.service.UserService.class) - protected com.liferay.portal.service.UserService userService; - @BeanReference(type = UserPersistence.class) - protected UserPersistence userPersistence; - private String _beanIdentifier; - private ClassLoader _classLoader; - private InfoFascicoloLocalServiceClpInvoker _clpInvoker = new InfoFascicoloLocalServiceClpInvoker(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloLocalServiceClpInvoker.java deleted file mode 100644 index 1bff4623..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloLocalServiceClpInvoker.java +++ /dev/null @@ -1,372 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil; - -import java.util.Arrays; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class InfoFascicoloLocalServiceClpInvoker { - public InfoFascicoloLocalServiceClpInvoker() { - _methodName0 = "addInfoFascicolo"; - - _methodParameterTypes0 = new String[] { - "it.tref.liferay.portos.bo.model.InfoFascicolo" - }; - - _methodName1 = "createInfoFascicolo"; - - _methodParameterTypes1 = new String[] { "long" }; - - _methodName2 = "deleteInfoFascicolo"; - - _methodParameterTypes2 = new String[] { "long" }; - - _methodName3 = "deleteInfoFascicolo"; - - _methodParameterTypes3 = new String[] { - "it.tref.liferay.portos.bo.model.InfoFascicolo" - }; - - _methodName4 = "dynamicQuery"; - - _methodParameterTypes4 = new String[] { }; - - _methodName5 = "dynamicQuery"; - - _methodParameterTypes5 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName6 = "dynamicQuery"; - - _methodParameterTypes6 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" - }; - - _methodName7 = "dynamicQuery"; - - _methodParameterTypes7 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName8 = "dynamicQueryCount"; - - _methodParameterTypes8 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName9 = "dynamicQueryCount"; - - _methodParameterTypes9 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", - "com.liferay.portal.kernel.dao.orm.Projection" - }; - - _methodName10 = "fetchInfoFascicolo"; - - _methodParameterTypes10 = new String[] { "long" }; - - _methodName11 = "fetchInfoFascicoloByUuidAndCompanyId"; - - _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; - - _methodName12 = "fetchInfoFascicoloByUuidAndGroupId"; - - _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; - - _methodName13 = "getInfoFascicolo"; - - _methodParameterTypes13 = new String[] { "long" }; - - _methodName14 = "getPersistedModel"; - - _methodParameterTypes14 = new String[] { "java.io.Serializable" }; - - _methodName15 = "getInfoFascicoloByUuidAndCompanyId"; - - _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; - - _methodName16 = "getInfoFascicoloByUuidAndGroupId"; - - _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; - - _methodName17 = "getInfoFascicolos"; - - _methodParameterTypes17 = new String[] { "int", "int" }; - - _methodName18 = "getInfoFascicolosCount"; - - _methodParameterTypes18 = new String[] { }; - - _methodName19 = "updateInfoFascicolo"; - - _methodParameterTypes19 = new String[] { - "it.tref.liferay.portos.bo.model.InfoFascicolo" - }; - - _methodName188 = "getBeanIdentifier"; - - _methodParameterTypes188 = new String[] { }; - - _methodName189 = "setBeanIdentifier"; - - _methodParameterTypes189 = new String[] { "java.lang.String" }; - - _methodName194 = "addInfoFascicolo"; - - _methodParameterTypes194 = new String[] { - "long", "java.lang.String", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName195 = "addInfoFascicolo"; - - _methodParameterTypes195 = new String[] { - "long", "java.lang.String", "boolean", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName196 = "findByIntPratica"; - - _methodParameterTypes196 = new String[] { "long" }; - - _methodName197 = "fetchByIntPratica"; - - _methodParameterTypes197 = new String[] { "long" }; - - _methodName198 = "updateAlreadyImportedField"; - - _methodParameterTypes198 = new String[] { "long" }; - } - - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - if (_methodName0.equals(name) && - Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.addInfoFascicolo((it.tref.liferay.portos.bo.model.InfoFascicolo)arguments[0]); - } - - if (_methodName1.equals(name) && - Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.createInfoFascicolo(((Long)arguments[0]).longValue()); - } - - if (_methodName2.equals(name) && - Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.deleteInfoFascicolo(((Long)arguments[0]).longValue()); - } - - if (_methodName3.equals(name) && - Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.deleteInfoFascicolo((it.tref.liferay.portos.bo.model.InfoFascicolo)arguments[0]); - } - - if (_methodName4.equals(name) && - Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.dynamicQuery(); - } - - if (_methodName5.equals(name) && - Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); - } - - if (_methodName6.equals(name) && - Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue()); - } - - if (_methodName7.equals(name) && - Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); - } - - if (_methodName8.equals(name) && - Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); - } - - if (_methodName9.equals(name) && - Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - (com.liferay.portal.kernel.dao.orm.Projection)arguments[1]); - } - - if (_methodName10.equals(name) && - Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.fetchInfoFascicolo(((Long)arguments[0]).longValue()); - } - - if (_methodName11.equals(name) && - Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.fetchInfoFascicoloByUuidAndCompanyId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName12.equals(name) && - Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.fetchInfoFascicoloByUuidAndGroupId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName13.equals(name) && - Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.getInfoFascicolo(((Long)arguments[0]).longValue()); - } - - if (_methodName14.equals(name) && - Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]); - } - - if (_methodName15.equals(name) && - Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.getInfoFascicoloByUuidAndCompanyId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName16.equals(name) && - Arrays.deepEquals(_methodParameterTypes16, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.getInfoFascicoloByUuidAndGroupId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName17.equals(name) && - Arrays.deepEquals(_methodParameterTypes17, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.getInfoFascicolos(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName18.equals(name) && - Arrays.deepEquals(_methodParameterTypes18, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.getInfoFascicolosCount(); - } - - if (_methodName19.equals(name) && - Arrays.deepEquals(_methodParameterTypes19, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.updateInfoFascicolo((it.tref.liferay.portos.bo.model.InfoFascicolo)arguments[0]); - } - - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.getBeanIdentifier(); - } - - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { - InfoFascicoloLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); - - return null; - } - - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.addInfoFascicolo(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (com.liferay.portal.service.ServiceContext)arguments[2]); - } - - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.addInfoFascicolo(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - ((Boolean)arguments[2]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[3]); - } - - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); - } - - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.fetchByIntPratica(((Long)arguments[0]).longValue()); - } - - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { - return InfoFascicoloLocalServiceUtil.updateAlreadyImportedField(((Long)arguments[0]).longValue()); - } - - throw new UnsupportedOperationException(); - } - - private String _methodName0; - private String[] _methodParameterTypes0; - private String _methodName1; - private String[] _methodParameterTypes1; - private String _methodName2; - private String[] _methodParameterTypes2; - private String _methodName3; - private String[] _methodParameterTypes3; - private String _methodName4; - private String[] _methodParameterTypes4; - private String _methodName5; - private String[] _methodParameterTypes5; - private String _methodName6; - private String[] _methodParameterTypes6; - private String _methodName7; - private String[] _methodParameterTypes7; - private String _methodName8; - private String[] _methodParameterTypes8; - private String _methodName9; - private String[] _methodParameterTypes9; - private String _methodName10; - private String[] _methodParameterTypes10; - private String _methodName11; - private String[] _methodParameterTypes11; - private String _methodName12; - private String[] _methodParameterTypes12; - private String _methodName13; - private String[] _methodParameterTypes13; - private String _methodName14; - private String[] _methodParameterTypes14; - private String _methodName15; - private String[] _methodParameterTypes15; - private String _methodName16; - private String[] _methodParameterTypes16; - private String _methodName17; - private String[] _methodParameterTypes17; - private String _methodName18; - private String[] _methodParameterTypes18; - private String _methodName19; - private String[] _methodParameterTypes19; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloServiceBaseImpl.java deleted file mode 100644 index 290cdd63..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloServiceBaseImpl.java +++ /dev/null @@ -1,1891 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.kernel.bean.IdentifiableBean; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.service.BaseServiceImpl; -import com.liferay.portal.service.persistence.UserPersistence; - -import it.tref.liferay.portos.bo.model.InfoFascicolo; -import it.tref.liferay.portos.bo.service.InfoFascicoloService; -import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; -import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; -import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; -import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; -import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; -import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; - -import javax.sql.DataSource; - -/** - * Provides the base implementation for the info fascicolo remote service. - * - *

- * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.InfoFascicoloServiceImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.impl.InfoFascicoloServiceImpl - * @see it.tref.liferay.portos.bo.service.InfoFascicoloServiceUtil - * @generated - */ -public abstract class InfoFascicoloServiceBaseImpl extends BaseServiceImpl - implements InfoFascicoloService, IdentifiableBean { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.InfoFascicoloServiceUtil} to access the info fascicolo remote service. - */ - - /** - * Returns the allegato manuale local service. - * - * @return the allegato manuale local service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { - return allegatoManualeLocalService; - } - - /** - * Sets the allegato manuale local service. - * - * @param allegatoManualeLocalService the allegato manuale local service - */ - public void setAllegatoManualeLocalService( - it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { - this.allegatoManualeLocalService = allegatoManualeLocalService; - } - - /** - * Returns the allegato manuale remote service. - * - * @return the allegato manuale remote service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { - return allegatoManualeService; - } - - /** - * Sets the allegato manuale remote service. - * - * @param allegatoManualeService the allegato manuale remote service - */ - public void setAllegatoManualeService( - it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { - this.allegatoManualeService = allegatoManualeService; - } - - /** - * Returns the allegato manuale persistence. - * - * @return the allegato manuale persistence - */ - public AllegatoManualePersistence getAllegatoManualePersistence() { - return allegatoManualePersistence; - } - - /** - * Sets the allegato manuale persistence. - * - * @param allegatoManualePersistence the allegato manuale persistence - */ - public void setAllegatoManualePersistence( - AllegatoManualePersistence allegatoManualePersistence) { - this.allegatoManualePersistence = allegatoManualePersistence; - } - - /** - * Returns the asseverazione local service. - * - * @return the asseverazione local service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { - return asseverazioneLocalService; - } - - /** - * Sets the asseverazione local service. - * - * @param asseverazioneLocalService the asseverazione local service - */ - public void setAsseverazioneLocalService( - it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { - this.asseverazioneLocalService = asseverazioneLocalService; - } - - /** - * Returns the asseverazione remote service. - * - * @return the asseverazione remote service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { - return asseverazioneService; - } - - /** - * Sets the asseverazione remote service. - * - * @param asseverazioneService the asseverazione remote service - */ - public void setAsseverazioneService( - it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { - this.asseverazioneService = asseverazioneService; - } - - /** - * Returns the asseverazione persistence. - * - * @return the asseverazione persistence - */ - public AsseverazionePersistence getAsseverazionePersistence() { - return asseverazionePersistence; - } - - /** - * Sets the asseverazione persistence. - * - * @param asseverazionePersistence the asseverazione persistence - */ - public void setAsseverazionePersistence( - AsseverazionePersistence asseverazionePersistence) { - this.asseverazionePersistence = asseverazionePersistence; - } - - /** - * Returns the avviso local service. - * - * @return the avviso local service - */ - public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { - return avvisoLocalService; - } - - /** - * Sets the avviso local service. - * - * @param avvisoLocalService the avviso local service - */ - public void setAvvisoLocalService( - it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { - this.avvisoLocalService = avvisoLocalService; - } - - /** - * Returns the avviso remote service. - * - * @return the avviso remote service - */ - public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { - return avvisoService; - } - - /** - * Sets the avviso remote service. - * - * @param avvisoService the avviso remote service - */ - public void setAvvisoService( - it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { - this.avvisoService = avvisoService; - } - - /** - * Returns the avviso persistence. - * - * @return the avviso persistence - */ - public AvvisoPersistence getAvvisoPersistence() { - return avvisoPersistence; - } - - /** - * Sets the avviso persistence. - * - * @param avvisoPersistence the avviso persistence - */ - public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { - this.avvisoPersistence = avvisoPersistence; - } - - /** - * Returns the collaudo local service. - * - * @return the collaudo local service - */ - public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { - return collaudoLocalService; - } - - /** - * Sets the collaudo local service. - * - * @param collaudoLocalService the collaudo local service - */ - public void setCollaudoLocalService( - it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { - this.collaudoLocalService = collaudoLocalService; - } - - /** - * Returns the collaudo remote service. - * - * @return the collaudo remote service - */ - public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { - return collaudoService; - } - - /** - * Sets the collaudo remote service. - * - * @param collaudoService the collaudo remote service - */ - public void setCollaudoService( - it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { - this.collaudoService = collaudoService; - } - - /** - * Returns the collaudo persistence. - * - * @return the collaudo persistence - */ - public CollaudoPersistence getCollaudoPersistence() { - return collaudoPersistence; - } - - /** - * Sets the collaudo persistence. - * - * @param collaudoPersistence the collaudo persistence - */ - public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { - this.collaudoPersistence = collaudoPersistence; - } - - /** - * Returns the comune local service. - * - * @return the comune local service - */ - public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { - return comuneLocalService; - } - - /** - * Sets the comune local service. - * - * @param comuneLocalService the comune local service - */ - public void setComuneLocalService( - it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { - this.comuneLocalService = comuneLocalService; - } - - /** - * Returns the comune remote service. - * - * @return the comune remote service - */ - public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { - return comuneService; - } - - /** - * Sets the comune remote service. - * - * @param comuneService the comune remote service - */ - public void setComuneService( - it.tref.liferay.portos.bo.service.ComuneService comuneService) { - this.comuneService = comuneService; - } - - /** - * Returns the comune persistence. - * - * @return the comune persistence - */ - public ComunePersistence getComunePersistence() { - return comunePersistence; - } - - /** - * Sets the comune persistence. - * - * @param comunePersistence the comune persistence - */ - public void setComunePersistence(ComunePersistence comunePersistence) { - this.comunePersistence = comunePersistence; - } - - /** - * Returns the comunicazione local service. - * - * @return the comunicazione local service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { - return comunicazioneLocalService; - } - - /** - * Sets the comunicazione local service. - * - * @param comunicazioneLocalService the comunicazione local service - */ - public void setComunicazioneLocalService( - it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { - this.comunicazioneLocalService = comunicazioneLocalService; - } - - /** - * Returns the comunicazione remote service. - * - * @return the comunicazione remote service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { - return comunicazioneService; - } - - /** - * Sets the comunicazione remote service. - * - * @param comunicazioneService the comunicazione remote service - */ - public void setComunicazioneService( - it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { - this.comunicazioneService = comunicazioneService; - } - - /** - * Returns the comunicazione persistence. - * - * @return the comunicazione persistence - */ - public ComunicazionePersistence getComunicazionePersistence() { - return comunicazionePersistence; - } - - /** - * Sets the comunicazione persistence. - * - * @param comunicazionePersistence the comunicazione persistence - */ - public void setComunicazionePersistence( - ComunicazionePersistence comunicazionePersistence) { - this.comunicazionePersistence = comunicazionePersistence; - } - - /** - * Returns the configurazione local service. - * - * @return the configurazione local service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { - return configurazioneLocalService; - } - - /** - * Sets the configurazione local service. - * - * @param configurazioneLocalService the configurazione local service - */ - public void setConfigurazioneLocalService( - it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { - this.configurazioneLocalService = configurazioneLocalService; - } - - /** - * Returns the configurazione remote service. - * - * @return the configurazione remote service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { - return configurazioneService; - } - - /** - * Sets the configurazione remote service. - * - * @param configurazioneService the configurazione remote service - */ - public void setConfigurazioneService( - it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { - this.configurazioneService = configurazioneService; - } - - /** - * Returns the configurazione persistence. - * - * @return the configurazione persistence - */ - public ConfigurazionePersistence getConfigurazionePersistence() { - return configurazionePersistence; - } - - /** - * Sets the configurazione persistence. - * - * @param configurazionePersistence the configurazione persistence - */ - public void setConfigurazionePersistence( - ConfigurazionePersistence configurazionePersistence) { - this.configurazionePersistence = configurazionePersistence; - } - - /** - * Returns the controllo pratica local service. - * - * @return the controllo pratica local service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { - return controlloPraticaLocalService; - } - - /** - * Sets the controllo pratica local service. - * - * @param controlloPraticaLocalService the controllo pratica local service - */ - public void setControlloPraticaLocalService( - it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { - this.controlloPraticaLocalService = controlloPraticaLocalService; - } - - /** - * Returns the controllo pratica remote service. - * - * @return the controllo pratica remote service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { - return controlloPraticaService; - } - - /** - * Sets the controllo pratica remote service. - * - * @param controlloPraticaService the controllo pratica remote service - */ - public void setControlloPraticaService( - it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { - this.controlloPraticaService = controlloPraticaService; - } - - /** - * Returns the controllo pratica persistence. - * - * @return the controllo pratica persistence - */ - public ControlloPraticaPersistence getControlloPraticaPersistence() { - return controlloPraticaPersistence; - } - - /** - * Sets the controllo pratica persistence. - * - * @param controlloPraticaPersistence the controllo pratica persistence - */ - public void setControlloPraticaPersistence( - ControlloPraticaPersistence controlloPraticaPersistence) { - this.controlloPraticaPersistence = controlloPraticaPersistence; - } - - /** - * Returns the delega local service. - * - * @return the delega local service - */ - public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { - return delegaLocalService; - } - - /** - * Sets the delega local service. - * - * @param delegaLocalService the delega local service - */ - public void setDelegaLocalService( - it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { - this.delegaLocalService = delegaLocalService; - } - - /** - * Returns the delega remote service. - * - * @return the delega remote service - */ - public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { - return delegaService; - } - - /** - * Sets the delega remote service. - * - * @param delegaService the delega remote service - */ - public void setDelegaService( - it.tref.liferay.portos.bo.service.DelegaService delegaService) { - this.delegaService = delegaService; - } - - /** - * Returns the delega persistence. - * - * @return the delega persistence - */ - public DelegaPersistence getDelegaPersistence() { - return delegaPersistence; - } - - /** - * Sets the delega persistence. - * - * @param delegaPersistence the delega persistence - */ - public void setDelegaPersistence(DelegaPersistence delegaPersistence) { - this.delegaPersistence = delegaPersistence; - } - - /** - * Returns the dett pratica local service. - * - * @return the dett pratica local service - */ - public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { - return dettPraticaLocalService; - } - - /** - * Sets the dett pratica local service. - * - * @param dettPraticaLocalService the dett pratica local service - */ - public void setDettPraticaLocalService( - it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { - this.dettPraticaLocalService = dettPraticaLocalService; - } - - /** - * Returns the dett pratica remote service. - * - * @return the dett pratica remote service - */ - public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { - return dettPraticaService; - } - - /** - * Sets the dett pratica remote service. - * - * @param dettPraticaService the dett pratica remote service - */ - public void setDettPraticaService( - it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { - this.dettPraticaService = dettPraticaService; - } - - /** - * Returns the dett pratica persistence. - * - * @return the dett pratica persistence - */ - public DettPraticaPersistence getDettPraticaPersistence() { - return dettPraticaPersistence; - } - - /** - * Sets the dett pratica persistence. - * - * @param dettPraticaPersistence the dett pratica persistence - */ - public void setDettPraticaPersistence( - DettPraticaPersistence dettPraticaPersistence) { - this.dettPraticaPersistence = dettPraticaPersistence; - } - - /** - * Returns the doc aggiuntiva local service. - * - * @return the doc aggiuntiva local service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { - return docAggiuntivaLocalService; - } - - /** - * Sets the doc aggiuntiva local service. - * - * @param docAggiuntivaLocalService the doc aggiuntiva local service - */ - public void setDocAggiuntivaLocalService( - it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { - this.docAggiuntivaLocalService = docAggiuntivaLocalService; - } - - /** - * Returns the doc aggiuntiva remote service. - * - * @return the doc aggiuntiva remote service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { - return docAggiuntivaService; - } - - /** - * Sets the doc aggiuntiva remote service. - * - * @param docAggiuntivaService the doc aggiuntiva remote service - */ - public void setDocAggiuntivaService( - it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { - this.docAggiuntivaService = docAggiuntivaService; - } - - /** - * Returns the doc aggiuntiva persistence. - * - * @return the doc aggiuntiva persistence - */ - public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { - return docAggiuntivaPersistence; - } - - /** - * Sets the doc aggiuntiva persistence. - * - * @param docAggiuntivaPersistence the doc aggiuntiva persistence - */ - public void setDocAggiuntivaPersistence( - DocAggiuntivaPersistence docAggiuntivaPersistence) { - this.docAggiuntivaPersistence = docAggiuntivaPersistence; - } - - /** - * Returns the doc pratica local service. - * - * @return the doc pratica local service - */ - public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { - return docPraticaLocalService; - } - - /** - * Sets the doc pratica local service. - * - * @param docPraticaLocalService the doc pratica local service - */ - public void setDocPraticaLocalService( - it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { - this.docPraticaLocalService = docPraticaLocalService; - } - - /** - * Returns the doc pratica remote service. - * - * @return the doc pratica remote service - */ - public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { - return docPraticaService; - } - - /** - * Sets the doc pratica remote service. - * - * @param docPraticaService the doc pratica remote service - */ - public void setDocPraticaService( - it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { - this.docPraticaService = docPraticaService; - } - - /** - * Returns the doc pratica persistence. - * - * @return the doc pratica persistence - */ - public DocPraticaPersistence getDocPraticaPersistence() { - return docPraticaPersistence; - } - - /** - * Sets the doc pratica persistence. - * - * @param docPraticaPersistence the doc pratica persistence - */ - public void setDocPraticaPersistence( - DocPraticaPersistence docPraticaPersistence) { - this.docPraticaPersistence = docPraticaPersistence; - } - - /** - * Returns the fine lavori local service. - * - * @return the fine lavori local service - */ - public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { - return fineLavoriLocalService; - } - - /** - * Sets the fine lavori local service. - * - * @param fineLavoriLocalService the fine lavori local service - */ - public void setFineLavoriLocalService( - it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { - this.fineLavoriLocalService = fineLavoriLocalService; - } - - /** - * Returns the fine lavori remote service. - * - * @return the fine lavori remote service - */ - public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { - return fineLavoriService; - } - - /** - * Sets the fine lavori remote service. - * - * @param fineLavoriService the fine lavori remote service - */ - public void setFineLavoriService( - it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { - this.fineLavoriService = fineLavoriService; - } - - /** - * Returns the fine lavori persistence. - * - * @return the fine lavori persistence - */ - public FineLavoriPersistence getFineLavoriPersistence() { - return fineLavoriPersistence; - } - - /** - * Sets the fine lavori persistence. - * - * @param fineLavoriPersistence the fine lavori persistence - */ - public void setFineLavoriPersistence( - FineLavoriPersistence fineLavoriPersistence) { - this.fineLavoriPersistence = fineLavoriPersistence; - } - - /** - * Returns the history workflow action local service. - * - * @return the history workflow action local service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { - return historyWorkflowActionLocalService; - } - - /** - * Sets the history workflow action local service. - * - * @param historyWorkflowActionLocalService the history workflow action local service - */ - public void setHistoryWorkflowActionLocalService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { - this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; - } - - /** - * Returns the history workflow action remote service. - * - * @return the history workflow action remote service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { - return historyWorkflowActionService; - } - - /** - * Sets the history workflow action remote service. - * - * @param historyWorkflowActionService the history workflow action remote service - */ - public void setHistoryWorkflowActionService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { - this.historyWorkflowActionService = historyWorkflowActionService; - } - - /** - * Returns the history workflow action persistence. - * - * @return the history workflow action persistence - */ - public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { - return historyWorkflowActionPersistence; - } - - /** - * Sets the history workflow action persistence. - * - * @param historyWorkflowActionPersistence the history workflow action persistence - */ - public void setHistoryWorkflowActionPersistence( - HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { - this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; - } - - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - - /** - * Returns the int pratica local service. - * - * @return the int pratica local service - */ - public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { - return intPraticaLocalService; - } - - /** - * Sets the int pratica local service. - * - * @param intPraticaLocalService the int pratica local service - */ - public void setIntPraticaLocalService( - it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { - this.intPraticaLocalService = intPraticaLocalService; - } - - /** - * Returns the int pratica remote service. - * - * @return the int pratica remote service - */ - public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { - return intPraticaService; - } - - /** - * Sets the int pratica remote service. - * - * @param intPraticaService the int pratica remote service - */ - public void setIntPraticaService( - it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { - this.intPraticaService = intPraticaService; - } - - /** - * Returns the int pratica persistence. - * - * @return the int pratica persistence - */ - public IntPraticaPersistence getIntPraticaPersistence() { - return intPraticaPersistence; - } - - /** - * Sets the int pratica persistence. - * - * @param intPraticaPersistence the int pratica persistence - */ - public void setIntPraticaPersistence( - IntPraticaPersistence intPraticaPersistence) { - this.intPraticaPersistence = intPraticaPersistence; - } - - /** - * Returns the int pratica finder. - * - * @return the int pratica finder - */ - public IntPraticaFinder getIntPraticaFinder() { - return intPraticaFinder; - } - - /** - * Sets the int pratica finder. - * - * @param intPraticaFinder the int pratica finder - */ - public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { - this.intPraticaFinder = intPraticaFinder; - } - - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - - /** - * Returns the pagamento local service. - * - * @return the pagamento local service - */ - public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { - return pagamentoLocalService; - } - - /** - * Sets the pagamento local service. - * - * @param pagamentoLocalService the pagamento local service - */ - public void setPagamentoLocalService( - it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { - this.pagamentoLocalService = pagamentoLocalService; - } - - /** - * Returns the pagamento remote service. - * - * @return the pagamento remote service - */ - public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { - return pagamentoService; - } - - /** - * Sets the pagamento remote service. - * - * @param pagamentoService the pagamento remote service - */ - public void setPagamentoService( - it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { - this.pagamentoService = pagamentoService; - } - - /** - * Returns the pagamento persistence. - * - * @return the pagamento persistence - */ - public PagamentoPersistence getPagamentoPersistence() { - return pagamentoPersistence; - } - - /** - * Sets the pagamento persistence. - * - * @param pagamentoPersistence the pagamento persistence - */ - public void setPagamentoPersistence( - PagamentoPersistence pagamentoPersistence) { - this.pagamentoPersistence = pagamentoPersistence; - } - - /** - * Returns the parere geologo local service. - * - * @return the parere geologo local service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { - return parereGeologoLocalService; - } - - /** - * Sets the parere geologo local service. - * - * @param parereGeologoLocalService the parere geologo local service - */ - public void setParereGeologoLocalService( - it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { - this.parereGeologoLocalService = parereGeologoLocalService; - } - - /** - * Returns the parere geologo remote service. - * - * @return the parere geologo remote service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { - return parereGeologoService; - } - - /** - * Sets the parere geologo remote service. - * - * @param parereGeologoService the parere geologo remote service - */ - public void setParereGeologoService( - it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { - this.parereGeologoService = parereGeologoService; - } - - /** - * Returns the parere geologo persistence. - * - * @return the parere geologo persistence - */ - public ParereGeologoPersistence getParereGeologoPersistence() { - return parereGeologoPersistence; - } - - /** - * Sets the parere geologo persistence. - * - * @param parereGeologoPersistence the parere geologo persistence - */ - public void setParereGeologoPersistence( - ParereGeologoPersistence parereGeologoPersistence) { - this.parereGeologoPersistence = parereGeologoPersistence; - } - - /** - * Returns the provincia local service. - * - * @return the provincia local service - */ - public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { - return provinciaLocalService; - } - - /** - * Sets the provincia local service. - * - * @param provinciaLocalService the provincia local service - */ - public void setProvinciaLocalService( - it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { - this.provinciaLocalService = provinciaLocalService; - } - - /** - * Returns the provincia remote service. - * - * @return the provincia remote service - */ - public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { - return provinciaService; - } - - /** - * Sets the provincia remote service. - * - * @param provinciaService the provincia remote service - */ - public void setProvinciaService( - it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { - this.provinciaService = provinciaService; - } - - /** - * Returns the provincia persistence. - * - * @return the provincia persistence - */ - public ProvinciaPersistence getProvinciaPersistence() { - return provinciaPersistence; - } - - /** - * Sets the provincia persistence. - * - * @param provinciaPersistence the provincia persistence - */ - public void setProvinciaPersistence( - ProvinciaPersistence provinciaPersistence) { - this.provinciaPersistence = provinciaPersistence; - } - - /** - * Returns the soggetto local service. - * - * @return the soggetto local service - */ - public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { - return soggettoLocalService; - } - - /** - * Sets the soggetto local service. - * - * @param soggettoLocalService the soggetto local service - */ - public void setSoggettoLocalService( - it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { - this.soggettoLocalService = soggettoLocalService; - } - - /** - * Returns the soggetto remote service. - * - * @return the soggetto remote service - */ - public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { - return soggettoService; - } - - /** - * Sets the soggetto remote service. - * - * @param soggettoService the soggetto remote service - */ - public void setSoggettoService( - it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { - this.soggettoService = soggettoService; - } - - /** - * Returns the soggetto persistence. - * - * @return the soggetto persistence - */ - public SoggettoPersistence getSoggettoPersistence() { - return soggettoPersistence; - } - - /** - * Sets the soggetto persistence. - * - * @param soggettoPersistence the soggetto persistence - */ - public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { - this.soggettoPersistence = soggettoPersistence; - } - - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - - /** - * Returns the storico soggetto pratica local service. - * - * @return the storico soggetto pratica local service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { - return storicoSoggettoPraticaLocalService; - } - - /** - * Sets the storico soggetto pratica local service. - * - * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service - */ - public void setStoricoSoggettoPraticaLocalService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { - this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; - } - - /** - * Returns the storico soggetto pratica remote service. - * - * @return the storico soggetto pratica remote service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { - return storicoSoggettoPraticaService; - } - - /** - * Sets the storico soggetto pratica remote service. - * - * @param storicoSoggettoPraticaService the storico soggetto pratica remote service - */ - public void setStoricoSoggettoPraticaService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { - this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; - } - - /** - * Returns the storico soggetto pratica persistence. - * - * @return the storico soggetto pratica persistence - */ - public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { - return storicoSoggettoPraticaPersistence; - } - - /** - * Sets the storico soggetto pratica persistence. - * - * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence - */ - public void setStoricoSoggettoPraticaPersistence( - StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { - this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; - } - - /** - * Returns the tempistica local service. - * - * @return the tempistica local service - */ - public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { - return tempisticaLocalService; - } - - /** - * Sets the tempistica local service. - * - * @param tempisticaLocalService the tempistica local service - */ - public void setTempisticaLocalService( - it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { - this.tempisticaLocalService = tempisticaLocalService; - } - - /** - * Returns the tempistica remote service. - * - * @return the tempistica remote service - */ - public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { - return tempisticaService; - } - - /** - * Sets the tempistica remote service. - * - * @param tempisticaService the tempistica remote service - */ - public void setTempisticaService( - it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { - this.tempisticaService = tempisticaService; - } - - /** - * Returns the tempistica persistence. - * - * @return the tempistica persistence - */ - public TempisticaPersistence getTempisticaPersistence() { - return tempisticaPersistence; - } - - /** - * Sets the tempistica persistence. - * - * @param tempisticaPersistence the tempistica persistence - */ - public void setTempisticaPersistence( - TempisticaPersistence tempisticaPersistence) { - this.tempisticaPersistence = tempisticaPersistence; - } - - /** - * Returns the tempistica finder. - * - * @return the tempistica finder - */ - public TempisticaFinder getTempisticaFinder() { - return tempisticaFinder; - } - - /** - * Sets the tempistica finder. - * - * @param tempisticaFinder the tempistica finder - */ - public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { - this.tempisticaFinder = tempisticaFinder; - } - - /** - * Returns the territorio local service. - * - * @return the territorio local service - */ - public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { - return territorioLocalService; - } - - /** - * Sets the territorio local service. - * - * @param territorioLocalService the territorio local service - */ - public void setTerritorioLocalService( - it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { - this.territorioLocalService = territorioLocalService; - } - - /** - * Returns the territorio remote service. - * - * @return the territorio remote service - */ - public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { - return territorioService; - } - - /** - * Sets the territorio remote service. - * - * @param territorioService the territorio remote service - */ - public void setTerritorioService( - it.tref.liferay.portos.bo.service.TerritorioService territorioService) { - this.territorioService = territorioService; - } - - /** - * Returns the territorio persistence. - * - * @return the territorio persistence - */ - public TerritorioPersistence getTerritorioPersistence() { - return territorioPersistence; - } - - /** - * Sets the territorio persistence. - * - * @param territorioPersistence the territorio persistence - */ - public void setTerritorioPersistence( - TerritorioPersistence territorioPersistence) { - this.territorioPersistence = territorioPersistence; - } - - /** - * Returns the counter local service. - * - * @return the counter local service - */ - public com.liferay.counter.service.CounterLocalService getCounterLocalService() { - return counterLocalService; - } - - /** - * Sets the counter local service. - * - * @param counterLocalService the counter local service - */ - public void setCounterLocalService( - com.liferay.counter.service.CounterLocalService counterLocalService) { - this.counterLocalService = counterLocalService; - } - - /** - * Returns the resource local service. - * - * @return the resource local service - */ - public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { - return resourceLocalService; - } - - /** - * Sets the resource local service. - * - * @param resourceLocalService the resource local service - */ - public void setResourceLocalService( - com.liferay.portal.service.ResourceLocalService resourceLocalService) { - this.resourceLocalService = resourceLocalService; - } - - /** - * Returns the user local service. - * - * @return the user local service - */ - public com.liferay.portal.service.UserLocalService getUserLocalService() { - return userLocalService; - } - - /** - * Sets the user local service. - * - * @param userLocalService the user local service - */ - public void setUserLocalService( - com.liferay.portal.service.UserLocalService userLocalService) { - this.userLocalService = userLocalService; - } - - /** - * Returns the user remote service. - * - * @return the user remote service - */ - public com.liferay.portal.service.UserService getUserService() { - return userService; - } - - /** - * Sets the user remote service. - * - * @param userService the user remote service - */ - public void setUserService( - com.liferay.portal.service.UserService userService) { - this.userService = userService; - } - - /** - * Returns the user persistence. - * - * @return the user persistence - */ - public UserPersistence getUserPersistence() { - return userPersistence; - } - - /** - * Sets the user persistence. - * - * @param userPersistence the user persistence - */ - public void setUserPersistence(UserPersistence userPersistence) { - this.userPersistence = userPersistence; - } - - public void afterPropertiesSet() { - Class clazz = getClass(); - - _classLoader = clazz.getClassLoader(); - } - - public void destroy() { - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public String getBeanIdentifier() { - return _beanIdentifier; - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(String beanIdentifier) { - _beanIdentifier = beanIdentifier; - } - - @Override - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(_classLoader); - } - - try { - return _clpInvoker.invokeMethod(name, parameterTypes, arguments); - } - finally { - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(contextClassLoader); - } - } - } - - protected Class getModelClass() { - return InfoFascicolo.class; - } - - protected String getModelClassName() { - return InfoFascicolo.class.getName(); - } - - /** - * Performs an SQL query. - * - * @param sql the sql query - */ - protected void runSQL(String sql) throws SystemException { - try { - DataSource dataSource = infoFascicoloPersistence.getDataSource(); - - SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, - sql, new int[0]); - - sqlUpdate.update(); - } - catch (Exception e) { - throw new SystemException(e); - } - } - - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; - @BeanReference(type = AllegatoManualePersistence.class) - protected AllegatoManualePersistence allegatoManualePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; - @BeanReference(type = AsseverazionePersistence.class) - protected AsseverazionePersistence asseverazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) - protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) - protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; - @BeanReference(type = AvvisoPersistence.class) - protected AvvisoPersistence avvisoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) - protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) - protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; - @BeanReference(type = CollaudoPersistence.class) - protected CollaudoPersistence collaudoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) - protected it.tref.liferay.portos.bo.service.ComuneService comuneService; - @BeanReference(type = ComunePersistence.class) - protected ComunePersistence comunePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; - @BeanReference(type = ComunicazionePersistence.class) - protected ComunicazionePersistence comunicazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; - @BeanReference(type = ConfigurazionePersistence.class) - protected ConfigurazionePersistence configurazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; - @BeanReference(type = ControlloPraticaPersistence.class) - protected ControlloPraticaPersistence controlloPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) - protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) - protected it.tref.liferay.portos.bo.service.DelegaService delegaService; - @BeanReference(type = DelegaPersistence.class) - protected DelegaPersistence delegaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; - @BeanReference(type = DettPraticaPersistence.class) - protected DettPraticaPersistence dettPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; - @BeanReference(type = DocAggiuntivaPersistence.class) - protected DocAggiuntivaPersistence docAggiuntivaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; - @BeanReference(type = DocPraticaPersistence.class) - protected DocPraticaPersistence docPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; - @BeanReference(type = FineLavoriPersistence.class) - protected FineLavoriPersistence fineLavoriPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; - @BeanReference(type = HistoryWorkflowActionPersistence.class) - protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; - @BeanReference(type = IntPraticaPersistence.class) - protected IntPraticaPersistence intPraticaPersistence; - @BeanReference(type = IntPraticaFinder.class) - protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) - protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) - protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; - @BeanReference(type = PagamentoPersistence.class) - protected PagamentoPersistence pagamentoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; - @BeanReference(type = ParereGeologoPersistence.class) - protected ParereGeologoPersistence parereGeologoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; - @BeanReference(type = ProvinciaPersistence.class) - protected ProvinciaPersistence provinciaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) - protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) - protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; - @BeanReference(type = SoggettoPersistence.class) - protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; - @BeanReference(type = StoricoSoggettoPraticaPersistence.class) - protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) - protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) - protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; - @BeanReference(type = TempisticaPersistence.class) - protected TempisticaPersistence tempisticaPersistence; - @BeanReference(type = TempisticaFinder.class) - protected TempisticaFinder tempisticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) - protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) - protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; - @BeanReference(type = TerritorioPersistence.class) - protected TerritorioPersistence territorioPersistence; - @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) - protected com.liferay.counter.service.CounterLocalService counterLocalService; - @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) - protected com.liferay.portal.service.ResourceLocalService resourceLocalService; - @BeanReference(type = com.liferay.portal.service.UserLocalService.class) - protected com.liferay.portal.service.UserLocalService userLocalService; - @BeanReference(type = com.liferay.portal.service.UserService.class) - protected com.liferay.portal.service.UserService userService; - @BeanReference(type = UserPersistence.class) - protected UserPersistence userPersistence; - private String _beanIdentifier; - private ClassLoader _classLoader; - private InfoFascicoloServiceClpInvoker _clpInvoker = new InfoFascicoloServiceClpInvoker(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloServiceClpInvoker.java deleted file mode 100644 index 31c4eb2f..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/InfoFascicoloServiceClpInvoker.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import it.tref.liferay.portos.bo.service.InfoFascicoloServiceUtil; - -import java.util.Arrays; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class InfoFascicoloServiceClpInvoker { - public InfoFascicoloServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; - - _methodParameterTypes168 = new String[] { }; - - _methodName169 = "setBeanIdentifier"; - - _methodParameterTypes169 = new String[] { "java.lang.String" }; - } - - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { - return InfoFascicoloServiceUtil.getBeanIdentifier(); - } - - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { - InfoFascicoloServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); - - return null; - } - - throw new UnsupportedOperationException(); - } - - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java index 0d1a52f1..6a5b18a6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1162,63 +1158,6 @@ public abstract class IntPraticaLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1294,62 +1233,6 @@ public abstract class IntPraticaLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1577,81 +1460,6 @@ public abstract class IntPraticaLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2139,12 +1947,6 @@ public abstract class IntPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2153,12 +1955,6 @@ public abstract class IntPraticaLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2183,14 +1979,6 @@ public abstract class IntPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java index a7a28ab6..a2e60b93 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java @@ -122,365 +122,310 @@ public class IntPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "addIntPratica"; + _methodName178 = "addIntPratica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "addIntPratica"; + _methodName179 = "addIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "long", "java.lang.String", "java.lang.String", "long", - "java.lang.String", "java.util.Date", "java.lang.String", - "java.lang.String", "boolean", "int", "java.util.Date", "long", + "java.lang.String", "java.lang.String", "java.lang.String", + "boolean", "int", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName200 = "svuotaDatabase2"; + _methodName180 = "deleteIntPratica"; - _methodParameterTypes200 = new String[] { - "com.liferay.portal.service.ServiceContext" - }; - - _methodName202 = "clearDb"; - - _methodParameterTypes202 = new String[] { }; - - _methodName203 = "deleteIntPratica"; - - _methodParameterTypes203 = new String[] { + _methodParameterTypes180 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName204 = "deleteIntPratica"; + _methodName181 = "deleteIntPratica"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes181 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName205 = "cloneIntPratica"; + _methodName182 = "cloneIntPratica"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes182 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName207 = "updateDelegati"; + _methodName184 = "updateDelegati"; - _methodParameterTypes207 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName208 = "fetchIntPratica"; + _methodName185 = "fetchIntPratica"; - _methodParameterTypes208 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName209 = "findFascicoliNotProgetto"; + _methodName186 = "findFascicoliNotProgetto"; - _methodParameterTypes209 = new String[] { "int", "int" }; + _methodParameterTypes186 = new String[] { "int", "int" }; - _methodName210 = "countFascicoliNotProgetto"; + _methodName187 = "countFascicoliNotProgetto"; - _methodParameterTypes210 = new String[] { }; + _methodParameterTypes187 = new String[] { }; - _methodName212 = "countByPosizione"; + _methodName189 = "countByPosizione"; - _methodParameterTypes212 = new String[] { "double", "double", "int" }; + _methodParameterTypes189 = new String[] { "double", "double", "int" }; - _methodName213 = "findByPosizione"; + _methodName190 = "findByPosizione"; - _methodParameterTypes213 = new String[] { "double", "double", "int" }; + _methodParameterTypes190 = new String[] { "double", "double", "int" }; - _methodName214 = "findByPosizione"; + _methodName191 = "findByPosizione"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes191 = new String[] { "double", "double", "int", "int", "int" }; - _methodName216 = "addNumeroProgetto"; + _methodName193 = "addNumeroProgetto"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes193 = new String[] { "long" }; - _methodName218 = "sospendiPratica"; + _methodName194 = "sospendiPratica"; - _methodParameterTypes218 = new String[] { "long", "boolean" }; + _methodParameterTypes194 = new String[] { "long", "boolean" }; - _methodName219 = "cambiaTitolare"; + _methodName195 = "cambiaTitolare"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes195 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName220 = "updateStatoPratica"; - - _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; - - _methodName221 = "updateIntPraticaSorteggio"; - - _methodParameterTypes221 = new String[] { "long", "java.util.Date" }; - - _methodName222 = "updateIntPraticaSorteggio"; - - _methodParameterTypes222 = new String[] { - "long", "java.util.Date", "java.lang.String" - }; - - _methodName223 = "findByC_UserId"; + _methodName196 = "updateStatoPratica"; - _methodParameterTypes223 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes196 = new String[] { "long", "java.lang.String" }; - _methodName224 = "countByC_UserId"; + _methodName197 = "findByC_UserId"; - _methodParameterTypes224 = new String[] { "long", "long" }; + _methodParameterTypes197 = new String[] { "long", "long", "int", "int" }; - _methodName225 = "fetchByOldIntPraticaId"; + _methodName198 = "countByC_UserId"; - _methodParameterTypes225 = new String[] { "long" }; + _methodParameterTypes198 = new String[] { "long", "long" }; - _methodName226 = "updateStatus"; + _methodName199 = "updateStatus"; - _methodParameterTypes226 = new String[] { "long", "int" }; + _methodParameterTypes199 = new String[] { "long", "int" }; - _methodName227 = "findByCompanyIdSoggettoProgetti"; + _methodName200 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes227 = new String[] { "long", "long" }; + _methodParameterTypes200 = new String[] { "long", "long" }; - _methodName228 = "countByCompanyIdSoggettoProgetti"; + _methodName201 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes228 = new String[] { "long", "long" }; + _methodParameterTypes201 = new String[] { "long", "long" }; - _methodName230 = "findByCompanyIdSoggettoArchivio"; + _methodName203 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes230 = new String[] { "long", "long" }; + _methodParameterTypes203 = new String[] { "long", "long" }; - _methodName231 = "countByCompanyIdSoggettoArchivio"; + _methodName204 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes231 = new String[] { "long", "long" }; + _methodParameterTypes204 = new String[] { "long", "long" }; - _methodName233 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName206 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes233 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes206 = new String[] { "long", "long", "int", "int" }; - _methodName234 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName207 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes234 = new String[] { "long", "long" }; + _methodParameterTypes207 = new String[] { "long", "long" }; - _methodName236 = "findByCanAddFineLavori"; + _methodName209 = "findByCanAddFineLavori"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes209 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName237 = "countByCanAddFineLavori"; + _methodName210 = "countByCanAddFineLavori"; - _methodParameterTypes237 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes210 = new String[] { "long", "java.lang.String" }; - _methodName239 = "findByCanAddCollaudo"; + _methodName212 = "findByCanAddCollaudo"; - _methodParameterTypes239 = new String[] { + _methodParameterTypes212 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName240 = "countByCanAddCollaudo"; + _methodName213 = "countByCanAddCollaudo"; - _methodParameterTypes240 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes213 = new String[] { "long", "java.lang.String" }; - _methodName242 = "search"; + _methodName214 = "search"; - _methodParameterTypes242 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes214 = new String[] { "java.util.List", "int", "int" }; - _methodName243 = "countSearch"; + _methodName215 = "countSearch"; - _methodParameterTypes243 = new String[] { "java.util.List" }; + _methodParameterTypes215 = new String[] { "java.util.List" }; - _methodName244 = "searchWithIntPraticaId"; + _methodName216 = "searchWithIntPraticaId"; - _methodParameterTypes244 = new String[] { + _methodParameterTypes216 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName245 = "countSearchWithIntPraticaId"; - - _methodParameterTypes245 = new String[] { "java.util.List", "long" }; - - _methodName246 = "allegaFileAnnullamento"; + _methodName217 = "allegaFileAnnullamento"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes217 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName247 = "generateFileAnnullamento"; + _methodName218 = "generateFileAnnullamento"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes218 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName248 = "deleteFileAnnullamento"; + _methodName219 = "deleteFileAnnullamento"; - _methodParameterTypes248 = new String[] { "long" }; + _methodParameterTypes219 = new String[] { "long" }; - _methodName249 = "completeAnnullamento"; + _methodName220 = "completeAnnullamento"; - _methodParameterTypes249 = new String[] { "long" }; + _methodParameterTypes220 = new String[] { "long" }; - _methodName250 = "cambiaIstruttore"; + _methodName221 = "cambiaIstruttore"; - _methodParameterTypes250 = new String[] { "long", "long", "long" }; + _methodParameterTypes221 = new String[] { "long", "long", "long" }; - _methodName251 = "countCaricoLavoroCF"; + _methodName222 = "countCaricoLavoroCF"; - _methodParameterTypes251 = new String[] { - "long", "java.lang.String", "java.lang.Boolean", - "java.lang.Long[][]" + _methodParameterTypes222 = new String[] { + "long", "java.lang.String", "java.lang.Long[][]" }; - _methodName252 = "countCaricoLavoroIstruttore"; + _methodName223 = "countCaricoLavoroIstruttore"; - _methodParameterTypes252 = new String[] { - "long", "java.lang.String", "java.lang.Boolean" - }; + _methodParameterTypes223 = new String[] { "long", "java.lang.String" }; - _methodName253 = "generateReportPratica"; + _methodName224 = "generateReportPratica"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes224 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName254 = "updateModifiedDate"; + _methodName225 = "updateModifiedDate"; - _methodParameterTypes254 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes225 = new String[] { "long", "java.util.Date" }; - _methodName255 = "countAutorizzazione"; + _methodName226 = "countAutorizzazione"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes226 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName256 = "countSanatorie"; + _methodName227 = "countSanatorie"; - _methodParameterTypes256 = new String[] { + _methodParameterTypes227 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName257 = "countOpereMinoreImportanza"; + _methodName228 = "countOpereMinoreImportanza"; - _methodParameterTypes257 = new String[] { + _methodParameterTypes228 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName258 = "countDeposito"; + _methodName229 = "countDeposito"; - _methodParameterTypes258 = new String[] { + _methodParameterTypes229 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName259 = "countVidimate"; + _methodName230 = "countVidimate"; - _methodParameterTypes259 = new String[] { + _methodParameterTypes230 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName260 = "countControllo"; + _methodName231 = "countControllo"; - _methodParameterTypes260 = new String[] { + _methodParameterTypes231 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName261 = "importaVecchiFilesFascicolo"; - - _methodParameterTypes261 = new String[] { "long", "int", "int" }; + _methodName232 = "riparaWorkflow"; - _methodName262 = "findIntPraticaNotExist"; + _methodParameterTypes232 = new String[] { }; - _methodParameterTypes262 = new String[] { }; + _methodName233 = "reIndexFascicolo"; - _methodName263 = "riparaWorkflow"; - - _methodParameterTypes263 = new String[] { }; - - _methodName264 = "reIndexFascicolo"; - - _methodParameterTypes264 = new String[] { + _methodParameterTypes233 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName265 = "reIndexFasciolo"; + _methodName234 = "reIndexFasciolo"; - _methodParameterTypes265 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes234 = new String[] { "java.lang.String", "long" }; - _methodName266 = "reIndexFasciolo"; + _methodName235 = "reIndexFasciolo"; - _methodParameterTypes266 = new String[] { "long", "long" }; + _methodParameterTypes235 = new String[] { "long", "long" }; - _methodName267 = "trovaDoppioni"; + _methodName236 = "findByNumeroProgetto"; - _methodParameterTypes267 = new String[] { }; + _methodParameterTypes236 = new String[] { "java.lang.String" }; - _methodName268 = "findByNumeroProgetto"; + _methodName237 = "findByTerritorioId"; - _methodParameterTypes268 = new String[] { "java.lang.String" }; + _methodParameterTypes237 = new String[] { "long" }; - _methodName269 = "findByTerritorioId"; + _methodName238 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodParameterTypes269 = new String[] { "long" }; - - _methodName270 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - - _methodParameterTypes270 = new String[] { + _methodParameterTypes238 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName271 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName239 = "reportPraticheVidimate"; - _methodParameterTypes271 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; - - _methodName272 = "reportPraticheVidimate"; - - _methodParameterTypes272 = new String[] { + _methodParameterTypes239 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName273 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName240 = "countIngressiAutorizzazioni"; - _methodParameterTypes273 = new String[] { + _methodParameterTypes240 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName274 = "countIngressiAutorizzazioni"; + _methodName241 = "countIngressiDepositi"; - _methodParameterTypes274 = new String[] { + _methodParameterTypes241 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName275 = "countIngressiDepositi"; + _methodName242 = "countIngressiCO"; - _methodParameterTypes275 = new String[] { + _methodParameterTypes242 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName276 = "countIngressiCO"; - - _methodParameterTypes276 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; + _methodName243 = "getOrganizationByIntPraticaId"; - _methodName277 = "getOrganizationByIntPraticaId"; - - _methodParameterTypes277 = new String[] { "long" }; + _methodParameterTypes243 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -596,107 +541,94 @@ public class IntPraticaLocalServiceClpInvoker { return IntPraticaLocalServiceUtil.updateIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return IntPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { IntPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), - (java.lang.String)arguments[4], (java.util.Date)arguments[5], - (java.lang.String)arguments[6], (java.lang.String)arguments[7], - ((Boolean)arguments[8]).booleanValue(), - ((Integer)arguments[9]).intValue(), - (java.util.Date)arguments[10], - ((Long)arguments[11]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[12]); - } - - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { - return IntPraticaLocalServiceUtil.svuotaDatabase2((com.liferay.portal.service.ServiceContext)arguments[0]); - } - - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { - IntPraticaLocalServiceUtil.clearDb(); - - return null; + (java.lang.String)arguments[4], (java.lang.String)arguments[5], + (java.lang.String)arguments[6], + ((Boolean)arguments[7]).booleanValue(), + ((Integer)arguments[8]).intValue(), + (java.util.Date)arguments[9], + (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return IntPraticaLocalServiceUtil.countByPosizione(((Double)arguments[0]).doubleValue(), ((Double)arguments[1]).doubleValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return IntPraticaLocalServiceUtil.findByPosizione(((Double)arguments[0]).doubleValue(), ((Double)arguments[1]).doubleValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return IntPraticaLocalServiceUtil.findByPosizione(((Double)arguments[0]).doubleValue(), ((Double)arguments[1]).doubleValue(), ((Integer)arguments[2]).intValue(), @@ -704,191 +636,168 @@ public class IntPraticaLocalServiceClpInvoker { ((Integer)arguments[4]).intValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { - return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1]); - } - - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { - return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1], (java.lang.String)arguments[2]); - } - - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { - return IntPraticaLocalServiceUtil.fetchByOldIntPraticaId(((Long)arguments[0]).longValue()); - } - - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { - return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -896,174 +805,144 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.Boolean)arguments[2], (java.lang.Long[])arguments[3]); + (java.lang.String)arguments[1], (java.lang.Long[])arguments[2]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); + (java.lang.String)arguments[1]); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName259.equals(name) && - Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3], ((Boolean)arguments[4]).booleanValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3], ((Boolean)arguments[4]).booleanValue()); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { - return IntPraticaLocalServiceUtil.importaVecchiFilesFascicolo(((Long)arguments[0]).longValue(), - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue()); - } - - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { - return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); - } - - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return IntPraticaLocalServiceUtil.riparaWorkflow(); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); return null; } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { - return IntPraticaLocalServiceUtil.trovaDoppioni(); - } - - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); - } - - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); - } - - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return IntPraticaLocalServiceUtil.getOrganizationByIntPraticaId(((Long)arguments[0]).longValue()); } @@ -1110,28 +989,60 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; - private String _methodName192; - private String[] _methodParameterTypes192; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; - private String _methodName202; - private String[] _methodParameterTypes202; + private String _methodName201; + private String[] _methodParameterTypes201; private String _methodName203; private String[] _methodParameterTypes203; private String _methodName204; private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; + private String _methodName206; + private String[] _methodParameterTypes206; private String _methodName207; private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; private String _methodName209; private String[] _methodParameterTypes209; private String _methodName210; @@ -1142,8 +1053,12 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; + private String _methodName217; + private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; private String _methodName219; @@ -1166,92 +1081,34 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes227; private String _methodName228; private String[] _methodParameterTypes228; + private String _methodName229; + private String[] _methodParameterTypes229; private String _methodName230; private String[] _methodParameterTypes230; private String _methodName231; private String[] _methodParameterTypes231; + private String _methodName232; + private String[] _methodParameterTypes232; private String _methodName233; private String[] _methodParameterTypes233; private String _methodName234; private String[] _methodParameterTypes234; + private String _methodName235; + private String[] _methodParameterTypes235; private String _methodName236; private String[] _methodParameterTypes236; private String _methodName237; private String[] _methodParameterTypes237; + private String _methodName238; + private String[] _methodParameterTypes238; private String _methodName239; private String[] _methodParameterTypes239; private String _methodName240; private String[] _methodParameterTypes240; + private String _methodName241; + private String[] _methodParameterTypes241; private String _methodName242; private String[] _methodParameterTypes242; private String _methodName243; private String[] _methodParameterTypes243; - private String _methodName244; - private String[] _methodParameterTypes244; - private String _methodName245; - private String[] _methodParameterTypes245; - private String _methodName246; - private String[] _methodParameterTypes246; - private String _methodName247; - private String[] _methodParameterTypes247; - private String _methodName248; - private String[] _methodParameterTypes248; - private String _methodName249; - private String[] _methodParameterTypes249; - private String _methodName250; - private String[] _methodParameterTypes250; - private String _methodName251; - private String[] _methodParameterTypes251; - private String _methodName252; - private String[] _methodParameterTypes252; - private String _methodName253; - private String[] _methodParameterTypes253; - private String _methodName254; - private String[] _methodParameterTypes254; - private String _methodName255; - private String[] _methodParameterTypes255; - private String _methodName256; - private String[] _methodParameterTypes256; - private String _methodName257; - private String[] _methodParameterTypes257; - private String _methodName258; - private String[] _methodParameterTypes258; - private String _methodName259; - private String[] _methodParameterTypes259; - private String _methodName260; - private String[] _methodParameterTypes260; - private String _methodName261; - private String[] _methodParameterTypes261; - private String _methodName262; - private String[] _methodParameterTypes262; - private String _methodName263; - private String[] _methodParameterTypes263; - private String _methodName264; - private String[] _methodParameterTypes264; - private String _methodName265; - private String[] _methodParameterTypes265; - private String _methodName266; - private String[] _methodParameterTypes266; - private String _methodName267; - private String[] _methodParameterTypes267; - private String _methodName268; - private String[] _methodParameterTypes268; - private String _methodName269; - private String[] _methodParameterTypes269; - private String _methodName270; - private String[] _methodParameterTypes270; - private String _methodName271; - private String[] _methodParameterTypes271; - private String _methodName272; - private String[] _methodParameterTypes272; - private String _methodName273; - private String[] _methodParameterTypes273; - private String _methodName274; - private String[] _methodParameterTypes274; - private String _methodName275; - private String[] _methodParameterTypes275; - private String _methodName276; - private String[] _methodParameterTypes276; - private String _methodName277; - private String[] _methodParameterTypes277; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java index 97a7337b..90e898d5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class IntPraticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java index 486f61a7..8b5826bf 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaServiceClpInvoker.java @@ -24,145 +24,117 @@ import java.util.Arrays; */ public class IntPraticaServiceClpInvoker { public IntPraticaServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "getIntPratica"; + _methodName158 = "getIntPratica"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes158 = new String[] { "long" }; - _methodName179 = "deleteIntPratica"; + _methodName159 = "deleteIntPratica"; - _methodParameterTypes179 = new String[] { "long", "long" }; + _methodParameterTypes159 = new String[] { "long", "long" }; - _methodName180 = "sospendiPratica"; + _methodName160 = "sospendiPratica"; - _methodParameterTypes180 = new String[] { "long", "boolean" }; + _methodParameterTypes160 = new String[] { "long", "boolean" }; - _methodName181 = "cambiaTitolare"; + _methodName161 = "cambiaTitolare"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes161 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName182 = "updateStatoPratica"; + _methodName162 = "updateStatoPratica"; - _methodParameterTypes182 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes162 = new String[] { "long", "java.lang.String" }; - _methodName183 = "search"; + _methodName163 = "search"; - _methodParameterTypes183 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes163 = new String[] { "java.util.List", "int", "int" }; - _methodName184 = "countSearch"; + _methodName164 = "countSearch"; - _methodParameterTypes184 = new String[] { "java.util.List" }; + _methodParameterTypes164 = new String[] { "java.util.List" }; - _methodName185 = "findByCompanyIdSoggettoProgetti"; + _methodName165 = "findByCanAddFineLavori"; - _methodParameterTypes185 = new String[] { "long", "long" }; - - _methodName186 = "countByCompanyIdSoggettoProgetti"; - - _methodParameterTypes186 = new String[] { "long", "long" }; - - _methodName187 = "findByCompanyIdSoggettoArchivio"; - - _methodParameterTypes187 = new String[] { "long", "long" }; - - _methodName188 = "countByCompanyIdSoggettoArchivio"; - - _methodParameterTypes188 = new String[] { "long", "long" }; - - _methodName189 = "findByCompanyIdSoggettoAltriProgetti"; - - _methodParameterTypes189 = new String[] { "long", "long", "int", "int" }; - - _methodName190 = "countByCompanyIdSoggettoAltriProgetti"; - - _methodParameterTypes190 = new String[] { "long", "long" }; - - _methodName191 = "findByCanAddFineLavori"; - - _methodParameterTypes191 = new String[] { + _methodParameterTypes165 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName192 = "countByCanAddFineLavori"; + _methodName166 = "countByCanAddFineLavori"; - _methodParameterTypes192 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes166 = new String[] { "long", "java.lang.String" }; - _methodName193 = "findByCanAddCollaudo"; + _methodName167 = "findByCanAddCollaudo"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes167 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName194 = "countByCanAddCollaudo"; + _methodName168 = "countByCanAddCollaudo"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes168 = new String[] { "long", "java.lang.String" }; - _methodName195 = "allegaFileAnnullamento"; + _methodName169 = "allegaFileAnnullamento"; - _methodParameterTypes195 = new String[] { + _methodParameterTypes169 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName196 = "completeAnnullamento"; - - _methodParameterTypes196 = new String[] { "long", "long" }; - - _methodName197 = "cambiaIstruttore"; + _methodName170 = "completeAnnullamento"; - _methodParameterTypes197 = new String[] { "long", "long", "long" }; + _methodParameterTypes170 = new String[] { "long", "long" }; - _methodName198 = "geosisma"; + _methodName171 = "cambiaIstruttore"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes171 = new String[] { "long", "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return IntPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { IntPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return IntPraticaServiceUtil.getIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { IntPraticaServiceUtil.deleteIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { IntPraticaServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); return null; } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { IntPraticaServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); @@ -170,110 +142,72 @@ public class IntPraticaServiceClpInvoker { return null; } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { IntPraticaServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); return null; } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return IntPraticaServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return IntPraticaServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { - return IntPraticaServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { - return IntPraticaServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { - return IntPraticaServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { - return IntPraticaServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { - return IntPraticaServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue(), - ((Integer)arguments[2]).intValue(), - ((Integer)arguments[3]).intValue()); - } - - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { - return IntPraticaServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return IntPraticaServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return IntPraticaServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return IntPraticaServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return IntPraticaServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return IntPraticaServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { IntPraticaServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { IntPraticaServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -281,58 +215,39 @@ public class IntPraticaServiceClpInvoker { return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { - return IntPraticaServiceUtil.geosisma(((Long)arguments[0]).longValue()); - } - throw new UnsupportedOperationException(); } - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java index 92de2466..3f8eb973 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1158,63 +1154,6 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1290,62 +1229,6 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1573,81 +1456,6 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2135,12 +1943,6 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2149,12 +1951,6 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2179,14 +1975,6 @@ public abstract class PagamentoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java index e24571f3..2687b047 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java @@ -122,223 +122,214 @@ public class PagamentoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Pagamento" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "getPagamenti"; + _methodName178 = "getPagamenti"; - _methodParameterTypes198 = new String[] { }; + _methodParameterTypes178 = new String[] { }; - _methodName199 = "createPagamentoId"; + _methodName179 = "createPagamentoId"; - _methodParameterTypes199 = new String[] { }; + _methodParameterTypes179 = new String[] { }; - _methodName200 = "addPagamento"; + _methodName180 = "addPagamento"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes180 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", "long", + "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName201 = "addPagamentoAndUpdate"; + _methodName181 = "addPagamentoAndUpdate"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", "long", + "java.lang.String", "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "addPagamentoAndUpdate"; + _methodName182 = "addPagamentoAndUpdate"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", - "java.lang.String", "long", - "com.liferay.portal.service.ServiceContext" + "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName203 = "addPagamentoAndUpdate"; + _methodName183 = "addPagamentoAndUpdate"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "long", - "java.lang.String", "long", "java.lang.String", "java.util.List", + "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName205 = "updatePagamento"; + _methodName185 = "updatePagamento"; - _methodParameterTypes205 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; - _methodName206 = "updatePagamento"; + _methodName186 = "updatePagamento"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes186 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName207 = "updatePagamentoUtilizzata"; + _methodName187 = "updatePagamentoUtilizzata"; - _methodParameterTypes207 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; - _methodName208 = "annullaPagamento"; + _methodName188 = "annullaPagamento"; - _methodParameterTypes208 = new String[] { "long" }; + _methodParameterTypes188 = new String[] { "long" }; - _methodName209 = "findByCommittente_Mezzo"; + _methodName189 = "findByCommittente_Mezzo"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes189 = new String[] { "java.lang.String", "java.lang.String", "int", "int" }; - _methodName210 = "countByCommittente_Mezzo"; + _methodName190 = "countByCommittente_Mezzo"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes190 = new String[] { "java.lang.String", "java.lang.String" }; - _methodName211 = "findByCommittente_Mezzo_Utilizzata"; + _methodName191 = "findByCommittente_Mezzo_Utilizzata"; - _methodParameterTypes211 = new String[] { + _methodParameterTypes191 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String", "int", "int" }; - _methodName212 = "countByCommittente_Mezzo_Utilizzata"; + _methodName192 = "countByCommittente_Mezzo_Utilizzata"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes192 = new String[] { "java.lang.String", "java.lang.String", "java.lang.String" }; - _methodName213 = "findByMezzo_Utilizzata"; + _methodName193 = "findByMezzo_Utilizzata"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes193 = new String[] { "java.lang.String", "java.lang.String", "int", "int" }; - _methodName214 = "findByOldPagamentoId"; - - _methodParameterTypes214 = new String[] { "long" }; + _methodName194 = "countByMezzo_Utilizzata"; - _methodName215 = "countByMezzo_Utilizzata"; - - _methodParameterTypes215 = new String[] { + _methodParameterTypes194 = new String[] { "java.lang.String", "java.lang.String" }; - _methodName216 = "findByMezzo_Utilizzata_CreateDate"; + _methodName195 = "findByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes195 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date", "int", "int" }; - _methodName217 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName196 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes217 = new String[] { + _methodParameterTypes196 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date" }; - _methodName218 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; + _methodName197 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes197 = new String[] { "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "int", "int" }; - _methodName219 = "findInPending"; + _methodName198 = "findInPending"; - _methodParameterTypes219 = new String[] { + _methodParameterTypes198 = new String[] { "java.util.Date", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName220 = "countInPending"; + _methodName199 = "countInPending"; - _methodParameterTypes220 = new String[] { "java.util.Date" }; + _methodParameterTypes199 = new String[] { "java.util.Date" }; - _methodName222 = "countByMezzo_Utilizzata_CreateDate"; + _methodName201 = "countByMezzo_Utilizzata_CreateDate"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes201 = new String[] { "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName223 = "deletePagamento"; + _methodName202 = "deletePagamento"; - _methodParameterTypes223 = new String[] { "long" }; + _methodParameterTypes202 = new String[] { "long" }; - _methodName224 = "deletePagamento"; + _methodName203 = "deletePagamento"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes203 = new String[] { "it.tref.liferay.portos.bo.model.Pagamento" }; - _methodName225 = "updateEmailPendingPagamento"; + _methodName204 = "updateEmailPendingPagamento"; - _methodParameterTypes225 = new String[] { "long", "boolean" }; + _methodParameterTypes204 = new String[] { "long", "boolean" }; - _methodName228 = "countByClassPk"; + _methodName207 = "countByClassPk"; - _methodParameterTypes228 = new String[] { "long" }; + _methodParameterTypes207 = new String[] { "long" }; - _methodName229 = "findByClassPk"; + _methodName208 = "findByClassPk"; - _methodParameterTypes229 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName230 = "findByIntPratica"; + _methodName209 = "findByIntPratica"; - _methodParameterTypes230 = new String[] { "long" }; + _methodParameterTypes209 = new String[] { "long" }; - _methodName231 = "countByIntPratica"; + _methodName210 = "countByIntPratica"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes210 = new String[] { "long" }; - _methodName232 = "findByIntPratica_Visible"; + _methodName211 = "findByIntPratica_Visible"; - _methodParameterTypes232 = new String[] { "long" }; + _methodParameterTypes211 = new String[] { "long" }; - _methodName233 = "countByIntPratica_Visible"; + _methodName212 = "countByIntPratica_Visible"; - _methodParameterTypes233 = new String[] { "long" }; + _methodParameterTypes212 = new String[] { "long" }; - _methodName235 = "sostituisciPagamento"; + _methodName214 = "sostituisciPagamento"; - _methodParameterTypes235 = new String[] { + _methodParameterTypes214 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName236 = "updatePagamentoManuale"; + _methodName215 = "updatePagamentoManuale"; - _methodParameterTypes236 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName237 = "updatePagamentoManualeFromImport"; + _methodName216 = "updatePagamentoManualeFromImport"; - _methodParameterTypes237 = new String[] { + _methodParameterTypes216 = new String[] { "long", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName238 = "fetchByOldPagamentoId"; - - _methodParameterTypes238 = new String[] { "long" }; + _methodName217 = "updateOtf"; - _methodName239 = "updateOtf"; - - _methodParameterTypes239 = new String[] { "long", "boolean" }; + _methodParameterTypes217 = new String[] { "long", "boolean" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -454,54 +445,52 @@ public class PagamentoLocalServiceClpInvoker { return PagamentoLocalServiceUtil.updatePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return PagamentoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { PagamentoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return PagamentoLocalServiceUtil.getPagamenti(); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return PagamentoLocalServiceUtil.createPagamentoId(); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamento((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (java.lang.String)arguments[5], (java.lang.String)arguments[6], ((Long)arguments[7]).longValue(), (java.lang.String)arguments[8], - ((Long)arguments[9]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[10]); + (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamentoAndUpdate((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (java.lang.String)arguments[5], (java.lang.String)arguments[6], ((Long)arguments[7]).longValue(), (java.lang.String)arguments[8], - ((Long)arguments[9]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[10]); + (com.liferay.portal.service.ServiceContext)arguments[9]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -509,12 +498,11 @@ public class PagamentoLocalServiceClpInvoker { (java.lang.String)arguments[7], ((Long)arguments[8]).longValue(), (java.lang.String)arguments[9], - ((Long)arguments[10]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[11]); + (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], @@ -522,100 +510,93 @@ public class PagamentoLocalServiceClpInvoker { (java.lang.String)arguments[7], ((Long)arguments[8]).longValue(), (java.lang.String)arguments[9], - ((Long)arguments[10]).longValue(), - (java.lang.String)arguments[11], - (java.util.List)arguments[12], - (com.liferay.portal.service.ServiceContext)arguments[13]); + (java.lang.String)arguments[10], + (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return PagamentoLocalServiceUtil.updatePagamentoUtilizzata(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return PagamentoLocalServiceUtil.annullaPagamento(((Long)arguments[0]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return PagamentoLocalServiceUtil.findByCommittente_Mezzo((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return PagamentoLocalServiceUtil.findByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return PagamentoLocalServiceUtil.countByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return PagamentoLocalServiceUtil.findByMezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { - return PagamentoLocalServiceUtil.findByOldPagamentoId(((Long)arguments[0]).longValue()); - } - - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0], (java.lang.String)arguments[1]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.util.Date)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), (java.util.Date)arguments[3]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), @@ -624,73 +605,73 @@ public class PagamentoLocalServiceClpInvoker { ((Integer)arguments[5]).intValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return PagamentoLocalServiceUtil.findInPending((java.util.Date)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0], (java.lang.String)arguments[1], (java.util.Date)arguments[2]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return PagamentoLocalServiceUtil.countByIntPratica_Visible(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { PagamentoLocalServiceUtil.sostituisciPagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -699,8 +680,8 @@ public class PagamentoLocalServiceClpInvoker { return null; } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], @@ -709,8 +690,8 @@ public class PagamentoLocalServiceClpInvoker { return null; } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { PagamentoLocalServiceUtil.updatePagamentoManualeFromImport(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (com.liferay.portal.service.ServiceContext)arguments[3]); @@ -718,13 +699,8 @@ public class PagamentoLocalServiceClpInvoker { return null; } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { - return PagamentoLocalServiceUtil.fetchByOldPagamentoId(((Long)arguments[0]).longValue()); - } - - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } @@ -772,26 +748,60 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; private String _methodName202; private String[] _methodParameterTypes202; private String _methodName203; private String[] _methodParameterTypes203; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; + private String _methodName204; + private String[] _methodParameterTypes204; private String _methodName207; private String[] _methodParameterTypes207; private String _methodName208; @@ -804,8 +814,6 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes211; private String _methodName212; private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; private String _methodName215; @@ -814,40 +822,4 @@ public class PagamentoLocalServiceClpInvoker { private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName222; - private String[] _methodParameterTypes222; - private String _methodName223; - private String[] _methodParameterTypes223; - private String _methodName224; - private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; - private String _methodName228; - private String[] _methodParameterTypes228; - private String _methodName229; - private String[] _methodParameterTypes229; - private String _methodName230; - private String[] _methodParameterTypes230; - private String _methodName231; - private String[] _methodParameterTypes231; - private String _methodName232; - private String[] _methodParameterTypes232; - private String _methodName233; - private String[] _methodParameterTypes233; - private String _methodName235; - private String[] _methodParameterTypes235; - private String _methodName236; - private String[] _methodParameterTypes236; - private String _methodName237; - private String[] _methodParameterTypes237; - private String _methodName238; - private String[] _methodParameterTypes238; - private String _methodName239; - private String[] _methodParameterTypes239; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java index 61944d28..5992168c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class PagamentoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java index 9fd8be20..d2552047 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java @@ -24,37 +24,37 @@ import java.util.Arrays; */ public class PagamentoServiceClpInvoker { public PagamentoServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "sostituisciPagamento"; + _methodName158 = "sostituisciPagamento"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes158 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "rigeneraPagamento"; + _methodName159 = "rigeneraPagamento"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes159 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName180 = "annullaPagamento"; + _methodName160 = "annullaPagamento"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes160 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName181 = "updatePagamentoManuale"; + _methodName161 = "updatePagamentoManuale"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes161 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -62,20 +62,20 @@ public class PagamentoServiceClpInvoker { public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return PagamentoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { PagamentoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { PagamentoServiceUtil.sostituisciPagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -84,8 +84,8 @@ public class PagamentoServiceClpInvoker { return null; } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { PagamentoServiceUtil.rigeneraPagamento(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -94,16 +94,16 @@ public class PagamentoServiceClpInvoker { return null; } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { PagamentoServiceUtil.annullaPagamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); return null; } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { PagamentoServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], @@ -115,16 +115,16 @@ public class PagamentoServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java index 7d34375f..18199550 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1160,63 +1156,6 @@ public abstract class ParereGeologoLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1292,62 +1231,6 @@ public abstract class ParereGeologoLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1575,81 +1458,6 @@ public abstract class ParereGeologoLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2137,12 +1945,6 @@ public abstract class ParereGeologoLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2151,12 +1953,6 @@ public abstract class ParereGeologoLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2181,14 +1977,6 @@ public abstract class ParereGeologoLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java index 9c2ab690..d3c3ef58 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java @@ -122,101 +122,105 @@ public class ParereGeologoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "addParereGeologo"; + _methodName178 = "addParereGeologo"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "updateParereGeologo"; + _methodName179 = "updateParereGeologo"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName200 = "deleteParereGeologo"; + _methodName180 = "deleteParereGeologo"; - _methodParameterTypes200 = new String[] { "long" }; + _methodParameterTypes180 = new String[] { "long" }; - _methodName201 = "deleteParereGeologo"; + _methodName181 = "deleteParereGeologo"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName202 = "updateParereGeologo"; + _methodName182 = "updateParereGeologo"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName203 = "remove"; + _methodName183 = "remove"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName204 = "findByIntPraticaId"; + _methodName184 = "findByIntPraticaId"; - _methodParameterTypes204 = new String[] { "long", "int", "int" }; + _methodParameterTypes184 = new String[] { "long", "int", "int" }; - _methodName205 = "countByIntPraticaId"; + _methodName185 = "countByIntPraticaId"; - _methodParameterTypes205 = new String[] { "long" }; + _methodParameterTypes185 = new String[] { "long" }; - _methodName206 = "findByIntPraticaIdParereVuoto"; + _methodName186 = "findByIntPraticaIdParereVuoto"; - _methodParameterTypes206 = new String[] { "long", "int", "int" }; + _methodParameterTypes186 = new String[] { "long", "int", "int" }; - _methodName207 = "countByIntPraticaIdParereVuoto"; + _methodName187 = "countByIntPraticaIdParereVuoto"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes187 = new String[] { "long" }; - _methodName208 = "findByIntPraticaId_GeologoId"; + _methodName188 = "findByIntPraticaId_GeologoId"; - _methodParameterTypes208 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes188 = new String[] { "long", "long", "int", "int" }; - _methodName209 = "countByIntPraticaId_GeologoId"; + _methodName189 = "countByIntPraticaId_GeologoId"; - _methodParameterTypes209 = new String[] { "long", "long" }; + _methodParameterTypes189 = new String[] { "long", "long" }; - _methodName210 = "findByGeologoId"; + _methodName190 = "findByGeologoId"; - _methodParameterTypes210 = new String[] { "long", "int", "int" }; + _methodParameterTypes190 = new String[] { "long", "int", "int" }; - _methodName211 = "findByCompanyIdGroupId"; + _methodName191 = "findByCompanyIdGroupId"; - _methodParameterTypes211 = new String[] { "long", "long" }; + _methodParameterTypes191 = new String[] { "long", "long" }; - _methodName212 = "countByGeologoId"; + _methodName192 = "countByGeologoId"; - _methodParameterTypes212 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { "long" }; - _methodName213 = "findNotParereByGeologoId"; + _methodName193 = "findNotParereByGeologoId"; - _methodParameterTypes213 = new String[] { "long", "int", "int" }; + _methodParameterTypes193 = new String[] { "long", "int", "int" }; - _methodName214 = "findWithParereByGeologoId"; + _methodName194 = "findWithParereByGeologoId"; - _methodParameterTypes214 = new String[] { "long", "int", "int" }; + _methodParameterTypes194 = new String[] { "long", "int", "int" }; - _methodName215 = "countFindNotParereByGeologoId"; + _methodName195 = "countFindNotParereByGeologoId"; - _methodParameterTypes215 = new String[] { "long" }; + _methodParameterTypes195 = new String[] { "long" }; - _methodName216 = "countFindWithParereByGeologoId"; + _methodName196 = "countFindWithParereByGeologoId"; - _methodParameterTypes216 = new String[] { "long" }; + _methodParameterTypes196 = new String[] { "long" }; + + _methodName197 = "getCarichiLavoro"; + + _methodParameterTypes197 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -332,134 +336,140 @@ public class ParereGeologoLocalServiceClpInvoker { return ParereGeologoLocalServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return ParereGeologoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { ParereGeologoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ParereGeologoLocalServiceUtil.addParereGeologo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return ParereGeologoLocalServiceUtil.updateParereGeologo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ParereGeologoLocalServiceUtil.deleteParereGeologo(((Long)arguments[0]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return ParereGeologoLocalServiceUtil.deleteParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return ParereGeologoLocalServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return ParereGeologoLocalServiceUtil.remove((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByIntPraticaIdParereVuoto(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaIdParereVuoto(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); } + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + return ParereGeologoLocalServiceUtil.getCarichiLavoro(((Long)arguments[0]).longValue(), + ((Integer)arguments[1]).intValue()); + } + throw new UnsupportedOperationException(); } @@ -503,46 +513,48 @@ public class ParereGeologoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; - private String _methodName215; - private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java index f1540b28..0e32b0df 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class ParereGeologoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java index ecde49a7..1ab7e2f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoServiceClpInvoker.java @@ -24,155 +24,155 @@ import java.util.Arrays; */ public class ParereGeologoServiceClpInvoker { public ParereGeologoServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "addParereGeologo"; + _methodName158 = "addParereGeologo"; - _methodParameterTypes178 = new String[] { + _methodParameterTypes158 = new String[] { "long", "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName179 = "updateParereGeologo"; + _methodName159 = "updateParereGeologo"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes159 = new String[] { "long", "java.lang.String", "byte[][]", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName180 = "deleteParereGeologo"; + _methodName160 = "deleteParereGeologo"; - _methodParameterTypes180 = new String[] { "long" }; + _methodParameterTypes160 = new String[] { "long" }; - _methodName181 = "updateParereGeologo"; + _methodName161 = "updateParereGeologo"; - _methodParameterTypes181 = new String[] { + _methodParameterTypes161 = new String[] { "it.tref.liferay.portos.bo.model.ParereGeologo" }; - _methodName182 = "findByIntPraticaId"; + _methodName162 = "findByIntPraticaId"; - _methodParameterTypes182 = new String[] { "long", "int", "int" }; + _methodParameterTypes162 = new String[] { "long", "int", "int" }; - _methodName183 = "findByIntPraticaId_GeologoId"; + _methodName163 = "findByIntPraticaId_GeologoId"; - _methodParameterTypes183 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes163 = new String[] { "long", "long", "int", "int" }; - _methodName184 = "countByIntPraticaId_GeologoId"; + _methodName164 = "countByIntPraticaId_GeologoId"; - _methodParameterTypes184 = new String[] { "long", "long" }; + _methodParameterTypes164 = new String[] { "long", "long" }; - _methodName185 = "findByGeologoId"; + _methodName165 = "findByGeologoId"; - _methodParameterTypes185 = new String[] { "long", "int", "int" }; + _methodParameterTypes165 = new String[] { "long", "int", "int" }; - _methodName186 = "countByGeologoId"; + _methodName166 = "countByGeologoId"; - _methodParameterTypes186 = new String[] { "long" }; + _methodParameterTypes166 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return ParereGeologoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { ParereGeologoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return ParereGeologoServiceUtil.addParereGeologo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[3]); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return ParereGeologoServiceUtil.updateParereGeologo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return ParereGeologoServiceUtil.deleteParereGeologo(((Long)arguments[0]).longValue()); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return ParereGeologoServiceUtil.updateParereGeologo((it.tref.liferay.portos.bo.model.ParereGeologo)arguments[0]); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return ParereGeologoServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { return ParereGeologoServiceUtil.findByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return ParereGeologoServiceUtil.countByIntPraticaId_GeologoId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return ParereGeologoServiceUtil.findByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return ParereGeologoServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); } throw new UnsupportedOperationException(); } - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; - private String _methodName181; - private String[] _methodParameterTypes181; - private String _methodName182; - private String[] _methodParameterTypes182; - private String _methodName183; - private String[] _methodParameterTypes183; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java index d578a77b..c7498848 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1099,63 +1095,6 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1231,62 +1170,6 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1514,81 +1397,6 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2038,12 +1846,6 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2052,12 +1854,6 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2082,14 +1878,6 @@ public abstract class ProvinciaLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java index c687d9b4..b726f89e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaLocalServiceClpInvoker.java @@ -106,83 +106,79 @@ public class ProvinciaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Provincia" }; - _methodName184 = "getBeanIdentifier"; + _methodName164 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes164 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName165 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes165 = new String[] { "java.lang.String" }; - _methodName190 = "getProvinceAttive"; + _methodName170 = "addProvincia"; - _methodParameterTypes190 = new String[] { }; - - _methodName191 = "addProvincia"; - - _methodParameterTypes191 = new String[] { + _methodParameterTypes170 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName192 = "findAll"; + _methodName171 = "findAll"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes171 = new String[] { "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName193 = "countByCompanyId"; + _methodName172 = "countByCompanyId"; - _methodParameterTypes193 = new String[] { "long" }; + _methodParameterTypes172 = new String[] { "long" }; - _methodName194 = "countByKeywords"; + _methodName173 = "countByKeywords"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes173 = new String[] { "long", "java.lang.String" }; - _methodName195 = "deleteProvincia"; + _methodName174 = "deleteProvincia"; - _methodParameterTypes195 = new String[] { "long" }; + _methodParameterTypes174 = new String[] { "long" }; - _methodName196 = "deleteProvincia"; + _methodName175 = "deleteProvincia"; - _methodParameterTypes196 = new String[] { + _methodParameterTypes175 = new String[] { "it.tref.liferay.portos.bo.model.Provincia" }; - _methodName197 = "fetchByC_C"; + _methodName176 = "fetchByC_C"; - _methodParameterTypes197 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes176 = new String[] { "long", "java.lang.String" }; - _methodName198 = "fetchByC_S"; + _methodName177 = "fetchByC_S"; - _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes177 = new String[] { "long", "java.lang.String" }; - _methodName199 = "findByCompanyId"; + _methodName178 = "findByCompanyId"; - _methodParameterTypes199 = new String[] { "long", "int", "int" }; + _methodParameterTypes178 = new String[] { "long", "int", "int" }; - _methodName200 = "findByCompanyId"; + _methodName179 = "findByCompanyId"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes179 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName201 = "findByC_C"; + _methodName180 = "findByC_C"; - _methodParameterTypes201 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes180 = new String[] { "long", "java.lang.String" }; - _methodName202 = "findByKeywords"; + _methodName181 = "findByKeywords"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes181 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName204 = "updateProvincia"; + _methodName183 = "updateProvincia"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes183 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -277,94 +273,89 @@ public class ProvinciaLocalServiceClpInvoker { return ProvinciaLocalServiceUtil.updateProvincia((it.tref.liferay.portos.bo.model.Provincia)arguments[0]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return ProvinciaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { ProvinciaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { - return ProvinciaLocalServiceUtil.getProvinceAttive(); - } - - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return ProvinciaLocalServiceUtil.addProvincia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4], (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return ProvinciaLocalServiceUtil.findAll(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[2]); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return ProvinciaLocalServiceUtil.countByCompanyId(((Long)arguments[0]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return ProvinciaLocalServiceUtil.countByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return ProvinciaLocalServiceUtil.deleteProvincia(((Long)arguments[0]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return ProvinciaLocalServiceUtil.deleteProvincia((it.tref.liferay.portos.bo.model.Provincia)arguments[0]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return ProvinciaLocalServiceUtil.fetchByC_C(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return ProvinciaLocalServiceUtil.fetchByC_S(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return ProvinciaLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return ProvinciaLocalServiceUtil.findByCompanyId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return ProvinciaLocalServiceUtil.findByC_C(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return ProvinciaLocalServiceUtil.findByKeywords(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -372,8 +363,8 @@ public class ProvinciaLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return ProvinciaLocalServiceUtil.updateProvincia(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -416,36 +407,34 @@ public class ProvinciaLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName204; - private String[] _methodParameterTypes204; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName183; + private String[] _methodParameterTypes183; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java index 7684079a..78d8b13f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class ProvinciaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java index 622ec89e..f5a2d000 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ProvinciaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class ProvinciaServiceClpInvoker { public ProvinciaServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return ProvinciaServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { ProvinciaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class ProvinciaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java index cf5dc717..8ac398ee 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1155,63 +1151,6 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1287,62 +1226,6 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1570,81 +1453,6 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2132,12 +1940,6 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2146,12 +1948,6 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2176,14 +1972,6 @@ public abstract class SoggettoLocalServiceBaseImpl extends BaseLocalServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java index dc117ec9..fee30c73 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoLocalServiceClpInvoker.java @@ -122,17 +122,17 @@ public class SoggettoLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName192 = "getBeanIdentifier"; + _methodName172 = "getBeanIdentifier"; - _methodParameterTypes192 = new String[] { }; + _methodParameterTypes172 = new String[] { }; - _methodName193 = "setBeanIdentifier"; + _methodName173 = "setBeanIdentifier"; - _methodParameterTypes193 = new String[] { "java.lang.String" }; + _methodParameterTypes173 = new String[] { "java.lang.String" }; - _methodName198 = "addSoggetto"; + _methodName178 = "addSoggetto"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -149,12 +149,12 @@ public class SoggettoLocalServiceClpInvoker { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", "java.util.Date", "long", - "long", "boolean", "com.liferay.portal.service.ServiceContext" + "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName199 = "addSoggettoValidatedByFile"; + _methodName179 = "addSoggettoValidatedByFile"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -171,13 +171,13 @@ public class SoggettoLocalServiceClpInvoker { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", "java.util.Date", "long", - "long", "byte[][]", "java.lang.String", "java.lang.String", - "boolean", "com.liferay.portal.service.ServiceContext" + "byte[][]", "java.lang.String", "java.lang.String", "boolean", + "com.liferay.portal.service.ServiceContext" }; - _methodName200 = "addSoggettoForImport"; + _methodName180 = "addSoggettoForImport"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes180 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -192,31 +192,31 @@ public class SoggettoLocalServiceClpInvoker { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", - "java.lang.String", "long", "long", "java.util.Date", "long", - "boolean", "com.liferay.portal.service.ServiceContext" + "java.lang.String", "long", "long", "java.util.Date", "boolean", + "com.liferay.portal.service.ServiceContext" }; - _methodName201 = "cloneSoggetto"; + _methodName181 = "cloneSoggetto"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "long", "long", "long", "it.tref.liferay.portos.bo.model.Soggetto", "com.liferay.portal.service.ServiceContext" }; - _methodName202 = "deleteSoggetto"; + _methodName182 = "deleteSoggetto"; - _methodParameterTypes202 = new String[] { + _methodParameterTypes182 = new String[] { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName203 = "deleteSoggetto"; + _methodName183 = "deleteSoggetto"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName204 = "updateSoggetto"; + _methodName184 = "updateSoggetto"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", @@ -233,13 +233,13 @@ public class SoggettoLocalServiceClpInvoker { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", - "java.util.Date", "long", "long", "boolean", + "java.util.Date", "long", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName205 = "updateSoggettoValidatedByFile"; + _methodName185 = "updateSoggettoValidatedByFile"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", @@ -256,341 +256,337 @@ public class SoggettoLocalServiceClpInvoker { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", - "java.util.Date", "long", "long", "byte[][]", "java.lang.String", + "java.util.Date", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName206 = "fetchByOldSoggettId"; - - _methodParameterTypes206 = new String[] { "long" }; + _methodName186 = "findByIntPratica"; - _methodName207 = "findByIntPratica"; - - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes186 = new String[] { "long" }; - _methodName208 = "countByIntPratica"; + _methodName187 = "countByIntPratica"; - _methodParameterTypes208 = new String[] { "long" }; + _methodParameterTypes187 = new String[] { "long" }; - _methodName209 = "findByDettPratica"; + _methodName188 = "findByDettPratica"; - _methodParameterTypes209 = new String[] { "long" }; + _methodParameterTypes188 = new String[] { "long" }; - _methodName210 = "countByDettPratica"; + _methodName189 = "countByDettPratica"; - _methodParameterTypes210 = new String[] { "long" }; + _methodParameterTypes189 = new String[] { "long" }; - _methodName211 = "findByDettPratica_CodiceFiscale"; + _methodName190 = "findByDettPratica_CodiceFiscale"; - _methodParameterTypes211 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes190 = new String[] { "long", "java.lang.String" }; - _methodName212 = "findByDettPratica_CodiceFiscale_Rimosso"; + _methodName191 = "findByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes191 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName213 = "countByDettPratica_CodiceFiscale"; + _methodName192 = "countByDettPratica_CodiceFiscale"; - _methodParameterTypes213 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes192 = new String[] { "long", "java.lang.String" }; - _methodName214 = "countByDettPratica_CodiceFiscale_Rimosso"; + _methodName193 = "countByDettPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes193 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName215 = "findByIntPratica_CodiceFiscale"; + _methodName194 = "findByIntPratica_CodiceFiscale"; - _methodParameterTypes215 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; - _methodName216 = "findByIntPratica_CodiceFiscale_Rimosso"; + _methodName195 = "findByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes195 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName217 = "countByIntPratica_CodiceFiscale"; + _methodName196 = "countByIntPratica_CodiceFiscale"; - _methodParameterTypes217 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes196 = new String[] { "long", "java.lang.String" }; - _methodName218 = "countByIntPratica_CodiceFiscale_Rimosso"; + _methodName197 = "countByIntPratica_CodiceFiscale_Rimosso"; - _methodParameterTypes218 = new String[] { + _methodParameterTypes197 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName219 = "findByIntPratica_TipologiaSoggetto"; + _methodName198 = "findByIntPratica_TipologiaSoggetto"; - _methodParameterTypes219 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes198 = new String[] { "long", "java.lang.String" }; - _methodName220 = "findByDettPratica_TipologiaSoggetto"; + _methodName199 = "findByDettPratica_TipologiaSoggetto"; - _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; - _methodName221 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; + _methodName200 = "findByDettPratica_TipologiaSoggetto_CodiceFiscale"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes200 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName222 = "findByIntPratica_TipologiaSoggetto_Rimosso"; + _methodName201 = "findByIntPratica_TipologiaSoggetto_Rimosso"; - _methodParameterTypes222 = new String[] { + _methodParameterTypes201 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName223 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; + _methodName202 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; - _methodParameterTypes223 = new String[] { + _methodParameterTypes202 = new String[] { "long", "java.lang.String", "long" }; - _methodName224 = "getValidByIntPratica"; + _methodName203 = "getValidByIntPratica"; - _methodParameterTypes224 = new String[] { "long" }; + _methodParameterTypes203 = new String[] { "long" }; - _methodName225 = "getValidByDettPratica"; + _methodName204 = "getValidByDettPratica"; - _methodParameterTypes225 = new String[] { "long" }; + _methodParameterTypes204 = new String[] { "long" }; - _methodName226 = "countValidByIntPratica"; + _methodName205 = "countValidByIntPratica"; - _methodParameterTypes226 = new String[] { "long" }; + _methodParameterTypes205 = new String[] { "long" }; - _methodName228 = "getValidTmpByIntPratica"; + _methodName207 = "getValidTmpByIntPratica"; - _methodParameterTypes228 = new String[] { "long" }; + _methodParameterTypes207 = new String[] { "long" }; - _methodName229 = "countValidTmpByIntPratica"; + _methodName208 = "countValidTmpByIntPratica"; - _methodParameterTypes229 = new String[] { "long" }; + _methodParameterTypes208 = new String[] { "long" }; - _methodName231 = "getTmpNotCompletedByDettPratica"; + _methodName210 = "getTmpNotCompletedByDettPratica"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes210 = new String[] { "long" }; - _methodName232 = "countTmpNotCompletedByDettPratica"; + _methodName211 = "countTmpNotCompletedByDettPratica"; - _methodParameterTypes232 = new String[] { "long" }; + _methodParameterTypes211 = new String[] { "long" }; - _methodName234 = "getSoggettiPrincipaliValidTmpByDettPratica"; + _methodName213 = "getSoggettiPrincipaliValidTmpByDettPratica"; - _methodParameterTypes234 = new String[] { "long" }; + _methodParameterTypes213 = new String[] { "long" }; - _methodName235 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName214 = "getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes235 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes214 = new String[] { "long", "java.lang.String[][]" }; - _methodName236 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName215 = "countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes236 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes215 = new String[] { "long", "java.lang.String[][]" }; - _methodName237 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; + _methodName216 = "getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes237 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes216 = new String[] { "long", "java.lang.String[][]" }; - _methodName239 = "getValidTmpByDettPratica"; + _methodName218 = "getValidTmpByDettPratica"; - _methodParameterTypes239 = new String[] { "long" }; + _methodParameterTypes218 = new String[] { "long" }; - _methodName240 = "getCfValidTmpByDettPratica"; + _methodName219 = "getCfValidTmpByDettPratica"; - _methodParameterTypes240 = new String[] { "long" }; + _methodParameterTypes219 = new String[] { "long" }; - _methodName241 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; + _methodName220 = "getCfValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes241 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes220 = new String[] { "long", "java.lang.String" }; - _methodName242 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; + _methodName221 = "getCfValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes221 = new String[] { "long", "java.lang.String" }; - _methodName243 = "countCfValidTmpByDettPratica"; + _methodName222 = "countCfValidTmpByDettPratica"; - _methodParameterTypes243 = new String[] { "long" }; + _methodParameterTypes222 = new String[] { "long" }; - _methodName245 = "getValidTmpByIntPratica_CodiceFiscale"; + _methodName224 = "getValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes224 = new String[] { "long", "java.lang.String", "long" }; - _methodName246 = "countValidTmpByIntPratica_CodiceFiscale"; + _methodName225 = "countValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes225 = new String[] { "long", "java.lang.String", "long" }; - _methodName247 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName226 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes247 = new String[] { + _methodParameterTypes226 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName248 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName227 = "getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes227 = new String[] { "long", "java.lang.String", "java.lang.String", "long" }; - _methodName250 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; + _methodName229 = "getValidByIntPratica_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes250 = new String[] { + _methodParameterTypes229 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName251 = "getValidByIntPratica_CodiceFiscale"; + _methodName230 = "getValidByIntPratica_CodiceFiscale"; - _methodParameterTypes251 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes230 = new String[] { "long", "java.lang.String" }; - _methodName252 = "getValidByIntPratica_NoCodiceFiscale"; + _methodName231 = "getValidByIntPratica_NoCodiceFiscale"; - _methodParameterTypes252 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes231 = new String[] { "long", "java.lang.String" }; - _methodName253 = "countValidByIntPratica_CodiceFiscale"; + _methodName232 = "countValidByIntPratica_CodiceFiscale"; - _methodParameterTypes253 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes232 = new String[] { "long", "java.lang.String" }; - _methodName255 = "getValidByIntPratica_TipologiaSoggetto"; + _methodName234 = "getValidByIntPratica_TipologiaSoggetto"; - _methodParameterTypes255 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes234 = new String[] { "long", "java.lang.String" }; - _methodName256 = "getValidTmpByIntPratica_TipologiaSoggetto"; + _methodName235 = "getValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes256 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes235 = new String[] { "long", "java.lang.String" }; - _methodName257 = "getValidTmpByDettPratica_TipologiaSoggetto"; + _methodName236 = "getValidTmpByDettPratica_TipologiaSoggetto"; - _methodParameterTypes257 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes236 = new String[] { "long", "java.lang.String" }; - _methodName258 = "getCfValidByIntPratica"; + _methodName237 = "getCfValidByIntPratica"; - _methodParameterTypes258 = new String[] { "long" }; + _methodParameterTypes237 = new String[] { "long" }; - _methodName260 = "getValidByIntPratica_CodiciFiscali"; + _methodName239 = "getValidByIntPratica_CodiciFiscali"; - _methodParameterTypes260 = new String[] { "long", "java.util.List" }; + _methodParameterTypes239 = new String[] { "long", "java.util.List" }; - _methodName261 = "getInvalidByIntPratica"; + _methodName240 = "getInvalidByIntPratica"; - _methodParameterTypes261 = new String[] { "long" }; + _methodParameterTypes240 = new String[] { "long" }; - _methodName262 = "getInvalidTmpByIntPratica"; + _methodName241 = "getInvalidTmpByIntPratica"; - _methodParameterTypes262 = new String[] { "long" }; + _methodParameterTypes241 = new String[] { "long" }; - _methodName263 = "getRivalidatedTmpByIntPratica"; + _methodName242 = "getRivalidatedTmpByIntPratica"; - _methodParameterTypes263 = new String[] { "long" }; + _methodParameterTypes242 = new String[] { "long" }; - _methodName264 = "getValidUntilDettPraticaByIntPratica"; + _methodName243 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes264 = new String[] { "long", "long" }; + _methodParameterTypes243 = new String[] { "long", "long" }; - _methodName265 = "getValidUntilDettPraticaByIntPratica"; + _methodName244 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes265 = new String[] { + _methodParameterTypes244 = new String[] { "long", "long", "java.lang.String" }; - _methodName266 = "countValidUntilDettPraticaByIntPratica"; + _methodName245 = "countValidUntilDettPraticaByIntPratica"; - _methodParameterTypes266 = new String[] { "long", "long" }; + _methodParameterTypes245 = new String[] { "long", "long" }; - _methodName268 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; + _methodName247 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo"; - _methodParameterTypes268 = new String[] { + _methodParameterTypes247 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName269 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName248 = "findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes269 = new String[] { + _methodParameterTypes248 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName270 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; + _methodName249 = "findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso"; - _methodParameterTypes270 = new String[] { + _methodParameterTypes249 = new String[] { "long", "java.lang.String", "boolean", "boolean" }; - _methodName271 = "findByUserId"; + _methodName250 = "findByUserId"; - _methodParameterTypes271 = new String[] { "long" }; + _methodParameterTypes250 = new String[] { "long" }; - _methodName272 = "findByUserId"; + _methodName251 = "findByUserId"; - _methodParameterTypes272 = new String[] { + _methodParameterTypes251 = new String[] { "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName273 = "findByUserId_CodiceFiscale"; + _methodName252 = "findByUserId_CodiceFiscale"; - _methodParameterTypes273 = new String[] { + _methodParameterTypes252 = new String[] { "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName274 = "countByUserId_CodiceFiscale"; + _methodName253 = "countByUserId_CodiceFiscale"; - _methodParameterTypes274 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes253 = new String[] { "long", "java.lang.String" }; - _methodName275 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName254 = "findByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes275 = new String[] { + _methodParameterTypes254 = new String[] { "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName276 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; + _methodName255 = "countByUserId_CodiceFiscale_TipologiaSoggetto"; - _methodParameterTypes276 = new String[] { + _methodParameterTypes255 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName277 = "findIntPraticaBySoggettoId"; + _methodName256 = "findIntPraticaBySoggettoId"; - _methodParameterTypes277 = new String[] { "long" }; + _methodParameterTypes256 = new String[] { "long" }; - _methodName278 = "updatePrincipale"; + _methodName257 = "updatePrincipale"; - _methodParameterTypes278 = new String[] { + _methodParameterTypes257 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName279 = "completeInvalidation"; + _methodName258 = "completeInvalidation"; - _methodParameterTypes279 = new String[] { "long" }; + _methodParameterTypes258 = new String[] { "long" }; - _methodName280 = "getSoggettiSostituitiIds"; + _methodName259 = "getSoggettiSostituitiIds"; - _methodParameterTypes280 = new String[] { "long" }; + _methodParameterTypes259 = new String[] { "long" }; - _methodName281 = "validaSoggetto"; + _methodName260 = "validaSoggetto"; - _methodParameterTypes281 = new String[] { "long", "long" }; + _methodParameterTypes260 = new String[] { "long", "long" }; - _methodName282 = "invalidaSoggetto"; + _methodName261 = "invalidaSoggetto"; - _methodParameterTypes282 = new String[] { "long", "long" }; + _methodParameterTypes261 = new String[] { "long", "long" }; - _methodName283 = "invalidaESostituisciSoggetto"; + _methodName262 = "invalidaESostituisciSoggetto"; - _methodParameterTypes283 = new String[] { "long", "long", "long" }; + _methodParameterTypes262 = new String[] { "long", "long", "long" }; - _methodName284 = "allegaFileModifica"; + _methodName263 = "allegaFileModifica"; - _methodParameterTypes284 = new String[] { + _methodParameterTypes263 = new String[] { "long", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName285 = "getSoggettiByIntPraticaId_DtRimozioneNull"; + _methodName264 = "getSoggettiByIntPraticaId_DtRimozioneNull"; - _methodParameterTypes285 = new String[] { "long" }; + _methodParameterTypes264 = new String[] { "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -706,20 +702,20 @@ public class SoggettoLocalServiceClpInvoker { return SoggettoLocalServiceUtil.updateSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return SoggettoLocalServiceUtil.getBeanIdentifier(); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { SoggettoLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return SoggettoLocalServiceUtil.addSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -769,13 +765,12 @@ public class SoggettoLocalServiceClpInvoker { ((Long)arguments[50]).longValue(), (java.util.Date)arguments[51], ((Long)arguments[52]).longValue(), - ((Long)arguments[53]).longValue(), - ((Boolean)arguments[54]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[55]); + ((Boolean)arguments[53]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[54]); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return SoggettoLocalServiceUtil.addSoggettoValidatedByFile(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -824,16 +819,15 @@ public class SoggettoLocalServiceClpInvoker { ((Long)arguments[49]).longValue(), ((Long)arguments[50]).longValue(), (java.util.Date)arguments[51], - ((Long)arguments[52]).longValue(), - ((Long)arguments[53]).longValue(), (byte[])arguments[54], + ((Long)arguments[52]).longValue(), (byte[])arguments[53], + (java.lang.String)arguments[54], (java.lang.String)arguments[55], - (java.lang.String)arguments[56], - ((Boolean)arguments[57]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[58]); + ((Boolean)arguments[56]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[57]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return SoggettoLocalServiceUtil.addSoggettoForImport(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -879,13 +873,12 @@ public class SoggettoLocalServiceClpInvoker { ((Long)arguments[46]).longValue(), ((Long)arguments[47]).longValue(), (java.util.Date)arguments[48], - ((Long)arguments[49]).longValue(), - ((Boolean)arguments[50]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[51]); + ((Boolean)arguments[49]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[50]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return SoggettoLocalServiceUtil.cloneSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -893,18 +886,18 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return SoggettoLocalServiceUtil.deleteSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return SoggettoLocalServiceUtil.deleteSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return SoggettoLocalServiceUtil.updateSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -955,13 +948,12 @@ public class SoggettoLocalServiceClpInvoker { ((Long)arguments[51]).longValue(), (java.util.Date)arguments[52], ((Long)arguments[53]).longValue(), - ((Long)arguments[54]).longValue(), - ((Boolean)arguments[55]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[56]); + ((Boolean)arguments[54]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[55]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return SoggettoLocalServiceUtil.updateSoggettoValidatedByFile(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -1011,355 +1003,349 @@ public class SoggettoLocalServiceClpInvoker { ((Long)arguments[50]).longValue(), ((Long)arguments[51]).longValue(), (java.util.Date)arguments[52], - ((Long)arguments[53]).longValue(), - ((Long)arguments[54]).longValue(), (byte[])arguments[55], + ((Long)arguments[53]).longValue(), (byte[])arguments[54], + (java.lang.String)arguments[55], (java.lang.String)arguments[56], - (java.lang.String)arguments[57], - (com.liferay.portal.service.ServiceContext)arguments[58]); + (com.liferay.portal.service.ServiceContext)arguments[57]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { - return SoggettoLocalServiceUtil.fetchByOldSoggettId(((Long)arguments[0]).longValue()); - } - - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return SoggettoLocalServiceUtil.countByDettPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName197.equals(name) && + Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { return SoggettoLocalServiceUtil.countByIntPratica_CodiceFiscale_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName198.equals(name) && + Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName222.equals(name) && - Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName204.equals(name) && + Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName205.equals(name) && + Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { return SoggettoLocalServiceUtil.countValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { return SoggettoLocalServiceUtil.countValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return SoggettoLocalServiceUtil.getTmpNotCompletedByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return SoggettoLocalServiceUtil.countTmpNotCompletedByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiPrincipaliValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return SoggettoLocalServiceUtil.countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return SoggettoLocalServiceUtil.getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName219.equals(name) && + Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return SoggettoLocalServiceUtil.countCfValidTmpByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return SoggettoLocalServiceUtil.countValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue()); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_NoCodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return SoggettoLocalServiceUtil.getValidTmpByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return SoggettoLocalServiceUtil.getCfValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return SoggettoLocalServiceUtil.getValidByIntPratica_CodiciFiscali(((Long)arguments[0]).longValue(), (java.util.List)arguments[1]); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return SoggettoLocalServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return SoggettoLocalServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return SoggettoLocalServiceUtil.getRivalidatedTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return SoggettoLocalServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return SoggettoLocalServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return SoggettoLocalServiceUtil.countValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName268.equals(name) && - Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto_Aggiuntivo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName270.equals(name) && - Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return SoggettoLocalServiceUtil.findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName271.equals(name) && - Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId(((Long)arguments[0]).longValue()); } - if (_methodName272.equals(name) && - Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } - if (_methodName273.equals(name) && - Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), @@ -1367,14 +1353,14 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName274.equals(name) && - Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { return SoggettoLocalServiceUtil.countByUserId_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName275.equals(name) && - Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return SoggettoLocalServiceUtil.findByUserId_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), @@ -1382,58 +1368,58 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { return SoggettoLocalServiceUtil.countByUserId_CodiceFiscale_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return SoggettoLocalServiceUtil.findIntPraticaBySoggettoId(((Long)arguments[0]).longValue()); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { SoggettoLocalServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); return null; } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { SoggettoLocalServiceUtil.completeInvalidation(((Long)arguments[0]).longValue()); return null; } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiSostituitiIds(((Long)arguments[0]).longValue()); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return SoggettoLocalServiceUtil.validaSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { return SoggettoLocalServiceUtil.invalidaSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName283.equals(name) && - Arrays.deepEquals(_methodParameterTypes283, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return SoggettoLocalServiceUtil.invalidaESostituisciSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); } - if (_methodName284.equals(name) && - Arrays.deepEquals(_methodParameterTypes284, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return SoggettoLocalServiceUtil.allegaFileModifica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (byte[])arguments[3], @@ -1441,8 +1427,8 @@ public class SoggettoLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[6]); } - if (_methodName285.equals(name) && - Arrays.deepEquals(_methodParameterTypes285, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return SoggettoLocalServiceUtil.getSoggettiByIntPraticaId_DtRimozioneNull(((Long)arguments[0]).longValue()); } @@ -1489,10 +1475,50 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; + private String _methodName188; + private String[] _methodParameterTypes188; + private String _methodName189; + private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; private String _methodName192; private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; + private String _methodName196; + private String[] _methodParameterTypes196; + private String _methodName197; + private String[] _methodParameterTypes197; private String _methodName198; private String[] _methodParameterTypes198; private String _methodName199; @@ -1509,20 +1535,14 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes204; private String _methodName205; private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; private String _methodName207; private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; private String _methodName210; private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; private String _methodName213; private String[] _methodParameterTypes213; private String _methodName214; @@ -1531,8 +1551,6 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; private String _methodName219; @@ -1543,18 +1561,18 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes221; private String _methodName222; private String[] _methodParameterTypes222; - private String _methodName223; - private String[] _methodParameterTypes223; private String _methodName224; private String[] _methodParameterTypes224; private String _methodName225; private String[] _methodParameterTypes225; private String _methodName226; private String[] _methodParameterTypes226; - private String _methodName228; - private String[] _methodParameterTypes228; + private String _methodName227; + private String[] _methodParameterTypes227; private String _methodName229; private String[] _methodParameterTypes229; + private String _methodName230; + private String[] _methodParameterTypes230; private String _methodName231; private String[] _methodParameterTypes231; private String _methodName232; @@ -1577,14 +1595,16 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes242; private String _methodName243; private String[] _methodParameterTypes243; + private String _methodName244; + private String[] _methodParameterTypes244; private String _methodName245; private String[] _methodParameterTypes245; - private String _methodName246; - private String[] _methodParameterTypes246; private String _methodName247; private String[] _methodParameterTypes247; private String _methodName248; private String[] _methodParameterTypes248; + private String _methodName249; + private String[] _methodParameterTypes249; private String _methodName250; private String[] _methodParameterTypes250; private String _methodName251; @@ -1593,6 +1613,8 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes252; private String _methodName253; private String[] _methodParameterTypes253; + private String _methodName254; + private String[] _methodParameterTypes254; private String _methodName255; private String[] _methodParameterTypes255; private String _methodName256; @@ -1601,6 +1623,8 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes257; private String _methodName258; private String[] _methodParameterTypes258; + private String _methodName259; + private String[] _methodParameterTypes259; private String _methodName260; private String[] _methodParameterTypes260; private String _methodName261; @@ -1611,44 +1635,4 @@ public class SoggettoLocalServiceClpInvoker { private String[] _methodParameterTypes263; private String _methodName264; private String[] _methodParameterTypes264; - private String _methodName265; - private String[] _methodParameterTypes265; - private String _methodName266; - private String[] _methodParameterTypes266; - private String _methodName268; - private String[] _methodParameterTypes268; - private String _methodName269; - private String[] _methodParameterTypes269; - private String _methodName270; - private String[] _methodParameterTypes270; - private String _methodName271; - private String[] _methodParameterTypes271; - private String _methodName272; - private String[] _methodParameterTypes272; - private String _methodName273; - private String[] _methodParameterTypes273; - private String _methodName274; - private String[] _methodParameterTypes274; - private String _methodName275; - private String[] _methodParameterTypes275; - private String _methodName276; - private String[] _methodParameterTypes276; - private String _methodName277; - private String[] _methodParameterTypes277; - private String _methodName278; - private String[] _methodParameterTypes278; - private String _methodName279; - private String[] _methodParameterTypes279; - private String _methodName280; - private String[] _methodParameterTypes280; - private String _methodName281; - private String[] _methodParameterTypes281; - private String _methodName282; - private String[] _methodParameterTypes282; - private String _methodName283; - private String[] _methodParameterTypes283; - private String _methodName284; - private String[] _methodParameterTypes284; - private String _methodName285; - private String[] _methodParameterTypes285; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java index ab7d0ba3..bff740a8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1841,12 +1649,6 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1855,12 +1657,6 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1885,14 +1681,6 @@ public abstract class SoggettoServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java index 488bc4f7..b4fb6109 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SoggettoServiceClpInvoker.java @@ -24,21 +24,21 @@ import java.util.Arrays; */ public class SoggettoServiceClpInvoker { public SoggettoServiceClpInvoker() { - _methodName172 = "getBeanIdentifier"; + _methodName152 = "getBeanIdentifier"; - _methodParameterTypes172 = new String[] { }; + _methodParameterTypes152 = new String[] { }; - _methodName173 = "setBeanIdentifier"; + _methodName153 = "setBeanIdentifier"; - _methodParameterTypes173 = new String[] { "java.lang.String" }; + _methodParameterTypes153 = new String[] { "java.lang.String" }; - _methodName178 = "getSoggetto"; + _methodName158 = "getSoggetto"; - _methodParameterTypes178 = new String[] { "long" }; + _methodParameterTypes158 = new String[] { "long" }; - _methodName179 = "addSoggetto"; + _methodName159 = "addSoggetto"; - _methodParameterTypes179 = new String[] { + _methodParameterTypes159 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "java.lang.String", @@ -55,22 +55,22 @@ public class SoggettoServiceClpInvoker { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", "java.util.Date", "long", - "long", "boolean", "com.liferay.portal.service.ServiceContext" + "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName180 = "deleteSoggetto"; + _methodName160 = "deleteSoggetto"; - _methodParameterTypes180 = new String[] { + _methodParameterTypes160 = new String[] { "it.tref.liferay.portos.bo.model.Soggetto" }; - _methodName181 = "deleteSoggetto"; + _methodName161 = "deleteSoggetto"; - _methodParameterTypes181 = new String[] { "long" }; + _methodParameterTypes161 = new String[] { "long" }; - _methodName182 = "updateSoggetto"; + _methodName162 = "updateSoggetto"; - _methodParameterTypes182 = new String[] { + _methodParameterTypes162 = new String[] { "long", "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", @@ -87,113 +87,113 @@ public class SoggettoServiceClpInvoker { "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean", "java.lang.String", "java.lang.String", "long", "long", - "java.util.Date", "long", "long", "boolean", + "java.util.Date", "long", "boolean", "com.liferay.portal.service.ServiceContext" }; - _methodName183 = "updatePrincipale"; + _methodName163 = "updatePrincipale"; - _methodParameterTypes183 = new String[] { + _methodParameterTypes163 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName184 = "findByIntPratica_TipologiaSoggetto"; + _methodName164 = "findByIntPratica_TipologiaSoggetto"; - _methodParameterTypes184 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes164 = new String[] { "long", "java.lang.String" }; - _methodName185 = "findByDettPratica_TipologiaSoggetto"; + _methodName165 = "findByDettPratica_TipologiaSoggetto"; - _methodParameterTypes185 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes165 = new String[] { "long", "java.lang.String" }; - _methodName186 = "findByIntPratica_TipologiaSoggetto_Rimosso"; + _methodName166 = "findByIntPratica_TipologiaSoggetto_Rimosso"; - _methodParameterTypes186 = new String[] { + _methodParameterTypes166 = new String[] { "long", "java.lang.String", "boolean" }; - _methodName187 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; + _methodName167 = "findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione"; - _methodParameterTypes187 = new String[] { + _methodParameterTypes167 = new String[] { "long", "java.lang.String", "long" }; - _methodName188 = "getValidByIntPratica"; + _methodName168 = "getValidByIntPratica"; - _methodParameterTypes188 = new String[] { "long" }; + _methodParameterTypes168 = new String[] { "long" }; - _methodName189 = "countValidByIntPratica"; + _methodName169 = "countValidByIntPratica"; - _methodParameterTypes189 = new String[] { "long" }; + _methodParameterTypes169 = new String[] { "long" }; - _methodName190 = "getValidTmpByIntPratica"; + _methodName170 = "getValidTmpByIntPratica"; - _methodParameterTypes190 = new String[] { "long" }; + _methodParameterTypes170 = new String[] { "long" }; - _methodName191 = "countValidTmpByIntPratica"; + _methodName171 = "countValidTmpByIntPratica"; - _methodParameterTypes191 = new String[] { "long" }; + _methodParameterTypes171 = new String[] { "long" }; - _methodName192 = "getValidTmpByIntPratica_CodiceFiscale"; + _methodName172 = "getValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes192 = new String[] { + _methodParameterTypes172 = new String[] { "long", "java.lang.String", "long" }; - _methodName193 = "countValidTmpByIntPratica_CodiceFiscale"; + _methodName173 = "countValidTmpByIntPratica_CodiceFiscale"; - _methodParameterTypes193 = new String[] { + _methodParameterTypes173 = new String[] { "long", "java.lang.String", "long" }; - _methodName194 = "getValidByIntPratica_TipologiaSoggetto"; + _methodName174 = "getValidByIntPratica_TipologiaSoggetto"; - _methodParameterTypes194 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes174 = new String[] { "long", "java.lang.String" }; - _methodName195 = "getValidTmpByIntPratica_TipologiaSoggetto"; + _methodName175 = "getValidTmpByIntPratica_TipologiaSoggetto"; - _methodParameterTypes195 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes175 = new String[] { "long", "java.lang.String" }; - _methodName196 = "getInvalidByIntPratica"; + _methodName176 = "getInvalidByIntPratica"; - _methodParameterTypes196 = new String[] { "long" }; + _methodParameterTypes176 = new String[] { "long" }; - _methodName197 = "getInvalidTmpByIntPratica"; + _methodName177 = "getInvalidTmpByIntPratica"; - _methodParameterTypes197 = new String[] { "long" }; + _methodParameterTypes177 = new String[] { "long" }; - _methodName198 = "getValidUntilDettPraticaByIntPratica"; + _methodName178 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes198 = new String[] { "long", "long" }; + _methodParameterTypes178 = new String[] { "long", "long" }; - _methodName199 = "getValidUntilDettPraticaByIntPratica"; + _methodName179 = "getValidUntilDettPraticaByIntPratica"; - _methodParameterTypes199 = new String[] { + _methodParameterTypes179 = new String[] { "long", "long", "java.lang.String" }; - _methodName200 = "countValidUntilDettPraticaByIntPratica"; + _methodName180 = "countValidUntilDettPraticaByIntPratica"; - _methodParameterTypes200 = new String[] { "long", "long" }; + _methodParameterTypes180 = new String[] { "long", "long" }; - _methodName201 = "findByIntPratica"; + _methodName181 = "findByIntPratica"; - _methodParameterTypes201 = new String[] { "long" }; + _methodParameterTypes181 = new String[] { "long" }; - _methodName202 = "countByIntPratica"; + _methodName182 = "countByIntPratica"; - _methodParameterTypes202 = new String[] { "long" }; + _methodParameterTypes182 = new String[] { "long" }; - _methodName203 = "findByDettPratica"; + _methodName183 = "findByDettPratica"; - _methodParameterTypes203 = new String[] { "long" }; + _methodParameterTypes183 = new String[] { "long" }; - _methodName204 = "countByDettPratica"; + _methodName184 = "countByDettPratica"; - _methodParameterTypes204 = new String[] { "long" }; + _methodParameterTypes184 = new String[] { "long" }; - _methodName205 = "allegaFileModifica"; + _methodName185 = "allegaFileModifica"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "long", "long", "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; @@ -201,25 +201,25 @@ public class SoggettoServiceClpInvoker { public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { + if (_methodName152.equals(name) && + Arrays.deepEquals(_methodParameterTypes152, parameterTypes)) { return SoggettoServiceUtil.getBeanIdentifier(); } - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { + if (_methodName153.equals(name) && + Arrays.deepEquals(_methodParameterTypes153, parameterTypes)) { SoggettoServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return SoggettoServiceUtil.getSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return SoggettoServiceUtil.addSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -269,23 +269,22 @@ public class SoggettoServiceClpInvoker { ((Long)arguments[50]).longValue(), (java.util.Date)arguments[51], ((Long)arguments[52]).longValue(), - ((Long)arguments[53]).longValue(), - ((Boolean)arguments[54]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[55]); + ((Boolean)arguments[53]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[54]); } - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { + if (_methodName160.equals(name) && + Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { return SoggettoServiceUtil.deleteSoggetto((it.tref.liferay.portos.bo.model.Soggetto)arguments[0]); } - if (_methodName181.equals(name) && - Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { + if (_methodName161.equals(name) && + Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { return SoggettoServiceUtil.deleteSoggetto(((Long)arguments[0]).longValue()); } - if (_methodName182.equals(name) && - Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { + if (_methodName162.equals(name) && + Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { return SoggettoServiceUtil.updateSoggetto(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -336,138 +335,137 @@ public class SoggettoServiceClpInvoker { ((Long)arguments[51]).longValue(), (java.util.Date)arguments[52], ((Long)arguments[53]).longValue(), - ((Long)arguments[54]).longValue(), - ((Boolean)arguments[55]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[56]); + ((Boolean)arguments[54]).booleanValue(), + (com.liferay.portal.service.ServiceContext)arguments[55]); } - if (_methodName183.equals(name) && - Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { + if (_methodName163.equals(name) && + Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { SoggettoServiceUtil.updatePrincipale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); return null; } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { return SoggettoServiceUtil.findByDettPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName166.equals(name) && + Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica_TipologiaSoggetto_Rimosso(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Boolean)arguments[2]).booleanValue()); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName167.equals(name) && + Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return SoggettoServiceUtil.getValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { return SoggettoServiceUtil.countValidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return SoggettoServiceUtil.countValidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return SoggettoServiceUtil.countValidTmpByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return SoggettoServiceUtil.getValidByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return SoggettoServiceUtil.getValidTmpByIntPratica_TipologiaSoggetto(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return SoggettoServiceUtil.getInvalidByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return SoggettoServiceUtil.getInvalidTmpByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return SoggettoServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return SoggettoServiceUtil.getValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return SoggettoServiceUtil.countValidUntilDettPraticaByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return SoggettoServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return SoggettoServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return SoggettoServiceUtil.findByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return SoggettoServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return SoggettoServiceUtil.allegaFileModifica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), (byte[])arguments[3], @@ -478,10 +476,50 @@ public class SoggettoServiceClpInvoker { throw new UnsupportedOperationException(); } + private String _methodName152; + private String[] _methodParameterTypes152; + private String _methodName153; + private String[] _methodParameterTypes153; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; + private String _methodName160; + private String[] _methodParameterTypes160; + private String _methodName161; + private String[] _methodParameterTypes161; + private String _methodName162; + private String[] _methodParameterTypes162; + private String _methodName163; + private String[] _methodParameterTypes163; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName166; + private String[] _methodParameterTypes166; + private String _methodName167; + private String[] _methodParameterTypes167; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; private String _methodName172; private String[] _methodParameterTypes172; private String _methodName173; private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; private String _methodName178; private String[] _methodParameterTypes178; private String _methodName179; @@ -498,44 +536,4 @@ public class SoggettoServiceClpInvoker { private String[] _methodParameterTypes184; private String _methodName185; private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceBaseImpl.java deleted file mode 100644 index c4c2a457..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceBaseImpl.java +++ /dev/null @@ -1,2184 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.kernel.bean.IdentifiableBean; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; -import com.liferay.portal.kernel.dao.orm.Projection; -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.search.Indexable; -import com.liferay.portal.kernel.search.IndexableType; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.model.PersistedModel; -import com.liferay.portal.service.BaseLocalServiceImpl; -import com.liferay.portal.service.PersistedModelLocalServiceRegistryUtil; -import com.liferay.portal.service.persistence.UserPersistence; - -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.service.SorteggioLocalService; -import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; -import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; -import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; -import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; -import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; -import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; - -import java.io.Serializable; - -import java.util.List; - -import javax.sql.DataSource; - -/** - * Provides the base implementation for the sorteggio local service. - * - *

- * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.SorteggioLocalServiceImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.impl.SorteggioLocalServiceImpl - * @see it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil - * @generated - */ -public abstract class SorteggioLocalServiceBaseImpl extends BaseLocalServiceImpl - implements SorteggioLocalService, IdentifiableBean { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil} to access the sorteggio local service. - */ - - /** - * Adds the sorteggio to the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was added - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.REINDEX) - @Override - public Sorteggio addSorteggio(Sorteggio sorteggio) - throws SystemException { - sorteggio.setNew(true); - - return sorteggioPersistence.update(sorteggio); - } - - /** - * Creates a new sorteggio with the primary key. Does not add the sorteggio to the database. - * - * @param sorteggioId the primary key for the new sorteggio - * @return the new sorteggio - */ - @Override - public Sorteggio createSorteggio(long sorteggioId) { - return sorteggioPersistence.create(sorteggioId); - } - - /** - * Deletes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.DELETE) - @Override - public Sorteggio deleteSorteggio(long sorteggioId) - throws PortalException, SystemException { - return sorteggioPersistence.remove(sorteggioId); - } - - /** - * Deletes the sorteggio from the database. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.DELETE) - @Override - public Sorteggio deleteSorteggio(Sorteggio sorteggio) - throws SystemException { - return sorteggioPersistence.remove(sorteggio); - } - - @Override - public DynamicQuery dynamicQuery() { - Class clazz = getClass(); - - return DynamicQueryFactoryUtil.forClass(Sorteggio.class, - clazz.getClassLoader()); - } - - /** - * Performs a dynamic query on the database and returns the matching rows. - * - * @param dynamicQuery the dynamic query - * @return the matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery) - throws SystemException { - return sorteggioPersistence.findWithDynamicQuery(dynamicQuery); - } - - /** - * Performs a dynamic query on the database and returns a range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @return the range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) - throws SystemException { - return sorteggioPersistence.findWithDynamicQuery(dynamicQuery, start, - end); - } - - /** - * Performs a dynamic query on the database and returns an ordered range of the matching rows. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dynamicQuery the dynamic query - * @param start the lower bound of the range of model instances - * @param end the upper bound of the range of model instances (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching rows - * @throws SystemException if a system exception occurred - */ - @Override - @SuppressWarnings("rawtypes") - public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return sorteggioPersistence.findWithDynamicQuery(dynamicQuery, start, - end, orderByComparator); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount(DynamicQuery dynamicQuery) - throws SystemException { - return sorteggioPersistence.countWithDynamicQuery(dynamicQuery); - } - - /** - * Returns the number of rows that match the dynamic query. - * - * @param dynamicQuery the dynamic query - * @param projection the projection to apply to the query - * @return the number of rows that match the dynamic query - * @throws SystemException if a system exception occurred - */ - @Override - public long dynamicQueryCount(DynamicQuery dynamicQuery, - Projection projection) throws SystemException { - return sorteggioPersistence.countWithDynamicQuery(dynamicQuery, - projection); - } - - @Override - public Sorteggio fetchSorteggio(long sorteggioId) throws SystemException { - return sorteggioPersistence.fetchByPrimaryKey(sorteggioId); - } - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchSorteggioByUuidAndCompanyId(String uuid, - long companyId) throws SystemException { - return sorteggioPersistence.fetchByUuid_C_First(uuid, companyId, null); - } - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchSorteggioByUuidAndGroupId(String uuid, long groupId) - throws SystemException { - return sorteggioPersistence.fetchByUUID_G(uuid, groupId); - } - - /** - * Returns the sorteggio with the primary key. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio - * @throws PortalException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio getSorteggio(long sorteggioId) - throws PortalException, SystemException { - return sorteggioPersistence.findByPrimaryKey(sorteggioId); - } - - @Override - public PersistedModel getPersistedModel(Serializable primaryKeyObj) - throws PortalException, SystemException { - return sorteggioPersistence.findByPrimaryKey(primaryKeyObj); - } - - /** - * Returns the sorteggio with the matching UUID and company. - * - * @param uuid the sorteggio's UUID - * @param companyId the primary key of the company - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio getSorteggioByUuidAndCompanyId(String uuid, long companyId) - throws PortalException, SystemException { - return sorteggioPersistence.findByUuid_C_First(uuid, companyId, null); - } - - /** - * Returns the sorteggio matching the UUID and group. - * - * @param uuid the sorteggio's UUID - * @param groupId the primary key of the group - * @return the matching sorteggio - * @throws PortalException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio getSorteggioByUuidAndGroupId(String uuid, long groupId) - throws PortalException, SystemException { - return sorteggioPersistence.findByUUID_G(uuid, groupId); - } - - /** - * Returns a range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List getSorteggios(int start, int end) - throws SystemException { - return sorteggioPersistence.findAll(start, end); - } - - /** - * Returns the number of sorteggios. - * - * @return the number of sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int getSorteggiosCount() throws SystemException { - return sorteggioPersistence.countAll(); - } - - /** - * Updates the sorteggio in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. - * - * @param sorteggio the sorteggio - * @return the sorteggio that was updated - * @throws SystemException if a system exception occurred - */ - @Indexable(type = IndexableType.REINDEX) - @Override - public Sorteggio updateSorteggio(Sorteggio sorteggio) - throws SystemException { - return sorteggioPersistence.update(sorteggio); - } - - /** - * Returns the allegato manuale local service. - * - * @return the allegato manuale local service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { - return allegatoManualeLocalService; - } - - /** - * Sets the allegato manuale local service. - * - * @param allegatoManualeLocalService the allegato manuale local service - */ - public void setAllegatoManualeLocalService( - it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { - this.allegatoManualeLocalService = allegatoManualeLocalService; - } - - /** - * Returns the allegato manuale remote service. - * - * @return the allegato manuale remote service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { - return allegatoManualeService; - } - - /** - * Sets the allegato manuale remote service. - * - * @param allegatoManualeService the allegato manuale remote service - */ - public void setAllegatoManualeService( - it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { - this.allegatoManualeService = allegatoManualeService; - } - - /** - * Returns the allegato manuale persistence. - * - * @return the allegato manuale persistence - */ - public AllegatoManualePersistence getAllegatoManualePersistence() { - return allegatoManualePersistence; - } - - /** - * Sets the allegato manuale persistence. - * - * @param allegatoManualePersistence the allegato manuale persistence - */ - public void setAllegatoManualePersistence( - AllegatoManualePersistence allegatoManualePersistence) { - this.allegatoManualePersistence = allegatoManualePersistence; - } - - /** - * Returns the asseverazione local service. - * - * @return the asseverazione local service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { - return asseverazioneLocalService; - } - - /** - * Sets the asseverazione local service. - * - * @param asseverazioneLocalService the asseverazione local service - */ - public void setAsseverazioneLocalService( - it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { - this.asseverazioneLocalService = asseverazioneLocalService; - } - - /** - * Returns the asseverazione remote service. - * - * @return the asseverazione remote service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { - return asseverazioneService; - } - - /** - * Sets the asseverazione remote service. - * - * @param asseverazioneService the asseverazione remote service - */ - public void setAsseverazioneService( - it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { - this.asseverazioneService = asseverazioneService; - } - - /** - * Returns the asseverazione persistence. - * - * @return the asseverazione persistence - */ - public AsseverazionePersistence getAsseverazionePersistence() { - return asseverazionePersistence; - } - - /** - * Sets the asseverazione persistence. - * - * @param asseverazionePersistence the asseverazione persistence - */ - public void setAsseverazionePersistence( - AsseverazionePersistence asseverazionePersistence) { - this.asseverazionePersistence = asseverazionePersistence; - } - - /** - * Returns the avviso local service. - * - * @return the avviso local service - */ - public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { - return avvisoLocalService; - } - - /** - * Sets the avviso local service. - * - * @param avvisoLocalService the avviso local service - */ - public void setAvvisoLocalService( - it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { - this.avvisoLocalService = avvisoLocalService; - } - - /** - * Returns the avviso remote service. - * - * @return the avviso remote service - */ - public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { - return avvisoService; - } - - /** - * Sets the avviso remote service. - * - * @param avvisoService the avviso remote service - */ - public void setAvvisoService( - it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { - this.avvisoService = avvisoService; - } - - /** - * Returns the avviso persistence. - * - * @return the avviso persistence - */ - public AvvisoPersistence getAvvisoPersistence() { - return avvisoPersistence; - } - - /** - * Sets the avviso persistence. - * - * @param avvisoPersistence the avviso persistence - */ - public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { - this.avvisoPersistence = avvisoPersistence; - } - - /** - * Returns the collaudo local service. - * - * @return the collaudo local service - */ - public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { - return collaudoLocalService; - } - - /** - * Sets the collaudo local service. - * - * @param collaudoLocalService the collaudo local service - */ - public void setCollaudoLocalService( - it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { - this.collaudoLocalService = collaudoLocalService; - } - - /** - * Returns the collaudo remote service. - * - * @return the collaudo remote service - */ - public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { - return collaudoService; - } - - /** - * Sets the collaudo remote service. - * - * @param collaudoService the collaudo remote service - */ - public void setCollaudoService( - it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { - this.collaudoService = collaudoService; - } - - /** - * Returns the collaudo persistence. - * - * @return the collaudo persistence - */ - public CollaudoPersistence getCollaudoPersistence() { - return collaudoPersistence; - } - - /** - * Sets the collaudo persistence. - * - * @param collaudoPersistence the collaudo persistence - */ - public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { - this.collaudoPersistence = collaudoPersistence; - } - - /** - * Returns the comune local service. - * - * @return the comune local service - */ - public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { - return comuneLocalService; - } - - /** - * Sets the comune local service. - * - * @param comuneLocalService the comune local service - */ - public void setComuneLocalService( - it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { - this.comuneLocalService = comuneLocalService; - } - - /** - * Returns the comune remote service. - * - * @return the comune remote service - */ - public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { - return comuneService; - } - - /** - * Sets the comune remote service. - * - * @param comuneService the comune remote service - */ - public void setComuneService( - it.tref.liferay.portos.bo.service.ComuneService comuneService) { - this.comuneService = comuneService; - } - - /** - * Returns the comune persistence. - * - * @return the comune persistence - */ - public ComunePersistence getComunePersistence() { - return comunePersistence; - } - - /** - * Sets the comune persistence. - * - * @param comunePersistence the comune persistence - */ - public void setComunePersistence(ComunePersistence comunePersistence) { - this.comunePersistence = comunePersistence; - } - - /** - * Returns the comunicazione local service. - * - * @return the comunicazione local service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { - return comunicazioneLocalService; - } - - /** - * Sets the comunicazione local service. - * - * @param comunicazioneLocalService the comunicazione local service - */ - public void setComunicazioneLocalService( - it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { - this.comunicazioneLocalService = comunicazioneLocalService; - } - - /** - * Returns the comunicazione remote service. - * - * @return the comunicazione remote service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { - return comunicazioneService; - } - - /** - * Sets the comunicazione remote service. - * - * @param comunicazioneService the comunicazione remote service - */ - public void setComunicazioneService( - it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { - this.comunicazioneService = comunicazioneService; - } - - /** - * Returns the comunicazione persistence. - * - * @return the comunicazione persistence - */ - public ComunicazionePersistence getComunicazionePersistence() { - return comunicazionePersistence; - } - - /** - * Sets the comunicazione persistence. - * - * @param comunicazionePersistence the comunicazione persistence - */ - public void setComunicazionePersistence( - ComunicazionePersistence comunicazionePersistence) { - this.comunicazionePersistence = comunicazionePersistence; - } - - /** - * Returns the configurazione local service. - * - * @return the configurazione local service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { - return configurazioneLocalService; - } - - /** - * Sets the configurazione local service. - * - * @param configurazioneLocalService the configurazione local service - */ - public void setConfigurazioneLocalService( - it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { - this.configurazioneLocalService = configurazioneLocalService; - } - - /** - * Returns the configurazione remote service. - * - * @return the configurazione remote service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { - return configurazioneService; - } - - /** - * Sets the configurazione remote service. - * - * @param configurazioneService the configurazione remote service - */ - public void setConfigurazioneService( - it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { - this.configurazioneService = configurazioneService; - } - - /** - * Returns the configurazione persistence. - * - * @return the configurazione persistence - */ - public ConfigurazionePersistence getConfigurazionePersistence() { - return configurazionePersistence; - } - - /** - * Sets the configurazione persistence. - * - * @param configurazionePersistence the configurazione persistence - */ - public void setConfigurazionePersistence( - ConfigurazionePersistence configurazionePersistence) { - this.configurazionePersistence = configurazionePersistence; - } - - /** - * Returns the controllo pratica local service. - * - * @return the controllo pratica local service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { - return controlloPraticaLocalService; - } - - /** - * Sets the controllo pratica local service. - * - * @param controlloPraticaLocalService the controllo pratica local service - */ - public void setControlloPraticaLocalService( - it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { - this.controlloPraticaLocalService = controlloPraticaLocalService; - } - - /** - * Returns the controllo pratica remote service. - * - * @return the controllo pratica remote service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { - return controlloPraticaService; - } - - /** - * Sets the controllo pratica remote service. - * - * @param controlloPraticaService the controllo pratica remote service - */ - public void setControlloPraticaService( - it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { - this.controlloPraticaService = controlloPraticaService; - } - - /** - * Returns the controllo pratica persistence. - * - * @return the controllo pratica persistence - */ - public ControlloPraticaPersistence getControlloPraticaPersistence() { - return controlloPraticaPersistence; - } - - /** - * Sets the controllo pratica persistence. - * - * @param controlloPraticaPersistence the controllo pratica persistence - */ - public void setControlloPraticaPersistence( - ControlloPraticaPersistence controlloPraticaPersistence) { - this.controlloPraticaPersistence = controlloPraticaPersistence; - } - - /** - * Returns the delega local service. - * - * @return the delega local service - */ - public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { - return delegaLocalService; - } - - /** - * Sets the delega local service. - * - * @param delegaLocalService the delega local service - */ - public void setDelegaLocalService( - it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { - this.delegaLocalService = delegaLocalService; - } - - /** - * Returns the delega remote service. - * - * @return the delega remote service - */ - public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { - return delegaService; - } - - /** - * Sets the delega remote service. - * - * @param delegaService the delega remote service - */ - public void setDelegaService( - it.tref.liferay.portos.bo.service.DelegaService delegaService) { - this.delegaService = delegaService; - } - - /** - * Returns the delega persistence. - * - * @return the delega persistence - */ - public DelegaPersistence getDelegaPersistence() { - return delegaPersistence; - } - - /** - * Sets the delega persistence. - * - * @param delegaPersistence the delega persistence - */ - public void setDelegaPersistence(DelegaPersistence delegaPersistence) { - this.delegaPersistence = delegaPersistence; - } - - /** - * Returns the dett pratica local service. - * - * @return the dett pratica local service - */ - public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { - return dettPraticaLocalService; - } - - /** - * Sets the dett pratica local service. - * - * @param dettPraticaLocalService the dett pratica local service - */ - public void setDettPraticaLocalService( - it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { - this.dettPraticaLocalService = dettPraticaLocalService; - } - - /** - * Returns the dett pratica remote service. - * - * @return the dett pratica remote service - */ - public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { - return dettPraticaService; - } - - /** - * Sets the dett pratica remote service. - * - * @param dettPraticaService the dett pratica remote service - */ - public void setDettPraticaService( - it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { - this.dettPraticaService = dettPraticaService; - } - - /** - * Returns the dett pratica persistence. - * - * @return the dett pratica persistence - */ - public DettPraticaPersistence getDettPraticaPersistence() { - return dettPraticaPersistence; - } - - /** - * Sets the dett pratica persistence. - * - * @param dettPraticaPersistence the dett pratica persistence - */ - public void setDettPraticaPersistence( - DettPraticaPersistence dettPraticaPersistence) { - this.dettPraticaPersistence = dettPraticaPersistence; - } - - /** - * Returns the doc aggiuntiva local service. - * - * @return the doc aggiuntiva local service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { - return docAggiuntivaLocalService; - } - - /** - * Sets the doc aggiuntiva local service. - * - * @param docAggiuntivaLocalService the doc aggiuntiva local service - */ - public void setDocAggiuntivaLocalService( - it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { - this.docAggiuntivaLocalService = docAggiuntivaLocalService; - } - - /** - * Returns the doc aggiuntiva remote service. - * - * @return the doc aggiuntiva remote service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { - return docAggiuntivaService; - } - - /** - * Sets the doc aggiuntiva remote service. - * - * @param docAggiuntivaService the doc aggiuntiva remote service - */ - public void setDocAggiuntivaService( - it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { - this.docAggiuntivaService = docAggiuntivaService; - } - - /** - * Returns the doc aggiuntiva persistence. - * - * @return the doc aggiuntiva persistence - */ - public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { - return docAggiuntivaPersistence; - } - - /** - * Sets the doc aggiuntiva persistence. - * - * @param docAggiuntivaPersistence the doc aggiuntiva persistence - */ - public void setDocAggiuntivaPersistence( - DocAggiuntivaPersistence docAggiuntivaPersistence) { - this.docAggiuntivaPersistence = docAggiuntivaPersistence; - } - - /** - * Returns the doc pratica local service. - * - * @return the doc pratica local service - */ - public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { - return docPraticaLocalService; - } - - /** - * Sets the doc pratica local service. - * - * @param docPraticaLocalService the doc pratica local service - */ - public void setDocPraticaLocalService( - it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { - this.docPraticaLocalService = docPraticaLocalService; - } - - /** - * Returns the doc pratica remote service. - * - * @return the doc pratica remote service - */ - public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { - return docPraticaService; - } - - /** - * Sets the doc pratica remote service. - * - * @param docPraticaService the doc pratica remote service - */ - public void setDocPraticaService( - it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { - this.docPraticaService = docPraticaService; - } - - /** - * Returns the doc pratica persistence. - * - * @return the doc pratica persistence - */ - public DocPraticaPersistence getDocPraticaPersistence() { - return docPraticaPersistence; - } - - /** - * Sets the doc pratica persistence. - * - * @param docPraticaPersistence the doc pratica persistence - */ - public void setDocPraticaPersistence( - DocPraticaPersistence docPraticaPersistence) { - this.docPraticaPersistence = docPraticaPersistence; - } - - /** - * Returns the fine lavori local service. - * - * @return the fine lavori local service - */ - public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { - return fineLavoriLocalService; - } - - /** - * Sets the fine lavori local service. - * - * @param fineLavoriLocalService the fine lavori local service - */ - public void setFineLavoriLocalService( - it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { - this.fineLavoriLocalService = fineLavoriLocalService; - } - - /** - * Returns the fine lavori remote service. - * - * @return the fine lavori remote service - */ - public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { - return fineLavoriService; - } - - /** - * Sets the fine lavori remote service. - * - * @param fineLavoriService the fine lavori remote service - */ - public void setFineLavoriService( - it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { - this.fineLavoriService = fineLavoriService; - } - - /** - * Returns the fine lavori persistence. - * - * @return the fine lavori persistence - */ - public FineLavoriPersistence getFineLavoriPersistence() { - return fineLavoriPersistence; - } - - /** - * Sets the fine lavori persistence. - * - * @param fineLavoriPersistence the fine lavori persistence - */ - public void setFineLavoriPersistence( - FineLavoriPersistence fineLavoriPersistence) { - this.fineLavoriPersistence = fineLavoriPersistence; - } - - /** - * Returns the history workflow action local service. - * - * @return the history workflow action local service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { - return historyWorkflowActionLocalService; - } - - /** - * Sets the history workflow action local service. - * - * @param historyWorkflowActionLocalService the history workflow action local service - */ - public void setHistoryWorkflowActionLocalService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { - this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; - } - - /** - * Returns the history workflow action remote service. - * - * @return the history workflow action remote service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { - return historyWorkflowActionService; - } - - /** - * Sets the history workflow action remote service. - * - * @param historyWorkflowActionService the history workflow action remote service - */ - public void setHistoryWorkflowActionService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { - this.historyWorkflowActionService = historyWorkflowActionService; - } - - /** - * Returns the history workflow action persistence. - * - * @return the history workflow action persistence - */ - public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { - return historyWorkflowActionPersistence; - } - - /** - * Sets the history workflow action persistence. - * - * @param historyWorkflowActionPersistence the history workflow action persistence - */ - public void setHistoryWorkflowActionPersistence( - HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { - this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; - } - - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - - /** - * Returns the int pratica local service. - * - * @return the int pratica local service - */ - public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { - return intPraticaLocalService; - } - - /** - * Sets the int pratica local service. - * - * @param intPraticaLocalService the int pratica local service - */ - public void setIntPraticaLocalService( - it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { - this.intPraticaLocalService = intPraticaLocalService; - } - - /** - * Returns the int pratica remote service. - * - * @return the int pratica remote service - */ - public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { - return intPraticaService; - } - - /** - * Sets the int pratica remote service. - * - * @param intPraticaService the int pratica remote service - */ - public void setIntPraticaService( - it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { - this.intPraticaService = intPraticaService; - } - - /** - * Returns the int pratica persistence. - * - * @return the int pratica persistence - */ - public IntPraticaPersistence getIntPraticaPersistence() { - return intPraticaPersistence; - } - - /** - * Sets the int pratica persistence. - * - * @param intPraticaPersistence the int pratica persistence - */ - public void setIntPraticaPersistence( - IntPraticaPersistence intPraticaPersistence) { - this.intPraticaPersistence = intPraticaPersistence; - } - - /** - * Returns the int pratica finder. - * - * @return the int pratica finder - */ - public IntPraticaFinder getIntPraticaFinder() { - return intPraticaFinder; - } - - /** - * Sets the int pratica finder. - * - * @param intPraticaFinder the int pratica finder - */ - public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { - this.intPraticaFinder = intPraticaFinder; - } - - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - - /** - * Returns the pagamento local service. - * - * @return the pagamento local service - */ - public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { - return pagamentoLocalService; - } - - /** - * Sets the pagamento local service. - * - * @param pagamentoLocalService the pagamento local service - */ - public void setPagamentoLocalService( - it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { - this.pagamentoLocalService = pagamentoLocalService; - } - - /** - * Returns the pagamento remote service. - * - * @return the pagamento remote service - */ - public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { - return pagamentoService; - } - - /** - * Sets the pagamento remote service. - * - * @param pagamentoService the pagamento remote service - */ - public void setPagamentoService( - it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { - this.pagamentoService = pagamentoService; - } - - /** - * Returns the pagamento persistence. - * - * @return the pagamento persistence - */ - public PagamentoPersistence getPagamentoPersistence() { - return pagamentoPersistence; - } - - /** - * Sets the pagamento persistence. - * - * @param pagamentoPersistence the pagamento persistence - */ - public void setPagamentoPersistence( - PagamentoPersistence pagamentoPersistence) { - this.pagamentoPersistence = pagamentoPersistence; - } - - /** - * Returns the parere geologo local service. - * - * @return the parere geologo local service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { - return parereGeologoLocalService; - } - - /** - * Sets the parere geologo local service. - * - * @param parereGeologoLocalService the parere geologo local service - */ - public void setParereGeologoLocalService( - it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { - this.parereGeologoLocalService = parereGeologoLocalService; - } - - /** - * Returns the parere geologo remote service. - * - * @return the parere geologo remote service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { - return parereGeologoService; - } - - /** - * Sets the parere geologo remote service. - * - * @param parereGeologoService the parere geologo remote service - */ - public void setParereGeologoService( - it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { - this.parereGeologoService = parereGeologoService; - } - - /** - * Returns the parere geologo persistence. - * - * @return the parere geologo persistence - */ - public ParereGeologoPersistence getParereGeologoPersistence() { - return parereGeologoPersistence; - } - - /** - * Sets the parere geologo persistence. - * - * @param parereGeologoPersistence the parere geologo persistence - */ - public void setParereGeologoPersistence( - ParereGeologoPersistence parereGeologoPersistence) { - this.parereGeologoPersistence = parereGeologoPersistence; - } - - /** - * Returns the provincia local service. - * - * @return the provincia local service - */ - public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { - return provinciaLocalService; - } - - /** - * Sets the provincia local service. - * - * @param provinciaLocalService the provincia local service - */ - public void setProvinciaLocalService( - it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { - this.provinciaLocalService = provinciaLocalService; - } - - /** - * Returns the provincia remote service. - * - * @return the provincia remote service - */ - public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { - return provinciaService; - } - - /** - * Sets the provincia remote service. - * - * @param provinciaService the provincia remote service - */ - public void setProvinciaService( - it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { - this.provinciaService = provinciaService; - } - - /** - * Returns the provincia persistence. - * - * @return the provincia persistence - */ - public ProvinciaPersistence getProvinciaPersistence() { - return provinciaPersistence; - } - - /** - * Sets the provincia persistence. - * - * @param provinciaPersistence the provincia persistence - */ - public void setProvinciaPersistence( - ProvinciaPersistence provinciaPersistence) { - this.provinciaPersistence = provinciaPersistence; - } - - /** - * Returns the soggetto local service. - * - * @return the soggetto local service - */ - public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { - return soggettoLocalService; - } - - /** - * Sets the soggetto local service. - * - * @param soggettoLocalService the soggetto local service - */ - public void setSoggettoLocalService( - it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { - this.soggettoLocalService = soggettoLocalService; - } - - /** - * Returns the soggetto remote service. - * - * @return the soggetto remote service - */ - public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { - return soggettoService; - } - - /** - * Sets the soggetto remote service. - * - * @param soggettoService the soggetto remote service - */ - public void setSoggettoService( - it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { - this.soggettoService = soggettoService; - } - - /** - * Returns the soggetto persistence. - * - * @return the soggetto persistence - */ - public SoggettoPersistence getSoggettoPersistence() { - return soggettoPersistence; - } - - /** - * Sets the soggetto persistence. - * - * @param soggettoPersistence the soggetto persistence - */ - public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { - this.soggettoPersistence = soggettoPersistence; - } - - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - - /** - * Returns the storico soggetto pratica local service. - * - * @return the storico soggetto pratica local service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { - return storicoSoggettoPraticaLocalService; - } - - /** - * Sets the storico soggetto pratica local service. - * - * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service - */ - public void setStoricoSoggettoPraticaLocalService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { - this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; - } - - /** - * Returns the storico soggetto pratica remote service. - * - * @return the storico soggetto pratica remote service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { - return storicoSoggettoPraticaService; - } - - /** - * Sets the storico soggetto pratica remote service. - * - * @param storicoSoggettoPraticaService the storico soggetto pratica remote service - */ - public void setStoricoSoggettoPraticaService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { - this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; - } - - /** - * Returns the storico soggetto pratica persistence. - * - * @return the storico soggetto pratica persistence - */ - public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { - return storicoSoggettoPraticaPersistence; - } - - /** - * Sets the storico soggetto pratica persistence. - * - * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence - */ - public void setStoricoSoggettoPraticaPersistence( - StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { - this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; - } - - /** - * Returns the tempistica local service. - * - * @return the tempistica local service - */ - public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { - return tempisticaLocalService; - } - - /** - * Sets the tempistica local service. - * - * @param tempisticaLocalService the tempistica local service - */ - public void setTempisticaLocalService( - it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { - this.tempisticaLocalService = tempisticaLocalService; - } - - /** - * Returns the tempistica remote service. - * - * @return the tempistica remote service - */ - public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { - return tempisticaService; - } - - /** - * Sets the tempistica remote service. - * - * @param tempisticaService the tempistica remote service - */ - public void setTempisticaService( - it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { - this.tempisticaService = tempisticaService; - } - - /** - * Returns the tempistica persistence. - * - * @return the tempistica persistence - */ - public TempisticaPersistence getTempisticaPersistence() { - return tempisticaPersistence; - } - - /** - * Sets the tempistica persistence. - * - * @param tempisticaPersistence the tempistica persistence - */ - public void setTempisticaPersistence( - TempisticaPersistence tempisticaPersistence) { - this.tempisticaPersistence = tempisticaPersistence; - } - - /** - * Returns the tempistica finder. - * - * @return the tempistica finder - */ - public TempisticaFinder getTempisticaFinder() { - return tempisticaFinder; - } - - /** - * Sets the tempistica finder. - * - * @param tempisticaFinder the tempistica finder - */ - public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { - this.tempisticaFinder = tempisticaFinder; - } - - /** - * Returns the territorio local service. - * - * @return the territorio local service - */ - public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { - return territorioLocalService; - } - - /** - * Sets the territorio local service. - * - * @param territorioLocalService the territorio local service - */ - public void setTerritorioLocalService( - it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { - this.territorioLocalService = territorioLocalService; - } - - /** - * Returns the territorio remote service. - * - * @return the territorio remote service - */ - public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { - return territorioService; - } - - /** - * Sets the territorio remote service. - * - * @param territorioService the territorio remote service - */ - public void setTerritorioService( - it.tref.liferay.portos.bo.service.TerritorioService territorioService) { - this.territorioService = territorioService; - } - - /** - * Returns the territorio persistence. - * - * @return the territorio persistence - */ - public TerritorioPersistence getTerritorioPersistence() { - return territorioPersistence; - } - - /** - * Sets the territorio persistence. - * - * @param territorioPersistence the territorio persistence - */ - public void setTerritorioPersistence( - TerritorioPersistence territorioPersistence) { - this.territorioPersistence = territorioPersistence; - } - - /** - * Returns the counter local service. - * - * @return the counter local service - */ - public com.liferay.counter.service.CounterLocalService getCounterLocalService() { - return counterLocalService; - } - - /** - * Sets the counter local service. - * - * @param counterLocalService the counter local service - */ - public void setCounterLocalService( - com.liferay.counter.service.CounterLocalService counterLocalService) { - this.counterLocalService = counterLocalService; - } - - /** - * Returns the resource local service. - * - * @return the resource local service - */ - public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { - return resourceLocalService; - } - - /** - * Sets the resource local service. - * - * @param resourceLocalService the resource local service - */ - public void setResourceLocalService( - com.liferay.portal.service.ResourceLocalService resourceLocalService) { - this.resourceLocalService = resourceLocalService; - } - - /** - * Returns the user local service. - * - * @return the user local service - */ - public com.liferay.portal.service.UserLocalService getUserLocalService() { - return userLocalService; - } - - /** - * Sets the user local service. - * - * @param userLocalService the user local service - */ - public void setUserLocalService( - com.liferay.portal.service.UserLocalService userLocalService) { - this.userLocalService = userLocalService; - } - - /** - * Returns the user remote service. - * - * @return the user remote service - */ - public com.liferay.portal.service.UserService getUserService() { - return userService; - } - - /** - * Sets the user remote service. - * - * @param userService the user remote service - */ - public void setUserService( - com.liferay.portal.service.UserService userService) { - this.userService = userService; - } - - /** - * Returns the user persistence. - * - * @return the user persistence - */ - public UserPersistence getUserPersistence() { - return userPersistence; - } - - /** - * Sets the user persistence. - * - * @param userPersistence the user persistence - */ - public void setUserPersistence(UserPersistence userPersistence) { - this.userPersistence = userPersistence; - } - - public void afterPropertiesSet() { - Class clazz = getClass(); - - _classLoader = clazz.getClassLoader(); - - PersistedModelLocalServiceRegistryUtil.register("it.tref.liferay.portos.bo.model.Sorteggio", - sorteggioLocalService); - } - - public void destroy() { - PersistedModelLocalServiceRegistryUtil.unregister( - "it.tref.liferay.portos.bo.model.Sorteggio"); - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public String getBeanIdentifier() { - return _beanIdentifier; - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(String beanIdentifier) { - _beanIdentifier = beanIdentifier; - } - - @Override - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(_classLoader); - } - - try { - return _clpInvoker.invokeMethod(name, parameterTypes, arguments); - } - finally { - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(contextClassLoader); - } - } - } - - protected Class getModelClass() { - return Sorteggio.class; - } - - protected String getModelClassName() { - return Sorteggio.class.getName(); - } - - /** - * Performs an SQL query. - * - * @param sql the sql query - */ - protected void runSQL(String sql) throws SystemException { - try { - DataSource dataSource = sorteggioPersistence.getDataSource(); - - SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, - sql, new int[0]); - - sqlUpdate.update(); - } - catch (Exception e) { - throw new SystemException(e); - } - } - - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; - @BeanReference(type = AllegatoManualePersistence.class) - protected AllegatoManualePersistence allegatoManualePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; - @BeanReference(type = AsseverazionePersistence.class) - protected AsseverazionePersistence asseverazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) - protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) - protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; - @BeanReference(type = AvvisoPersistence.class) - protected AvvisoPersistence avvisoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) - protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) - protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; - @BeanReference(type = CollaudoPersistence.class) - protected CollaudoPersistence collaudoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) - protected it.tref.liferay.portos.bo.service.ComuneService comuneService; - @BeanReference(type = ComunePersistence.class) - protected ComunePersistence comunePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; - @BeanReference(type = ComunicazionePersistence.class) - protected ComunicazionePersistence comunicazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; - @BeanReference(type = ConfigurazionePersistence.class) - protected ConfigurazionePersistence configurazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; - @BeanReference(type = ControlloPraticaPersistence.class) - protected ControlloPraticaPersistence controlloPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) - protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) - protected it.tref.liferay.portos.bo.service.DelegaService delegaService; - @BeanReference(type = DelegaPersistence.class) - protected DelegaPersistence delegaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; - @BeanReference(type = DettPraticaPersistence.class) - protected DettPraticaPersistence dettPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; - @BeanReference(type = DocAggiuntivaPersistence.class) - protected DocAggiuntivaPersistence docAggiuntivaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; - @BeanReference(type = DocPraticaPersistence.class) - protected DocPraticaPersistence docPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; - @BeanReference(type = FineLavoriPersistence.class) - protected FineLavoriPersistence fineLavoriPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; - @BeanReference(type = HistoryWorkflowActionPersistence.class) - protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; - @BeanReference(type = IntPraticaPersistence.class) - protected IntPraticaPersistence intPraticaPersistence; - @BeanReference(type = IntPraticaFinder.class) - protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) - protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) - protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; - @BeanReference(type = PagamentoPersistence.class) - protected PagamentoPersistence pagamentoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; - @BeanReference(type = ParereGeologoPersistence.class) - protected ParereGeologoPersistence parereGeologoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; - @BeanReference(type = ProvinciaPersistence.class) - protected ProvinciaPersistence provinciaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) - protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) - protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; - @BeanReference(type = SoggettoPersistence.class) - protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; - @BeanReference(type = StoricoSoggettoPraticaPersistence.class) - protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) - protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) - protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; - @BeanReference(type = TempisticaPersistence.class) - protected TempisticaPersistence tempisticaPersistence; - @BeanReference(type = TempisticaFinder.class) - protected TempisticaFinder tempisticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) - protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) - protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; - @BeanReference(type = TerritorioPersistence.class) - protected TerritorioPersistence territorioPersistence; - @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) - protected com.liferay.counter.service.CounterLocalService counterLocalService; - @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) - protected com.liferay.portal.service.ResourceLocalService resourceLocalService; - @BeanReference(type = com.liferay.portal.service.UserLocalService.class) - protected com.liferay.portal.service.UserLocalService userLocalService; - @BeanReference(type = com.liferay.portal.service.UserService.class) - protected com.liferay.portal.service.UserService userService; - @BeanReference(type = UserPersistence.class) - protected UserPersistence userPersistence; - private String _beanIdentifier; - private ClassLoader _classLoader; - private SorteggioLocalServiceClpInvoker _clpInvoker = new SorteggioLocalServiceClpInvoker(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceClpInvoker.java deleted file mode 100644 index b190f7a9..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioLocalServiceClpInvoker.java +++ /dev/null @@ -1,728 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; - -import java.util.Arrays; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class SorteggioLocalServiceClpInvoker { - public SorteggioLocalServiceClpInvoker() { - _methodName0 = "addSorteggio"; - - _methodParameterTypes0 = new String[] { - "it.tref.liferay.portos.bo.model.Sorteggio" - }; - - _methodName1 = "createSorteggio"; - - _methodParameterTypes1 = new String[] { "long" }; - - _methodName2 = "deleteSorteggio"; - - _methodParameterTypes2 = new String[] { "long" }; - - _methodName3 = "deleteSorteggio"; - - _methodParameterTypes3 = new String[] { - "it.tref.liferay.portos.bo.model.Sorteggio" - }; - - _methodName4 = "dynamicQuery"; - - _methodParameterTypes4 = new String[] { }; - - _methodName5 = "dynamicQuery"; - - _methodParameterTypes5 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName6 = "dynamicQuery"; - - _methodParameterTypes6 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" - }; - - _methodName7 = "dynamicQuery"; - - _methodParameterTypes7 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName8 = "dynamicQueryCount"; - - _methodParameterTypes8 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery" - }; - - _methodName9 = "dynamicQueryCount"; - - _methodParameterTypes9 = new String[] { - "com.liferay.portal.kernel.dao.orm.DynamicQuery", - "com.liferay.portal.kernel.dao.orm.Projection" - }; - - _methodName10 = "fetchSorteggio"; - - _methodParameterTypes10 = new String[] { "long" }; - - _methodName11 = "fetchSorteggioByUuidAndCompanyId"; - - _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; - - _methodName12 = "fetchSorteggioByUuidAndGroupId"; - - _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; - - _methodName13 = "getSorteggio"; - - _methodParameterTypes13 = new String[] { "long" }; - - _methodName14 = "getPersistedModel"; - - _methodParameterTypes14 = new String[] { "java.io.Serializable" }; - - _methodName15 = "getSorteggioByUuidAndCompanyId"; - - _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; - - _methodName16 = "getSorteggioByUuidAndGroupId"; - - _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; - - _methodName17 = "getSorteggios"; - - _methodParameterTypes17 = new String[] { "int", "int" }; - - _methodName18 = "getSorteggiosCount"; - - _methodParameterTypes18 = new String[] { }; - - _methodName19 = "updateSorteggio"; - - _methodParameterTypes19 = new String[] { - "it.tref.liferay.portos.bo.model.Sorteggio" - }; - - _methodName188 = "getBeanIdentifier"; - - _methodParameterTypes188 = new String[] { }; - - _methodName189 = "setBeanIdentifier"; - - _methodParameterTypes189 = new String[] { "java.lang.String" }; - - _methodName194 = "addSorteggio"; - - _methodParameterTypes194 = new String[] { - "long", "long", "java.lang.String", "java.lang.String", "int", - "java.util.Date", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", - "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "long", "boolean", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName195 = "addSorteggioForImport"; - - _methodParameterTypes195 = new String[] { - "long", "long", "java.lang.String", "java.lang.String", "int", - "java.util.Date", "java.lang.String", "java.lang.String", - "java.lang.String", "long", "java.lang.String", - "java.lang.String", "java.lang.String", "java.lang.String", - "boolean", "long", "boolean", "int", "long", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName196 = "getYears"; - - _methodParameterTypes196 = new String[] { "java.lang.Long", "int" }; - - _methodName197 = "countDettPraticaWorkflowNonAvviato"; - - _methodParameterTypes197 = new String[] { }; - - _methodName198 = "getDettPraticaWorkflowNonAvviato"; - - _methodParameterTypes198 = new String[] { "int", "int" }; - - _methodName200 = "search"; - - _methodParameterTypes200 = new String[] { - "long", "java.lang.String", "java.lang.String", "int", "int", - "int" - }; - - _methodName201 = "countSearch"; - - _methodParameterTypes201 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName202 = "search"; - - _methodParameterTypes202 = new String[] { - "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String", "int", - "int" - }; - - _methodName203 = "countSearch"; - - _methodParameterTypes203 = new String[] { - "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String" - }; - - _methodName205 = "isDettPraticaSorteggiata"; - - _methodParameterTypes205 = new String[] { "long", "long" }; - - _methodName206 = "fetchByOldSorteggioId"; - - _methodParameterTypes206 = new String[] { "long" }; - - _methodName207 = "findByC_DettPratica"; - - _methodParameterTypes207 = new String[] { "long", "long" }; - - _methodName208 = "findByIntPratica"; - - _methodParameterTypes208 = new String[] { "long" }; - - _methodName209 = "findByGroupId_Anno_Mese_Settimana"; - - _methodParameterTypes209 = new String[] { - "long", "java.lang.String", "java.lang.String", "int" - }; - - _methodName210 = "findByCompanyIdGroupId"; - - _methodParameterTypes210 = new String[] { "long", "long" }; - - _methodName211 = "findByAnno_Mese_Settimana"; - - _methodParameterTypes211 = new String[] { - "java.lang.String", "java.lang.String", "int" - }; - - _methodName212 = "findSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes212 = new String[] { "int", "int" }; - - _methodName213 = "countSorteggiGroupByAnnoMeseSettimana"; - - _methodParameterTypes213 = new String[] { }; - - _methodName214 = "countSorteggioMese"; - - _methodParameterTypes214 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List" - }; - - _methodName215 = "findSorteggioMese"; - - _methodParameterTypes215 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName216 = "findSorteggioAnno"; - - _methodParameterTypes216 = new String[] { - "java.util.Date", "java.util.Date", "java.util.List", - "java.util.List", "java.util.List", "int" - }; - - _methodName217 = "updateDataSorteggioPraticaEsterna"; - - _methodParameterTypes217 = new String[] { "long", "java.util.Date" }; - - _methodName218 = "getTecnicoSorteggioPraticaEsterna"; - - _methodParameterTypes218 = new String[] { "long" }; - - _methodName219 = "findTipoPraticaIdSorteggioPraticaEsterna"; - - _methodParameterTypes219 = new String[] { "long" }; - - _methodName220 = "search"; - - _methodParameterTypes220 = new String[] { - "java.lang.Long", "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String", "int", - "int" - }; - - _methodName221 = "count"; - - _methodParameterTypes221 = new String[] { - "java.lang.Long", "java.lang.String", "java.lang.String", "int", - "java.lang.String", "java.lang.String", "java.lang.String", - "java.lang.String", "java.lang.Long", "java.lang.String" - }; - } - - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - if (_methodName0.equals(name) && - Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) { - return SorteggioLocalServiceUtil.addSorteggio((it.tref.liferay.portos.bo.model.Sorteggio)arguments[0]); - } - - if (_methodName1.equals(name) && - Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) { - return SorteggioLocalServiceUtil.createSorteggio(((Long)arguments[0]).longValue()); - } - - if (_methodName2.equals(name) && - Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) { - return SorteggioLocalServiceUtil.deleteSorteggio(((Long)arguments[0]).longValue()); - } - - if (_methodName3.equals(name) && - Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) { - return SorteggioLocalServiceUtil.deleteSorteggio((it.tref.liferay.portos.bo.model.Sorteggio)arguments[0]); - } - - if (_methodName4.equals(name) && - Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) { - return SorteggioLocalServiceUtil.dynamicQuery(); - } - - if (_methodName5.equals(name) && - Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) { - return SorteggioLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); - } - - if (_methodName6.equals(name) && - Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) { - return SorteggioLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue()); - } - - if (_methodName7.equals(name) && - Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) { - return SorteggioLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); - } - - if (_methodName8.equals(name) && - Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) { - return SorteggioLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]); - } - - if (_methodName9.equals(name) && - Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) { - return SorteggioLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0], - (com.liferay.portal.kernel.dao.orm.Projection)arguments[1]); - } - - if (_methodName10.equals(name) && - Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) { - return SorteggioLocalServiceUtil.fetchSorteggio(((Long)arguments[0]).longValue()); - } - - if (_methodName11.equals(name) && - Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) { - return SorteggioLocalServiceUtil.fetchSorteggioByUuidAndCompanyId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName12.equals(name) && - Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) { - return SorteggioLocalServiceUtil.fetchSorteggioByUuidAndGroupId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName13.equals(name) && - Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) { - return SorteggioLocalServiceUtil.getSorteggio(((Long)arguments[0]).longValue()); - } - - if (_methodName14.equals(name) && - Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) { - return SorteggioLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]); - } - - if (_methodName15.equals(name) && - Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) { - return SorteggioLocalServiceUtil.getSorteggioByUuidAndCompanyId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName16.equals(name) && - Arrays.deepEquals(_methodParameterTypes16, parameterTypes)) { - return SorteggioLocalServiceUtil.getSorteggioByUuidAndGroupId((java.lang.String)arguments[0], - ((Long)arguments[1]).longValue()); - } - - if (_methodName17.equals(name) && - Arrays.deepEquals(_methodParameterTypes17, parameterTypes)) { - return SorteggioLocalServiceUtil.getSorteggios(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName18.equals(name) && - Arrays.deepEquals(_methodParameterTypes18, parameterTypes)) { - return SorteggioLocalServiceUtil.getSorteggiosCount(); - } - - if (_methodName19.equals(name) && - Arrays.deepEquals(_methodParameterTypes19, parameterTypes)) { - return SorteggioLocalServiceUtil.updateSorteggio((it.tref.liferay.portos.bo.model.Sorteggio)arguments[0]); - } - - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { - return SorteggioLocalServiceUtil.getBeanIdentifier(); - } - - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { - SorteggioLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); - - return null; - } - - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { - return SorteggioLocalServiceUtil.addSorteggio(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue(), - (java.lang.String)arguments[2], (java.lang.String)arguments[3], - ((Integer)arguments[4]).intValue(), - (java.util.Date)arguments[5], (java.lang.String)arguments[6], - (java.lang.String)arguments[7], (java.lang.String)arguments[8], - ((Long)arguments[9]).longValue(), - (java.lang.String)arguments[10], - (java.lang.String)arguments[11], - (java.lang.String)arguments[12], - (java.lang.String)arguments[13], - ((Boolean)arguments[14]).booleanValue(), - ((Long)arguments[15]).longValue(), - ((Boolean)arguments[16]).booleanValue(), - (com.liferay.portal.service.ServiceContext)arguments[17]); - } - - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { - return SorteggioLocalServiceUtil.addSorteggioForImport(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue(), - (java.lang.String)arguments[2], (java.lang.String)arguments[3], - ((Integer)arguments[4]).intValue(), - (java.util.Date)arguments[5], (java.lang.String)arguments[6], - (java.lang.String)arguments[7], (java.lang.String)arguments[8], - ((Long)arguments[9]).longValue(), - (java.lang.String)arguments[10], - (java.lang.String)arguments[11], - (java.lang.String)arguments[12], - (java.lang.String)arguments[13], - ((Boolean)arguments[14]).booleanValue(), - ((Long)arguments[15]).longValue(), - ((Boolean)arguments[16]).booleanValue(), - ((Integer)arguments[17]).intValue(), - ((Long)arguments[18]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[19]); - } - - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { - return SorteggioLocalServiceUtil.getYears((java.lang.Long)arguments[0], - ((Integer)arguments[1]).intValue()); - } - - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { - return SorteggioLocalServiceUtil.countDettPraticaWorkflowNonAvviato(); - } - - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { - return SorteggioLocalServiceUtil.getDettPraticaWorkflowNonAvviato(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { - return SorteggioLocalServiceUtil.search(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - ((Integer)arguments[5]).intValue()); - } - - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { - return SorteggioLocalServiceUtil.countSearch(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - ((Integer)arguments[3]).intValue()); - } - - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { - return SorteggioLocalServiceUtil.search((java.lang.String)arguments[0], - (java.lang.String)arguments[1], - ((Integer)arguments[2]).intValue(), - (java.lang.String)arguments[3], (java.lang.String)arguments[4], - (java.lang.String)arguments[5], (java.lang.String)arguments[6], - (java.lang.Long)arguments[7], (java.lang.String)arguments[8], - ((Integer)arguments[9]).intValue(), - ((Integer)arguments[10]).intValue()); - } - - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { - return SorteggioLocalServiceUtil.countSearch((java.lang.String)arguments[0], - (java.lang.String)arguments[1], - ((Integer)arguments[2]).intValue(), - (java.lang.String)arguments[3], (java.lang.String)arguments[4], - (java.lang.String)arguments[5], (java.lang.String)arguments[6], - (java.lang.Long)arguments[7], (java.lang.String)arguments[8]); - } - - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { - return SorteggioLocalServiceUtil.isDettPraticaSorteggiata(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { - return SorteggioLocalServiceUtil.fetchByOldSorteggioId(((Long)arguments[0]).longValue()); - } - - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { - return SorteggioLocalServiceUtil.findByC_DettPratica(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { - return SorteggioLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); - } - - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { - return SorteggioLocalServiceUtil.findByGroupId_Anno_Mese_Settimana(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - ((Integer)arguments[3]).intValue()); - } - - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { - return SorteggioLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { - return SorteggioLocalServiceUtil.findByAnno_Mese_Settimana((java.lang.String)arguments[0], - (java.lang.String)arguments[1], - ((Integer)arguments[2]).intValue()); - } - - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { - return SorteggioLocalServiceUtil.findSorteggiGroupByAnnoMeseSettimana(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); - } - - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { - return SorteggioLocalServiceUtil.countSorteggiGroupByAnnoMeseSettimana(); - } - - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { - return SorteggioLocalServiceUtil.countSorteggioMese((java.util.Date)arguments[0], - (java.util.Date)arguments[1], - (java.util.List)arguments[2], - (java.util.List)arguments[3]); - } - - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { - return SorteggioLocalServiceUtil.findSorteggioMese((java.util.Date)arguments[0], - (java.util.Date)arguments[1], - (java.util.List)arguments[2], - (java.util.List)arguments[3], - (java.util.List)arguments[4], - ((Integer)arguments[5]).intValue()); - } - - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { - return SorteggioLocalServiceUtil.findSorteggioAnno((java.util.Date)arguments[0], - (java.util.Date)arguments[1], - (java.util.List)arguments[2], - (java.util.List)arguments[3], - (java.util.List)arguments[4], - ((Integer)arguments[5]).intValue()); - } - - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { - SorteggioLocalServiceUtil.updateDataSorteggioPraticaEsterna(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1]); - - return null; - } - - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { - return SorteggioLocalServiceUtil.getTecnicoSorteggioPraticaEsterna(((Long)arguments[0]).longValue()); - } - - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { - return SorteggioLocalServiceUtil.findTipoPraticaIdSorteggioPraticaEsterna(((Long)arguments[0]).longValue()); - } - - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { - return SorteggioLocalServiceUtil.search((java.lang.Long)arguments[0], - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - ((Integer)arguments[3]).intValue(), - (java.lang.String)arguments[4], (java.lang.String)arguments[5], - (java.lang.String)arguments[6], (java.lang.String)arguments[7], - (java.lang.Long)arguments[8], (java.lang.String)arguments[9], - ((Integer)arguments[10]).intValue(), - ((Integer)arguments[11]).intValue()); - } - - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { - return SorteggioLocalServiceUtil.count((java.lang.Long)arguments[0], - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - ((Integer)arguments[3]).intValue(), - (java.lang.String)arguments[4], (java.lang.String)arguments[5], - (java.lang.String)arguments[6], (java.lang.String)arguments[7], - (java.lang.Long)arguments[8], (java.lang.String)arguments[9]); - } - - throw new UnsupportedOperationException(); - } - - private String _methodName0; - private String[] _methodParameterTypes0; - private String _methodName1; - private String[] _methodParameterTypes1; - private String _methodName2; - private String[] _methodParameterTypes2; - private String _methodName3; - private String[] _methodParameterTypes3; - private String _methodName4; - private String[] _methodParameterTypes4; - private String _methodName5; - private String[] _methodParameterTypes5; - private String _methodName6; - private String[] _methodParameterTypes6; - private String _methodName7; - private String[] _methodParameterTypes7; - private String _methodName8; - private String[] _methodParameterTypes8; - private String _methodName9; - private String[] _methodParameterTypes9; - private String _methodName10; - private String[] _methodParameterTypes10; - private String _methodName11; - private String[] _methodParameterTypes11; - private String _methodName12; - private String[] _methodParameterTypes12; - private String _methodName13; - private String[] _methodParameterTypes13; - private String _methodName14; - private String[] _methodParameterTypes14; - private String _methodName15; - private String[] _methodParameterTypes15; - private String _methodName16; - private String[] _methodParameterTypes16; - private String _methodName17; - private String[] _methodParameterTypes17; - private String _methodName18; - private String[] _methodParameterTypes18; - private String _methodName19; - private String[] _methodParameterTypes19; - private String _methodName188; - private String[] _methodParameterTypes188; - private String _methodName189; - private String[] _methodParameterTypes189; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; - private String _methodName215; - private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; - private String _methodName221; - private String[] _methodParameterTypes221; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceBaseImpl.java deleted file mode 100644 index 30a41e60..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceBaseImpl.java +++ /dev/null @@ -1,1891 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import com.liferay.portal.kernel.bean.BeanReference; -import com.liferay.portal.kernel.bean.IdentifiableBean; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; -import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.service.BaseServiceImpl; -import com.liferay.portal.service.persistence.UserPersistence; - -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.service.SorteggioService; -import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence; -import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence; -import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunePersistence; -import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence; -import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; -import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; -import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; -import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; -import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; -import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; -import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence; - -import javax.sql.DataSource; - -/** - * Provides the base implementation for the sorteggio remote service. - * - *

- * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl}. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl - * @see it.tref.liferay.portos.bo.service.SorteggioServiceUtil - * @generated - */ -public abstract class SorteggioServiceBaseImpl extends BaseServiceImpl - implements SorteggioService, IdentifiableBean { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link it.tref.liferay.portos.bo.service.SorteggioServiceUtil} to access the sorteggio remote service. - */ - - /** - * Returns the allegato manuale local service. - * - * @return the allegato manuale local service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeLocalService getAllegatoManualeLocalService() { - return allegatoManualeLocalService; - } - - /** - * Sets the allegato manuale local service. - * - * @param allegatoManualeLocalService the allegato manuale local service - */ - public void setAllegatoManualeLocalService( - it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService) { - this.allegatoManualeLocalService = allegatoManualeLocalService; - } - - /** - * Returns the allegato manuale remote service. - * - * @return the allegato manuale remote service - */ - public it.tref.liferay.portos.bo.service.AllegatoManualeService getAllegatoManualeService() { - return allegatoManualeService; - } - - /** - * Sets the allegato manuale remote service. - * - * @param allegatoManualeService the allegato manuale remote service - */ - public void setAllegatoManualeService( - it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService) { - this.allegatoManualeService = allegatoManualeService; - } - - /** - * Returns the allegato manuale persistence. - * - * @return the allegato manuale persistence - */ - public AllegatoManualePersistence getAllegatoManualePersistence() { - return allegatoManualePersistence; - } - - /** - * Sets the allegato manuale persistence. - * - * @param allegatoManualePersistence the allegato manuale persistence - */ - public void setAllegatoManualePersistence( - AllegatoManualePersistence allegatoManualePersistence) { - this.allegatoManualePersistence = allegatoManualePersistence; - } - - /** - * Returns the asseverazione local service. - * - * @return the asseverazione local service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneLocalService getAsseverazioneLocalService() { - return asseverazioneLocalService; - } - - /** - * Sets the asseverazione local service. - * - * @param asseverazioneLocalService the asseverazione local service - */ - public void setAsseverazioneLocalService( - it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService) { - this.asseverazioneLocalService = asseverazioneLocalService; - } - - /** - * Returns the asseverazione remote service. - * - * @return the asseverazione remote service - */ - public it.tref.liferay.portos.bo.service.AsseverazioneService getAsseverazioneService() { - return asseverazioneService; - } - - /** - * Sets the asseverazione remote service. - * - * @param asseverazioneService the asseverazione remote service - */ - public void setAsseverazioneService( - it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService) { - this.asseverazioneService = asseverazioneService; - } - - /** - * Returns the asseverazione persistence. - * - * @return the asseverazione persistence - */ - public AsseverazionePersistence getAsseverazionePersistence() { - return asseverazionePersistence; - } - - /** - * Sets the asseverazione persistence. - * - * @param asseverazionePersistence the asseverazione persistence - */ - public void setAsseverazionePersistence( - AsseverazionePersistence asseverazionePersistence) { - this.asseverazionePersistence = asseverazionePersistence; - } - - /** - * Returns the avviso local service. - * - * @return the avviso local service - */ - public it.tref.liferay.portos.bo.service.AvvisoLocalService getAvvisoLocalService() { - return avvisoLocalService; - } - - /** - * Sets the avviso local service. - * - * @param avvisoLocalService the avviso local service - */ - public void setAvvisoLocalService( - it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService) { - this.avvisoLocalService = avvisoLocalService; - } - - /** - * Returns the avviso remote service. - * - * @return the avviso remote service - */ - public it.tref.liferay.portos.bo.service.AvvisoService getAvvisoService() { - return avvisoService; - } - - /** - * Sets the avviso remote service. - * - * @param avvisoService the avviso remote service - */ - public void setAvvisoService( - it.tref.liferay.portos.bo.service.AvvisoService avvisoService) { - this.avvisoService = avvisoService; - } - - /** - * Returns the avviso persistence. - * - * @return the avviso persistence - */ - public AvvisoPersistence getAvvisoPersistence() { - return avvisoPersistence; - } - - /** - * Sets the avviso persistence. - * - * @param avvisoPersistence the avviso persistence - */ - public void setAvvisoPersistence(AvvisoPersistence avvisoPersistence) { - this.avvisoPersistence = avvisoPersistence; - } - - /** - * Returns the collaudo local service. - * - * @return the collaudo local service - */ - public it.tref.liferay.portos.bo.service.CollaudoLocalService getCollaudoLocalService() { - return collaudoLocalService; - } - - /** - * Sets the collaudo local service. - * - * @param collaudoLocalService the collaudo local service - */ - public void setCollaudoLocalService( - it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService) { - this.collaudoLocalService = collaudoLocalService; - } - - /** - * Returns the collaudo remote service. - * - * @return the collaudo remote service - */ - public it.tref.liferay.portos.bo.service.CollaudoService getCollaudoService() { - return collaudoService; - } - - /** - * Sets the collaudo remote service. - * - * @param collaudoService the collaudo remote service - */ - public void setCollaudoService( - it.tref.liferay.portos.bo.service.CollaudoService collaudoService) { - this.collaudoService = collaudoService; - } - - /** - * Returns the collaudo persistence. - * - * @return the collaudo persistence - */ - public CollaudoPersistence getCollaudoPersistence() { - return collaudoPersistence; - } - - /** - * Sets the collaudo persistence. - * - * @param collaudoPersistence the collaudo persistence - */ - public void setCollaudoPersistence(CollaudoPersistence collaudoPersistence) { - this.collaudoPersistence = collaudoPersistence; - } - - /** - * Returns the comune local service. - * - * @return the comune local service - */ - public it.tref.liferay.portos.bo.service.ComuneLocalService getComuneLocalService() { - return comuneLocalService; - } - - /** - * Sets the comune local service. - * - * @param comuneLocalService the comune local service - */ - public void setComuneLocalService( - it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService) { - this.comuneLocalService = comuneLocalService; - } - - /** - * Returns the comune remote service. - * - * @return the comune remote service - */ - public it.tref.liferay.portos.bo.service.ComuneService getComuneService() { - return comuneService; - } - - /** - * Sets the comune remote service. - * - * @param comuneService the comune remote service - */ - public void setComuneService( - it.tref.liferay.portos.bo.service.ComuneService comuneService) { - this.comuneService = comuneService; - } - - /** - * Returns the comune persistence. - * - * @return the comune persistence - */ - public ComunePersistence getComunePersistence() { - return comunePersistence; - } - - /** - * Sets the comune persistence. - * - * @param comunePersistence the comune persistence - */ - public void setComunePersistence(ComunePersistence comunePersistence) { - this.comunePersistence = comunePersistence; - } - - /** - * Returns the comunicazione local service. - * - * @return the comunicazione local service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneLocalService getComunicazioneLocalService() { - return comunicazioneLocalService; - } - - /** - * Sets the comunicazione local service. - * - * @param comunicazioneLocalService the comunicazione local service - */ - public void setComunicazioneLocalService( - it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService) { - this.comunicazioneLocalService = comunicazioneLocalService; - } - - /** - * Returns the comunicazione remote service. - * - * @return the comunicazione remote service - */ - public it.tref.liferay.portos.bo.service.ComunicazioneService getComunicazioneService() { - return comunicazioneService; - } - - /** - * Sets the comunicazione remote service. - * - * @param comunicazioneService the comunicazione remote service - */ - public void setComunicazioneService( - it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService) { - this.comunicazioneService = comunicazioneService; - } - - /** - * Returns the comunicazione persistence. - * - * @return the comunicazione persistence - */ - public ComunicazionePersistence getComunicazionePersistence() { - return comunicazionePersistence; - } - - /** - * Sets the comunicazione persistence. - * - * @param comunicazionePersistence the comunicazione persistence - */ - public void setComunicazionePersistence( - ComunicazionePersistence comunicazionePersistence) { - this.comunicazionePersistence = comunicazionePersistence; - } - - /** - * Returns the configurazione local service. - * - * @return the configurazione local service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneLocalService getConfigurazioneLocalService() { - return configurazioneLocalService; - } - - /** - * Sets the configurazione local service. - * - * @param configurazioneLocalService the configurazione local service - */ - public void setConfigurazioneLocalService( - it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService) { - this.configurazioneLocalService = configurazioneLocalService; - } - - /** - * Returns the configurazione remote service. - * - * @return the configurazione remote service - */ - public it.tref.liferay.portos.bo.service.ConfigurazioneService getConfigurazioneService() { - return configurazioneService; - } - - /** - * Sets the configurazione remote service. - * - * @param configurazioneService the configurazione remote service - */ - public void setConfigurazioneService( - it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService) { - this.configurazioneService = configurazioneService; - } - - /** - * Returns the configurazione persistence. - * - * @return the configurazione persistence - */ - public ConfigurazionePersistence getConfigurazionePersistence() { - return configurazionePersistence; - } - - /** - * Sets the configurazione persistence. - * - * @param configurazionePersistence the configurazione persistence - */ - public void setConfigurazionePersistence( - ConfigurazionePersistence configurazionePersistence) { - this.configurazionePersistence = configurazionePersistence; - } - - /** - * Returns the controllo pratica local service. - * - * @return the controllo pratica local service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaLocalService getControlloPraticaLocalService() { - return controlloPraticaLocalService; - } - - /** - * Sets the controllo pratica local service. - * - * @param controlloPraticaLocalService the controllo pratica local service - */ - public void setControlloPraticaLocalService( - it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService) { - this.controlloPraticaLocalService = controlloPraticaLocalService; - } - - /** - * Returns the controllo pratica remote service. - * - * @return the controllo pratica remote service - */ - public it.tref.liferay.portos.bo.service.ControlloPraticaService getControlloPraticaService() { - return controlloPraticaService; - } - - /** - * Sets the controllo pratica remote service. - * - * @param controlloPraticaService the controllo pratica remote service - */ - public void setControlloPraticaService( - it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService) { - this.controlloPraticaService = controlloPraticaService; - } - - /** - * Returns the controllo pratica persistence. - * - * @return the controllo pratica persistence - */ - public ControlloPraticaPersistence getControlloPraticaPersistence() { - return controlloPraticaPersistence; - } - - /** - * Sets the controllo pratica persistence. - * - * @param controlloPraticaPersistence the controllo pratica persistence - */ - public void setControlloPraticaPersistence( - ControlloPraticaPersistence controlloPraticaPersistence) { - this.controlloPraticaPersistence = controlloPraticaPersistence; - } - - /** - * Returns the delega local service. - * - * @return the delega local service - */ - public it.tref.liferay.portos.bo.service.DelegaLocalService getDelegaLocalService() { - return delegaLocalService; - } - - /** - * Sets the delega local service. - * - * @param delegaLocalService the delega local service - */ - public void setDelegaLocalService( - it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService) { - this.delegaLocalService = delegaLocalService; - } - - /** - * Returns the delega remote service. - * - * @return the delega remote service - */ - public it.tref.liferay.portos.bo.service.DelegaService getDelegaService() { - return delegaService; - } - - /** - * Sets the delega remote service. - * - * @param delegaService the delega remote service - */ - public void setDelegaService( - it.tref.liferay.portos.bo.service.DelegaService delegaService) { - this.delegaService = delegaService; - } - - /** - * Returns the delega persistence. - * - * @return the delega persistence - */ - public DelegaPersistence getDelegaPersistence() { - return delegaPersistence; - } - - /** - * Sets the delega persistence. - * - * @param delegaPersistence the delega persistence - */ - public void setDelegaPersistence(DelegaPersistence delegaPersistence) { - this.delegaPersistence = delegaPersistence; - } - - /** - * Returns the dett pratica local service. - * - * @return the dett pratica local service - */ - public it.tref.liferay.portos.bo.service.DettPraticaLocalService getDettPraticaLocalService() { - return dettPraticaLocalService; - } - - /** - * Sets the dett pratica local service. - * - * @param dettPraticaLocalService the dett pratica local service - */ - public void setDettPraticaLocalService( - it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService) { - this.dettPraticaLocalService = dettPraticaLocalService; - } - - /** - * Returns the dett pratica remote service. - * - * @return the dett pratica remote service - */ - public it.tref.liferay.portos.bo.service.DettPraticaService getDettPraticaService() { - return dettPraticaService; - } - - /** - * Sets the dett pratica remote service. - * - * @param dettPraticaService the dett pratica remote service - */ - public void setDettPraticaService( - it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService) { - this.dettPraticaService = dettPraticaService; - } - - /** - * Returns the dett pratica persistence. - * - * @return the dett pratica persistence - */ - public DettPraticaPersistence getDettPraticaPersistence() { - return dettPraticaPersistence; - } - - /** - * Sets the dett pratica persistence. - * - * @param dettPraticaPersistence the dett pratica persistence - */ - public void setDettPraticaPersistence( - DettPraticaPersistence dettPraticaPersistence) { - this.dettPraticaPersistence = dettPraticaPersistence; - } - - /** - * Returns the doc aggiuntiva local service. - * - * @return the doc aggiuntiva local service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService getDocAggiuntivaLocalService() { - return docAggiuntivaLocalService; - } - - /** - * Sets the doc aggiuntiva local service. - * - * @param docAggiuntivaLocalService the doc aggiuntiva local service - */ - public void setDocAggiuntivaLocalService( - it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService) { - this.docAggiuntivaLocalService = docAggiuntivaLocalService; - } - - /** - * Returns the doc aggiuntiva remote service. - * - * @return the doc aggiuntiva remote service - */ - public it.tref.liferay.portos.bo.service.DocAggiuntivaService getDocAggiuntivaService() { - return docAggiuntivaService; - } - - /** - * Sets the doc aggiuntiva remote service. - * - * @param docAggiuntivaService the doc aggiuntiva remote service - */ - public void setDocAggiuntivaService( - it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService) { - this.docAggiuntivaService = docAggiuntivaService; - } - - /** - * Returns the doc aggiuntiva persistence. - * - * @return the doc aggiuntiva persistence - */ - public DocAggiuntivaPersistence getDocAggiuntivaPersistence() { - return docAggiuntivaPersistence; - } - - /** - * Sets the doc aggiuntiva persistence. - * - * @param docAggiuntivaPersistence the doc aggiuntiva persistence - */ - public void setDocAggiuntivaPersistence( - DocAggiuntivaPersistence docAggiuntivaPersistence) { - this.docAggiuntivaPersistence = docAggiuntivaPersistence; - } - - /** - * Returns the doc pratica local service. - * - * @return the doc pratica local service - */ - public it.tref.liferay.portos.bo.service.DocPraticaLocalService getDocPraticaLocalService() { - return docPraticaLocalService; - } - - /** - * Sets the doc pratica local service. - * - * @param docPraticaLocalService the doc pratica local service - */ - public void setDocPraticaLocalService( - it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService) { - this.docPraticaLocalService = docPraticaLocalService; - } - - /** - * Returns the doc pratica remote service. - * - * @return the doc pratica remote service - */ - public it.tref.liferay.portos.bo.service.DocPraticaService getDocPraticaService() { - return docPraticaService; - } - - /** - * Sets the doc pratica remote service. - * - * @param docPraticaService the doc pratica remote service - */ - public void setDocPraticaService( - it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService) { - this.docPraticaService = docPraticaService; - } - - /** - * Returns the doc pratica persistence. - * - * @return the doc pratica persistence - */ - public DocPraticaPersistence getDocPraticaPersistence() { - return docPraticaPersistence; - } - - /** - * Sets the doc pratica persistence. - * - * @param docPraticaPersistence the doc pratica persistence - */ - public void setDocPraticaPersistence( - DocPraticaPersistence docPraticaPersistence) { - this.docPraticaPersistence = docPraticaPersistence; - } - - /** - * Returns the fine lavori local service. - * - * @return the fine lavori local service - */ - public it.tref.liferay.portos.bo.service.FineLavoriLocalService getFineLavoriLocalService() { - return fineLavoriLocalService; - } - - /** - * Sets the fine lavori local service. - * - * @param fineLavoriLocalService the fine lavori local service - */ - public void setFineLavoriLocalService( - it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService) { - this.fineLavoriLocalService = fineLavoriLocalService; - } - - /** - * Returns the fine lavori remote service. - * - * @return the fine lavori remote service - */ - public it.tref.liferay.portos.bo.service.FineLavoriService getFineLavoriService() { - return fineLavoriService; - } - - /** - * Sets the fine lavori remote service. - * - * @param fineLavoriService the fine lavori remote service - */ - public void setFineLavoriService( - it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService) { - this.fineLavoriService = fineLavoriService; - } - - /** - * Returns the fine lavori persistence. - * - * @return the fine lavori persistence - */ - public FineLavoriPersistence getFineLavoriPersistence() { - return fineLavoriPersistence; - } - - /** - * Sets the fine lavori persistence. - * - * @param fineLavoriPersistence the fine lavori persistence - */ - public void setFineLavoriPersistence( - FineLavoriPersistence fineLavoriPersistence) { - this.fineLavoriPersistence = fineLavoriPersistence; - } - - /** - * Returns the history workflow action local service. - * - * @return the history workflow action local service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService getHistoryWorkflowActionLocalService() { - return historyWorkflowActionLocalService; - } - - /** - * Sets the history workflow action local service. - * - * @param historyWorkflowActionLocalService the history workflow action local service - */ - public void setHistoryWorkflowActionLocalService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService) { - this.historyWorkflowActionLocalService = historyWorkflowActionLocalService; - } - - /** - * Returns the history workflow action remote service. - * - * @return the history workflow action remote service - */ - public it.tref.liferay.portos.bo.service.HistoryWorkflowActionService getHistoryWorkflowActionService() { - return historyWorkflowActionService; - } - - /** - * Sets the history workflow action remote service. - * - * @param historyWorkflowActionService the history workflow action remote service - */ - public void setHistoryWorkflowActionService( - it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService) { - this.historyWorkflowActionService = historyWorkflowActionService; - } - - /** - * Returns the history workflow action persistence. - * - * @return the history workflow action persistence - */ - public HistoryWorkflowActionPersistence getHistoryWorkflowActionPersistence() { - return historyWorkflowActionPersistence; - } - - /** - * Sets the history workflow action persistence. - * - * @param historyWorkflowActionPersistence the history workflow action persistence - */ - public void setHistoryWorkflowActionPersistence( - HistoryWorkflowActionPersistence historyWorkflowActionPersistence) { - this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; - } - - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - - /** - * Returns the int pratica local service. - * - * @return the int pratica local service - */ - public it.tref.liferay.portos.bo.service.IntPraticaLocalService getIntPraticaLocalService() { - return intPraticaLocalService; - } - - /** - * Sets the int pratica local service. - * - * @param intPraticaLocalService the int pratica local service - */ - public void setIntPraticaLocalService( - it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService) { - this.intPraticaLocalService = intPraticaLocalService; - } - - /** - * Returns the int pratica remote service. - * - * @return the int pratica remote service - */ - public it.tref.liferay.portos.bo.service.IntPraticaService getIntPraticaService() { - return intPraticaService; - } - - /** - * Sets the int pratica remote service. - * - * @param intPraticaService the int pratica remote service - */ - public void setIntPraticaService( - it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService) { - this.intPraticaService = intPraticaService; - } - - /** - * Returns the int pratica persistence. - * - * @return the int pratica persistence - */ - public IntPraticaPersistence getIntPraticaPersistence() { - return intPraticaPersistence; - } - - /** - * Sets the int pratica persistence. - * - * @param intPraticaPersistence the int pratica persistence - */ - public void setIntPraticaPersistence( - IntPraticaPersistence intPraticaPersistence) { - this.intPraticaPersistence = intPraticaPersistence; - } - - /** - * Returns the int pratica finder. - * - * @return the int pratica finder - */ - public IntPraticaFinder getIntPraticaFinder() { - return intPraticaFinder; - } - - /** - * Sets the int pratica finder. - * - * @param intPraticaFinder the int pratica finder - */ - public void setIntPraticaFinder(IntPraticaFinder intPraticaFinder) { - this.intPraticaFinder = intPraticaFinder; - } - - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - - /** - * Returns the pagamento local service. - * - * @return the pagamento local service - */ - public it.tref.liferay.portos.bo.service.PagamentoLocalService getPagamentoLocalService() { - return pagamentoLocalService; - } - - /** - * Sets the pagamento local service. - * - * @param pagamentoLocalService the pagamento local service - */ - public void setPagamentoLocalService( - it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService) { - this.pagamentoLocalService = pagamentoLocalService; - } - - /** - * Returns the pagamento remote service. - * - * @return the pagamento remote service - */ - public it.tref.liferay.portos.bo.service.PagamentoService getPagamentoService() { - return pagamentoService; - } - - /** - * Sets the pagamento remote service. - * - * @param pagamentoService the pagamento remote service - */ - public void setPagamentoService( - it.tref.liferay.portos.bo.service.PagamentoService pagamentoService) { - this.pagamentoService = pagamentoService; - } - - /** - * Returns the pagamento persistence. - * - * @return the pagamento persistence - */ - public PagamentoPersistence getPagamentoPersistence() { - return pagamentoPersistence; - } - - /** - * Sets the pagamento persistence. - * - * @param pagamentoPersistence the pagamento persistence - */ - public void setPagamentoPersistence( - PagamentoPersistence pagamentoPersistence) { - this.pagamentoPersistence = pagamentoPersistence; - } - - /** - * Returns the parere geologo local service. - * - * @return the parere geologo local service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoLocalService getParereGeologoLocalService() { - return parereGeologoLocalService; - } - - /** - * Sets the parere geologo local service. - * - * @param parereGeologoLocalService the parere geologo local service - */ - public void setParereGeologoLocalService( - it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService) { - this.parereGeologoLocalService = parereGeologoLocalService; - } - - /** - * Returns the parere geologo remote service. - * - * @return the parere geologo remote service - */ - public it.tref.liferay.portos.bo.service.ParereGeologoService getParereGeologoService() { - return parereGeologoService; - } - - /** - * Sets the parere geologo remote service. - * - * @param parereGeologoService the parere geologo remote service - */ - public void setParereGeologoService( - it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService) { - this.parereGeologoService = parereGeologoService; - } - - /** - * Returns the parere geologo persistence. - * - * @return the parere geologo persistence - */ - public ParereGeologoPersistence getParereGeologoPersistence() { - return parereGeologoPersistence; - } - - /** - * Sets the parere geologo persistence. - * - * @param parereGeologoPersistence the parere geologo persistence - */ - public void setParereGeologoPersistence( - ParereGeologoPersistence parereGeologoPersistence) { - this.parereGeologoPersistence = parereGeologoPersistence; - } - - /** - * Returns the provincia local service. - * - * @return the provincia local service - */ - public it.tref.liferay.portos.bo.service.ProvinciaLocalService getProvinciaLocalService() { - return provinciaLocalService; - } - - /** - * Sets the provincia local service. - * - * @param provinciaLocalService the provincia local service - */ - public void setProvinciaLocalService( - it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService) { - this.provinciaLocalService = provinciaLocalService; - } - - /** - * Returns the provincia remote service. - * - * @return the provincia remote service - */ - public it.tref.liferay.portos.bo.service.ProvinciaService getProvinciaService() { - return provinciaService; - } - - /** - * Sets the provincia remote service. - * - * @param provinciaService the provincia remote service - */ - public void setProvinciaService( - it.tref.liferay.portos.bo.service.ProvinciaService provinciaService) { - this.provinciaService = provinciaService; - } - - /** - * Returns the provincia persistence. - * - * @return the provincia persistence - */ - public ProvinciaPersistence getProvinciaPersistence() { - return provinciaPersistence; - } - - /** - * Sets the provincia persistence. - * - * @param provinciaPersistence the provincia persistence - */ - public void setProvinciaPersistence( - ProvinciaPersistence provinciaPersistence) { - this.provinciaPersistence = provinciaPersistence; - } - - /** - * Returns the soggetto local service. - * - * @return the soggetto local service - */ - public it.tref.liferay.portos.bo.service.SoggettoLocalService getSoggettoLocalService() { - return soggettoLocalService; - } - - /** - * Sets the soggetto local service. - * - * @param soggettoLocalService the soggetto local service - */ - public void setSoggettoLocalService( - it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService) { - this.soggettoLocalService = soggettoLocalService; - } - - /** - * Returns the soggetto remote service. - * - * @return the soggetto remote service - */ - public it.tref.liferay.portos.bo.service.SoggettoService getSoggettoService() { - return soggettoService; - } - - /** - * Sets the soggetto remote service. - * - * @param soggettoService the soggetto remote service - */ - public void setSoggettoService( - it.tref.liferay.portos.bo.service.SoggettoService soggettoService) { - this.soggettoService = soggettoService; - } - - /** - * Returns the soggetto persistence. - * - * @return the soggetto persistence - */ - public SoggettoPersistence getSoggettoPersistence() { - return soggettoPersistence; - } - - /** - * Sets the soggetto persistence. - * - * @param soggettoPersistence the soggetto persistence - */ - public void setSoggettoPersistence(SoggettoPersistence soggettoPersistence) { - this.soggettoPersistence = soggettoPersistence; - } - - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - - /** - * Returns the storico soggetto pratica local service. - * - * @return the storico soggetto pratica local service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService getStoricoSoggettoPraticaLocalService() { - return storicoSoggettoPraticaLocalService; - } - - /** - * Sets the storico soggetto pratica local service. - * - * @param storicoSoggettoPraticaLocalService the storico soggetto pratica local service - */ - public void setStoricoSoggettoPraticaLocalService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService) { - this.storicoSoggettoPraticaLocalService = storicoSoggettoPraticaLocalService; - } - - /** - * Returns the storico soggetto pratica remote service. - * - * @return the storico soggetto pratica remote service - */ - public it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService getStoricoSoggettoPraticaService() { - return storicoSoggettoPraticaService; - } - - /** - * Sets the storico soggetto pratica remote service. - * - * @param storicoSoggettoPraticaService the storico soggetto pratica remote service - */ - public void setStoricoSoggettoPraticaService( - it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService) { - this.storicoSoggettoPraticaService = storicoSoggettoPraticaService; - } - - /** - * Returns the storico soggetto pratica persistence. - * - * @return the storico soggetto pratica persistence - */ - public StoricoSoggettoPraticaPersistence getStoricoSoggettoPraticaPersistence() { - return storicoSoggettoPraticaPersistence; - } - - /** - * Sets the storico soggetto pratica persistence. - * - * @param storicoSoggettoPraticaPersistence the storico soggetto pratica persistence - */ - public void setStoricoSoggettoPraticaPersistence( - StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence) { - this.storicoSoggettoPraticaPersistence = storicoSoggettoPraticaPersistence; - } - - /** - * Returns the tempistica local service. - * - * @return the tempistica local service - */ - public it.tref.liferay.portos.bo.service.TempisticaLocalService getTempisticaLocalService() { - return tempisticaLocalService; - } - - /** - * Sets the tempistica local service. - * - * @param tempisticaLocalService the tempistica local service - */ - public void setTempisticaLocalService( - it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService) { - this.tempisticaLocalService = tempisticaLocalService; - } - - /** - * Returns the tempistica remote service. - * - * @return the tempistica remote service - */ - public it.tref.liferay.portos.bo.service.TempisticaService getTempisticaService() { - return tempisticaService; - } - - /** - * Sets the tempistica remote service. - * - * @param tempisticaService the tempistica remote service - */ - public void setTempisticaService( - it.tref.liferay.portos.bo.service.TempisticaService tempisticaService) { - this.tempisticaService = tempisticaService; - } - - /** - * Returns the tempistica persistence. - * - * @return the tempistica persistence - */ - public TempisticaPersistence getTempisticaPersistence() { - return tempisticaPersistence; - } - - /** - * Sets the tempistica persistence. - * - * @param tempisticaPersistence the tempistica persistence - */ - public void setTempisticaPersistence( - TempisticaPersistence tempisticaPersistence) { - this.tempisticaPersistence = tempisticaPersistence; - } - - /** - * Returns the tempistica finder. - * - * @return the tempistica finder - */ - public TempisticaFinder getTempisticaFinder() { - return tempisticaFinder; - } - - /** - * Sets the tempistica finder. - * - * @param tempisticaFinder the tempistica finder - */ - public void setTempisticaFinder(TempisticaFinder tempisticaFinder) { - this.tempisticaFinder = tempisticaFinder; - } - - /** - * Returns the territorio local service. - * - * @return the territorio local service - */ - public it.tref.liferay.portos.bo.service.TerritorioLocalService getTerritorioLocalService() { - return territorioLocalService; - } - - /** - * Sets the territorio local service. - * - * @param territorioLocalService the territorio local service - */ - public void setTerritorioLocalService( - it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService) { - this.territorioLocalService = territorioLocalService; - } - - /** - * Returns the territorio remote service. - * - * @return the territorio remote service - */ - public it.tref.liferay.portos.bo.service.TerritorioService getTerritorioService() { - return territorioService; - } - - /** - * Sets the territorio remote service. - * - * @param territorioService the territorio remote service - */ - public void setTerritorioService( - it.tref.liferay.portos.bo.service.TerritorioService territorioService) { - this.territorioService = territorioService; - } - - /** - * Returns the territorio persistence. - * - * @return the territorio persistence - */ - public TerritorioPersistence getTerritorioPersistence() { - return territorioPersistence; - } - - /** - * Sets the territorio persistence. - * - * @param territorioPersistence the territorio persistence - */ - public void setTerritorioPersistence( - TerritorioPersistence territorioPersistence) { - this.territorioPersistence = territorioPersistence; - } - - /** - * Returns the counter local service. - * - * @return the counter local service - */ - public com.liferay.counter.service.CounterLocalService getCounterLocalService() { - return counterLocalService; - } - - /** - * Sets the counter local service. - * - * @param counterLocalService the counter local service - */ - public void setCounterLocalService( - com.liferay.counter.service.CounterLocalService counterLocalService) { - this.counterLocalService = counterLocalService; - } - - /** - * Returns the resource local service. - * - * @return the resource local service - */ - public com.liferay.portal.service.ResourceLocalService getResourceLocalService() { - return resourceLocalService; - } - - /** - * Sets the resource local service. - * - * @param resourceLocalService the resource local service - */ - public void setResourceLocalService( - com.liferay.portal.service.ResourceLocalService resourceLocalService) { - this.resourceLocalService = resourceLocalService; - } - - /** - * Returns the user local service. - * - * @return the user local service - */ - public com.liferay.portal.service.UserLocalService getUserLocalService() { - return userLocalService; - } - - /** - * Sets the user local service. - * - * @param userLocalService the user local service - */ - public void setUserLocalService( - com.liferay.portal.service.UserLocalService userLocalService) { - this.userLocalService = userLocalService; - } - - /** - * Returns the user remote service. - * - * @return the user remote service - */ - public com.liferay.portal.service.UserService getUserService() { - return userService; - } - - /** - * Sets the user remote service. - * - * @param userService the user remote service - */ - public void setUserService( - com.liferay.portal.service.UserService userService) { - this.userService = userService; - } - - /** - * Returns the user persistence. - * - * @return the user persistence - */ - public UserPersistence getUserPersistence() { - return userPersistence; - } - - /** - * Sets the user persistence. - * - * @param userPersistence the user persistence - */ - public void setUserPersistence(UserPersistence userPersistence) { - this.userPersistence = userPersistence; - } - - public void afterPropertiesSet() { - Class clazz = getClass(); - - _classLoader = clazz.getClassLoader(); - } - - public void destroy() { - } - - /** - * Returns the Spring bean ID for this bean. - * - * @return the Spring bean ID for this bean - */ - @Override - public String getBeanIdentifier() { - return _beanIdentifier; - } - - /** - * Sets the Spring bean ID for this bean. - * - * @param beanIdentifier the Spring bean ID for this bean - */ - @Override - public void setBeanIdentifier(String beanIdentifier) { - _beanIdentifier = beanIdentifier; - } - - @Override - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - Thread currentThread = Thread.currentThread(); - - ClassLoader contextClassLoader = currentThread.getContextClassLoader(); - - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(_classLoader); - } - - try { - return _clpInvoker.invokeMethod(name, parameterTypes, arguments); - } - finally { - if (contextClassLoader != _classLoader) { - currentThread.setContextClassLoader(contextClassLoader); - } - } - } - - protected Class getModelClass() { - return Sorteggio.class; - } - - protected String getModelClassName() { - return Sorteggio.class.getName(); - } - - /** - * Performs an SQL query. - * - * @param sql the sql query - */ - protected void runSQL(String sql) throws SystemException { - try { - DataSource dataSource = sorteggioPersistence.getDataSource(); - - SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource, - sql, new int[0]); - - sqlUpdate.update(); - } - catch (Exception e) { - throw new SystemException(e); - } - } - - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeLocalService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeLocalService allegatoManualeLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AllegatoManualeService.class) - protected it.tref.liferay.portos.bo.service.AllegatoManualeService allegatoManualeService; - @BeanReference(type = AllegatoManualePersistence.class) - protected AllegatoManualePersistence allegatoManualePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneLocalService asseverazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AsseverazioneService.class) - protected it.tref.liferay.portos.bo.service.AsseverazioneService asseverazioneService; - @BeanReference(type = AsseverazionePersistence.class) - protected AsseverazionePersistence asseverazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoLocalService.class) - protected it.tref.liferay.portos.bo.service.AvvisoLocalService avvisoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.AvvisoService.class) - protected it.tref.liferay.portos.bo.service.AvvisoService avvisoService; - @BeanReference(type = AvvisoPersistence.class) - protected AvvisoPersistence avvisoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoLocalService.class) - protected it.tref.liferay.portos.bo.service.CollaudoLocalService collaudoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.CollaudoService.class) - protected it.tref.liferay.portos.bo.service.CollaudoService collaudoService; - @BeanReference(type = CollaudoPersistence.class) - protected CollaudoPersistence collaudoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComuneLocalService comuneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComuneService.class) - protected it.tref.liferay.portos.bo.service.ComuneService comuneService; - @BeanReference(type = ComunePersistence.class) - protected ComunePersistence comunePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneLocalService comunicazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ComunicazioneService.class) - protected it.tref.liferay.portos.bo.service.ComunicazioneService comunicazioneService; - @BeanReference(type = ComunicazionePersistence.class) - protected ComunicazionePersistence comunicazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneLocalService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneLocalService configurazioneLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ConfigurazioneService.class) - protected it.tref.liferay.portos.bo.service.ConfigurazioneService configurazioneService; - @BeanReference(type = ConfigurazionePersistence.class) - protected ConfigurazionePersistence configurazionePersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaLocalService controlloPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ControlloPraticaService.class) - protected it.tref.liferay.portos.bo.service.ControlloPraticaService controlloPraticaService; - @BeanReference(type = ControlloPraticaPersistence.class) - protected ControlloPraticaPersistence controlloPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaLocalService.class) - protected it.tref.liferay.portos.bo.service.DelegaLocalService delegaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DelegaService.class) - protected it.tref.liferay.portos.bo.service.DelegaService delegaService; - @BeanReference(type = DelegaPersistence.class) - protected DelegaPersistence delegaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaLocalService dettPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DettPraticaService.class) - protected it.tref.liferay.portos.bo.service.DettPraticaService dettPraticaService; - @BeanReference(type = DettPraticaPersistence.class) - protected DettPraticaPersistence dettPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService docAggiuntivaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocAggiuntivaService.class) - protected it.tref.liferay.portos.bo.service.DocAggiuntivaService docAggiuntivaService; - @BeanReference(type = DocAggiuntivaPersistence.class) - protected DocAggiuntivaPersistence docAggiuntivaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaLocalService docPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.DocPraticaService.class) - protected it.tref.liferay.portos.bo.service.DocPraticaService docPraticaService; - @BeanReference(type = DocPraticaPersistence.class) - protected DocPraticaPersistence docPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriLocalService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriLocalService fineLavoriLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.FineLavoriService.class) - protected it.tref.liferay.portos.bo.service.FineLavoriService fineLavoriService; - @BeanReference(type = FineLavoriPersistence.class) - protected FineLavoriPersistence fineLavoriPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService historyWorkflowActionLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.HistoryWorkflowActionService.class) - protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; - @BeanReference(type = HistoryWorkflowActionPersistence.class) - protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) - protected it.tref.liferay.portos.bo.service.IntPraticaService intPraticaService; - @BeanReference(type = IntPraticaPersistence.class) - protected IntPraticaPersistence intPraticaPersistence; - @BeanReference(type = IntPraticaFinder.class) - protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) - protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) - protected it.tref.liferay.portos.bo.service.PagamentoService pagamentoService; - @BeanReference(type = PagamentoPersistence.class) - protected PagamentoPersistence pagamentoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoLocalService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoLocalService parereGeologoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ParereGeologoService.class) - protected it.tref.liferay.portos.bo.service.ParereGeologoService parereGeologoService; - @BeanReference(type = ParereGeologoPersistence.class) - protected ParereGeologoPersistence parereGeologoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaLocalService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaLocalService provinciaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.ProvinciaService.class) - protected it.tref.liferay.portos.bo.service.ProvinciaService provinciaService; - @BeanReference(type = ProvinciaPersistence.class) - protected ProvinciaPersistence provinciaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoLocalService.class) - protected it.tref.liferay.portos.bo.service.SoggettoLocalService soggettoLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SoggettoService.class) - protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; - @BeanReference(type = SoggettoPersistence.class) - protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) - protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService storicoSoggettoPraticaService; - @BeanReference(type = StoricoSoggettoPraticaPersistence.class) - protected StoricoSoggettoPraticaPersistence storicoSoggettoPraticaPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaLocalService.class) - protected it.tref.liferay.portos.bo.service.TempisticaLocalService tempisticaLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TempisticaService.class) - protected it.tref.liferay.portos.bo.service.TempisticaService tempisticaService; - @BeanReference(type = TempisticaPersistence.class) - protected TempisticaPersistence tempisticaPersistence; - @BeanReference(type = TempisticaFinder.class) - protected TempisticaFinder tempisticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioLocalService.class) - protected it.tref.liferay.portos.bo.service.TerritorioLocalService territorioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.TerritorioService.class) - protected it.tref.liferay.portos.bo.service.TerritorioService territorioService; - @BeanReference(type = TerritorioPersistence.class) - protected TerritorioPersistence territorioPersistence; - @BeanReference(type = com.liferay.counter.service.CounterLocalService.class) - protected com.liferay.counter.service.CounterLocalService counterLocalService; - @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class) - protected com.liferay.portal.service.ResourceLocalService resourceLocalService; - @BeanReference(type = com.liferay.portal.service.UserLocalService.class) - protected com.liferay.portal.service.UserLocalService userLocalService; - @BeanReference(type = com.liferay.portal.service.UserService.class) - protected com.liferay.portal.service.UserService userService; - @BeanReference(type = UserPersistence.class) - protected UserPersistence userPersistence; - private String _beanIdentifier; - private ClassLoader _classLoader; - private SorteggioServiceClpInvoker _clpInvoker = new SorteggioServiceClpInvoker(); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceClpInvoker.java deleted file mode 100644 index cff8d0e4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/SorteggioServiceClpInvoker.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * 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.liferay.portos.bo.service.base; - -import it.tref.liferay.portos.bo.service.SorteggioServiceUtil; - -import java.util.Arrays; - -/** - * @author Davide Barbagallo, 3F Consulting - * @generated - */ -public class SorteggioServiceClpInvoker { - public SorteggioServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; - - _methodParameterTypes168 = new String[] { }; - - _methodName169 = "setBeanIdentifier"; - - _methodParameterTypes169 = new String[] { "java.lang.String" }; - } - - public Object invokeMethod(String name, String[] parameterTypes, - Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { - return SorteggioServiceUtil.getBeanIdentifier(); - } - - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { - SorteggioServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); - - return null; - } - - throw new UnsupportedOperationException(); - } - - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java index 421e50b3..02a18587 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1105,63 +1101,6 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1237,62 +1176,6 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1520,81 +1403,6 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2044,12 +1852,6 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2058,12 +1860,6 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2088,14 +1884,6 @@ public abstract class StoricoSoggettoPraticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java index cbd05b22..3091dd15 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaLocalServiceClpInvoker.java @@ -106,40 +106,28 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.StoricoSoggettoPratica" }; - _methodName184 = "getBeanIdentifier"; + _methodName164 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes164 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName165 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes165 = new String[] { "java.lang.String" }; - _methodName190 = "addStoricoSoggettoPratica"; + _methodName170 = "addStoricoSoggettoPratica"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes170 = new String[] { "long", "java.lang.String", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName191 = "addStoricoSoggettoPraticaForImport"; + _methodName171 = "findByIntPratica"; - _methodParameterTypes191 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String", "long", - "com.liferay.portal.service.ServiceContext" - }; - - _methodName192 = "fetchByOldStoricoSoggettoPraticaId"; - - _methodParameterTypes192 = new String[] { "long" }; - - _methodName193 = "findByIntPratica"; - - _methodParameterTypes193 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes171 = new String[] { "long", "long", "int", "int" }; - _methodName194 = "countByIntPratica"; + _methodName172 = "countByIntPratica"; - _methodParameterTypes194 = new String[] { "long", "long" }; + _methodParameterTypes172 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -231,50 +219,36 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { return StoricoSoggettoPraticaLocalServiceUtil.updateStoricoSoggettoPratica((it.tref.liferay.portos.bo.model.StoricoSoggettoPratica)arguments[0]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { StoricoSoggettoPraticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.addStoricoSoggettoPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { - return StoricoSoggettoPraticaLocalServiceUtil.addStoricoSoggettoPraticaForImport(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - (java.lang.String)arguments[3], - ((Long)arguments[4]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[5]); - } - - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { - return StoricoSoggettoPraticaLocalServiceUtil.fetchByOldStoricoSoggettoPraticaId(((Long)arguments[0]).longValue()); - } - - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return StoricoSoggettoPraticaLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -314,18 +288,14 @@ public class StoricoSoggettoPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + private String _methodName172; + private String[] _methodParameterTypes172; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java index 42c90495..eccac5a9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -870,63 +866,6 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1002,62 +941,6 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1285,81 +1168,6 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1804,12 +1612,6 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1818,12 +1620,6 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1848,14 +1644,6 @@ public abstract class StoricoSoggettoPraticaServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java index 4c38b1bd..3ddb8315 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/StoricoSoggettoPraticaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class StoricoSoggettoPraticaServiceClpInvoker { public StoricoSoggettoPraticaServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return StoricoSoggettoPraticaServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { StoricoSoggettoPraticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class StoricoSoggettoPraticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java index f6140bea..af14e56d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1159,63 +1155,6 @@ public abstract class TempisticaLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1291,62 +1230,6 @@ public abstract class TempisticaLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1574,81 +1457,6 @@ public abstract class TempisticaLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2098,12 +1906,6 @@ public abstract class TempisticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2112,12 +1914,6 @@ public abstract class TempisticaLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2142,14 +1938,6 @@ public abstract class TempisticaLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java index 11642904..4dfbfbfe 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaLocalServiceClpInvoker.java @@ -122,134 +122,118 @@ public class TempisticaLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Tempistica" }; - _methodName188 = "getBeanIdentifier"; + _methodName168 = "getBeanIdentifier"; - _methodParameterTypes188 = new String[] { }; + _methodParameterTypes168 = new String[] { }; - _methodName189 = "setBeanIdentifier"; + _methodName169 = "setBeanIdentifier"; - _methodParameterTypes189 = new String[] { "java.lang.String" }; + _methodParameterTypes169 = new String[] { "java.lang.String" }; - _methodName194 = "addTempistica"; + _methodName174 = "addTempistica"; - _methodParameterTypes194 = new String[] { + _methodParameterTypes174 = new String[] { "long", "long", "java.lang.String", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName195 = "stopTempistica"; + _methodName175 = "stopTempistica"; - _methodParameterTypes195 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes175 = new String[] { "long", "java.util.Date" }; - _methodName196 = "ravvioTempistica"; + _methodName176 = "ravvioTempistica"; - _methodParameterTypes196 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes176 = new String[] { "long", "java.util.Date" }; - _methodName197 = "concludiTempistica"; + _methodName177 = "concludiTempistica"; - _methodParameterTypes197 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes177 = new String[] { "long", "java.util.Date" }; - _methodName198 = "getTempistica"; + _methodName178 = "getTempistica"; - _methodParameterTypes198 = new String[] { + _methodParameterTypes178 = new String[] { "long", "long", "java.lang.String", "boolean" }; - _methodName199 = "countScadenzePraticheInScadenza"; + _methodName179 = "countScadenzePraticheInScadenza"; - _methodParameterTypes199 = new String[] { "long", "long" }; + _methodParameterTypes179 = new String[] { "long", "long" }; - _methodName200 = "countScadenzePraticheScadute"; + _methodName180 = "countScadenzePraticheScadute"; - _methodParameterTypes200 = new String[] { "long", "long" }; + _methodParameterTypes180 = new String[] { "long", "long" }; - _methodName201 = "countScadenzeIntegrazioniScadute"; + _methodName181 = "countScadenzeIntegrazioniScadute"; - _methodParameterTypes201 = new String[] { "long", "long" }; + _methodParameterTypes181 = new String[] { "long", "long" }; - _methodName202 = "countPraticheAttive"; + _methodName182 = "countPraticheAttive"; - _methodParameterTypes202 = new String[] { "long", "long" }; + _methodParameterTypes182 = new String[] { "long", "long" }; - _methodName203 = "getScadenzePratiche"; + _methodName183 = "getScadenzePratiche"; - _methodParameterTypes203 = new String[] { + _methodParameterTypes183 = new String[] { "long", "long", "int", "int", "java.lang.Integer", "java.lang.String", "java.lang.String" }; - _methodName204 = "getScadenzeIntegrazioni"; + _methodName184 = "getScadenzeIntegrazioni"; - _methodParameterTypes204 = new String[] { + _methodParameterTypes184 = new String[] { "long", "long", "int", "int", "java.lang.Integer" }; - _methodName205 = "countScadenzePratiche"; + _methodName185 = "countScadenzePratiche"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes185 = new String[] { "long", "long", "java.lang.Integer", "java.lang.String", "java.lang.String" }; - _methodName206 = "countScadenzeIntegrazioni"; + _methodName186 = "countScadenzeIntegrazioni"; - _methodParameterTypes206 = new String[] { "long", "long" }; + _methodParameterTypes186 = new String[] { "long", "long" }; - _methodName207 = "fetchByOldTempisticaId"; + _methodName187 = "findByIntPratica_Tipo"; - _methodParameterTypes207 = new String[] { "long" }; + _methodParameterTypes187 = new String[] { "long", "java.lang.String" }; - _methodName208 = "findByIntPratica_Tipo"; + _methodName188 = "countPraticheScaduteAutorizzazione"; - _methodParameterTypes208 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes188 = new String[] { "long", "long" }; - _methodName209 = "countPraticheScaduteAutorizzazione"; + _methodName189 = "countPraticheScaduteControlloObbligatorio"; - _methodParameterTypes209 = new String[] { "long", "long" }; + _methodParameterTypes189 = new String[] { "long", "long" }; - _methodName210 = "countPraticheScaduteSorteggiate"; + _methodName190 = "countPraticheInScadenzaAutorizzazioni"; - _methodParameterTypes210 = new String[] { "long", "long" }; + _methodParameterTypes190 = new String[] { "long", "long" }; - _methodName211 = "countPraticheScaduteControlloObbligatorio"; + _methodName191 = "countPraticheInScadenzaControlloObbligatorio"; - _methodParameterTypes211 = new String[] { "long", "long" }; + _methodParameterTypes191 = new String[] { "long", "long" }; - _methodName212 = "countPraticheInScadenzaAutorizzazioni"; + _methodName192 = "praticheAttiveAutorizzazioni"; - _methodParameterTypes212 = new String[] { "long", "long" }; + _methodParameterTypes192 = new String[] { "long", "long" }; - _methodName213 = "countPraticheInScadenzaSorteggiate"; + _methodName193 = "praticheAttiveControlloObbligatorio"; - _methodParameterTypes213 = new String[] { "long", "long" }; + _methodParameterTypes193 = new String[] { "long", "long" }; - _methodName214 = "countPraticheInScadenzaControlloObbligatorio"; + _methodName194 = "getDtSottopostaAParere"; - _methodParameterTypes214 = new String[] { "long", "long" }; + _methodParameterTypes194 = new String[] { "long" }; - _methodName215 = "praticheAttiveAutorizzazioni"; + _methodName195 = "countPraticheAttivePerDiscriminazione"; - _methodParameterTypes215 = new String[] { "long", "long" }; + _methodParameterTypes195 = new String[] { "long", "long" }; - _methodName216 = "praticheAttiveSorteggiate"; + _methodName196 = "scadenzePraticheForBackwardCompatibility"; - _methodParameterTypes216 = new String[] { "long", "long" }; - - _methodName217 = "praticheAttiveControlloObbligatorio"; - - _methodParameterTypes217 = new String[] { "long", "long" }; - - _methodName218 = "getDtSottopostaAParere"; - - _methodParameterTypes218 = new String[] { "long" }; - - _methodName219 = "countPraticheAttivePerDiscriminazione"; - - _methodParameterTypes219 = new String[] { "long", "long" }; - - _methodName220 = "scadenzePraticheForBackwardCompatibility"; - - _methodParameterTypes220 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes196 = new String[] { "long", "long", "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -365,78 +349,78 @@ public class TempisticaLocalServiceClpInvoker { return TempisticaLocalServiceUtil.updateTempistica((it.tref.liferay.portos.bo.model.Tempistica)arguments[0]); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName168.equals(name) && + Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { return TempisticaLocalServiceUtil.getBeanIdentifier(); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName169.equals(name) && + Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { TempisticaLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return TempisticaLocalServiceUtil.addTempistica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.util.Date)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return TempisticaLocalServiceUtil.stopTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return TempisticaLocalServiceUtil.ravvioTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return TempisticaLocalServiceUtil.concludiTempistica(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return TempisticaLocalServiceUtil.getTempistica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePraticheInScadenza(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePraticheScadute(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzeIntegrazioniScadute(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheAttive(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return TempisticaLocalServiceUtil.getScadenzePratiche(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -445,8 +429,8 @@ public class TempisticaLocalServiceClpInvoker { (java.lang.String)arguments[5], (java.lang.String)arguments[6]); } - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return TempisticaLocalServiceUtil.getScadenzeIntegrazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -454,98 +438,75 @@ public class TempisticaLocalServiceClpInvoker { (java.lang.Integer)arguments[4]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName185.equals(name) && + Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzePratiche(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.Integer)arguments[2], (java.lang.String)arguments[3], (java.lang.String)arguments[4]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return TempisticaLocalServiceUtil.countScadenzeIntegrazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { - return TempisticaLocalServiceUtil.fetchByOldTempisticaId(((Long)arguments[0]).longValue()); - } - - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return TempisticaLocalServiceUtil.findByIntPratica_Tipo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheScaduteAutorizzazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { - return TempisticaLocalServiceUtil.countPraticheScaduteSorteggiate(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheScaduteControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheInScadenzaAutorizzazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { - return TempisticaLocalServiceUtil.countPraticheInScadenzaSorteggiate(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheInScadenzaControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return TempisticaLocalServiceUtil.praticheAttiveAutorizzazioni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { - return TempisticaLocalServiceUtil.praticheAttiveSorteggiate(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - } - - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return TempisticaLocalServiceUtil.praticheAttiveControlloObbligatorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { return TempisticaLocalServiceUtil.getDtSottopostaAParere(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return TempisticaLocalServiceUtil.countPraticheAttivePerDiscriminazione(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName196.equals(name) && + Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { return TempisticaLocalServiceUtil.scadenzePraticheForBackwardCompatibility(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), @@ -595,62 +556,54 @@ public class TempisticaLocalServiceClpInvoker { private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; + private String _methodName168; + private String[] _methodParameterTypes168; + private String _methodName169; + private String[] _methodParameterTypes169; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; + private String _methodName184; + private String[] _methodParameterTypes184; + private String _methodName185; + private String[] _methodParameterTypes185; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; private String _methodName188; private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; private String _methodName194; private String[] _methodParameterTypes194; private String _methodName195; private String[] _methodParameterTypes195; private String _methodName196; private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; - private String _methodName212; - private String[] _methodParameterTypes212; - private String _methodName213; - private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; - private String _methodName215; - private String[] _methodParameterTypes215; - private String _methodName216; - private String[] _methodParameterTypes216; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName218; - private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName220; - private String[] _methodParameterTypes220; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java index 2d26ca9f..c39778cc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class TempisticaServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java index cf77e32a..43ba8f71 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TempisticaServiceClpInvoker.java @@ -24,24 +24,24 @@ import java.util.Arrays; */ public class TempisticaServiceClpInvoker { public TempisticaServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return TempisticaServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { TempisticaServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; @@ -50,8 +50,8 @@ public class TempisticaServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java index beaf4afa..894da17d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceBaseImpl.java @@ -47,16 +47,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -1101,63 +1097,6 @@ public abstract class TerritorioLocalServiceBaseImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1233,62 +1172,6 @@ public abstract class TerritorioLocalServiceBaseImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1516,81 +1399,6 @@ public abstract class TerritorioLocalServiceBaseImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -2040,12 +1848,6 @@ public abstract class TerritorioLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -2054,12 +1856,6 @@ public abstract class TerritorioLocalServiceBaseImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -2084,14 +1880,6 @@ public abstract class TerritorioLocalServiceBaseImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java index 23d398fc..3835122b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java @@ -106,98 +106,94 @@ public class TerritorioLocalServiceClpInvoker { "it.tref.liferay.portos.bo.model.Territorio" }; - _methodName184 = "getBeanIdentifier"; + _methodName164 = "getBeanIdentifier"; - _methodParameterTypes184 = new String[] { }; + _methodParameterTypes164 = new String[] { }; - _methodName185 = "setBeanIdentifier"; + _methodName165 = "setBeanIdentifier"; - _methodParameterTypes185 = new String[] { "java.lang.String" }; + _methodParameterTypes165 = new String[] { "java.lang.String" }; - _methodName190 = "addTerritorio"; + _methodName170 = "addTerritorio"; - _methodParameterTypes190 = new String[] { + _methodParameterTypes170 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", - "java.util.Date", "java.lang.String", "java.lang.String", "long", + "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName191 = "updateTerritorio"; + _methodName171 = "updateTerritorio"; - _methodParameterTypes191 = new String[] { + _methodParameterTypes171 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName192 = "getTerritori"; + _methodName172 = "getTerritori"; - _methodParameterTypes192 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes172 = new String[] { "long", "long", "int", "int" }; - _methodName193 = "countTerritori"; + _methodName173 = "countTerritori"; - _methodParameterTypes193 = new String[] { "long", "long" }; + _methodParameterTypes173 = new String[] { "long", "long" }; - _methodName194 = "findByComuneId"; + _methodName174 = "findByComuneId"; - _methodParameterTypes194 = new String[] { "long", "int", "int" }; + _methodParameterTypes174 = new String[] { "long", "int", "int" }; - _methodName195 = "findByCompanyIdGroupId"; + _methodName175 = "findByCompanyIdGroupId"; - _methodParameterTypes195 = new String[] { "long", "long" }; + _methodParameterTypes175 = new String[] { "long", "long" }; - _methodName196 = "getActiveProvince"; + _methodName176 = "getActiveProvince"; - _methodParameterTypes196 = new String[] { }; + _methodParameterTypes176 = new String[] { }; - _methodName197 = "getActiveComuniByCodiceProvincia"; + _methodName177 = "getActiveComuniByCodiceProvincia"; - _methodParameterTypes197 = new String[] { "java.lang.String" }; + _methodParameterTypes177 = new String[] { "java.lang.String" }; - _methodName198 = "getActiveTerritoriByComune"; + _methodName178 = "getActiveTerritoriByComune"; - _methodParameterTypes198 = new String[] { "long" }; + _methodParameterTypes178 = new String[] { "long" }; - _methodName199 = "deleteTerritorio"; + _methodName179 = "deleteTerritorio"; - _methodParameterTypes199 = new String[] { "long" }; + _methodParameterTypes179 = new String[] { "long" }; - _methodName200 = "deleteTerritorio"; + _methodName180 = "deleteTerritorio"; - _methodParameterTypes200 = new String[] { + _methodParameterTypes180 = new String[] { "it.tref.liferay.portos.bo.model.Territorio" }; - _methodName201 = "findTerritorioByComuneIdGZonaFasciaDtIni"; + _methodName181 = "findTerritorioByComuneIdGZonaFasciaDtIni"; - _methodParameterTypes201 = new String[] { + _methodParameterTypes181 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; - _methodName202 = "fetchByOldTerriotioId"; - - _methodParameterTypes202 = new String[] { "long" }; - - _methodName204 = "getTerritoriByGroupAndZona"; + _methodName183 = "getTerritoriByGroupAndZona"; - _methodParameterTypes204 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes183 = new String[] { "long", "java.lang.String" }; - _methodName205 = "getTerritoriByGroupAndZonaAndFascia"; + _methodName184 = "getTerritoriByGroupAndZonaAndFascia"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes184 = new String[] { "long", "java.lang.String", "java.lang.String" }; - _methodName207 = "getAllTerritorioGroup"; + _methodName186 = "getAllTerritorioGroup"; - _methodParameterTypes207 = new String[] { }; + _methodParameterTypes186 = new String[] { }; - _methodName208 = "verifyTerritorioConstraintAlreadyExist"; + _methodName187 = "verifyTerritorioConstraintAlreadyExist"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes187 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.util.Date" }; @@ -292,20 +288,20 @@ public class TerritorioLocalServiceClpInvoker { return TerritorioLocalServiceUtil.updateTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]); } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName164.equals(name) && + Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { return TerritorioLocalServiceUtil.getBeanIdentifier(); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName165.equals(name) && + Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { TerritorioLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName190.equals(name) && - Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { + if (_methodName170.equals(name) && + Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { return TerritorioLocalServiceUtil.addTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -313,12 +309,11 @@ public class TerritorioLocalServiceClpInvoker { ((Boolean)arguments[5]).booleanValue(), (java.util.Date)arguments[6], (java.util.Date)arguments[7], (java.lang.String)arguments[8], (java.lang.String)arguments[9], - ((Long)arguments[10]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[11]); + (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName191.equals(name) && - Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { + if (_methodName171.equals(name) && + Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { return TerritorioLocalServiceUtil.updateTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -331,90 +326,85 @@ public class TerritorioLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName192.equals(name) && - Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { + if (_methodName172.equals(name) && + Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName193.equals(name) && - Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + if (_methodName173.equals(name) && + Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { return TerritorioLocalServiceUtil.countTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName194.equals(name) && - Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + if (_methodName174.equals(name) && + Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { return TerritorioLocalServiceUtil.findByComuneId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName195.equals(name) && - Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { + if (_methodName175.equals(name) && + Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { return TerritorioLocalServiceUtil.findByCompanyIdGroupId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName196.equals(name) && - Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { + if (_methodName176.equals(name) && + Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveProvince(); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName177.equals(name) && + Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia((java.lang.String)arguments[0]); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName178.equals(name) && + Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName179.equals(name) && + Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName180.equals(name) && + Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName181.equals(name) && + Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { return TerritorioLocalServiceUtil.findTerritorioByComuneIdGZonaFasciaDtIni(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], (java.util.Date)arguments[4]); } - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { - return TerritorioLocalServiceUtil.fetchByOldTerriotioId(((Long)arguments[0]).longValue()); - } - - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritoriByGroupAndZona(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + if (_methodName184.equals(name) && + Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { return TerritorioLocalServiceUtil.getTerritoriByGroupAndZonaAndFascia(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName186.equals(name) && + Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { return TerritorioLocalServiceUtil.getAllTerritorioGroup(); } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName187.equals(name) && + Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { return TerritorioLocalServiceUtil.verifyTerritorioConstraintAlreadyExist(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -456,42 +446,40 @@ public class TerritorioLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; + private String _methodName164; + private String[] _methodParameterTypes164; + private String _methodName165; + private String[] _methodParameterTypes165; + private String _methodName170; + private String[] _methodParameterTypes170; + private String _methodName171; + private String[] _methodParameterTypes171; + private String _methodName172; + private String[] _methodParameterTypes172; + private String _methodName173; + private String[] _methodParameterTypes173; + private String _methodName174; + private String[] _methodParameterTypes174; + private String _methodName175; + private String[] _methodParameterTypes175; + private String _methodName176; + private String[] _methodParameterTypes176; + private String _methodName177; + private String[] _methodParameterTypes177; + private String _methodName178; + private String[] _methodParameterTypes178; + private String _methodName179; + private String[] _methodParameterTypes179; + private String _methodName180; + private String[] _methodParameterTypes180; + private String _methodName181; + private String[] _methodParameterTypes181; + private String _methodName183; + private String[] _methodParameterTypes183; private String _methodName184; private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName190; - private String[] _methodParameterTypes190; - private String _methodName191; - private String[] _methodParameterTypes191; - private String _methodName192; - private String[] _methodParameterTypes192; - private String _methodName193; - private String[] _methodParameterTypes193; - private String _methodName194; - private String[] _methodParameterTypes194; - private String _methodName195; - private String[] _methodParameterTypes195; - private String _methodName196; - private String[] _methodParameterTypes196; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; - private String _methodName199; - private String[] _methodParameterTypes199; - private String _methodName200; - private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; + private String _methodName186; + private String[] _methodParameterTypes186; + private String _methodName187; + private String[] _methodParameterTypes187; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java index b61aa782..25e9a421 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceBaseImpl.java @@ -38,16 +38,12 @@ import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence; import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence; import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinder; import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence; import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence; import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence; import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence; -import it.tref.liferay.portos.bo.service.persistence.SorteggioFinder; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence; import it.tref.liferay.portos.bo.service.persistence.TempisticaFinder; import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; @@ -869,63 +865,6 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl this.historyWorkflowActionPersistence = historyWorkflowActionPersistence; } - /** - * Returns the info fascicolo local service. - * - * @return the info fascicolo local service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloLocalService getInfoFascicoloLocalService() { - return infoFascicoloLocalService; - } - - /** - * Sets the info fascicolo local service. - * - * @param infoFascicoloLocalService the info fascicolo local service - */ - public void setInfoFascicoloLocalService( - it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService) { - this.infoFascicoloLocalService = infoFascicoloLocalService; - } - - /** - * Returns the info fascicolo remote service. - * - * @return the info fascicolo remote service - */ - public it.tref.liferay.portos.bo.service.InfoFascicoloService getInfoFascicoloService() { - return infoFascicoloService; - } - - /** - * Sets the info fascicolo remote service. - * - * @param infoFascicoloService the info fascicolo remote service - */ - public void setInfoFascicoloService( - it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService) { - this.infoFascicoloService = infoFascicoloService; - } - - /** - * Returns the info fascicolo persistence. - * - * @return the info fascicolo persistence - */ - public InfoFascicoloPersistence getInfoFascicoloPersistence() { - return infoFascicoloPersistence; - } - - /** - * Sets the info fascicolo persistence. - * - * @param infoFascicoloPersistence the info fascicolo persistence - */ - public void setInfoFascicoloPersistence( - InfoFascicoloPersistence infoFascicoloPersistence) { - this.infoFascicoloPersistence = infoFascicoloPersistence; - } - /** * Returns the int pratica local service. * @@ -1001,62 +940,6 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl this.intPraticaFinder = intPraticaFinder; } - /** - * Returns the i u v local service. - * - * @return the i u v local service - */ - public it.tref.liferay.portos.bo.service.IUVLocalService getIUVLocalService() { - return iuvLocalService; - } - - /** - * Sets the i u v local service. - * - * @param iuvLocalService the i u v local service - */ - public void setIUVLocalService( - it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService) { - this.iuvLocalService = iuvLocalService; - } - - /** - * Returns the i u v remote service. - * - * @return the i u v remote service - */ - public it.tref.liferay.portos.bo.service.IUVService getIUVService() { - return iuvService; - } - - /** - * Sets the i u v remote service. - * - * @param iuvService the i u v remote service - */ - public void setIUVService( - it.tref.liferay.portos.bo.service.IUVService iuvService) { - this.iuvService = iuvService; - } - - /** - * Returns the i u v persistence. - * - * @return the i u v persistence - */ - public IUVPersistence getIUVPersistence() { - return iuvPersistence; - } - - /** - * Sets the i u v persistence. - * - * @param iuvPersistence the i u v persistence - */ - public void setIUVPersistence(IUVPersistence iuvPersistence) { - this.iuvPersistence = iuvPersistence; - } - /** * Returns the pagamento local service. * @@ -1284,81 +1167,6 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl this.soggettoPersistence = soggettoPersistence; } - /** - * Returns the sorteggio local service. - * - * @return the sorteggio local service - */ - public it.tref.liferay.portos.bo.service.SorteggioLocalService getSorteggioLocalService() { - return sorteggioLocalService; - } - - /** - * Sets the sorteggio local service. - * - * @param sorteggioLocalService the sorteggio local service - */ - public void setSorteggioLocalService( - it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService) { - this.sorteggioLocalService = sorteggioLocalService; - } - - /** - * Returns the sorteggio remote service. - * - * @return the sorteggio remote service - */ - public it.tref.liferay.portos.bo.service.SorteggioService getSorteggioService() { - return sorteggioService; - } - - /** - * Sets the sorteggio remote service. - * - * @param sorteggioService the sorteggio remote service - */ - public void setSorteggioService( - it.tref.liferay.portos.bo.service.SorteggioService sorteggioService) { - this.sorteggioService = sorteggioService; - } - - /** - * Returns the sorteggio persistence. - * - * @return the sorteggio persistence - */ - public SorteggioPersistence getSorteggioPersistence() { - return sorteggioPersistence; - } - - /** - * Sets the sorteggio persistence. - * - * @param sorteggioPersistence the sorteggio persistence - */ - public void setSorteggioPersistence( - SorteggioPersistence sorteggioPersistence) { - this.sorteggioPersistence = sorteggioPersistence; - } - - /** - * Returns the sorteggio finder. - * - * @return the sorteggio finder - */ - public SorteggioFinder getSorteggioFinder() { - return sorteggioFinder; - } - - /** - * Sets the sorteggio finder. - * - * @param sorteggioFinder the sorteggio finder - */ - public void setSorteggioFinder(SorteggioFinder sorteggioFinder) { - this.sorteggioFinder = sorteggioFinder; - } - /** * Returns the storico soggetto pratica local service. * @@ -1803,12 +1611,6 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.HistoryWorkflowActionService historyWorkflowActionService; @BeanReference(type = HistoryWorkflowActionPersistence.class) protected HistoryWorkflowActionPersistence historyWorkflowActionPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloLocalService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloLocalService infoFascicoloLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.InfoFascicoloService.class) - protected it.tref.liferay.portos.bo.service.InfoFascicoloService infoFascicoloService; - @BeanReference(type = InfoFascicoloPersistence.class) - protected InfoFascicoloPersistence infoFascicoloPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.IntPraticaLocalService intPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.IntPraticaService.class) @@ -1817,12 +1619,6 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl protected IntPraticaPersistence intPraticaPersistence; @BeanReference(type = IntPraticaFinder.class) protected IntPraticaFinder intPraticaFinder; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVLocalService.class) - protected it.tref.liferay.portos.bo.service.IUVLocalService iuvLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.IUVService.class) - protected it.tref.liferay.portos.bo.service.IUVService iuvService; - @BeanReference(type = IUVPersistence.class) - protected IUVPersistence iuvPersistence; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoLocalService.class) protected it.tref.liferay.portos.bo.service.PagamentoLocalService pagamentoLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.PagamentoService.class) @@ -1847,14 +1643,6 @@ public abstract class TerritorioServiceBaseImpl extends BaseServiceImpl protected it.tref.liferay.portos.bo.service.SoggettoService soggettoService; @BeanReference(type = SoggettoPersistence.class) protected SoggettoPersistence soggettoPersistence; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioLocalService.class) - protected it.tref.liferay.portos.bo.service.SorteggioLocalService sorteggioLocalService; - @BeanReference(type = it.tref.liferay.portos.bo.service.SorteggioService.class) - protected it.tref.liferay.portos.bo.service.SorteggioService sorteggioService; - @BeanReference(type = SorteggioPersistence.class) - protected SorteggioPersistence sorteggioPersistence; - @BeanReference(type = SorteggioFinder.class) - protected SorteggioFinder sorteggioFinder; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService.class) protected it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService storicoSoggettoPraticaLocalService; @BeanReference(type = it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService.class) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java index 7fc2a76b..dc53851d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioServiceClpInvoker.java @@ -24,65 +24,65 @@ import java.util.Arrays; */ public class TerritorioServiceClpInvoker { public TerritorioServiceClpInvoker() { - _methodName168 = "getBeanIdentifier"; + _methodName148 = "getBeanIdentifier"; - _methodParameterTypes168 = new String[] { }; + _methodParameterTypes148 = new String[] { }; - _methodName169 = "setBeanIdentifier"; + _methodName149 = "setBeanIdentifier"; - _methodParameterTypes169 = new String[] { "java.lang.String" }; + _methodParameterTypes149 = new String[] { "java.lang.String" }; - _methodName174 = "addTerritorio"; + _methodName154 = "addTerritorio"; - _methodParameterTypes174 = new String[] { + _methodParameterTypes154 = new String[] { "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", - "java.util.Date", "java.lang.String", "java.lang.String", "long", + "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName175 = "updateTerritorio"; + _methodName155 = "updateTerritorio"; - _methodParameterTypes175 = new String[] { + _methodParameterTypes155 = new String[] { "long", "long", "long", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "java.util.Date", "java.util.Date", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName176 = "fetchTerritorio"; + _methodName156 = "fetchTerritorio"; - _methodParameterTypes176 = new String[] { "long" }; + _methodParameterTypes156 = new String[] { "long" }; - _methodName177 = "createTerritorio"; + _methodName157 = "createTerritorio"; - _methodParameterTypes177 = new String[] { "long" }; + _methodParameterTypes157 = new String[] { "long" }; - _methodName178 = "getTerritori"; + _methodName158 = "getTerritori"; - _methodParameterTypes178 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes158 = new String[] { "long", "long", "int", "int" }; - _methodName179 = "countTerritori"; + _methodName159 = "countTerritori"; - _methodParameterTypes179 = new String[] { "long", "long" }; + _methodParameterTypes159 = new String[] { "long", "long" }; } public Object invokeMethod(String name, String[] parameterTypes, Object[] arguments) throws Throwable { - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { + if (_methodName148.equals(name) && + Arrays.deepEquals(_methodParameterTypes148, parameterTypes)) { return TerritorioServiceUtil.getBeanIdentifier(); } - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { + if (_methodName149.equals(name) && + Arrays.deepEquals(_methodParameterTypes149, parameterTypes)) { TerritorioServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { + if (_methodName154.equals(name) && + Arrays.deepEquals(_methodParameterTypes154, parameterTypes)) { return TerritorioServiceUtil.addTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.lang.String)arguments[3], @@ -90,12 +90,11 @@ public class TerritorioServiceClpInvoker { ((Boolean)arguments[5]).booleanValue(), (java.util.Date)arguments[6], (java.util.Date)arguments[7], (java.lang.String)arguments[8], (java.lang.String)arguments[9], - ((Long)arguments[10]).longValue(), - (com.liferay.portal.service.ServiceContext)arguments[11]); + (com.liferay.portal.service.ServiceContext)arguments[10]); } - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { + if (_methodName155.equals(name) && + Arrays.deepEquals(_methodParameterTypes155, parameterTypes)) { return TerritorioServiceUtil.updateTerritorio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue(), @@ -108,26 +107,26 @@ public class TerritorioServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[11]); } - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { + if (_methodName156.equals(name) && + Arrays.deepEquals(_methodParameterTypes156, parameterTypes)) { return TerritorioServiceUtil.fetchTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { + if (_methodName157.equals(name) && + Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { return TerritorioServiceUtil.createTerritorio(((Long)arguments[0]).longValue()); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName158.equals(name) && + Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { return TerritorioServiceUtil.getTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName159.equals(name) && + Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { return TerritorioServiceUtil.countTerritori(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } @@ -135,20 +134,20 @@ public class TerritorioServiceClpInvoker { throw new UnsupportedOperationException(); } - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; + private String _methodName148; + private String[] _methodParameterTypes148; + private String _methodName149; + private String[] _methodParameterTypes149; + private String _methodName154; + private String[] _methodParameterTypes154; + private String _methodName155; + private String[] _methodParameterTypes155; + private String _methodName156; + private String[] _methodParameterTypes156; + private String _methodName157; + private String[] _methodParameterTypes157; + private String _methodName158; + private String[] _methodParameterTypes158; + private String _methodName159; + private String[] _methodParameterTypes159; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/DettPraticaServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/DettPraticaServiceSoap.java index 3debc746..e69de29b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/DettPraticaServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/DettPraticaServiceSoap.java @@ -1,699 +0,0 @@ -/** - * 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.liferay.portos.bo.service.http; - -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; - -import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; - -import java.rmi.RemoteException; - -/** - * Provides the SOAP utility for the - * {@link it.tref.liferay.portos.bo.service.DettPraticaServiceUtil} service utility. The - * static methods of this class calls the same methods of the service utility. - * However, the signatures are different because it is difficult for SOAP to - * support certain types. - * - *

- * ServiceBuilder follows certain rules in translating the methods. For example, - * if the method in the service utility returns a {@link java.util.List}, that - * is translated to an array of {@link it.tref.liferay.portos.bo.model.DettPraticaSoap}. - * If the method in the service utility returns a - * {@link it.tref.liferay.portos.bo.model.DettPratica}, that is translated to a - * {@link it.tref.liferay.portos.bo.model.DettPraticaSoap}. Methods that SOAP cannot - * safely wire are skipped. - *

- * - *

- * The benefits of using the SOAP utility is that it is cross platform - * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and - * even Perl, to call the generated services. One drawback of SOAP is that it is - * slow because it needs to serialize all calls into a text format (XML). - *

- * - *

- * You can see a list of services at http://localhost:8080/api/axis. Set the - * property axis.servlet.hosts.allowed in portal.properties to configure - * security. - *

- * - *

- * The SOAP utility is only generated for remote services. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see DettPraticaServiceHttp - * @see it.tref.liferay.portos.bo.model.DettPraticaSoap - * @see it.tref.liferay.portos.bo.service.DettPraticaServiceUtil - * @generated - */ -public class DettPraticaServiceSoap { - public static it.tref.liferay.portos.bo.model.DettPraticaSoap getDettPratica( - long dettPraticaId) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap addDettPratica( - long territorioId, java.lang.String tipoProcedura, - com.liferay.portal.service.ServiceContext serviceContext) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.addDettPratica(territorioId, - tipoProcedura, serviceContext); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap addDettPraticaToIntPratica( - long intPraticaId, - com.liferay.portal.service.ServiceContext serviceContext) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.addDettPraticaToIntPratica(intPraticaId, - serviceContext); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap addDettPraticaClonedToIntPratica( - long intPraticaId, long dettPraticaToCloneId, - java.lang.String tipoIntegrazione, - com.liferay.portal.service.ServiceContext serviceContext) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.addDettPraticaClonedToIntPratica(intPraticaId, - dettPraticaToCloneId, tipoIntegrazione, serviceContext); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastEditableByIntPratica( - long intPraticaId) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap deleteDettPratica( - it.tref.liferay.portos.bo.model.DettPraticaSoap dettPratica) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.deleteDettPratica(it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl.toModel( - dettPratica)); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap deleteDettPratica( - long dettPraticaId) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.deleteDettPratica(dettPraticaId); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateDettPraticaSoggetti( - long userId, long dettPraticaId, long intPraticaId, - java.lang.String codiceFiscaleDelegatoCommittente, - java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - com.liferay.portal.service.ServiceContext serviceContext) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateDettPraticaSoggetti(userId, - dettPraticaId, intPraticaId, - codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, serviceContext); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateDettPratica( - long userId, long dettPraticaId, long intPraticaId, long integrazione, - java.lang.String protocollo, java.lang.String tipoIntegrazione, - boolean completa, boolean gestita, java.lang.String codicePagamento, - java.lang.String causalePagamento, java.lang.String mezzoPagamento, - java.lang.String importoBolli, - java.lang.String importoSpeseIstruttoria, - java.util.Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, - long oldDettPraticaId, java.lang.String destinazione, - java.lang.String ag, java.lang.String descLongIntervento, - java.lang.String via, java.lang.String localita, - java.lang.String estremiCatastali, java.lang.String estremiPratCom, - long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, - java.lang.String codiceFiscaleDelegatoCommittente, - java.lang.String codiceFiscaleDelegatoFineLavori, - java.lang.String codiceFiscaleDelegatoCollaudo, - java.lang.String codiceRuoloDelegato, - boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, - java.util.Date dataInizioLavoriOpera, - java.util.Date dataInizioEsecuzioneOpera, - java.util.Date dataFineEsecuzioneOpera, java.lang.String metratura, - boolean lavoriPubblici, long pagamentoId, - int lavoriPubbliciPercentuale, java.lang.String numeroCivico, - java.lang.String dcParticelle, java.lang.String dcFoglio, - java.lang.String dcAllegato, java.lang.String dePiani, - java.lang.String deAltezza, java.lang.String deInterrati, - java.lang.String deSuperficie, java.lang.String deCostruzione, - java.lang.String deRistrutturazione, java.lang.String deUso, - java.lang.String dePubblica, java.lang.String dePrivata, - java.lang.String deUtilizzazione, java.lang.String dePosizioneEdificio, - boolean deInfStradalePonte, boolean deInfStradaleStrada, - boolean deInfStradaleAltro, boolean deInfIdraulicaLong, - boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, - boolean deInfOperaAccStradale, boolean deInfOperaAccIdraulica, - boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura, - boolean deInfAltro, java.lang.String deInfAltroDesc, - java.lang.String dccFondazioni, - boolean dccStruttureEleMuraturePietrame, - boolean dccStruttureEleMuratureLaterizio, - boolean dccStruttureEleMuratureMisto, - boolean dccStruttureEleMuratureStoriche, - java.lang.String dccStruttureEleAcciaio, - java.lang.String dccStruttureEleCA, - java.lang.String dccStruttureEleLegno, boolean dccStruttureEleMistoCA, - boolean dccStruttureEleMistoAcciaio, - boolean dccStruttureEleMistoMuratura, - boolean dccStruttureEleMistoLegno, - boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, - java.lang.String dccStruttureEleAltroDescrizione, - boolean dccOrizzontamentiCAAcciaio, boolean dccOrizzontamentiLegno, - boolean dccOrizzontamentiLegnoCA, - boolean dccOrizzontamentiLamieraGrecata, - boolean dccOrizzontamentiVolte, boolean dccOrizzontamentiAltro, - java.lang.String dccOrizzontamentiAltroDescrizione, - java.lang.String dccCopertura, boolean dccCoperturaCAAcciaio, - boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA, - boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, - boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, - boolean dccCoperturaAltro, - java.lang.String dccCoperturaAltroDesrizione, - boolean dccElemNonStrutLaterizio, boolean dccElemNonStrutCartongesso, - boolean dccElemNonStrutCalcestruzzo, boolean dccElemNonStrutLegno, - boolean dccElemNonStrutAltro, - java.lang.String dccElemNonStrutAltroDescrizione, - boolean dccOpereDiRinforzoInsCatene, - boolean dccOpereDiRinforzoInsCordoli, - boolean dccOpereDiRinforzoIniArmate, - boolean dccOpereDiRinforzoPlaccaggi, - boolean dccOpereDiRinforzoIrrSolai, - boolean dccOpereDiRinforzoRinforziFRP, - boolean dccOpereDiRinforzoTelaiECerchiature, - boolean dccOpereDiRinforzoInsRompitratta, - boolean dccOpereDiRinforzoAltro, - java.lang.String dccOpereDiRinforzoAltroDescrizione, - java.lang.String geoClasseIndagine, - java.lang.String geoCategoriaSottosuolo, - java.lang.String geoCategoriaTopografica, - java.lang.String geoConsolidamento, - java.lang.String geoPericolositaGeologica, - java.lang.String geoRischioGeomorfologicoPai, - java.lang.String geoPericolositaIdraulicaPai, - java.lang.String geoRischioIdraulicoPai, - java.lang.String geoPericolositaSismica, - java.lang.String geoPericolositaIdraulica, - java.lang.String geoPericolositaGeomorfica, - java.lang.String geoFattibilitaGeologica, - java.lang.String geoFattibilitaSismica, - java.lang.String geoFattibilitaIdraulica, - java.lang.String geoOperaRilevante, - java.lang.String geoOpereDiSostegno, - java.lang.String geoOpereInSotterranea, - java.lang.String geoPresenzaPrescrizioni, - java.lang.String geoNotePrescrizioni, java.lang.String geoNoteIndagini, - java.lang.String geoEvidenzeGeomorfiche, - java.lang.String geoEvidenzeGeologiche, java.util.Date geoDtRelazione, - java.lang.Double pagInterventiRestauroManufatti, - java.lang.Double pagAltriCasiCulturali, - java.lang.Double pagLottizzazioni, java.lang.Double pagGrandiStrutture, - java.lang.Double pagCondotte, java.lang.Double pagPalificazioni, - java.lang.Double pagImpiantiEolici, - java.lang.Double pagNuoveRealizzazioni, - java.lang.Double pagImmobiliPreesistenti, - java.lang.Double pagManifestiPubblicitari, - java.lang.Double pagPareriDiMassima, - java.lang.Double pagAltriCasiPaesaggistici, - java.lang.Double pagVariantiPareriResi, - java.lang.Double pagRilascioAttestazioni, - java.lang.Double pagConsultazioniArchivio, java.lang.String note, - java.lang.String noteUfficio, - java.lang.String localizzazioneGeografica, boolean tcNuovaCostruzione, - boolean tcAdeguamentoSismico, boolean tcMiglioramentoSismico, - boolean tcRiparazioneInterventoLocale, boolean tcInCA, - boolean tcInOpera, boolean tcPrefabbricato, boolean tcInAcciaio, - boolean tcMista, boolean tcInMuratura, boolean tcInMuraturaOrdinaria, - boolean tcInMuraturaArmata, boolean tcInMuraturaMista, - boolean tcInLegno, boolean tcAltro, - java.lang.String tcAltroDescrizione, boolean tcConDispositivi, - boolean normLavoriInProprio, boolean normEsenteBollo, - boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, - boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm01, - boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, - boolean normArt3com3, boolean normArt3com4, boolean normOrd01, - boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, - java.lang.String clRischioPreInt, java.lang.String clRischioPostInt, - boolean intervFinPub, java.lang.String intervFinPubDesc, - com.liferay.portal.service.ServiceContext serviceContext, - boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, - java.lang.String paesaggioLocale, java.lang.String livelloDiTutela, - java.lang.String vincoli, java.lang.String destinazioneAltroIntervento, - java.lang.Boolean tcCostruzioniEsistenti, - java.lang.Boolean tcManutOrdStraord, - java.lang.Boolean tcAltriInterventi, - java.lang.String tcAltriInterventiDesc, boolean noCollaudo, - boolean tcNuovaCostruzionePertinenza, - boolean tcInterventoOpereEscavazione, boolean tcViarch, - boolean tcOperaA25, boolean sanatoriaEdilizia47, - boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateDettPratica(userId, - dettPraticaId, intPraticaId, integrazione, protocollo, - tipoIntegrazione, completa, gestita, codicePagamento, - causalePagamento, mezzoPagamento, importoBolli, - importoSpeseIstruttoria, dataEffettuazione, statusTask, - workflowForzato, soggettoSostituitoId, oldDettPraticaId, - destinazione, ag, descLongIntervento, via, localita, - estremiCatastali, estremiPratCom, variataDa, - varianteNumero, varianteSostanziale, operaConforme, - collaudoStatico, codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, - lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, - dataInizioLavoriOpera, dataInizioEsecuzioneOpera, - dataFineEsecuzioneOpera, metratura, lavoriPubblici, - pagamentoId, lavoriPubbliciPercentuale, numeroCivico, - dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, - deInterrati, deSuperficie, deCostruzione, - deRistrutturazione, deUso, dePubblica, dePrivata, - deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, - deInfIdraulicaLong, deInfIdraulicaTrasv, - deInfIdraulicaAltro, deInfOperaAccStradale, - deInfOperaAccIdraulica, deInfOperaAccAltro, - deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, - dccFondazioni, dccStruttureEleMuraturePietrame, - dccStruttureEleMuratureLaterizio, - dccStruttureEleMuratureMisto, - dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, - dccStruttureEleCA, dccStruttureEleLegno, - dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, - dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, - dccStruttureElePrefabbricato, dccStruttureEleAltro, - dccStruttureEleAltroDescrizione, - dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno, - dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, - dccOrizzontamentiVolte, dccOrizzontamentiAltro, - dccOrizzontamentiAltroDescrizione, dccCopertura, - dccCoperturaCAAcciaio, dccCoperturaLegno, - dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, - dccCoperturaPannelli, dccCoperturaPVCTelonati, - dccCoperturaLeggere, dccCoperturaAltro, - dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, - dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, - dccElemNonStrutLegno, dccElemNonStrutAltro, - dccElemNonStrutAltroDescrizione, - dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, - dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, - dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - dccOpereDiRinforzoTelaiECerchiature, - dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, - dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine, - geoCategoriaSottosuolo, geoCategoriaTopografica, - geoConsolidamento, geoPericolositaGeologica, - geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, - geoRischioIdraulicoPai, geoPericolositaSismica, - geoPericolositaIdraulica, geoPericolositaGeomorfica, - geoFattibilitaGeologica, geoFattibilitaSismica, - geoFattibilitaIdraulica, geoOperaRilevante, - geoOpereDiSostegno, geoOpereInSotterranea, - geoPresenzaPrescrizioni, geoNotePrescrizioni, - geoNoteIndagini, geoEvidenzeGeomorfiche, - geoEvidenzeGeologiche, geoDtRelazione, - pagInterventiRestauroManufatti, pagAltriCasiCulturali, - pagLottizzazioni, pagGrandiStrutture, pagCondotte, - pagPalificazioni, pagImpiantiEolici, pagNuoveRealizzazioni, - pagImmobiliPreesistenti, pagManifestiPubblicitari, - pagPareriDiMassima, pagAltriCasiPaesaggistici, - pagVariantiPareriResi, pagRilascioAttestazioni, - pagConsultazioniArchivio, note, noteUfficio, - localizzazioneGeografica, tcNuovaCostruzione, - tcAdeguamentoSismico, tcMiglioramentoSismico, - tcRiparazioneInterventoLocale, tcInCA, tcInOpera, - tcPrefabbricato, tcInAcciaio, tcMista, tcInMuratura, - tcInMuraturaOrdinaria, tcInMuraturaArmata, - tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, - tcConDispositivi, normLavoriInProprio, normEsenteBollo, - normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, - normDpr02Aut, normDm01, normDm02, normDm03, normDm2018, - normDprg01, normDprg02, normAnr, normArt3com3, - normArt3com4, normOrd01, normDm04, normDm05, normCI01, - normLTC01, suap, normSismaBonus, clRischioPreInt, - clRischioPostInt, intervFinPub, intervFinPubDesc, - serviceContext, bozza, disabledSubmit, geoDisabledSubmit, - paesaggioLocale, livelloDiTutela, vincoli, - destinazioneAltroIntervento, tcCostruzioniEsistenti, - tcManutOrdStraord, tcAltriInterventi, - tcAltriInterventiDesc, noCollaudo, - tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, - tcViarch, tcOperaA25, sanatoriaEdilizia47, - sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore, pagSoggettiAdAutorizzazione); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap fetchDettPratica( - long dettPraticaId) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.fetchDettPratica(dettPraticaId); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastCompletedByIntPratica( - long intPraticaId) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastdByIntPraticaAndTipoPratica( - long intPraticaId, java.util.List tipoPratiche) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastdByIntPraticaAndTipoPratica(intPraticaId, - tipoPratiche); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap getLastEditabledByIntPraticaAndTipoPratica( - long intPraticaId, java.util.List tipoPratiche) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, - tipoPratiche); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap[] findCompletedByIntPraticaAndTipoPratica( - long intPraticaId, java.util.List tipoPratiche) - throws RemoteException { - try { - java.util.List returnValue = - DettPraticaServiceUtil.findCompletedByIntPraticaAndTipoPratica(intPraticaId, - tipoPratiche); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countCompletedByIntPraticaAndTipoPratica( - long intPraticaId, java.util.List tipoPratiche) - throws RemoteException { - try { - int returnValue = DettPraticaServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, - tipoPratiche); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap pagaInvia( - long dettPraticaId, java.lang.Double pagInterventiRestauroManufatti, - java.lang.Double pagAltriCasiCulturali, - java.lang.Double pagLottizzazioni, java.lang.Double pagGrandiStrutture, - java.lang.Double pagCondotte, java.lang.Double pagPalificazioni, - java.lang.Double pagImpiantiEolici, - java.lang.Double pagNuoveRealizzazioni, - java.lang.Double pagImmobiliPreesistenti, - java.lang.Double pagManifestiPubblicitari, - java.lang.Double pagPareriDiMassima, - java.lang.Double pagAltriCasiPaesaggistici, - java.lang.Double pagVariantiPareriResi, - java.lang.Double pagRilascioAttestazioni, - java.lang.Double pagConsultazioniArchivio, - java.lang.String importoSpeseIstruttoria, - java.lang.String codiceFiscaleCommittente, - java.lang.Double pagSoggettiAdAutorizzazione, - java.lang.String currentURL, - com.liferay.portal.service.ServiceContext serviceContext) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.pagaInvia(dettPraticaId, - pagInterventiRestauroManufatti, pagAltriCasiCulturali, - pagLottizzazioni, pagGrandiStrutture, pagCondotte, - pagPalificazioni, pagImpiantiEolici, pagNuoveRealizzazioni, - pagImmobiliPreesistenti, pagManifestiPubblicitari, - pagPareriDiMassima, pagAltriCasiPaesaggistici, - pagVariantiPareriResi, pagRilascioAttestazioni, - pagConsultazioniArchivio, importoSpeseIstruttoria, - codiceFiscaleCommittente, pagSoggettiAdAutorizzazione, - currentURL, serviceContext); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateCheckPagamenti( - long dettPraticaId, boolean normEsenteSpese, boolean normEsenteBollo) - throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateCheckPagamenti(dettPraticaId, - normEsenteSpese, normEsenteBollo); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateEsito( - long dettPraticaId, int stato) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateEsito(dettPraticaId, - stato); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap updateEsitoIntegrazione( - long dettPraticaId, int stato) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updateEsitoIntegrazione(dettPraticaId, - stato); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.DettPraticaSoap updatePrincipale( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologiaSoggetto) throws RemoteException { - try { - it.tref.liferay.portos.bo.model.DettPratica returnValue = DettPraticaServiceUtil.updatePrincipale(dettPraticaId, - codiceFiscale, tipologiaSoggetto); - - return it.tref.liferay.portos.bo.model.DettPraticaSoap.toSoapModel(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int getNumeroDiVersioni(long intPraticaId, long companyId) - throws RemoteException { - try { - int returnValue = DettPraticaServiceUtil.getNumeroDiVersioni(intPraticaId, - companyId); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static java.lang.String getJsonVersion(long intPraticaId, - long companyId, int version) throws RemoteException { - try { - java.lang.String returnValue = DettPraticaServiceUtil.getJsonVersion(intPraticaId, - companyId, version); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static java.lang.String callForChanges(long intPraticaId, - long companyId, int version) throws RemoteException { - try { - java.lang.String returnValue = DettPraticaServiceUtil.callForChanges(intPraticaId, - companyId, version); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static void sendToVersioning(long dettPraticaId, long companyId) - throws RemoteException { - try { - DettPraticaServiceUtil.sendToVersioning(dettPraticaId, companyId); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - private static Log _log = LogFactoryUtil.getLog(DettPraticaServiceSoap.class); -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/InfoFascicoloServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/InfoFascicoloServiceSoap.java deleted file mode 100644 index fccff3a7..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/InfoFascicoloServiceSoap.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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.liferay.portos.bo.service.http; - -/** - * Provides the SOAP utility for the - * {@link it.tref.liferay.portos.bo.service.InfoFascicoloServiceUtil} service utility. The - * static methods of this class calls the same methods of the service utility. - * However, the signatures are different because it is difficult for SOAP to - * support certain types. - * - *

- * ServiceBuilder follows certain rules in translating the methods. For example, - * if the method in the service utility returns a {@link java.util.List}, that - * is translated to an array of {@link it.tref.liferay.portos.bo.model.InfoFascicoloSoap}. - * If the method in the service utility returns a - * {@link it.tref.liferay.portos.bo.model.InfoFascicolo}, that is translated to a - * {@link it.tref.liferay.portos.bo.model.InfoFascicoloSoap}. Methods that SOAP cannot - * safely wire are skipped. - *

- * - *

- * The benefits of using the SOAP utility is that it is cross platform - * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and - * even Perl, to call the generated services. One drawback of SOAP is that it is - * slow because it needs to serialize all calls into a text format (XML). - *

- * - *

- * You can see a list of services at http://localhost:8080/api/axis. Set the - * property axis.servlet.hosts.allowed in portal.properties to configure - * security. - *

- * - *

- * The SOAP utility is only generated for remote services. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloServiceHttp - * @see it.tref.liferay.portos.bo.model.InfoFascicoloSoap - * @see it.tref.liferay.portos.bo.service.InfoFascicoloServiceUtil - * @generated - */ -public class InfoFascicoloServiceSoap { -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/IntPraticaServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/IntPraticaServiceSoap.java index 5214adbc..ab733819 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/IntPraticaServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/IntPraticaServiceSoap.java @@ -157,100 +157,6 @@ public class IntPraticaServiceSoap { } } - public static it.tref.liferay.portos.bo.model.IntPraticaSoap[] findByCompanyIdSoggettoProgetti( - long companyId, long soggettoId) throws RemoteException { - try { - java.util.List returnValue = - IntPraticaServiceUtil.findByCompanyIdSoggettoProgetti(companyId, - soggettoId); - - return it.tref.liferay.portos.bo.model.IntPraticaSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByCompanyIdSoggettoProgetti(long companyId, - long soggettoId) throws RemoteException { - try { - int returnValue = IntPraticaServiceUtil.countByCompanyIdSoggettoProgetti(companyId, - soggettoId); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.IntPraticaSoap[] findByCompanyIdSoggettoArchivio( - long companyId, long soggettoId) throws RemoteException { - try { - java.util.List returnValue = - IntPraticaServiceUtil.findByCompanyIdSoggettoArchivio(companyId, - soggettoId); - - return it.tref.liferay.portos.bo.model.IntPraticaSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByCompanyIdSoggettoArchivio(long companyId, - long soggettoId) throws RemoteException { - try { - int returnValue = IntPraticaServiceUtil.countByCompanyIdSoggettoArchivio(companyId, - soggettoId); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.IntPraticaSoap[] findByCompanyIdSoggettoAltriProgetti( - long companyId, long soggettoId, int start, int end) - throws RemoteException { - try { - java.util.List returnValue = - IntPraticaServiceUtil.findByCompanyIdSoggettoAltriProgetti(companyId, - soggettoId, start, end); - - return it.tref.liferay.portos.bo.model.IntPraticaSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByCompanyIdSoggettoAltriProgetti(long companyId, - long soggettoId) throws RemoteException { - try { - int returnValue = IntPraticaServiceUtil.countByCompanyIdSoggettoAltriProgetti(companyId, - soggettoId); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - public static it.tref.liferay.portos.bo.model.IntPraticaSoap[] findByCanAddFineLavori( long companyId, java.lang.String codiceFiscale, int start, int end) throws RemoteException { @@ -358,19 +264,5 @@ public class IntPraticaServiceSoap { } } - public static java.lang.String geosisma(long intPraticaId) - throws RemoteException { - try { - java.lang.String returnValue = IntPraticaServiceUtil.geosisma(intPraticaId); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - private static Log _log = LogFactoryUtil.getLog(IntPraticaServiceSoap.class); } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/SoggettoServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/SoggettoServiceSoap.java index 9aacdbaa..7d33bf20 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/SoggettoServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/SoggettoServiceSoap.java @@ -103,7 +103,7 @@ public class SoggettoServiceSoap { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws RemoteException { try { @@ -121,7 +121,7 @@ public class SoggettoServiceSoap { tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, - soggettoSostituitoId, oldSoggettoId, tmp, serviceContext); + soggettoSostituitoId, tmp, serviceContext); return it.tref.liferay.portos.bo.model.SoggettoSoap.toSoapModel(returnValue); } @@ -189,7 +189,7 @@ public class SoggettoServiceSoap { boolean rimosso, java.lang.String ambitoAttivita, java.lang.String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, java.util.Date dtDataRimozione, - long soggettoSostituitoId, long oldSoggettoId, boolean tmp, + long soggettoSostituitoId, boolean tmp, com.liferay.portal.service.ServiceContext serviceContext) throws RemoteException { try { @@ -208,7 +208,7 @@ public class SoggettoServiceSoap { tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, - soggettoSostituitoId, oldSoggettoId, tmp, serviceContext); + soggettoSostituitoId, tmp, serviceContext); return it.tref.liferay.portos.bo.model.SoggettoSoap.toSoapModel(returnValue); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/SorteggioServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/SorteggioServiceSoap.java deleted file mode 100644 index ae179b6c..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/SorteggioServiceSoap.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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.liferay.portos.bo.service.http; - -/** - * Provides the SOAP utility for the - * {@link it.tref.liferay.portos.bo.service.SorteggioServiceUtil} service utility. The - * static methods of this class calls the same methods of the service utility. - * However, the signatures are different because it is difficult for SOAP to - * support certain types. - * - *

- * ServiceBuilder follows certain rules in translating the methods. For example, - * if the method in the service utility returns a {@link java.util.List}, that - * is translated to an array of {@link it.tref.liferay.portos.bo.model.SorteggioSoap}. - * If the method in the service utility returns a - * {@link it.tref.liferay.portos.bo.model.Sorteggio}, that is translated to a - * {@link it.tref.liferay.portos.bo.model.SorteggioSoap}. Methods that SOAP cannot - * safely wire are skipped. - *

- * - *

- * The benefits of using the SOAP utility is that it is cross platform - * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and - * even Perl, to call the generated services. One drawback of SOAP is that it is - * slow because it needs to serialize all calls into a text format (XML). - *

- * - *

- * You can see a list of services at http://localhost:8080/api/axis. Set the - * property axis.servlet.hosts.allowed in portal.properties to configure - * security. - *

- * - *

- * The SOAP utility is only generated for remote services. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioServiceHttp - * @see it.tref.liferay.portos.bo.model.SorteggioSoap - * @see it.tref.liferay.portos.bo.service.SorteggioServiceUtil - * @generated - */ -public class SorteggioServiceSoap { -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/TerritorioServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/TerritorioServiceSoap.java index cf4d0867..dd7bc82b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/TerritorioServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/TerritorioServiceSoap.java @@ -66,13 +66,13 @@ public class TerritorioServiceSoap { long comuneId, long groupId, java.lang.String codiceProvincia, java.lang.String zona, java.lang.String fascia, boolean articolo61, java.util.Date dtIni, java.util.Date dtFin, java.lang.String agMax, - java.lang.String agMin, long oldId, + java.lang.String agMin, com.liferay.portal.service.ServiceContext serviceContext) throws RemoteException { try { it.tref.liferay.portos.bo.model.Territorio returnValue = TerritorioServiceUtil.addTerritorio(comuneId, groupId, codiceProvincia, zona, fascia, articolo61, dtIni, - dtFin, agMax, agMin, oldId, serviceContext); + dtFin, agMax, agMin, serviceContext); return it.tref.liferay.portos.bo.model.TerritorioSoap.toSoapModel(returnValue); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java index 59f39fb9..549e9421 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -43,15 +43,12 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; * The implementation of the allegato manuale 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.liferay.portos.bo.service.AllegatoManualeLocalService} - * interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.AllegatoManualeLocalService} 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 Davide Barbagallo, 3F Consulting @@ -61,92 +58,93 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalServiceBaseImpl { /* * NOTE FOR DEVELOPERS: - * + * * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil} to - * access the allegato manuale local service. + * it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil} to access the allegato manuale local service. */ + @Override public List findByIntPratica(long intPraticaId) throws SystemException { + return allegatoManualePersistence.findByIntPratica(intPraticaId); } + @Override public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { + return allegatoManualePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { + return allegatoManualePersistence.countByIntPratica(intPraticaId); } + @Override public List findByDettPratica(long dettPraticaId) throws SystemException { + return allegatoManualePersistence.findByIntPratica(dettPraticaId); } + @Override public List findByDettPratica(long dettPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { + return allegatoManualePersistence.findByIntPratica(dettPraticaId, start, end, orderByComparator); } + @Override public int countByDettPratica(long dettPraticaId) throws SystemException { + return allegatoManualePersistence.countByIntPratica(dettPraticaId); } - public AllegatoManuale addAllegatoManuale(long userId, long intPraticaId, long dettPraticaId, - String descrizione, byte[] content, String sourceFileName, ServiceContext serviceContext) - throws SystemException, PortalException { + @Override + public AllegatoManuale addAllegatoManuale(long userId, long intPraticaId, long dettPraticaId, String descrizione, + byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, + PortalException { + AllegatoManuale allegatoManuale = allegatoManualePersistence.create(counterLocalService .increment(AllegatoManuale.class.getName())); - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); - User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - allegatoManuale.setCompanyId(serviceContext.getCompanyId()); allegatoManuale.setUserId(user.getUserId()); allegatoManuale.setUserName(user.getFullName()); allegatoManuale.setCreateDate(serviceContext.getCreateDate(now)); allegatoManuale.setModifiedDate(serviceContext.getModifiedDate(now)); allegatoManuale.setGroupId(serviceContext.getScopeGroupId()); - allegatoManuale.setIntPraticaId(intPraticaId); allegatoManuale.setDettPraticaId(dettPraticaId); - allegatoManuale.setDescrizione(descrizione); - - long fileEntryId = 0l; - + long fileEntryId = 0L; long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); String folderName = PraticaUtil.getFolderName(dettPratica.getDettPraticaId()); Folder folder = null; try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName); + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); } catch (NoSuchFolderException e) { // cartella non presente -> creo cartella folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); } - String title = now.getTime() + StringPool.UNDERLINE + "allegato_manuale" + StringPool.UNDERLINE - + allegatoManuale.getAllegatoManualeId() + StringPool.UNDERLINE + sourceFileName; - String description = ""; + String title = now.getTime() + "_allegato_manuale_" + allegatoManuale.getAllegatoManualeId() + + StringPool.UNDERLINE + sourceFileName; + String description = StringPool.BLANK; String mimeType = MimeTypesUtil.getContentType(sourceFileName); - String changeLog = StringPool.BLANK; - FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), - folder.getRepositoryId(), folder.getFolderId(), now.getTime() + "_" + sourceFileName, - mimeType, title, description, changeLog, content, serviceContext); + FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(), + folder.getFolderId(), now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, + description, changeLog, content, serviceContext); fileEntryId = fileEntry.getFileEntryId(); allegatoManuale.setFileEntryId(fileEntryId); - String codiceFiscalePrimaFirma = StringPool.BLANK; - ServiceContext serviceContextAvvisi = (ServiceContext) serviceContext.clone(); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId()); @@ -156,36 +154,23 @@ public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalService codiceFiscalePrimaFirma = user.getScreenName(); } Avviso avviso = avvisoLocalService.addAvviso(intPratica.getIntPraticaId(), descrizione, now, - AvvisoUtil.TIPO_AVVISO_FIRMA, StatoPraticaConstants.INVIO_AVVISO_MANUALE, 0l, dettPraticaId, - DettPratica.class.getName(), codiceFiscalePrimaFirma, fileEntryId, 0l, StringPool.BLANK, 0l, + AvvisoUtil.TIPO_AVVISO_FIRMA, StatoPraticaConstants.INVIO_AVVISO_MANUALE, 0L, dettPraticaId, + DettPratica.class.getName(), codiceFiscalePrimaFirma, fileEntryId, 0L, StringPool.BLANK, 0L, serviceContextAvvisi); - allegatoManuale.setAvvisoId(avviso.getAvvisoId()); allegatoManuale = allegatoManualePersistence.update(allegatoManuale); - return allegatoManuale; } @Override public AllegatoManuale deleteAllegatoManuale(AllegatoManuale allegatoManuale) throws SystemException { - // Se si cancella il fileEntryid da qui, va tolto anche nell'avviso - - // try { - // if (Validator.isNotNull(allegatoManuale.getFileEntryId())) { - // dlAppLocalService.deleteFileEntry(allegatoManuale.getFileEntryId()); - // } - // } catch (NoSuchFileEntryException | NoSuchRepositoryEntryException e) - // { - // - // } catch (PortalException e) { - // throw new SystemException(e); - // } + return super.deleteAllegatoManuale(allegatoManuale); } @Override - public AllegatoManuale deleteAllegatoManuale(long allegatoManuale) throws PortalException, - SystemException { - return this.deleteAllegatoManuale(allegatoManualeLocalService.getAllegatoManuale(allegatoManuale)); + public AllegatoManuale deleteAllegatoManuale(long allegatoManualeId) throws PortalException, SystemException { + + return deleteAllegatoManuale(getAllegatoManuale(allegatoManualeId)); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeServiceImpl.java index d0b1d02c..53d8b2c4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -29,13 +29,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the allegato manuale remote 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.liferay.portos.bo.service.AllegatoManualeService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.AllegatoManualeService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -43,55 +42,72 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.AllegatoManualeServiceUtil */ public class AllegatoManualeServiceImpl extends AllegatoManualeServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.AllegatoManualeServiceUtil} to access the allegato manuale - * remote service. - */ - public List findByIntPratica(long intPraticaId) throws SystemException { - return allegatoManualeLocalService.findByIntPratica(intPraticaId); - } - - public List findByIntPratica(long intPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return allegatoManualeLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); - } - - public int countByIntPratica(long intPraticaId) throws SystemException { - return allegatoManualeLocalService.countByIntPratica(intPraticaId); - } - - public List findByDettPratica(long dettPraticaId) throws SystemException { - return allegatoManualeLocalService.findByIntPratica(dettPraticaId); - } - - public List findByDettPratica(long dettPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return allegatoManualeLocalService.findByIntPratica(dettPraticaId, start, end, orderByComparator); - } - - public int countByDettPratica(long dettPraticaId) throws SystemException { - return allegatoManualeLocalService.countByIntPratica(dettPraticaId); - } - - public AllegatoManuale addAllegatoManuale(long userId, long intPraticaId, long dettPraticaId, String descrizione, - byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, PortalException { - return allegatoManualeLocalService.addAllegatoManuale(userId, intPraticaId, dettPraticaId, descrizione, content, - sourceFileName, serviceContext); - } - - public AllegatoManuale deleteAllegatoManuale(AllegatoManuale allegatoManuale) throws SystemException { - Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId()); - if (Validator.isNotNull(avviso) && Validator.isNull(avviso.getFileEntryIdInvio())) { - return allegatoManualeLocalService.deleteAllegatoManuale(allegatoManuale); - } else { - throw new SystemException("allegato manuale #" + allegatoManuale.getAllegatoManualeId() + " non eliminabile"); - } - } - - public AllegatoManuale deleteAllegatoManuale(long allegatoManualeId) throws PortalException, SystemException { - return allegatoManualeLocalService.deleteAllegatoManuale(allegatoManualeId); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.AllegatoManualeServiceUtil} to access the allegato manuale remote service. + */ + @Override + public List findByIntPratica(long intPraticaId) throws SystemException { + + return allegatoManualeLocalService.findByIntPratica(intPraticaId); + } + + @Override + public List findByIntPratica(long intPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return allegatoManualeLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); + } + + @Override + public int countByIntPratica(long intPraticaId) throws SystemException { + + return allegatoManualeLocalService.countByIntPratica(intPraticaId); + } + + @Override + public List findByDettPratica(long dettPraticaId) throws SystemException { + + return allegatoManualeLocalService.findByIntPratica(dettPraticaId); + } + + @Override + public List findByDettPratica(long dettPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return allegatoManualeLocalService.findByIntPratica(dettPraticaId, start, end, orderByComparator); + } + + @Override + public int countByDettPratica(long dettPraticaId) throws SystemException { + + return allegatoManualeLocalService.countByIntPratica(dettPraticaId); + } + + @Override + public AllegatoManuale addAllegatoManuale(long userId, long intPraticaId, long dettPraticaId, String descrizione, + byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, + PortalException { + + return allegatoManualeLocalService.addAllegatoManuale(userId, intPraticaId, dettPraticaId, descrizione, + content, sourceFileName, serviceContext); + } + + @Override + public AllegatoManuale deleteAllegatoManuale(AllegatoManuale allegatoManuale) throws SystemException { + + Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId()); + if (Validator.isNotNull(avviso) && Validator.isNull(avviso.getFileEntryIdInvio())) { + return allegatoManualeLocalService.deleteAllegatoManuale(allegatoManuale); + } else { + throw new SystemException("allegato manuale #" + allegatoManuale.getAllegatoManualeId() + + " non eliminabile"); + } + } + + @Override + public AllegatoManuale deleteAllegatoManuale(long allegatoManualeId) throws PortalException, SystemException { + + return allegatoManualeLocalService.deleteAllegatoManuale(allegatoManualeId); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java index 52b92a57..4089a678 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -56,8 +56,6 @@ import com.liferay.portal.NoSuchRepositoryEntryException; import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.util.MimeTypesUtil; @@ -75,15 +73,12 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; * The implementation of the asseverazione 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.liferay.portos.bo.service.AsseverazioneLocalService} - * interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.AsseverazioneLocalService} 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 Davide Barbagallo, 3F Consulting @@ -92,62 +87,66 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; */ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil} - * to access the asseverazione local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil} to access the asseverazione local service. */ + @Override public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni) throws IOException, SystemException, PortalException { + return testoAsseverazione(tipo, user.getScreenName(), dettPratica, relazioni, true); } + @Override public String testoAsseverazione(String tipo, User user, long dettPraticaId, String relazioni) throws SystemException, PortalException, IOException { + return testoAsseverazione(tipo, user.getScreenName(), dettPraticaId, relazioni); } + @Override public String testoAsseverazione(String tipo, String codiceFiscale, long dettPraticaId, String relazioni) throws PortalException, SystemException, IOException { + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); return testoAsseverazione(tipo, codiceFiscale, dettPratica, relazioni); } - public String testoAsseverazione(String tipo, String codiceFiscale, DettPratica dettPratica, - String relazioni) throws SystemException, PortalException, IOException { + @Override + public String testoAsseverazione(String tipo, String codiceFiscale, DettPratica dettPratica, String relazioni) + throws SystemException, PortalException, IOException { + return testoAsseverazione(tipo, codiceFiscale, dettPratica, relazioni, false); } - private String testoAsseverazione(String tipo, String codiceFiscale, DettPratica dettPratica, - String relazioni, boolean anteprima) throws SystemException, PortalException, IOException { + private String testoAsseverazione(String tipo, String codiceFiscale, DettPratica dettPratica, String relazioni, + boolean anteprima) throws SystemException, PortalException, IOException { + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale( dettPratica.getIntPraticaId(), codiceFiscale, 0L); if (soggetti.size() > 0) { Soggetto soggetto = soggetti.get(0); - String nome = Validator.isNull(soggetto.getCognome()) ? soggetto.getLegaleRap() : soggetto - .getNome(); - String cognome = Validator.isNull(soggetto.getCognome()) ? StringPool.BLANK : soggetto - .getCognome(); + String nome = Validator.isNull(soggetto.getCognome()) ? soggetto.getLegaleRap() : soggetto.getNome(); + String cognome = Validator.isNull(soggetto.getCognome()) ? StringPool.BLANK : soggetto.getCognome(); String albo = soggetto.getAlbo(); String albon = soggetto.getNumIscrAlbo(); String albop = soggetto.getProvinciaAlbo(); - - return testoAsseverazione(tipo, nome, cognome, codiceFiscale, soggetto.getAmbitoProfessione(), - dettPratica, relazioni, false, albo, albon, albop); + return testoAsseverazione(tipo, nome, cognome, codiceFiscale, soggetto.getAmbitoProfessione(), dettPratica, + relazioni, false, albo, albon, albop); } User user = UserLocalServiceUtil.fetchUserByScreenName(dettPratica.getCompanyId(), codiceFiscale); if (Validator.isNotNull(user)) { return testoAsseverazione(tipo, user.getFirstName(), user.getLastName(), user.getScreenName(), - StringPool.BLANK, dettPratica, relazioni, anteprima, StringPool.BLANK, - StringPool.BLANK, StringPool.BLANK); + StringPool.BLANK, dettPratica, relazioni, anteprima, StringPool.BLANK, StringPool.BLANK, + StringPool.BLANK); } return null; } private String testoAsseverazione(String tipo, String nome, String cognome, String codiceFiscale, String ambitoProfessione, DettPratica dettPratica, String relazioni, boolean anteprima, String albo, - String albon, String albop) - throws IOException, SystemException, PortalException { + String albon, String albop) throws IOException, SystemException, PortalException { String file = null; switch (tipo) { @@ -167,21 +166,21 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase file = "geologo"; break; case TipoSoggettoUtil.PROGETTISTA: - if (Validator.isNull(ambitoProfessione) || ambitoProfessione.equalsIgnoreCase("architettonico") || ambitoProfessione.equalsIgnoreCase("altro")) { + if (Validator.isNull(ambitoProfessione) || ambitoProfessione.equalsIgnoreCase("architettonico") + || ambitoProfessione.equalsIgnoreCase("ambitoProf-altro")) { file = "progettista_architettonico"; } else { file = "calcolista"; } break; - /*case TipoSoggettoUtil.ARCHEOLOGO: - file = "calcolista"; - break;*/ + case TipoSoggettoUtil.TITOLARE_DIGITALE: + file = "titolare_digitale"; + break; default: return null; } - - InputStream input = getClass().getClassLoader().getResourceAsStream( - "/resource/asseverazioni/" + file + ".html"); + InputStream input = getClass().getClassLoader() + .getResourceAsStream("/resource/asseverazioni/" + file + ".html"); if (Validator.isNull(input)) { return null; } @@ -192,212 +191,167 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } scanner.close(); input.close(); - String RG = dettPratica.getGeoRischioGeomorfologicoPai(); String RI = dettPratica.getGeoRischioIdraulicoPai(); String PG = dettPratica.getGeoPericolositaGeomorfica(); String PI = dettPratica.getGeoPericolositaIdraulica(); - - boolean rischio = (RG.equals("3") || RG.equals("4") || RG.equals("5") || RI.equals("3") - || RI.equals("4") || PG.equals("3") || PG.equals("4") || PI.equals("3") || PI.equals("4") || PI - .equals("5")); - + boolean rischio = (RG.equals("3") || RG.equals("4") || RG.equals("5") || RI.equals("3") || RI.equals("4") + || PG.equals("3") || PG.equals("4") || PI.equals("3") || PI.equals("4") || PI.equals("5")); boolean coniugio = Validator.isNotNull(relazioni); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - float ag = 0; if (Validator.isNotNull(dettPratica.getAg())) { - ag = Float.parseFloat(dettPratica.getAg().replace(',', '.')); + ag = Float.parseFloat(dettPratica.getAg().replace(StringPool.COMMA, StringPool.PERIOD)); } else if (Validator.isNotNull(territorio.getAgMax())) { - ag = Float.parseFloat(territorio.getAgMax().replace(',', '.')); + ag = Float.parseFloat(territorio.getAgMax().replace(StringPool.COMMA, StringPool.PERIOD)); } else if (Validator.isNotNull(territorio.getAgMin())) { - ag = Float.parseFloat(territorio.getAgMin().replace(',', '.')); + ag = Float.parseFloat(territorio.getAgMin().replace(StringPool.COMMA, StringPool.PERIOD)); } - boolean agAlto = (dettPratica.getTcAdeguamentoSismico() || dettPratica.getTcMiglioramentoSismico()) && (territorio.getZona().equals("1") || (territorio.getZona().equals("2") && (ag >= 0.2) && (ag <= 0.25))); - boolean complesse = dettPratica.getTcNuovaCostruzioneComplessa(); - boolean strategico = dettPratica.getDestinazione().startsWith("A") || dettPratica.getDestinazione().startsWith("B"); - boolean rilevanti = agAlto || complesse || strategico; - boolean agMedio = false; boolean riparazioni = false; boolean nuove = false; boolean agricoli = false; boolean nonRilevanti = false; - if (!rilevanti) { agMedio = (dettPratica.getTcAdeguamentoSismico() || dettPratica.getTcMiglioramentoSismico()) - && ((territorio.getZona().equals("2") && (ag >= 0.15) && (ag <= 0.2)) || territorio - .getZona().equals("3")); + && ((territorio.getZona().equals("2") && (ag >= 0.15) && (ag <= 0.2)) || territorio.getZona() + .equals("3")); riparazioni = dettPratica.getTcRiparazioneInterventoLocale(); nuove = dettPratica.getTcNuovaCostruzione(); agricoli = dettPratica.getDestinazione().equals("1"); - nonRilevanti = agMedio || riparazioni || nuove || agricoli; } - - String html = buffer.toString().replaceAll("##anteprima(.*?)##", anteprima ? "" : "$1") - .replaceAll("##lavoripubblici(.*?)##", dettPratica.getLavoriPubblici() ? "" : "$1") - .replace("{{agalto}}", agAlto ? "X" : " ").replace("{{agmedio}}", agMedio ? "X" : " ") - .replace("{{agricoli}}", agricoli ? "X" : " ").replace("{{codicefiscale}}", codiceFiscale) - .replace("{{cognome}}", cognome).replace("{{complesse}}", complesse ? "X" : " ") - .replace("{{nome}}", nome).replace("{{nuove}}", nuove ? "X" : " ") - .replace("{{rilevanti}}", rilevanti ? "X" : " ") - .replace("{{nonrilevanti}}", nonRilevanti ? "X" : " ") - .replace("{{riparazioni}}", riparazioni ? "X" : " ") - .replace("{{rischio}}", rischio ? "X" : " ").replace("{{!rischio}}", rischio ? " " : "X") - .replace("{{strategico}}", strategico ? "X" : " ") - .replace("{{albo}}", albo) - .replace("{{albop}}", albop) - .replace("{{albon}}", albon); - + String html = buffer.toString().replaceAll("##anteprima(.*?)##", anteprima ? StringPool.BLANK : "$1") + .replaceAll("##lavoripubblici(.*?)##", dettPratica.getLavoriPubblici() ? StringPool.BLANK : "$1") + .replace("{{agalto}}", agAlto ? "X" : StringPool.SPACE) + .replace("{{agmedio}}", agMedio ? "X" : StringPool.SPACE) + .replace("{{agricoli}}", agricoli ? "X" : StringPool.SPACE).replace("{{codicefiscale}}", codiceFiscale) + .replace("{{cognome}}", cognome).replace("{{complesse}}", complesse ? "X" : StringPool.SPACE) + .replace("{{nome}}", nome).replace("{{nuove}}", nuove ? "X" : StringPool.SPACE) + .replace("{{rilevanti}}", rilevanti ? "X" : StringPool.SPACE) + .replace("{{nonrilevanti}}", nonRilevanti ? "X" : StringPool.SPACE) + .replace("{{riparazioni}}", riparazioni ? "X" : StringPool.SPACE) + .replace("{{rischio}}", rischio ? "X" : StringPool.SPACE) + .replace("{{!rischio}}", rischio ? StringPool.SPACE : "X") + .replace("{{strategico}}", strategico ? "X" : StringPool.SPACE).replace("{{albo}}", albo) + .replace("{{albop}}", albop).replace("{{albon}}", albon); if (null == relazioni) { - html = html.replace("{{coniugio}}", " ").replace("{{!coniugio}}", " ") - .replace("{{relazioni}}", ""); + html = html.replace("{{coniugio}}", StringPool.SPACE).replace("{{!coniugio}}", StringPool.SPACE) + .replace("{{relazioni}}", StringPool.BLANK); } else { - html = html.replace("{{coniugio}}", coniugio ? "X" : " ") - .replace("{{!coniugio}}", coniugio ? " " : "X") - .replace("{{relazioni}}", relazioni.trim().replace("\n", ", ")); + html = html + .replace("{{coniugio}}", coniugio ? "X" : StringPool.SPACE) + .replace("{{!coniugio}}", coniugio ? StringPool.SPACE : "X") + .replace("{{relazioni}}", relazioni.trim().replace(StringPool.NEW_LINE, StringPool.COMMA_AND_SPACE)); } return html; } - public Asseverazione addAsseverazione(long userId, long intPraticaId, long dettPraticaId, - String tipologia, String codiceFiscale, ServiceContext serviceContext) throws PortalException, - SystemException { + @Override + public Asseverazione addAsseverazione(long userId, long intPraticaId, long dettPraticaId, String tipologia, + String codiceFiscale, ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - Asseverazione asseverazione = asseverazionePersistence.create(counterLocalService - .increment(Asseverazione.class.getName())); - + Asseverazione asseverazione = asseverazionePersistence.create(counterLocalService.increment(Asseverazione.class + .getName())); asseverazione.setCompanyId(serviceContext.getCompanyId()); asseverazione.setUserId(user.getUserId()); asseverazione.setUserName(user.getFullName()); asseverazione.setCreateDate(serviceContext.getCreateDate(now)); asseverazione.setModifiedDate(serviceContext.getModifiedDate(now)); asseverazione.setGroupId(serviceContext.getScopeGroupId()); - asseverazione.setIntPraticaId(intPraticaId); asseverazione.setDettPraticaId(dettPraticaId); asseverazione.setTipologia(tipologia); asseverazione.setEsito(DelegheUtil.STATO_ASSEGNATA); asseverazione.setCodiceFiscale(codiceFiscale); - List soggetti = soggettoLocalService.findByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale); + List soggetti = soggettoLocalService.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); if (!soggetti.isEmpty()) { asseverazione.setSoggettoId(soggetti.get(0).getUserId()); } - asseverazione = asseverazionePersistence.update(asseverazione); - return asseverazione; } - public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) - throws SystemException, PortalException { + @Override + public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) throws SystemException, + PortalException { DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); long intPraticaId = dettPratica.getIntPraticaId(); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) - || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica - .getTipoIntegrazione())) { - + || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { List nuoviSoggetti = new ArrayList( soggettoLocalService.getValidTmpByDettPratica(dettPraticaId)); List cfNuoviSoggetti = soggettoLocalService.getCfValidTmpByDettPratica(dettPraticaId); List nuoviDelegati = new ArrayList( DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(dettPraticaId, new String[] { - TipoSoggettoUtil.COMMITTENTE, TipoSoggettoUtil.DIRETTORE_LAVORI, - TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.DITTA, TipoSoggettoUtil.PROGETTISTA }, + TipoSoggettoUtil.COMMITTENTE, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO, + TipoSoggettoUtil.DITTA, TipoSoggettoUtil.PROGETTISTA }, new String[] { AsseverazioniUtil.STATO_ESEGUITA })); nuoviDelegati.removeAll(cfNuoviSoggetti); for (String cfDelegato : nuoviDelegati) { - List delegato = soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale( - intPraticaId, cfDelegato, 0l); + List delegato = soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, + cfDelegato, 0L); GenericUtils.addAllIfnotExist(nuoviSoggetti, delegato); } - - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica - .getTipoIntegrazione())) { + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); - // Soggetto titolareDigitale = - // soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, - // titolaredigitaleUser.getScreenName()).get(0); - // addAsseverazione(serviceContext.getUserId(), - // dettPratica.getIntPraticaId(), - // dettPraticaId, - // titolareDigitale.getTipologiaSoggetto(), - // titolareDigitale.getCodiceFiscale(), - // serviceContext); - // il titolare digitale potrebbe avere più ruoli List titolareDigitali = soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale( - intPraticaId, titolaredigitaleUser.getScreenName(), 0l); - for (Soggetto titolareDigitale : titolareDigitali) { - addAsseverazione(serviceContext.getUserId(), dettPratica.getIntPraticaId(), - dettPraticaId, titolareDigitale.getTipologiaSoggetto(), - titolareDigitale.getCodiceFiscale(), serviceContext); + intPraticaId, titolaredigitaleUser.getScreenName(), 0L); + if (titolareDigitali.isEmpty()) { + addAsseverazione(titolaredigitaleUser.getUserId(), dettPratica.getIntPraticaId(), dettPraticaId, + TipoSoggettoUtil.TITOLARE_DIGITALE, titolaredigitaleUser.getScreenName(), serviceContext); + } else { + for (Soggetto titolareDigitale : titolareDigitali) { + addAsseverazione(serviceContext.getUserId(), dettPratica.getIntPraticaId(), dettPraticaId, + titolareDigitale.getTipologiaSoggetto(), titolareDigitale.getCodiceFiscale(), + serviceContext); + } } - } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - String[] tipoSoggetti = new String[] { TipoSoggettoUtil.COMMITTENTE, - TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.DITTA, - TipoSoggettoUtil.PROGETTISTA }; - + String[] tipoSoggetti = new String[] { TipoSoggettoUtil.COMMITTENTE, TipoSoggettoUtil.DIRETTORE_LAVORI, + TipoSoggettoUtil.DITTA, TipoSoggettoUtil.PROGETTISTA }; List soggettiPrincipali = soggettoLocalService - .getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, - tipoSoggetti); + .getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, tipoSoggetti); GenericUtils.addAllIfnotExist(nuoviSoggetti, soggettiPrincipali); } - for (Soggetto soggetto : nuoviSoggetti) { if (!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(soggetto.getTipologiaSoggetto())) { - addAsseverazione(serviceContext.getUserId(), dettPratica.getIntPraticaId(), - dettPraticaId, soggetto.getTipologiaSoggetto(), soggetto.getCodiceFiscale(), - serviceContext); + addAsseverazione(serviceContext.getUserId(), dettPratica.getIntPraticaId(), dettPraticaId, + soggetto.getTipologiaSoggetto(), soggetto.getCodiceFiscale(), serviceContext); } - } - } else { - - List soggetti = soggettoLocalService.getValidTmpByIntPratica(dettPratica - .getIntPraticaId()); + List soggetti = soggettoLocalService.getValidTmpByIntPratica(dettPratica.getIntPraticaId()); for (Soggetto soggetto : soggetti) { - if ( - // (TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(soggetto.getTipologiaSoggetto())) - // || - TipoSoggettoUtil.DITTA.equalsIgnoreCase(soggetto.getTipologiaSoggetto()) - || TipoSoggettoUtil.DIRETTORE_LAVORI - .equalsIgnoreCase(soggetto.getTipologiaSoggetto()) + if (TipoSoggettoUtil.DITTA.equalsIgnoreCase(soggetto.getTipologiaSoggetto()) + || TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(soggetto.getTipologiaSoggetto()) || TipoSoggettoUtil.PROGETTISTA.equalsIgnoreCase(soggetto.getTipologiaSoggetto()) || (TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(soggetto.getTipologiaSoggetto()) && !soggetto .isAggiuntivo())) { - addAsseverazione(serviceContext.getUserId(), dettPratica.getIntPraticaId(), - dettPraticaId, soggetto.getTipologiaSoggetto(), soggetto.getCodiceFiscale(), - serviceContext); + addAsseverazione(serviceContext.getUserId(), dettPratica.getIntPraticaId(), dettPraticaId, + soggetto.getTipologiaSoggetto(), soggetto.getCodiceFiscale(), serviceContext); } } - } - } + @Override public void resetAsseverazione(long asseverazioneId) throws PortalException, SystemException { - Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); + Asseverazione asseverazione = getAsseverazione(asseverazioneId); if (!asseverazione.getEsito().equalsIgnoreCase(AsseverazioniUtil.STATO_ESEGUITA) && !asseverazione.getEsito().equalsIgnoreCase(AsseverazioniUtil.STATO_ASSEGNATA)) { return; @@ -411,61 +365,55 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase asseverazionePersistence.update(asseverazione); } + @Override public void annullaAsseverazioni(long dettPraticaId) throws IOException, SystemException, PortalException { cambioStatoAsseverazioni(dettPraticaId, AsseverazioniUtil.STATO_ANNULLATA); } + @Override public void cambioStatoAsseverazione(long userId, long asseverazioneId, String stato) throws IOException, SystemException, PortalException { - Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); + Asseverazione asseverazione = getAsseverazione(asseverazioneId); Date now = new Date(); - if (AsseverazioniUtil.STATO_ESEGUITA.equals(stato)) { asseverazione = generateReportAsseverazione(asseverazione, userId); } - asseverazione.setEsito(stato); asseverazione.setMezzo(AsseverazioniUtil.ASSEVERAZIONE_DA_APPLICATIVO); asseverazione.setDtEsito(now); - asseverazione = asseverazionePersistence.update(asseverazione); } - public Asseverazione generateReportAsseverazione(Asseverazione asseverazione, long userId) - throws IOException, SystemException, PortalException { + @Override + public Asseverazione generateReportAsseverazione(Asseverazione asseverazione, long userId) throws IOException, + SystemException, PortalException { if (Validator.isNotNull(asseverazione.getFileEntryId())) { dlAppLocalService.deleteFileEntry(asseverazione.getFileEntryId()); } - String tipoDocumento = "AS"; String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoDocumento); - - long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong( - asseverazione.getCompanyId(), propertiesTemplate); + long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(asseverazione.getCompanyId(), + propertiesTemplate); String propertiesFolder = AvvisoUtil.getAllTipoDocumentoFolderProps().get(tipoDocumento); long fileEntryIdFolder = configurazioneLocalService.findByC_ChiaveLong(asseverazione.getCompanyId(), propertiesFolder); - String fileName = StringUtils.leftPad(String.valueOf(asseverazione.getDettPraticaId()), 10, '0') - + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento - : StringPool.BLANK) + + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento : StringPool.BLANK) + StringPool.UNDERLINE - + (Validator.isNotNull(asseverazione.getAsseverazioneId()) ? asseverazione - .getAsseverazioneId() : System.currentTimeMillis()); - + + (Validator.isNotNull(asseverazione.getAsseverazioneId()) ? asseverazione.getAsseverazioneId() + : System.currentTimeMillis()); ReportDto reportDto = new ReportDto(); reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate }); reportDto.setFolderId(fileEntryIdFolder); reportDto.setFileName(fileName); - reportDto.setHeader(""); + reportDto.setHeader(StringPool.BLANK); reportDto.setHeaderHeight(1); - reportDto.setFooter(""); + reportDto.setFooter(StringPool.BLANK); reportDto.setFooterHeight(40); Map parameters = new HashMap(); - String relazioni = null; Map dichiarazioniMap = asseverazione.getDichiarazioniMap(); if (dichiarazioniMap.containsKey("coniugio")) { @@ -474,46 +422,39 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase relazioni = (String) dichiarazioniMap.get("relazioni"); } } else { - relazioni = ""; + relazioni = StringPool.BLANK; } } - - String testoAsseverazione = testoAsseverazione(asseverazione.getTipologia(), - asseverazione.getCodiceFiscale(), asseverazione.getDettPraticaId(), relazioni); + String testoAsseverazione = testoAsseverazione(asseverazione.getTipologia(), asseverazione.getCodiceFiscale(), + asseverazione.getDettPraticaId(), relazioni); if (Validator.isNull(testoAsseverazione)) { testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(asseverazione, asseverazione.getCodiceFiscale()); } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(asseverazione.getCompanyId(), comune.getCodiceProvincia()); - + Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(asseverazione.getCompanyId(), + comune.getCodiceProvincia()); parameters.put("html", testoAsseverazione); parameters.put("modello", asseverazione.getModello()); parameters.put("comune", provincia.getProvincia()); - reportDto.setParameters(parameters); reportDto.setShowNumberOfPage(true); reportDto.setType(ReportConstants.ReportType.VELOCITY_TO_PDF.toString()); - String resourcePath = getClass().getName().replaceAll("\\w+\\.", "../") .replace(getClass().getSimpleName(), "resource/asseverazioni"); reportDto.setPortalURL(getClass().getResource(resourcePath).getPath()); - - ReportResultDto result = ReportUtil.generateReport(asseverazione.getCompanyId(), userId, reportDto, - null); + ReportResultDto result = ReportUtil.generateReport(asseverazione.getCompanyId(), userId, reportDto, null); long idFileEntry = result.getFileEntryIds()[0]; asseverazione.setFileEntryId(idFileEntry); - asseverazione = asseverazionePersistence.update(asseverazione); - return asseverazione; } - public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, - SystemException, PortalException { + @Override + public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, SystemException, + PortalException { List asseverazioni = asseverazionePersistence.findByDettPratica(dettPraticaId); for (Asseverazione asseverazione : asseverazioni) { @@ -521,21 +462,21 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } } - public void concludiAsseverazioniExpired(long dettPraticaId) throws IOException, SystemException, - PortalException { + @Override + public void concludiAsseverazioniExpired(long dettPraticaId) throws IOException, SystemException, PortalException { - List asseverazioni = asseverazioneLocalService.findByDettPratica_InEsito( - dettPraticaId, new String[] { AsseverazioniUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); + List asseverazioni = findByDettPratica_InEsito(dettPraticaId, + new String[] { AsseverazioniUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (Asseverazione asseverazione : asseverazioni) { cambioStatoAsseverazione(asseverazione.getUserId(), asseverazione.getAsseverazioneId(), AsseverazioniUtil.STATO_EXPIRED); } } + @Override public void rimuoviFileAsseverazione(long asseverazioneId) throws SystemException, PortalException { - Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); + Asseverazione asseverazione = getAsseverazione(asseverazioneId); if (asseverazione.getEsito().equalsIgnoreCase(AsseverazioniUtil.STATO_ESEGUITA) && asseverazione.getFileEntryId() != 0) { DLAppLocalServiceUtil.deleteFileEntry(asseverazione.getFileEntryId()); @@ -544,7 +485,6 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase asseverazione.setFileEntryId(0); asseverazionePersistence.update(asseverazione); } - } @Override @@ -565,47 +505,41 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase @Override public Asseverazione deleteAsseverazione(long asseverazioneId) throws PortalException, SystemException { - return deleteAsseverazione(asseverazioneLocalService.getAsseverazione(asseverazioneId)); + return deleteAsseverazione(getAsseverazione(asseverazioneId)); } + @Override public FileEntry allegaFileAsseverazione(long asseverazioneId, byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, PortalException { - Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); - DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(asseverazione - .getIntPraticaId()); + Asseverazione asseverazione = getAsseverazione(asseverazioneId); + DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(asseverazione.getIntPraticaId()); // TODO forse dobbiamo mettere i permesssi ma non mi pare sicuro. FileEntry fileEntry = null; if (asseverazione.getEsito().equalsIgnoreCase(AsseverazioniUtil.STATO_ASSEGNATA)) { - - long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - + long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); - String folderName = PraticaUtil.getFolderName(dettPratica.getDettPraticaId()); - Folder folder = null; try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName); + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); } catch (NoSuchFolderException e) { // cartella non presente -> creo cartella - folder = dlAppLocalService.addFolder(serviceContext.getUserId(), - defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName, - StringPool.BLANK, serviceContext); + folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), + defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); } Date now = new Date(); String tipologiaUtente = asseverazione.getTipologia(); - String title = now.getTime() + StringPool.UNDERLINE + "asseverazione" + StringPool.UNDERLINE - + tipologiaUtente + StringPool.UNDERLINE + sourceFileName; - String description = ""; + String title = now.getTime() + "_asseverazione_" + tipologiaUtente + StringPool.UNDERLINE + sourceFileName; + String description = StringPool.BLANK; String mimeType = MimeTypesUtil.getContentType(sourceFileName); String changeLog = StringPool.BLANK; fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(), - folder.getFolderId(), now.getTime() + "_" + sourceFileName, mimeType, title, description, - changeLog, content, serviceContext); + folder.getFolderId(), now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, + description, changeLog, content, serviceContext); asseverazione.setFileEntryId(fileEntry.getFileEntryId()); asseverazione.setEsito(AsseverazioniUtil.STATO_ESEGUITA); asseverazione.setMezzo(AsseverazioniUtil.ASSEVERAZIONE_DA_ALLEGATO); @@ -615,160 +549,175 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase return fileEntry; } + @Override public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { return asseverazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); } + @Override public List findByDettPratica(long dettPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { return asseverazionePersistence.findByDettPratica(dettPraticaId, start, end, orderByComparator); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { return asseverazionePersistence.countByIntPratica(intPraticaId); } + @Override public int countByDettPratica(long dettPraticaId) throws SystemException { return asseverazionePersistence.countByDettPratica(dettPraticaId); } - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, - int start, int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, + int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, - end, orderByComparator); + return asseverazionePersistence.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, end, + orderByComparator); } - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) - throws SystemException { + @Override + public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { return asseverazionePersistence.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); } - public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByCodiceFiscale_InEsito(codiceFiscale, esiti, start, end, - orderByComparator); + return asseverazionePersistence + .findByCodiceFiscale_InEsito(codiceFiscale, esiti, start, end, orderByComparator); } + @Override public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { return asseverazionePersistence.countByCodiceFiscale_InEsito(codiceFiscale, esiti); } - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + @Override + public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, + String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, - esiti, start, end, orderByComparator); + return asseverazionePersistence.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, + start, end, orderByComparator); } - public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + @Override + public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, + String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, - esiti, start, end, orderByComparator); + return asseverazionePersistence.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti, + start, end, orderByComparator); } + @Override public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) throws SystemException { - return asseverazionePersistence.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, - esiti); + return asseverazionePersistence.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti); } - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, - String[] esiti) throws SystemException { + @Override + public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, String[] esiti) + throws SystemException { - return asseverazionePersistence.countByIntPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, - esiti); + return asseverazionePersistence.countByIntPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti); } - public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_InEsito(intPraticaId, esiti, start, end, - orderByComparator); + return asseverazionePersistence.findByIntPratica_InEsito(intPraticaId, esiti, start, end, orderByComparator); } + @Override public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { return asseverazionePersistence.countByIntPratica_InEsito(intPraticaId, esiti); } - public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, - orderByComparator); + return asseverazionePersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); } + @Override public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { return asseverazionePersistence.countByDettPratica_InEsito(dettPraticaId, esiti); } + @Override public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, - esiti, start, end, orderByComparator); + return asseverazionePersistence.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, start, + end, orderByComparator); } + @Override public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) throws SystemException { - return asseverazionePersistence.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, - esiti); + return asseverazionePersistence.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti); } + @Override public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, orderByComparator); + return asseverazionePersistence.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti, start, end, orderByComparator); } + @Override public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, String tipologia, String[] esiti) throws SystemException { - return asseverazionePersistence.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); + return asseverazionePersistence.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti); } - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, - start, end, orderByComparator); + return asseverazionePersistence.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, end, + orderByComparator); } + @Override public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, - start, end, orderByComparator); + return asseverazionePersistence.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, + end, orderByComparator); } + @Override public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) throws SystemException { return asseverazionePersistence.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); } + @Override public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti) throws SystemException { return asseverazionePersistence.countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java index 064bdf79..cbc14226 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -30,14 +30,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the asseverazione remote 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.liferay.portos.bo.service.AsseverazioneService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.AsseverazioneService} interface. * *

- * This is a remote service. Methods of this service are expected to have - * security checks based on the propagated JAAS credentials because this service - * can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -46,24 +44,24 @@ import com.liferay.portal.service.ServiceContext; */ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil} to - * access the asseverazione remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil} to access the asseverazione remote service. */ - public void cambioStatoAsseverazione(long asseverazioneId, String stato) throws IOException, - SystemException, PortalException { + @Override + public void cambioStatoAsseverazione(long asseverazioneId, String stato) throws IOException, SystemException, + PortalException { if (AsseverazioniUtil.hasCambioStatoAsseverazione(getUserId(), asseverazioneId)) { asseverazioneLocalService.cambioStatoAsseverazione(getUserId(), asseverazioneId, stato); } else { throw new SystemException("annulla-asseverazione-non-possibile"); } - } - public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, - SystemException, PrincipalException, PortalException { + @Override + public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, SystemException, + PrincipalException, PortalException { if (AsseverazioniUtil.hasRichiediAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.cambioStatoAsseverazioni(dettPraticaId, stato); @@ -72,8 +70,9 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } } - public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) - throws PrincipalException, PortalException, SystemException { + @Override + public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) throws PrincipalException, + PortalException, SystemException { if (AsseverazioniUtil.hasRichiediAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.richiediAsseverazioni(dettPraticaId, serviceContext); @@ -82,8 +81,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } } - public void resetAsseverazione(long dettPraticaId, long asseverazioneId) throws PortalException, - SystemException { + @Override + public void resetAsseverazione(long dettPraticaId, long asseverazioneId) throws PortalException, SystemException { if (AsseverazioniUtil.hasAnnullaAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.resetAsseverazione(asseverazioneId); @@ -92,8 +91,9 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } } - public void annullaAsseverazioni(long dettPraticaId) throws IOException, PrincipalException, - PortalException, SystemException { + @Override + public void annullaAsseverazioni(long dettPraticaId) throws IOException, PrincipalException, PortalException, + SystemException { if (AsseverazioniUtil.hasAnnullaAsseverazioni(getUserId(), dettPraticaId)) { asseverazioneLocalService.annullaAsseverazioni(dettPraticaId); @@ -102,6 +102,7 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } } + @Override public void rimuoviFileAsseverazione(long asseverazioneId) throws SystemException, PortalException { if (AsseverazioniUtil.hasGestisciFileAsseverazione(getUserId(), asseverazioneId)) { @@ -111,172 +112,187 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } } + @Override public FileEntry allegaFileAsseverazione(long asseverazioneId, byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, PortalException { if (AsseverazioniUtil.hasGestisciFileAsseverazione(getUserId(), asseverazioneId)) { - return asseverazioneLocalService.allegaFileAsseverazione(asseverazioneId, content, - sourceFileName, serviceContext); + return asseverazioneLocalService.allegaFileAsseverazione(asseverazioneId, content, sourceFileName, + serviceContext); } else { throw new SystemException("annulla-asseverazione-non-possibile"); } } + @Override public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { return asseverazioneLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); } + @Override public List findByDettPratica(long dettPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { return asseverazioneLocalService.findByDettPratica(dettPraticaId, start, end, orderByComparator); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { return asseverazioneLocalService.countByIntPratica(intPraticaId); } + @Override public int countByDettPratica(long dettPraticaId) throws SystemException { return asseverazioneLocalService.countByDettPratica(dettPraticaId); } - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, - int start, int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, + int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, - end, orderByComparator); + return asseverazioneLocalService.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, end, + orderByComparator); } - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) - throws SystemException { + @Override + public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { return asseverazioneLocalService.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); } - public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { return asseverazioneLocalService.findByCodiceFiscale_InEsito(codiceFiscale, esiti, start, end, orderByComparator); } + @Override public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { return asseverazioneLocalService.countByCodiceFiscale_InEsito(codiceFiscale, esiti); } - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + @Override + public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, + String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, - esiti, start, end, orderByComparator); + return asseverazioneLocalService.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, + start, end, orderByComparator); } - public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + @Override + public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, + String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); + return asseverazioneLocalService.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti, + start, end, orderByComparator); } + @Override public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) throws SystemException { - return asseverazioneLocalService.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, - esiti); + return asseverazioneLocalService.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti); } - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, - String[] esiti) throws SystemException { + @Override + public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, String[] esiti) + throws SystemException { - return asseverazioneLocalService.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti); + return asseverazioneLocalService.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti); } - public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByIntPratica_InEsito(intPraticaId, esiti, start, end, - orderByComparator); + return asseverazioneLocalService.findByIntPratica_InEsito(intPraticaId, esiti, start, end, orderByComparator); } + @Override public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { return asseverazioneLocalService.countByIntPratica_InEsito(intPraticaId, esiti); } - public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, - orderByComparator); + return asseverazioneLocalService.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); } + @Override public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { return asseverazioneLocalService.countByDettPratica_InEsito(dettPraticaId, esiti); } + @Override public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, - esiti, start, end, orderByComparator); + return asseverazioneLocalService.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, start, + end, orderByComparator); } + @Override public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) throws SystemException { - return asseverazioneLocalService.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, - esiti); + return asseverazioneLocalService.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti); } + @Override public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, orderByComparator); + return asseverazioneLocalService.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti, start, end, orderByComparator); } + @Override public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, String tipologia, String[] esiti) throws SystemException { - return asseverazioneLocalService.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); + return asseverazioneLocalService.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti); } - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, - start, end, orderByComparator); + return asseverazioneLocalService.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, end, + orderByComparator); } + @Override public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, - start, end, orderByComparator); + return asseverazioneLocalService.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, + end, orderByComparator); } + @Override public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) throws SystemException { return asseverazioneLocalService.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); } + @Override public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti) throws SystemException { - return asseverazioneLocalService - .countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti); + return asseverazioneLocalService.countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java index c1244afa..6f8af8ec 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java @@ -1,25 +1,24 @@ /** * 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 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. + * 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.bo.service.impl; import it.tref.liferay.portos.bo.model.Avviso; -import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.AvvisoLocalServiceBaseImpl; +import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; @@ -56,6 +55,7 @@ import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.search.Indexable; import com.liferay.portal.kernel.search.IndexableType; import com.liferay.portal.kernel.util.Base64; +import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.StringPool; @@ -63,6 +63,7 @@ import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.User; import com.liferay.portal.service.ServiceContext; import com.liferay.portlet.documentlibrary.NoSuchFileEntryException; +import com.liferay.portlet.documentlibrary.NoSuchFolderException; import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.util.dao.orm.CustomSQLUtil; @@ -70,14 +71,12 @@ import com.liferay.util.dao.orm.CustomSQLUtil; * The implementation of the avviso 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.liferay.portos.bo.service.AvvisoLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.AvvisoLocalService} 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 Davide Barbagallo, 3F Consulting @@ -86,13 +85,13 @@ import com.liferay.util.dao.orm.CustomSQLUtil; */ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil} to - * access the avviso local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil} to access the avviso local service. */ private static final Log _log = LogFactoryUtil.getLog(AvvisoLocalServiceImpl.class.getName()); + @Override public Avviso createStandardAvvisoPratica(IntPratica intPratica, long classPk, String className, ServiceContext serviceContext, String tipoAvviso, String userCodiceFiscalePrimaFirma, long controlloPraticaId) throws SystemException, PortalException { @@ -101,13 +100,13 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { userCodiceFiscalePrimaFirma, StringPool.BLANK, controlloPraticaId); } + @Override public Avviso createStandardAvvisoPratica(IntPratica intPratica, long classPk, String className, ServiceContext serviceContext, String tipoAvviso, String userCodiceFiscalePrimaFirma, String jsonParameters, long controlloPraticaId) throws SystemException, PortalException { String statoPratica = intPratica.getStatoPratica(); if (AvvisoUtil.isStatoPraticaValidoNuovoAvviso(statoPratica)) { - if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(statoPratica)) { statoPratica = StatoPraticaConstants.AUTORIZZATA; @@ -115,111 +114,109 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { statoPratica = StatoPraticaConstants.NON_AUTORIZZATA; } } - - String propertiesTemplate = null; String tipoProcedura = intPratica.getTipoProcedura(); - switch (statoPratica) { - case StatoPraticaConstants.VIDIMATA: - propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get( - "DP" + tipoProcedura); - break; - default: - propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPratica); - } - long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), propertiesTemplate); - - _log.info("statoPratica=" + statoPratica + ", tipoProcedura=" + tipoProcedura - + ", propertiesTemplate=" + propertiesTemplate + ", fileEntryIdTemplate=" - + fileEntryIdTemplate); - + String propertiesTemplate = AvvisoUtil.getFileTemplateProp(statoPratica, tipoProcedura); + long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + propertiesTemplate); if (fileEntryIdTemplate != 0) { - return addAvviso(intPratica.getIntPraticaId(), StringPool.BLANK, new Date(), tipoAvviso, - statoPratica, fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, - jsonParameters, controlloPraticaId, serviceContext); + return addAvviso(intPratica.getIntPraticaId(), StringPool.BLANK, new Date(), tipoAvviso, statoPratica, + fileEntryIdTemplate, classPk, className, userCodiceFiscalePrimaFirma, jsonParameters, + controlloPraticaId, serviceContext); } } return null; } - public Avviso createStandardAvvisoPratica(long intPraticaId, String stato, String jsonParameters, - long classPk, String className, ServiceContext serviceContext, String tipoAvviso, - String userCodiceFiscalePrimaFirma, long controlloPraticaId) throws SystemException, - PortalException { + @Override + public Avviso createStandardAvvisoPratica(long intPraticaId, String stato, String base64File, long classPk, + String className, ServiceContext serviceContext, String tipoAvviso, String userCodiceFiscalePrimaFirma, + long controlloPraticaId) throws SystemException, PortalException { IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); - - boolean varianteNonSostanziale = false; - if (className.equals(DettPratica.class.getName())) { - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPk); - varianteNonSostanziale = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE) - && !dettPratica.getVarianteSostanziale(); + if (base64File.isEmpty() || !base64File.startsWith("data:application/pdf;base64,")) { + String statoPraticaCode = PraticaUtil.getStatoPraticaCode(stato, intPratica); + String propertiesTemplate = AvvisoUtil.getFileTemplateProp(statoPraticaCode, intPratica.getTipoProcedura()); + long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + propertiesTemplate); + _log.info("statoPraticaCode=" + statoPraticaCode + ", tipoProcedura=" + intPratica.getTipoProcedura() + + ", propertiesTemplate=" + propertiesTemplate + ", fileEntryIdTemplate=" + fileEntryIdTemplate); + return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, + classPk, className, userCodiceFiscalePrimaFirma, StringPool.BLANK, controlloPraticaId, + serviceContext); + } else { + byte[] bytes = Base64.decode(base64File.substring(28)); + long attachmentFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(serviceContext.getCompanyId(), + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); + Folder attachmentFolder = DLAppLocalServiceUtil.getFolder(attachmentFolderId); + long repositoryId = attachmentFolder.getRepositoryId(); + String folderName = PraticaUtil.getFolderName(classPk); + Folder folder = null; + try { + folder = DLAppLocalServiceUtil.getFolder(repositoryId, attachmentFolder.getFolderId(), folderName); + } catch (NoSuchFolderException e) { + folder = DLAppLocalServiceUtil.addFolder(serviceContext.getUserId(), + attachmentFolder.getRepositoryId(), attachmentFolder.getFolderId(), folderName, + StringPool.BLANK, serviceContext); + } + String targetFileName = getFileNameAvviso(classPk, StatoPraticaConstants.SANZIONE_DOC1, null, "F") + ".pdf"; + FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(serviceContext.getUserId(), repositoryId, + folder.getFolderId(), StringPool.BLANK, ContentTypes.APPLICATION_PDF, targetFileName, + targetFileName, StringPool.BLANK, bytes, serviceContext); + return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, 0L, classPk, className, + userCodiceFiscalePrimaFirma, fileEntry.getFileEntryId(), 0L, StringPool.BLANK, controlloPraticaId, + serviceContext); } - String statoPraticaCode = varianteNonSostanziale ? "DPVNS" : PraticaUtil.getStatoPraticaCode(stato, - intPratica); - String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(statoPraticaCode); - - long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), propertiesTemplate); - - _log.info("debugAvviso: " + propertiesTemplate + " (" + statoPraticaCode + ")" - + (varianteNonSostanziale ? " non sostanziale" : "")); - return addAvviso(intPraticaId, StringPool.BLANK, new Date(), tipoAvviso, stato, fileEntryIdTemplate, - classPk, className, userCodiceFiscalePrimaFirma, jsonParameters, controlloPraticaId, - serviceContext); } - public Avviso createStandardAvvisoPratica(long intPraticaId, String stato, long classPk, - String className, ServiceContext serviceContext, String tipoAvviso, - String userCodiceFiscalePrimaFirma, long controlloPraticaId) throws SystemException, - PortalException { + @Override + public Avviso createStandardAvvisoPratica(long intPraticaId, String stato, long classPk, String className, + ServiceContext serviceContext, String tipoAvviso, String userCodiceFiscalePrimaFirma, + long controlloPraticaId) throws SystemException, PortalException { - return createStandardAvvisoPratica(intPraticaId, stato, null, classPk, className, serviceContext, + return createStandardAvvisoPratica(intPraticaId, stato, StringPool.BLANK, classPk, className, serviceContext, tipoAvviso, userCodiceFiscalePrimaFirma, controlloPraticaId); } - public Avviso addAvviso(long intPraticaId, String descLong, Date dtAvviso, String tipoAvviso, - String tipoDocumento, long fileEntryIdTemplate, long classPk, String className, - long controlloPraticaId, ServiceContext serviceContext) throws SystemException, PortalException { + @Override + public Avviso addAvviso(long intPraticaId, String descLong, Date dtAvviso, String tipoAvviso, String tipoDocumento, + long fileEntryIdTemplate, long classPk, String className, long controlloPraticaId, + ServiceContext serviceContext) throws SystemException, PortalException { - return addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, - classPk, className, StringPool.BLANK, StringPool.BLANK, controlloPraticaId, serviceContext); + return addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, + className, StringPool.BLANK, StringPool.BLANK, controlloPraticaId, serviceContext); } - public Avviso addAvviso(long intPraticaId, String descLong, Date dtAvviso, String tipoAvviso, - String tipoDocumento, long fileEntryIdTemplate, long classPk, String className, - String userCodiceFiscalePrimaFirma, String jsonParameters, long controlloPraticaId, - ServiceContext serviceContext) throws SystemException, PortalException { + @Override + public Avviso addAvviso(long intPraticaId, String descLong, Date dtAvviso, String tipoAvviso, String tipoDocumento, + long fileEntryIdTemplate, long classPk, String className, String userCodiceFiscalePrimaFirma, + String jsonParameters, long controlloPraticaId, ServiceContext serviceContext) throws SystemException, + PortalException { - return addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, - classPk, className, userCodiceFiscalePrimaFirma, null, 0L, jsonParameters, - controlloPraticaId, serviceContext); + return addAvviso(intPraticaId, descLong, dtAvviso, tipoAvviso, tipoDocumento, fileEntryIdTemplate, classPk, + className, userCodiceFiscalePrimaFirma, null, 0L, jsonParameters, controlloPraticaId, serviceContext); } - public Avviso addAvviso(long intPraticaId, String descLong, Date dtAvviso, String tipoAvviso, - String tipoDocumento, long fileEntryIdTemplate, long classPk, String className, - String userCodiceFiscalePrimaFirma, Long fileEntryIdBase, long fileEntryIdFirma, - String jsonParameters, long controlloPraticaId, ServiceContext serviceContext) - throws SystemException, PortalException { - - _log.info("addAvviso: descLong=\"" + descLong + "\", tipoAvviso=\"" + tipoAvviso - + "\", tipoDocumento=\"" + tipoDocumento + "\", className=\"" + className - + "\", jsonParameters=\"" + jsonParameters + "\", fileEntryIdTemplate=" + fileEntryIdTemplate); + @Override + public Avviso addAvviso(long intPraticaId, String descLong, Date dtAvviso, String tipoAvviso, String tipoDocumento, + long fileEntryIdTemplate, long classPk, String className, String userCodiceFiscalePrimaFirma, + Long fileEntryIdBase, long fileEntryIdFirma, String jsonParameters, long controlloPraticaId, + ServiceContext serviceContext) throws SystemException, PortalException { - if (0 == fileEntryIdTemplate) { - throw new PortalException("fileEntryIdTemplate=" + fileEntryIdTemplate); - } + _log.info("addAvviso: intPraticaId=" + intPraticaId + ", descLong=\"" + descLong + "\", dtAvviso=" + dtAvviso + + ", tipoAvviso=\"" + tipoAvviso + "\", tipoDocumento=\"" + tipoDocumento + "\", fileEntryIdTemplate=" + + fileEntryIdTemplate + ", classPk=" + classPk + ", className=\"" + className + + "\", userCodiceFiscalePrimaFirma=\"" + userCodiceFiscalePrimaFirma + "\", fileEntryIdBase=" + + fileEntryIdBase + ", fileEntryIdFirma=" + fileEntryIdFirma + ", jsonParameters=\"" + jsonParameters + + "\", controlloPraticaId=" + controlloPraticaId + ", serviceContext=\"" + serviceContext + "\""); User user = userPersistence.fetchByPrimaryKey(serviceContext.getUserId()); Date now = new Date(); Avviso avviso = createAvviso(counterLocalService.increment(Avviso.class.getName())); - avviso.setCompanyId(serviceContext.getCompanyId()); avviso.setGroupId(serviceContext.getScopeGroupId()); avviso.setUserId(serviceContext.getUserId()); avviso.setUserName(user.getFullName()); avviso.setCreateDate(serviceContext.getCreateDate(now)); avviso.setModifiedDate(serviceContext.getModifiedDate(now)); - avviso.setDescLong(descLong); avviso.setTipoAvviso(tipoAvviso); avviso.setDtAvviso(dtAvviso); @@ -238,19 +235,17 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { avviso.setErrore(false); avviso.setJsonParameters(jsonParameters); avviso.setInviatoTecnico(false); - avviso.setOldAvvisoId(0L); - return addAvviso(avviso); } + @Override public Avviso addAvvisoForImport(String descLong, Date dtAvviso, String tipoAvviso, String tipoDocumento, long fileEntryIdTemplate, long classPk, String className, String userCodiceFiscalePrimaFirma, - long fileEntryIdBase, String jsonParameters, long intPraticaId, long oldAvvisoId, String inviato, + long fileEntryIdBase, String jsonParameters, long intPraticaId, String inviato, ServiceContext serviceContext) throws SystemException, PortalException { Date now = new Date(); Avviso avviso = createAvviso(counterLocalService.increment(Avviso.class.getName())); - avviso.setCompanyId(serviceContext.getCompanyId()); avviso.setGroupId(serviceContext.getScopeGroupId()); avviso.setUserId(serviceContext.getUserId()); @@ -274,13 +269,11 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { avviso.setIntPraticaId(intPraticaId); avviso.setUserCodiceFiscalePrimaFirma(userCodiceFiscalePrimaFirma); avviso.setFileEntryIdBase(fileEntryIdBase); - avviso.setOldAvvisoId(oldAvvisoId); avviso.setClassPk(classPk); avviso.setClassName(className); avviso.setErrore(false); avviso.setJsonParameters(jsonParameters); avviso.setInviatoTecnico(false); - return addAvviso(avviso); } @@ -292,6 +285,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return super.addAvviso(avviso); } + @SuppressWarnings("unchecked") + @Override public List search(long[] groupIds, Long classPk, String keywords, int start, int end) throws SystemException { @@ -300,6 +295,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countSearch(long[] groupIds, Long classPk, String keywords) throws SystemException { return (int) avvisoPersistence.countWithDynamicQuery(searchDynamicQuery(groupIds, classPk, keywords)); @@ -307,15 +303,14 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { private DynamicQuery searchDynamicQuery(long[] groupIds, Long classPk, String keywords) { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); - + DynamicQuery dynamicQuery = dynamicQuery(); if (Validator.isNotNull(classPk)) { dynamicQuery.add(PropertyFactoryUtil.forName("classPk").eq(classPk)); } if (groupIds.length > 0) { dynamicQuery.add(PropertyFactoryUtil.forName("groupId").in(groupIds)); } else { - dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0l)); + dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0L)); } if (Validator.isNotNull(keywords)) { String[] sqlKeywords = CustomSQLUtil.keywords(keywords); @@ -330,14 +325,16 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } - public List getAvvisiFirmatiByCF(long companyId, String cf, int start, int end) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getAvvisiFirmatiByCF(long companyId, String cf, int start, int end) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryAvvisiFirmatiByCF(companyId, cf); dynamicQuery.addOrder(OrderFactoryUtil.desc("dtAvviso")); return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countAvvisiFirmatiByCF(long companyId, String cf) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryAvvisiFirmatiByCF(companyId, cf); @@ -346,13 +343,11 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { private DynamicQuery getDynamicQueryAvvisiFirmatiByCF(long companyId, String cf) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - Junction andPrimaFirma = RestrictionsFactoryUtil.conjunction(); andPrimaFirma.add(RestrictionsFactoryUtil.ilike("userCodiceFiscalePrimaFirma", cf)); andPrimaFirma.add(PropertyFactoryUtil.forName("fileEntryIdInvio").ne(0L)); - dynamicQuery.add(andPrimaFirma); dynamicQuery.add(PropertyFactoryUtil.forName("tipoAvviso").eq(AvvisoUtil.TIPO_AVVISO_FIRMA)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); @@ -360,6 +355,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getAvvisiDaFirmarePrimaFirmaByCF(long companyId, String cf, int start, int end) throws SystemException { @@ -368,6 +365,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countAvvisiDaFirmarePrimaFirmaByCF(long companyId, String cf) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryAvvisiDaFirmarePrimaFirmaByCF(companyId, cf); @@ -383,21 +381,18 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { dlAppLocalService.deleteFileEntry(avviso.getFileEntryIdBase()); } } catch (NoSuchFileEntryException | NoSuchRepositoryEntryException e) { - } try { if (Validator.isNotNull(avviso.getFileEntryIdInvio())) { dlAppLocalService.deleteFileEntry(avviso.getFileEntryIdInvio()); } } catch (NoSuchFileEntryException | NoSuchRepositoryEntryException e) { - } try { if (Validator.isNotNull(avviso.getFileEntryIdProtocollo())) { dlAppLocalService.deleteFileEntry(avviso.getFileEntryIdProtocollo()); } } catch (NoSuchFileEntryException | NoSuchRepositoryEntryException e) { - } } catch (PortalException e) { throw new SystemException(e); @@ -408,18 +403,16 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { @Override public Avviso deleteAvviso(long avvisoId) throws PortalException, SystemException { - return deleteAvviso(avvisoLocalService.getAvviso(avvisoId)); + return deleteAvviso(getAvviso(avvisoId)); } private DynamicQuery getDynamicQueryAvvisiDaFirmarePrimaFirmaByCF(long companyId, String cf) { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - dynamicQuery.add(RestrictionsFactoryUtil.ilike("userCodiceFiscalePrimaFirma", cf)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdBase").ne(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_NON_INVIATO)); - dynamicQuery.add(PropertyFactoryUtil.forName("tipoAvviso").eq(AvvisoUtil.TIPO_AVVISO_FIRMA)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); @@ -427,38 +420,37 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } - public List getAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf, - int start, int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf, int start, + int end) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryAvvisiDaFirmarePrimaFirmaByNotCF(companyId, groupIds, cf); dynamicQuery.addOrder(OrderFactoryUtil.desc("dtAvviso")); return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } - public int countAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf) - throws SystemException { + @Override + public int countAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryAvvisiDaFirmarePrimaFirmaByNotCF(companyId, groupIds, cf); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } - private DynamicQuery getDynamicQueryAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, - String cf) { + private DynamicQuery getDynamicQueryAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf) { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); if (groupIds.length > 0) { dynamicQuery.add(PropertyFactoryUtil.forName("groupId").in(groupIds)); } else { - dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0l)); + dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0L)); } - dynamicQuery.add(RestrictionsFactoryUtil.not(RestrictionsFactoryUtil.ilike( - "userCodiceFiscalePrimaFirma", cf))); + dynamicQuery.add(RestrictionsFactoryUtil.not(RestrictionsFactoryUtil.ilike("userCodiceFiscalePrimaFirma", cf))); dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("userCodiceFiscalePrimaFirma")); dynamicQuery.add(RestrictionsFactoryUtil.ne("userCodiceFiscalePrimaFirma", StringPool.BLANK)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdBase").ne(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_NON_INVIATO)); - dynamicQuery.add(PropertyFactoryUtil.forName("tipoAvviso").eq(AvvisoUtil.TIPO_AVVISO_FIRMA)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); @@ -466,6 +458,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getAvvisiDaFirmarePrimaFirma(long companyId, long[] groupIds, int start, int end) throws SystemException { @@ -474,6 +468,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countAvvisiDaFirmarePrimaFirma(long companyId, long[] groupIds) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryAvvisiDaFirmarePrimaFirma(companyId, groupIds); @@ -482,35 +477,35 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { private DynamicQuery getDynamicQueryAvvisiDaFirmarePrimaFirma(long companyId, long[] groupIds) { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); if (groupIds.length > 0) { dynamicQuery.add(PropertyFactoryUtil.forName("groupId").in(groupIds)); } else { - dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0l)); + dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0L)); } dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdInvio").eq(0L)); - dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_NON_INVIATO)); dynamicQuery.add(PropertyFactoryUtil.forName("tipoAvviso").eq(AvvisoUtil.TIPO_AVVISO_FIRMA)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("rifiutato").eq(false)); - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); - disjunction.add(RestrictionsFactoryUtil.eq("userCodiceFiscalePrimaFirma", "")); + disjunction.add(RestrictionsFactoryUtil.eq("userCodiceFiscalePrimaFirma", StringPool.BLANK)); disjunction.add(RestrictionsFactoryUtil.isNull("userCodiceFiscalePrimaFirma")); - dynamicQuery.add(disjunction); return dynamicQuery; } + @Override public int countAvvisiGenerazioneDocumento() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiGenerazioneDocumento(); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getAvvisiGenerazioneDocumento(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiGenerazioneDocumento(); @@ -518,9 +513,10 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public DynamicQuery dynamicQueryAvvisiGenerazioneDocumento() throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_NON_INVIATO)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdBase").eq(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); @@ -528,12 +524,15 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } + @Override public int countAvvisiFirmaDocumento() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiFirmaDocumento(); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getAvvisiFirmaDocumento(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiFirmaDocumento(); @@ -541,9 +540,10 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public DynamicQuery dynamicQueryAvvisiFirmaDocumento() throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("tipoAvviso").eq(AvvisoUtil.TIPO_AVVISO_FIRMA)); dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_NON_INVIATO)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdInvio").eq(0L)); @@ -553,17 +553,19 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { andPrimaFirma.add(PropertyFactoryUtil.forName("fileEntryIdInvio").eq(0L)); andPrimaFirma.add(PropertyFactoryUtil.forName("transactionIdPrimaFirma").isNotNull()); andPrimaFirma.add(PropertyFactoryUtil.forName("transactionIdPrimaFirma").ne(StringPool.BLANK)); - dynamicQuery.add(andPrimaFirma); return dynamicQuery; } + @Override public int countAvvisiInvioDocumento() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioDocumento(); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getAvvisiInvioDocumento(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioDocumento(); @@ -571,9 +573,10 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public DynamicQuery dynamicQueryAvvisiInvioDocumento() throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_NON_INVIATO)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdInvio").ne(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").ne(0L)); @@ -582,19 +585,24 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } + @Override public int countAvvisiInvioSignal() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioSignal(null); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @Override public Avviso getAvvisoInvioSignal(long avvisoId) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioSignal(avvisoId); - List avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - return !avviso.isEmpty() ? avviso.get(0) : null; + @SuppressWarnings("unchecked") + List avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); + return avvisi.isEmpty() ? null : avvisi.get(0); } + @SuppressWarnings("unchecked") + @Override public List getAvvisiInvioSignal(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioSignal(null); @@ -602,38 +610,42 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public DynamicQuery dynamicQueryAvvisiInvioSignal(Long avvisoId) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("signal").eq(true)); dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioSignal").isNull()); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_INVIATO)); disjunction.add(PropertyFactoryUtil.forName("rifiutato").eq(true)); dynamicQuery.add(disjunction); - if (Validator.isNotNull(avvisoId)) { dynamicQuery.add(PropertyFactoryUtil.forName("avvisoId").eq(avvisoId)); } return dynamicQuery; } + @Override public int countAvvisiTempistica() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiTempistica(null); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @Override public Avviso getAvvisoTempistica(long avvisoId) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiTempistica(avvisoId); - List avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - return !avviso.isEmpty() ? avviso.get(0) : null; + @SuppressWarnings("unchecked") + List avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); + return avvisi.isEmpty() ? null : avvisi.get(0); } + @SuppressWarnings("unchecked") + @Override public List getAvvisiTempistica(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiTempistica(null); @@ -641,9 +653,10 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public DynamicQuery dynamicQueryAvvisiTempistica(Long avvisoId) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_INVIATO)); dynamicQuery.add(PropertyFactoryUtil.forName("tempistica").eq(true)); dynamicQuery.add(PropertyFactoryUtil.forName("dtTempistica").isNull()); @@ -655,16 +668,17 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } + @Override public Avviso updateAvvisoDlFileEntryFirma(long avvisoId, long fileEntryFirma) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdInvio(fileEntryFirma); avviso.setFirmaInCorso(false); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } - public Avviso updateAvvisoPrimaFirma(long avvisoId, String transactionId) throws PortalException, - SystemException { + @Override + public Avviso updateAvvisoPrimaFirma(long avvisoId, String transactionId) throws PortalException, SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); if (Validator.isNotNull(avviso.getTransactionIdPrimaFirma())) { @@ -672,132 +686,144 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { } avviso.setFirmaInCorso(true); avviso.setTransactionIdPrimaFirma(transactionId); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoRollbackPrimaFirma(long avvisoId) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFirmaInCorso(false); avviso.setTransactionIdPrimaFirma(null); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoDlFileEntryIdBase(long avvisoId, long fileEntryIdBase) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdBase(fileEntryIdBase); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } - public Avviso updateAvvisoDlFileEntryIdBaseSingola(long avvisoId, long fileEntryIdBase) - throws SystemException { + @Override + public Avviso updateAvvisoDlFileEntryIdBaseSingola(long avvisoId, long fileEntryIdBase) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdBase(fileEntryIdBase); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } - public Avviso updateAvvisoDlFileEntryIdBaseAndInvio(long avvisoId, long fileEntryId, - Date dtCreateFileEntryInvio) throws SystemException { + @Override + public Avviso updateAvvisoDlFileEntryIdBaseAndInvio(long avvisoId, long fileEntryId, Date dtCreateFileEntryInvio) + throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdBase(fileEntryId); avviso.setFileEntryIdInvio(fileEntryId); avviso.setDtCreateFileEntryInvio(dtCreateFileEntryInvio); - // avviso.setFileEntryIdProtocollo(fileEntryId); - - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } - public Avviso updateAvvisoDlFileEntryIdInvio(long avvisoId, long fileEntryIdInvio, - Date dtCreateFileEntryInvio) throws SystemException { + @Override + public Avviso updateAvvisoDlFileEntryIdInvio(long avvisoId, long fileEntryIdInvio, Date dtCreateFileEntryInvio) + throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setFileEntryIdInvio(fileEntryIdInvio); avviso.setDtCreateFileEntryInvio(dtCreateFileEntryInvio); avviso.setFirmaInCorso(false); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoInvio(long avvisoId) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setInviato(AvvisoUtil.DOCUMENTO_INVIATO); avviso.setDtInvio(new Date()); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoErrore(long avvisoId, boolean errore) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setErrore(errore); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoAnnullato(long avvisoId, boolean annullato) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setAnnullato(annullato); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoSignal(long avvisoId, Date dtInvioSignal) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setDtInvioSignal(dtInvioSignal); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoSignal(long avvisoId, boolean signal) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setSignal(signal); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoTempistica(long avvisoId, Date dtTempistica) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setDtTempistica(dtTempistica); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoTempistica(long avvisoId, boolean tempistica) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setTempistica(tempistica); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso updateAvvisoProtocollo(long avvisoId, String protocollo) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); - Date now = new Date(); - avviso.setModifiedDate(now); avviso.setProtocollo(protocollo); avviso.setDtProtocollo(now); avviso.setOggettoProtocollo(ProtocollazioneUtil.generaOggettoProtocollo(avviso.getClass().getName(), avviso.getAvvisoId())); - - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso getAvvisoInvioTecnico(long avvisoId) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnico(avvisoId); + @SuppressWarnings("unchecked") List avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); return avvisi.isEmpty() ? null : avvisi.get(0); } + @Override public int countAvvisiInvioTecnico() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnico(null); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getAvvisiInvioTecnico(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnico(null); @@ -807,11 +833,10 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { private DynamicQuery dynamicQueryAvvisiInvioTecnico(Long avvisoId) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("inviatoTecnico").eq(false)); - dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento") - .in(new String[] { StatoPraticaConstants.VIDIMATA, - StatoPraticaConstants.INTEGRAZIONE_ACCETTATA })); + dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in( + new String[] { StatoPraticaConstants.VIDIMATA, StatoPraticaConstants.INTEGRAZIONE_ACCETTATA })); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); if (Validator.isNotNull(avvisoId)) { @@ -820,72 +845,73 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return dynamicQuery; } - public Avviso fetchAvvisoByOldAvvisoId(long oldAvvisoId) throws SystemException { - - return avvisoPersistence.fetchByoldAvvisoId(oldAvvisoId); - } - + @Override public Avviso updateAvvisoInviatoTecnico(long avvisoId, boolean inviatoTecnico) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); avviso.setInviatoTecnico(inviatoTecnico); - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } - public List findByClassPk_tipoDocumento(Long classPk, String tipoDocumento) - throws SystemException { + @Override + public List findByClassPk_tipoDocumento(Long classPk, String tipoDocumento) throws SystemException { return avvisoPersistence.findByClassPk_tipoDocumento(classPk, tipoDocumento); } + @Override public List findByIntPraticaId_tipoDocumento(Long intPraticaId, String tipoDocumento) throws SystemException { return avvisoPersistence.findByIntPraticaId_tipoDocumento(intPraticaId, tipoDocumento); } + @Override public List findByIntPraticaIds_tipoDocumento(long[] intPraticaIds, String tipoDocumento) throws SystemException { return avvisoPersistence.findByIntPraticaIds_tipoDocumento(intPraticaIds, tipoDocumento); } - public List findByClassPk_ExcludeTipoDocumento(Long classPk, String tipoDocumento) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findByClassPk_ExcludeTipoDocumento(Long classPk, String tipoDocumento) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.ne("tipoDocumento", tipoDocumento)); dynamicQuery.addOrder(OrderFactoryUtil.asc("dtAvviso")); return avvisoPersistence.findWithDynamicQuery(dynamicQuery); } - public List findByIntPratica(long intPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) + throws SystemException { return avvisoPersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); } + @Override public List findByIntPratica_Inviato(long intPraticaId, String inviato, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return avvisoPersistence.findByIntPratica_Inviato(intPraticaId, inviato, start, end, - orderByComparator); + return avvisoPersistence.findByIntPratica_Inviato(intPraticaId, inviato, start, end, orderByComparator); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { return avvisoPersistence.countByIntPratica(intPraticaId); } - public boolean containsFileEntry(long companyId, long[] groupIds, long fileEntryId) - throws SystemException { + @Override + public boolean containsFileEntry(long companyId, long[] groupIds, long fileEntryId) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId)); if (groupIds.length > 0) { dynamicQuery.add(PropertyFactoryUtil.forName("groupId").in(groupIds)); } else { - dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0l)); + dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(0L)); } Junction or = RestrictionsFactoryUtil.disjunction(); or.add(PropertyFactoryUtil.forName("fileEntryIdTemplate").eq(fileEntryId)); @@ -896,46 +922,51 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return count > 0; } + @Override public List findByUUID(String uuid, int start, int end) throws SystemException { return avvisoPersistence.findByUuid(uuid, start, end); } + @Override public int countAvvisoByClassPk(long classPk) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("classPk", classPk)); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @Override public int countAvvisoByClassPk_ClassName(long classPk, String className) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("classPk", classPk)); dynamicQuery.add(RestrictionsFactoryUtil.eq("className", className)); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } + @Override public Avviso findByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, SystemException { return avvisoPersistence.findByC_G_Protocollo(companyId, groupId, protocollo); } + @Override public Avviso fetchByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, SystemException { return avvisoPersistence.fetchByC_G_Protocollo(companyId, groupId, protocollo); } + @Override public Avviso fetchByProtocollo(String protocollo) throws PortalException, SystemException { return avvisoPersistence.fetchByProtocollo(protocollo); } /* - * Utilizzato nell'override di update e add per automatizzazione campo - * signal (default false) + * Utilizzato nell'override di update e add per automatizzazione campo signal (default false) */ private void updateSignalAndTempistica(Avviso avviso) { @@ -954,9 +985,10 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { avviso.setTempistica(tempistica); } + @Override public Avviso fetchLastAvvisoByIntPraticaPerStatoFinale(long intPraticaId) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.CONFORME)); @@ -965,57 +997,45 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.AUTORIZZATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.NON_AUTORIZZATA)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.INTEGRAZIONE)); - disjunction.add(RestrictionsFactoryUtil - .eq("tipoDocumento", StatoPraticaConstants.PREAVVISO_CONTRARIO)); + disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.PREAVVISO_CONTRARIO)); disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA)); dynamicQuery.add(disjunction); dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); + @SuppressWarnings("unchecked") List avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - if (avvisi.size() > 0) { - return avvisi.get(0); - } else { - return null; - } - + return avvisi.isEmpty() ? null : avvisi.get(0); } + @SuppressWarnings("unchecked") + @Override public List getListaAvvisiPerApplet(String codFisc) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.ilike("userCodiceFiscalePrimaFirma", codFisc)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipoAvviso", AvvisoUtil.TIPO_AVVISO_FIRMA)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("fileEntryIdInvio", 0l)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("fileEntryIdBase", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("fileEntryIdInvio", 0L)); + dynamicQuery.add(RestrictionsFactoryUtil.ne("fileEntryIdBase", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("rifiutato", false)); return avvisoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public Map getAllTipoDocumentoFolderProps() { return AvvisoUtil.getAllTipoDocumentoFolderProps(); } + @Override public String getFileNameAvviso(long classPk, String tipoDocumento, Long idAvviso, String doc) { - // boolean docBase, boolean docFirma, boolean docControfirma - // String doc = StringPool.BLANK; - // if (docBase) { - // doc = "B"; - // } else if (docFirma) { - // doc = "F"; - // } else if (docControfirma) { - // doc = "C"; - // } - String filename = StringUtils.leftPad(String.valueOf(classPk), 10, '0') - + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento - : StringPool.BLANK) + StringPool.UNDERLINE + doc + StringPool.UNDERLINE + + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento : StringPool.BLANK) + + StringPool.UNDERLINE + doc + StringPool.UNDERLINE + (Validator.isNotNull(idAvviso) ? idAvviso : System.currentTimeMillis()); - return filename; - } + @Override public Avviso rilasciaFirma(long avvisoId) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); @@ -1023,10 +1043,10 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { throw new SystemException("File gia' firmato rilascio firma non possibile"); } avviso.setUserCodiceFiscalePrimaFirma(StringPool.BLANK); - - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } + @Override public Avviso assegnaFirma(long avvisoId, String cf) throws SystemException { Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); @@ -1034,192 +1054,123 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { throw new SystemException("File gia' firmato assegna firma non possibile"); } avviso.setUserCodiceFiscalePrimaFirma(cf); - - return avvisoLocalService.updateAvviso(avviso); + return updateAvviso(avviso); } - public List getAvvisiWithOldFileEntryIdInvio(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(Avviso.class); - dynamicQuery.add(PropertyFactoryUtil.forName("oldFileEntryIdInvio").ne(0L)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("oldFileEntryIdInvio")); - - return avvisoLocalService.dynamicQuery(dynamicQuery, start, end); - } - - public List getAvvisiWithOldFileEntryIdBase(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(Avviso.class); - dynamicQuery.add(PropertyFactoryUtil.forName("oldFileEntryIdBase").ne(0L)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("oldFileEntryIdBase")); - - return avvisoLocalService.dynamicQuery(dynamicQuery, start, end); - } - - public List getAvvisiRifiutatiByControlloPraticaId(long controlloPraticaId) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getAvvisiRifiutatiByControlloPraticaId(long controlloPraticaId) throws SystemException { DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(Avviso.class); dynamicQuery.add(RestrictionsFactoryUtil.eq("controlloPraticaId", controlloPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("rifiutato", true)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); - - return avvisoLocalService.dynamicQuery(dynamicQuery); + return dynamicQuery(dynamicQuery); } + @Override public Avviso addFileFirmato(long avvisoId, long classPk, String fileToSave, ServiceContext serviceContext) throws Exception { Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(avvisoId); - // DettPratica dettPratica = - // DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId); - - long folderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(avviso.getCompanyId(), - avvisoLocalService.getAllTipoDocumentoFolderProps().get(avviso.getTipoDocumento())); - + long folderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(avviso.getCompanyId(), avvisoLocalService + .getAllTipoDocumentoFolderProps().get(avviso.getTipoDocumento())); String fileName = getFileNameAvviso(classPk, avviso.getTipoDocumento(), avviso.getAvvisoId(), "F"); - if (Validator.isNotNull(folderId)) { - Folder folder = DLAppLocalServiceUtil.getFolder(folderId); if (Validator.isNotNull(folder)) { - byte[] bytes = Base64.decode(fileToSave); - FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(avviso.getUserId(), - folder.getRepositoryId(), folderId, fileName, - MimeTypesUtil.getContentType(fileName + ".p7m"), fileName + ".p7m", "", "", bytes, - serviceContext); - + FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(avviso.getUserId(), folder.getRepositoryId(), + folderId, fileName, MimeTypesUtil.getContentType(fileName + ".p7m"), fileName + ".p7m", + StringPool.BLANK, StringPool.BLANK, bytes, serviceContext); avviso.setFileEntryIdInvio(fileEntry.getFileEntryId()); - avviso = avvisoLocalService.updateAvviso(avviso); - + avviso = updateAvviso(avviso); if (Validator.isNull(avviso.getProtocollo())) { - String protocollo = ProtocollazioneUtil.protocollaPartenza(avviso, - fileEntry.getFileEntryId()); - avviso = avvisoLocalService.updateAvvisoProtocollo(avviso.getAvvisoId(), protocollo); + String protocollo = ProtocollazioneUtil.protocollaPartenza(avviso, fileEntry.getFileEntryId()); + avviso = updateAvvisoProtocollo(avviso.getAvvisoId(), protocollo); } - } else { throw new Exception("No folder id exist"); } } else { throw new Exception("No folder id exist"); } - return avviso; - } - public List protocolliSearch(String dataDa, String dataA, String numeroProtocollo, int start, - int end) throws ParseException, SystemException { + @SuppressWarnings("unchecked") + @Override + public List protocolliSearch(String dataDa, String dataA, String numeroProtocollo, int start, int end) + throws ParseException, SystemException { SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - List lista = new ArrayList(); - DynamicQuery query = DynamicQueryFactoryUtil.forClass(Avviso.class); - - if (numeroProtocollo != null && !numeroProtocollo.equals("")) { + if (numeroProtocollo != null && !numeroProtocollo.equals(StringPool.BLANK)) { query.add(RestrictionsFactoryUtil.eq("protocollo", numeroProtocollo)); } - Calendar calendarDa = Calendar.getInstance(); - calendarDa.set(Calendar.DAY_OF_MONTH, 1); calendarDa.set(Calendar.MONTH, 1); calendarDa.set(Calendar.YEAR, 2014); - - if (dataDa != null && !dataDa.equals("") && dataA != null && !dataA.equals("")) { + if (Validator.isNotNull(dataDa) && Validator.isNotNull(dataA)) { Date dateDa = sdf.parse(dataDa); Date dateA = sdf.parse(dataA); - Property createDateProperty = PropertyFactoryUtil.forName("dtProtocollo"); query.add(createDateProperty.between(dateDa, dateA)); - } - - if (dataDa != null && !dataDa.equals("") && (dataA == null || dataA.equals(""))) { - + if (Validator.isNotNull(dataDa) && Validator.isNull(dataA)) { Date dateDa = sdf.parse(dataDa); - Property createDateProperty = PropertyFactoryUtil.forName("dtProtocollo"); query.add(createDateProperty.between(dateDa, new Date())); - } - - if ((dataDa == null || dataDa.equals("")) && dataA != null && !dataA.equals("")) { - + } else if (Validator.isNull(dataDa) && Validator.isNotNull(dataA)) { Date dateA = sdf.parse(dataA); - Property createDateProperty = PropertyFactoryUtil.forName("dtProtocollo"); query.add(createDateProperty.between(calendarDa.getTime(), dateA)); - - } - - if ((numeroProtocollo != null && !numeroProtocollo.equals("")) - || (dataDa != null && !dataDa.equals("")) || (dataA != null && !dataA.equals(""))) { - + } else if (Validator.isNotNull(numeroProtocollo) || Validator.isNotNull(dataDa) || Validator.isNotNull(dataA)) { Order defaultOrder = OrderFactoryUtil.asc("dtProtocollo"); query.addOrder(defaultOrder); - lista = AvvisoLocalServiceUtil.dynamicQuery(query, start, end); } - return lista; } - public int countProtocolliSearch(String dataDa, String dataA, String numeroProtocollo) - throws SystemException, ParseException { + @Override + public int countProtocolliSearch(String dataDa, String dataA, String numeroProtocollo) throws SystemException, + ParseException { int count = 0; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - DynamicQuery query = DynamicQueryFactoryUtil.forClass(Avviso.class); - - if (numeroProtocollo != null && !numeroProtocollo.equals("")) { + if (numeroProtocollo != null && !numeroProtocollo.equals(StringPool.BLANK)) { query.add(RestrictionsFactoryUtil.eq("protocollo", numeroProtocollo)); } - Calendar calendarDa = Calendar.getInstance(); - calendarDa.set(Calendar.DAY_OF_MONTH, 1); calendarDa.set(Calendar.MONTH, 1); calendarDa.set(Calendar.YEAR, 2014); - - if (dataDa != null && !dataDa.equals("") && dataA != null && !dataA.equals("")) { + if (Validator.isNotNull(dataDa) && Validator.isNotNull(dataA)) { Date dateDa = sdf.parse(dataDa); Date dateA = sdf.parse(dataA); - Property createDateProperty = PropertyFactoryUtil.forName("dtProtocollo"); query.add(createDateProperty.between(dateDa, dateA)); - - } - - if (dataDa != null && !dataDa.equals("") && (dataA == null || dataA.equals(""))) { - + } else if (Validator.isNotNull(dataDa) && Validator.isNull(dataA)) { Date dateDa = sdf.parse(dataDa); - Property createDateProperty = PropertyFactoryUtil.forName("dtProtocollo"); query.add(createDateProperty.between(dateDa, new Date())); - } - - if ((dataDa == null || dataDa.equals("")) && dataA != null && !dataA.equals("")) { - + } else if (Validator.isNull(dataDa) && Validator.isNotNull(dataA)) { Date dateA = sdf.parse(dataA); - Property createDateProperty = PropertyFactoryUtil.forName("dtProtocollo"); query.add(createDateProperty.between(calendarDa.getTime(), dateA)); - } - - if ((numeroProtocollo != null && !numeroProtocollo.equals("")) - || (dataDa != null && !dataDa.equals("")) || (dataA != null && !dataA.equals(""))) { + if (Validator.isNotNull(numeroProtocollo) || Validator.isNotNull(dataDa) || Validator.isNotNull(dataA)) { count = (int) avvisoPersistence.countWithDynamicQuery(query); } - return count; } + @SuppressWarnings("unchecked") + @Override public List getAvvisiPerAggiuntaProtocollo(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAggiuntaProtocollo(); @@ -1227,90 +1178,68 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public DynamicQuery dynamicQueryAggiuntaProtocollo() throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("inviato").eq(AvvisoUtil.DOCUMENTO_NON_INVIATO)); - dynamicQuery.add(PropertyFactoryUtil.forName("protocollo").ne("")); + dynamicQuery.add(PropertyFactoryUtil.forName("protocollo").ne(StringPool.BLANK)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdBase").ne(0L)); - dynamicQuery.add(PropertyFactoryUtil.forName("oldAvvisoId").eq(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").eq(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); - return dynamicQuery; } + @Override public List findByClassPk(long classPk) throws SystemException { return avvisoPersistence.findByClassPk(classPk); } - // /////////////////////////////////////////////////////////////////////////////// - // /////////////////////////////////////////////////////////////////////////////// - // NUOVI METODI ADT - /** - * ADT - */ + // ADT + @Override public int countAvvisiInvioTecnicoNew() throws SystemException { + DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnicoNew(null); return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery); } - /** - * ADT - * - */ + // ADT + @SuppressWarnings("unchecked") + @Override public List getAvvisiInvioTecnicoNew(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnicoNew(null); dynamicQuery.addOrder(OrderFactoryUtil.asc("dtAvviso")); return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - /** - * - * ADT - * - * @param avvisoId - * @return - * @throws SystemException - */ + // ADT private DynamicQuery dynamicQueryAvvisiInvioTecnicoNew(Long avvisoId) throws SystemException { - DynamicQuery dynamicQuery = avvisoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("inviatoTecnico").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in( - new String[] { StatoPraticaConstants.SOTTOPOSTA_A_PARERE, - StatoPraticaConstants.CAMBIO_ISTRUTTORE })); + new String[] { StatoPraticaConstants.SOTTOPOSTA_A_PARERE, StatoPraticaConstants.CAMBIO_ISTRUTTORE })); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); if (Validator.isNotNull(avvisoId)) { dynamicQuery.add(PropertyFactoryUtil.forName("avvisoId").eq(avvisoId)); } - // evito di prendere i vecchi avvisi, in alternativa aggiornare il campo - // inviatotecnico sulla tabella - // degli avvisi + // evito di prendere i vecchi avvisi, in alternativa aggiornare il campo inviatotecnico sulla tabella degli + // avvisi Calendar gc = GregorianCalendar.getInstance(); gc.set(Calendar.YEAR, 2018); - gc.set(Calendar.MONTH, 10);// NOVEMBRE + gc.set(Calendar.MONTH, 10); // NOVEMBRE gc.set(Calendar.DAY_OF_MONTH, 24); dynamicQuery.add(PropertyFactoryUtil.forName("createDate").ge(gc.getTime())); - // ///////////////////////////////////////// return dynamicQuery; - } - /** - * ADT - * - * @param intPraticaId - * @param dettPraticaID - * @return - * @throws SystemException - */ + // ADT + @Override public Avviso getAvvisoVidimazione(long intPraticaId, long dettPraticaID) throws SystemException { DynamicQuery dynamicQuery = AvvisoLocalServiceUtil.dynamicQuery(); @@ -1321,44 +1250,26 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("classPk", dettPraticaID)); - dynamicQuery.addOrder(OrderFactoryUtil.asc("avvisoId")); + @SuppressWarnings("unchecked") List ritorno = dynamicQuery(dynamicQuery, 0, 1); - - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } - + return ritorno.isEmpty() ? null : ritorno.get(0); } - /** - * - * - * @param intPraticaId - * @return - * @throws SystemException - */ + // ADT + @Override public Avviso getLastAvvisoIntegrazione(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = AvvisoLocalServiceUtil.dynamicQuery(); - dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento") - .in(new String[] { StatoPraticaConstants.INTEGRAZIONE, - StatoPraticaConstants.PREAVVISO_CONTRARIO })); + dynamicQuery.add(PropertyFactoryUtil.forName("tipoDocumento").in( + new String[] { StatoPraticaConstants.INTEGRAZIONE, StatoPraticaConstants.PREAVVISO_CONTRARIO })); dynamicQuery.add(PropertyFactoryUtil.forName("fileEntryIdProtocollo").ne(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("errore").eq(false)); dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false)); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId")); + @SuppressWarnings("unchecked") List ritorno = dynamicQuery(dynamicQuery, 0, 1); - - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoServiceImpl.java index 5460fa9c..64dbab2d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoServiceImpl.java @@ -1,19 +1,18 @@ /** * 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 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. + * 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.bo.service.impl; import it.tref.liferay.portos.bo.model.Avviso; -import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.AvvisoServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.Constants; @@ -26,13 +25,12 @@ import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; * The implementation of the avviso remote 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.liferay.portos.bo.service.AvvisoService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.AvvisoService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -40,28 +38,29 @@ import com.liferay.portal.service.UserGroupRoleLocalServiceUtil; * @see it.tref.liferay.portos.bo.service.AvvisoServiceUtil */ public class AvvisoServiceImpl extends AvvisoServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.AvvisoServiceUtil} to access the avviso remote service. - */ + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.AvvisoServiceUtil} to access the avviso remote service. + */ - public Avviso rilasciaFirma(long avvisoId, String cf) throws SystemException, PortalException { - Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); + @Override + public Avviso rilasciaFirma(long avvisoId, String cf) throws SystemException, PortalException { - if (!avviso.getUserCodiceFiscalePrimaFirma().equalsIgnoreCase(getUser().getScreenName())) { - throw new SystemException("assegnazione non possibile perche' non assengato a " + cf); - } - return avvisoLocalService.rilasciaFirma(avvisoId); - } + Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); + if (!avviso.getUserCodiceFiscalePrimaFirma().equalsIgnoreCase(getUser().getScreenName())) { + throw new SystemException("assegnazione non possibile perche' non assengato a " + cf); + } + return avvisoLocalService.rilasciaFirma(avvisoId); + } - public Avviso assegnaFirma(long avvisoId, String cf) throws SystemException, PrincipalException, PortalException { - Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); - if (!UserGroupRoleLocalServiceUtil.hasUserGroupRole(getUserId(), avviso.getGroupId(), Constants.ROLE_NAME_FIRMA, - true)) { - throw new SystemException("assegnazione non possibile per problemi di permessi"); - } - return avvisoLocalService.assegnaFirma(avvisoId, cf); - } + @Override + public Avviso assegnaFirma(long avvisoId, String cf) throws SystemException, PrincipalException, PortalException { + + Avviso avviso = avvisoPersistence.fetchByPrimaryKey(avvisoId); + if (!UserGroupRoleLocalServiceUtil.hasUserGroupRole(getUserId(), avviso.getGroupId(), + Constants.ROLE_NAME_FIRMA, true)) { + throw new SystemException("assegnazione non possibile per problemi di permessi"); + } + return avvisoLocalService.assegnaFirma(avvisoId, cf); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java index 8af70e48..f71a82ed 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -56,13 +56,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the collaudo 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.liferay.portos.bo.service.CollaudoLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.CollaudoLocalService} 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 Davide Barbagallo, 3F Consulting @@ -70,398 +69,377 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil */ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil} to access the collaudo local - * service. - */ - private Collaudo initCollaudo(ServiceContext serviceContext) throws PortalException, SystemException { - - User user = userLocalService.getUser(serviceContext.getUserId()); - - Date now = new Date(); - - Collaudo collaudo = collaudoPersistence.create(counterLocalService.increment(DettPratica.class.getName())); - - collaudo.setCompanyId(serviceContext.getCompanyId()); - collaudo.setGroupId(serviceContext.getScopeGroupId()); - collaudo.setUserId(serviceContext.getUserId()); - collaudo.setUserName(user.getFullName()); - collaudo.setCreateDate(serviceContext.getCreateDate(now)); - collaudo.setModifiedDate(serviceContext.getModifiedDate(now)); - - // setto parametri di default - collaudo.setParziale(false); - collaudo.setDataEffettuazione(null); - collaudo.setDataCollaudo(null); - collaudo.setCodiceFiscaleDelegato(StringPool.BLANK); - - - return collaudo; - } - - @Indexable(type = IndexableType.REINDEX) - public Collaudo addCollaudo(long intPraticaId, ServiceContext serviceContext) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - - Collaudo collaudo = initCollaudo(serviceContext); - - collaudo.setGroupId(intPratica.getGroupId()); - collaudo.setIntPraticaId(intPraticaId); - - collaudoPersistence.update(collaudo); - return collaudo; - } - - @Override - @Indexable(type = IndexableType.DELETE) - public Collaudo deleteCollaudo(Collaudo collaudo) throws SystemException, PortalException { - - List docPraticas = - docPraticaLocalService.findByClassPk(collaudo.getCollaudoId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); - for (DocPratica docPratica : docPraticas) { - docPraticaLocalService.deleteDocPratica(docPratica); - } - - List pagamenti = pagamentoLocalService.findByClassPk(collaudo.getCollaudoId()); - for (Pagamento pagamento : pagamenti) { - pagamentoLocalService.deletePagamento(pagamento); - } - - return super.deleteCollaudo(collaudo); - } - - @Override - @Indexable(type = IndexableType.DELETE) - public Collaudo deleteCollaudo(long collaudoId) throws PortalException, SystemException { - - Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId); - - return deleteCollaudo(collaudo); - } - - @Indexable(type = IndexableType.REINDEX) - public Collaudo updateCollaudo(long userId, long collaudoId, long intPraticaId, boolean parziale, boolean completata, - Date dataCollaudo, String codiceFiscaleDelegato, boolean normEsenteBollo, String noteCollaudo) - throws NoSuchCollaudoException, SystemException { - - Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId); - - collaudo.setParziale(parziale); - collaudo.setCompletata(completata); - collaudo.setDataCollaudo(dataCollaudo); - collaudo.setCodiceFiscaleDelegato(codiceFiscaleDelegato); - collaudo.setNormEsenteBollo(normEsenteBollo); - collaudo.setNoteCollaudo(noteCollaudo); - - collaudo = collaudoPersistence.update(collaudo); - - return collaudo; - } - - public Collaudo getLastEditable(long intPraticaId) throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId")); - List collaudoList = dynamicQuery(dynamicQuery, 0, 1); - if (!collaudoList.isEmpty()) return collaudoList.get(0); - return null; - } - - public Collaudo getLastCompleted(long intPraticaId) throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId")); - List collaudoList = dynamicQuery(dynamicQuery, 0, 1); - if (!collaudoList.isEmpty()) return collaudoList.get(0); - return null; - } - - public void updateEsitoPagamento(long pagamentoId, long collaudoId, String stato) throws SystemException, - PortalException { - - updateEsitoPagamento(pagamentoId, collaudoId, 0l, stato); - } - - public void updateEsitoPagamento(long pagamentoId, long collaudoId, long fileEntryId, String stato) - throws SystemException, PortalException { - - Date now = new Date(); - Collaudo collaudo = collaudoPersistence.fetchByPrimaryKey(collaudoId); - - collaudo.setModifiedDate(now); - if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { - - collaudo.setCompletata(true); - collaudo.setDataEffettuazione(now); - collaudo.setNumero(collaudoPersistence.countByIntPraticaId_Completata(collaudo.getIntPraticaId(), true) + 1); - collaudo = updateCollaudo(collaudo); - - updateIntPraticaStatus(collaudo, collaudo.getIntPraticaId()); - - docPraticaLocalService.completeInvalidation(collaudo.getIntPraticaId()); - - IntPratica intPratica = intPraticaLocalService.getIntPratica(collaudo.getIntPraticaId()); - if (WorkflowUtil.isWorkflowDisattivabile(collaudo.getIntPraticaId()) - && Validator.isNotNull(intPratica.getStatusByUserId())) { - inviaMailnotifica(collaudoId, intPratica.getStatusByUserId(), now); - } - pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); - - } else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) - || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) - || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) { - pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); - } - - } - - public Collaudo updateEsito(long collaudoId, int stato) throws SystemException, PortalException { - - Date now = new Date(); - Collaudo collaudo = collaudoPersistence.fetchByPrimaryKey(collaudoId); - collaudo.setModifiedDate(now); - - collaudo.setCompletata(true); - collaudo.setDataEffettuazione(now); - collaudo.setNumero(collaudoPersistence.countByIntPraticaId_Completata(collaudo.getIntPraticaId(), true) + 1); - collaudo = updateCollaudo(collaudo); - - updateIntPraticaStatus(collaudo, collaudo.getIntPraticaId()); - - docPraticaLocalService.completeInvalidation(collaudo.getIntPraticaId()); - - IntPratica intPratica = intPraticaLocalService.getIntPratica(collaudo.getIntPraticaId()); - if (WorkflowUtil.isWorkflowDisattivabile(collaudo.getIntPraticaId()) - && Validator.isNotNull(intPratica.getStatusByUserId())) { - inviaMailnotifica(collaudoId, intPratica.getStatusByUserId(), now); - } - - return collaudo; - } - - private void inviaMailnotifica(long collaudoId, long tecnicoIstruttoreId, Date date) throws SystemException, - PortalException { - - Collaudo collaudo = collaudoPersistence.fetchByPrimaryKey(collaudoId); - - User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId); - - String[] to = {tecnicoIstruttore.getEmailAddress()}; - String[] cc = new String[0]; - String[] ccn = new String[0]; - - String tipoPratica = StringPool.BLANK; - long intPraticaId = collaudo.getIntPraticaId(); - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { - tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { - tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); - } - - JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); - templateVariables.put("receiver", tecnicoIstruttore.getFullName()); - templateVariables.put("tipoPratica", tipoPratica); - templateVariables.put("tipoOggetto", LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" - + (collaudo.getParziale() ? "10" : "08"))); - templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date)); - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setScopeGroupId(collaudo.getGroupId()); - serviceContext.setCompanyId(collaudo.getCompanyId()); - serviceContext.setUserId(collaudo.getUserId()); - - MailUtil.invioMailNotifica(collaudo.getIntPraticaId(), 0l, collaudoId, Collaudo.class.getName(), to, cc, ccn, - "NOTIFICA-BO", templateVariables, null, serviceContext); - } - - private IntPratica updateIntPraticaStatus(Collaudo collaudo, long intPraticaId) throws PortalException, - SystemException { - - IntPratica intPratica = intPraticaLocalService.getIntPratica(collaudo.getIntPraticaId()); - if (collaudo.isParziale()) { - intPratica.setCollaudoParziale(true); - } else { - intPratica.setCollaudoTotale(true); - } - intPratica = intPraticaLocalService.updateIntPratica(intPratica); - return intPratica; - } - - public Collaudo updateCollaudoProtocollo(long collaudoId, String protocollo) throws PortalException, SystemException { - - Collaudo collaudo = collaudoLocalService.fetchCollaudo(collaudoId); - collaudo.setModifiedDate(new Date()); - collaudo.setProtocollo(protocollo); - collaudo.setDtProtocollo(new Date()); - collaudo = collaudoLocalService.updateCollaudo(collaudo); - - return collaudo; - } - - public Collaudo findByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, - SystemException { - - return collaudoPersistence.findByC_G_Protocollo(companyId, groupId, protocollo); - } - - public Collaudo fetchByProtocollo(String protocollo) throws PortalException, SystemException { - - return collaudoPersistence.fetchByProtocollo(protocollo); - } - - public Collaudo pagaInvia(long collaudoId, String codiceFiscaleCommittente, String currentURL, - ServiceContext serviceContext) throws SystemException, PortalException { - - Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId); - - BigDecimal importoBolli = - PagamentiCommonUtil.getImportoBolli(collaudo.getCompanyId(), collaudo.getCollaudoId(), - Collaudo.class.getName(), TipoIntegrazioneUtil.COLLAUDO); - - collaudo.setImportoBolli(importoBolli.toString()); - collaudo = updateCollaudo(collaudo); - - PagamentiUtil.nuovoPagamento(currentURL, collaudo.getCollaudoId(), Collaudo.class.getName(), - PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); - - return collaudo; - } - - public List findByIntPraticaId(long intPraticaId, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - - return collaudoPersistence.findByIntPraticaId(intPraticaId, start, end, orderByComparator); - } - - public int countByIntPraticaId(long intPraticaId) throws SystemException { - - return collaudoPersistence.countByIntPraticaId(intPraticaId); - } - - public List findByIntPraticaId_Parziale(long intPraticaId, boolean parziale, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - return collaudoPersistence.findByIntPraticaId_Parziale(intPraticaId, parziale, start, end, orderByComparator); - } - - public int countByIntPraticaId_Parziale(long intPraticaId, boolean parziale) throws SystemException { - - return collaudoPersistence.countByIntPraticaId_Parziale(intPraticaId, parziale); - } - - public List findByIntPraticaId_Completata(long intPraticaId, boolean completata, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - return collaudoPersistence.findByIntPraticaId_Completata(intPraticaId, completata, start, end, orderByComparator); - } - - public int countByIntPraticaId_Completata(long intPraticaId, boolean completata) throws SystemException { - - return collaudoPersistence.countByIntPraticaId_Completata(intPraticaId, completata); - } - - public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - - return collaudoPersistence.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, - orderByComparator); - } - - public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { - - return collaudoPersistence.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); - } - - public List findByIntPraticaId_Parziale_leCollaudoId(long collaudoId, long intPraticaId, boolean parziale, - int start, int end, OrderByComparator orderByComparator) throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.lt("collaudoId", collaudoId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - public int countByIntPraticaId_Parziale_leCollaudoId(long collaudoId, long intPraticaId, boolean parziale) - throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.lt("collaudoId", collaudoId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); - - List results = dynamicQuery(dynamicQuery); - return results.isEmpty() ? 0 : results.size(); - } - - public List findCollaudiCompletiNotProtocollo(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotProtocollo(); - dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); - return collaudoPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - public int countCollaudiCompletiNotProtocollo() throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotProtocollo(); - return (int) collaudoPersistence.countWithDynamicQuery(dynamicQuery); - } - - private DynamicQuery getDynamicQueryCollaudiCompletiNotProtocollo() { - - DynamicQuery dynamicQuery = collaudoLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); - Disjunction or = RestrictionsFactoryUtil.disjunction(); - or.add(RestrictionsFactoryUtil.eq("protocollo", StringPool.BLANK)); - or.add(RestrictionsFactoryUtil.isNull("protocollo")); - dynamicQuery.add(or); - return dynamicQuery; - } - - public List findCollaudiCompletiNotGestiti(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotGestiti(); - dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); - return collaudoPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - public int countCollaudiCompletiNotGestiti() throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotGestiti(); - return (int) collaudoPersistence.countWithDynamicQuery(dynamicQuery); - } - - private DynamicQuery getDynamicQueryCollaudiCompletiNotGestiti() { - - DynamicQuery dynamicQuery = collaudoLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); - dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("protocollo")); - return dynamicQuery; - } - - // public List findIntPraticaByCodiceFiscaleSoggetto(String codiceFiscale) throws - // PortalException, SystemException { - // - // DynamicQuery dynamicQuery = collaudoLocalService.dynamicQuery(); - // dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscale", codiceFiscale)); - // dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); - // List ids = collaudoPersistence.findWithDynamicQuery(dynamicQuery); - // - // return ids; - // } - - public Collaudo fetchByOldDettPraticaId(long oldDettPraticaId) throws SystemException { - - return collaudoPersistence.fetchByOldDettPraticaId(oldDettPraticaId); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil} to access the collaudo local service. + */ + private Collaudo initCollaudo(ServiceContext serviceContext) throws PortalException, SystemException { + + User user = userLocalService.getUser(serviceContext.getUserId()); + Date now = new Date(); + Collaudo collaudo = collaudoPersistence.create(counterLocalService.increment(DettPratica.class.getName())); + collaudo.setCompanyId(serviceContext.getCompanyId()); + collaudo.setGroupId(serviceContext.getScopeGroupId()); + collaudo.setUserId(serviceContext.getUserId()); + collaudo.setUserName(user.getFullName()); + collaudo.setCreateDate(serviceContext.getCreateDate(now)); + collaudo.setModifiedDate(serviceContext.getModifiedDate(now)); + // setto parametri di default + collaudo.setParziale(false); + collaudo.setDataEffettuazione(null); + collaudo.setDataCollaudo(null); + collaudo.setCodiceFiscaleDelegato(StringPool.BLANK); + return collaudo; + } + + @Override + @Indexable(type = IndexableType.REINDEX) + public Collaudo addCollaudo(long intPraticaId, ServiceContext serviceContext) throws PortalException, + SystemException { + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + Collaudo collaudo = initCollaudo(serviceContext); + collaudo.setGroupId(intPratica.getGroupId()); + collaudo.setIntPraticaId(intPraticaId); + collaudoPersistence.update(collaudo); + return collaudo; + } + + @Override + @Indexable(type = IndexableType.DELETE) + public Collaudo deleteCollaudo(Collaudo collaudo) throws SystemException, PortalException { + + List docPraticas = docPraticaLocalService.findByClassPk(collaudo.getCollaudoId(), + QueryUtil.ALL_POS, QueryUtil.ALL_POS); + for (DocPratica docPratica : docPraticas) { + docPraticaLocalService.deleteDocPratica(docPratica); + } + List pagamenti = pagamentoLocalService.findByClassPk(collaudo.getCollaudoId()); + for (Pagamento pagamento : pagamenti) { + pagamentoLocalService.deletePagamento(pagamento); + } + return super.deleteCollaudo(collaudo); + } + + @Override + @Indexable(type = IndexableType.DELETE) + public Collaudo deleteCollaudo(long collaudoId) throws PortalException, SystemException { + + Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId); + return deleteCollaudo(collaudo); + } + + @Override + @Indexable(type = IndexableType.REINDEX) + public Collaudo updateCollaudo(long userId, long collaudoId, long intPraticaId, boolean parziale, + boolean completata, Date dataCollaudo, String codiceFiscaleDelegato, boolean normEsenteBollo, + String noteCollaudo) throws NoSuchCollaudoException, SystemException { + + Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId); + collaudo.setParziale(parziale); + collaudo.setCompletata(completata); + collaudo.setDataCollaudo(dataCollaudo); + collaudo.setCodiceFiscaleDelegato(codiceFiscaleDelegato); + collaudo.setNormEsenteBollo(normEsenteBollo); + collaudo.setNoteCollaudo(noteCollaudo); + collaudo = collaudoPersistence.update(collaudo); + return collaudo; + } + + @Override + public Collaudo getLastEditable(long intPraticaId) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false)); + dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId")); + @SuppressWarnings("unchecked") + List collaudoList = dynamicQuery(dynamicQuery, 0, 1); + if (!collaudoList.isEmpty()) + return collaudoList.get(0); + return null; + } + + @Override + public Collaudo getLastCompleted(long intPraticaId) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId")); + @SuppressWarnings("unchecked") + List collaudoList = dynamicQuery(dynamicQuery, 0, 1); + if (!collaudoList.isEmpty()) + return collaudoList.get(0); + return null; + } + + @Override + public void updateEsitoPagamento(long pagamentoId, long collaudoId, String stato) throws SystemException, + PortalException { + + updateEsitoPagamento(pagamentoId, collaudoId, 0l, stato); + } + + @Override + public void updateEsitoPagamento(long pagamentoId, long collaudoId, long fileEntryId, String stato) + throws SystemException, PortalException { + + Date now = new Date(); + Collaudo collaudo = collaudoPersistence.fetchByPrimaryKey(collaudoId); + collaudo.setModifiedDate(now); + if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { + collaudo.setCompletata(true); + collaudo.setDataEffettuazione(now); + collaudo.setNumero(collaudoPersistence.countByIntPraticaId_Completata(collaudo.getIntPraticaId(), true) + 1); + collaudo = updateCollaudo(collaudo); + updateIntPraticaStatus(collaudo, collaudo.getIntPraticaId()); + docPraticaLocalService.completeInvalidation(collaudo.getIntPraticaId()); + IntPratica intPratica = intPraticaLocalService.getIntPratica(collaudo.getIntPraticaId()); + if (WorkflowUtil.isWorkflowDisattivabile(collaudo.getIntPraticaId()) + && Validator.isNotNull(intPratica.getStatusByUserId())) { + inviaMailnotifica(collaudoId, intPratica.getStatusByUserId(), now); + } + pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); + } else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) + || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) + || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) { + pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); + } + } + + @Override + public Collaudo updateEsito(long collaudoId, int stato) throws SystemException, PortalException { + + Date now = new Date(); + Collaudo collaudo = collaudoPersistence.fetchByPrimaryKey(collaudoId); + collaudo.setModifiedDate(now); + collaudo.setCompletata(true); + collaudo.setDataEffettuazione(now); + collaudo.setNumero(collaudoPersistence.countByIntPraticaId_Completata(collaudo.getIntPraticaId(), true) + 1); + collaudo = updateCollaudo(collaudo); + updateIntPraticaStatus(collaudo, collaudo.getIntPraticaId()); + docPraticaLocalService.completeInvalidation(collaudo.getIntPraticaId()); + IntPratica intPratica = intPraticaLocalService.getIntPratica(collaudo.getIntPraticaId()); + if (WorkflowUtil.isWorkflowDisattivabile(collaudo.getIntPraticaId()) + && Validator.isNotNull(intPratica.getStatusByUserId())) { + inviaMailnotifica(collaudoId, intPratica.getStatusByUserId(), now); + } + return collaudo; + } + + private void inviaMailnotifica(long collaudoId, long tecnicoIstruttoreId, Date date) throws SystemException, + PortalException { + + Collaudo collaudo = collaudoPersistence.fetchByPrimaryKey(collaudoId); + User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId); + String[] to = { tecnicoIstruttore.getEmailAddress() }; + String[] cc = new String[0]; + String[] ccn = new String[0]; + String tipoPratica = StringPool.BLANK; + long intPraticaId = collaudo.getIntPraticaId(); + if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); + } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); + } + JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); + templateVariables.put("receiver", tecnicoIstruttore.getFullName()); + templateVariables.put("tipoPratica", tipoPratica); + templateVariables.put("tipoOggetto", + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" + (collaudo.getParziale() ? "10" : "08"))); + templateVariables.put("dataInvio", + FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date)); + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setScopeGroupId(collaudo.getGroupId()); + serviceContext.setCompanyId(collaudo.getCompanyId()); + serviceContext.setUserId(collaudo.getUserId()); + MailUtil.invioMailNotifica(collaudo.getIntPraticaId(), 0l, collaudoId, Collaudo.class.getName(), to, cc, ccn, + "NOTIFICA-BO", templateVariables, null, serviceContext); + } + + private IntPratica updateIntPraticaStatus(Collaudo collaudo, long intPraticaId) throws PortalException, + SystemException { + + IntPratica intPratica = intPraticaLocalService.getIntPratica(collaudo.getIntPraticaId()); + if (collaudo.isParziale()) { + intPratica.setCollaudoParziale(true); + } else { + intPratica.setCollaudoTotale(true); + } + intPratica = intPraticaLocalService.updateIntPratica(intPratica); + return intPratica; + } + + @Override + public Collaudo updateCollaudoProtocollo(long collaudoId, String protocollo) throws PortalException, + SystemException { + + Collaudo collaudo = fetchCollaudo(collaudoId); + collaudo.setModifiedDate(new Date()); + collaudo.setProtocollo(protocollo); + collaudo.setDtProtocollo(new Date()); + collaudo = updateCollaudo(collaudo); + return collaudo; + } + + @Override + public Collaudo findByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, + SystemException { + + return collaudoPersistence.findByC_G_Protocollo(companyId, groupId, protocollo); + } + + @Override + public Collaudo fetchByProtocollo(String protocollo) throws PortalException, SystemException { + + return collaudoPersistence.fetchByProtocollo(protocollo); + } + + @Override + public Collaudo pagaInvia(long collaudoId, String codiceFiscaleCommittente, String currentURL, + ServiceContext serviceContext) throws SystemException, PortalException { + + Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId); + BigDecimal importoBolli = PagamentiCommonUtil.getImportoBolli(collaudo.getCompanyId(), + collaudo.getCollaudoId(), Collaudo.class.getName(), TipoIntegrazioneUtil.COLLAUDO); + collaudo.setImportoBolli(importoBolli.toString()); + collaudo = updateCollaudo(collaudo); + PagamentiUtil.nuovoPagamento(currentURL, collaudo.getCollaudoId(), Collaudo.class.getName(), + PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); + return collaudo; + } + + @Override + public List findByIntPraticaId(long intPraticaId, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return collaudoPersistence.findByIntPraticaId(intPraticaId, start, end, orderByComparator); + } + + @Override + public int countByIntPraticaId(long intPraticaId) throws SystemException { + + return collaudoPersistence.countByIntPraticaId(intPraticaId); + } + + @Override + public List findByIntPraticaId_Parziale(long intPraticaId, boolean parziale, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return collaudoPersistence.findByIntPraticaId_Parziale(intPraticaId, parziale, start, end, orderByComparator); + } + + @Override + public int countByIntPraticaId_Parziale(long intPraticaId, boolean parziale) throws SystemException { + + return collaudoPersistence.countByIntPraticaId_Parziale(intPraticaId, parziale); + } + + @Override + public List findByIntPraticaId_Completata(long intPraticaId, boolean completata, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return collaudoPersistence.findByIntPraticaId_Completata(intPraticaId, completata, start, end, + orderByComparator); + } + + @Override + public int countByIntPraticaId_Completata(long intPraticaId, boolean completata) throws SystemException { + + return collaudoPersistence.countByIntPraticaId_Completata(intPraticaId, completata); + } + + @Override + public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, + int end, OrderByComparator orderByComparator) throws SystemException { + + return collaudoPersistence.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, + orderByComparator); + } + + @Override + public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { + + return collaudoPersistence.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); + } + + @SuppressWarnings("unchecked") + @Override + public List findByIntPraticaId_Parziale_leCollaudoId(long collaudoId, long intPraticaId, + boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.lt("collaudoId", collaudoId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + @Override + public int countByIntPraticaId_Parziale_leCollaudoId(long collaudoId, long intPraticaId, boolean parziale) + throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.lt("collaudoId", collaudoId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); + @SuppressWarnings("unchecked") + List results = dynamicQuery(dynamicQuery); + return results.size(); + } + + @SuppressWarnings("unchecked") + @Override + public List findCollaudiCompletiNotProtocollo(int start, int end) throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotProtocollo(); + dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); + return collaudoPersistence.findWithDynamicQuery(dynamicQuery, start, end); + } + + @Override + public int countCollaudiCompletiNotProtocollo() throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotProtocollo(); + return (int) collaudoPersistence.countWithDynamicQuery(dynamicQuery); + } + + private DynamicQuery getDynamicQueryCollaudiCompletiNotProtocollo() { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); + Disjunction or = RestrictionsFactoryUtil.disjunction(); + or.add(RestrictionsFactoryUtil.eq("protocollo", StringPool.BLANK)); + or.add(RestrictionsFactoryUtil.isNull("protocollo")); + dynamicQuery.add(or); + return dynamicQuery; + } + + @SuppressWarnings("unchecked") + @Override + public List findCollaudiCompletiNotGestiti(int start, int end) throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotGestiti(); + dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); + return collaudoPersistence.findWithDynamicQuery(dynamicQuery, start, end); + } + + @Override + public int countCollaudiCompletiNotGestiti() throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryCollaudiCompletiNotGestiti(); + return (int) collaudoPersistence.countWithDynamicQuery(dynamicQuery); + } + + private DynamicQuery getDynamicQueryCollaudiCompletiNotGestiti() { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); + dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); + dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("protocollo")); + return dynamicQuery; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoServiceImpl.java index 8471daa5..5bb52bf2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -27,13 +27,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the collaudo remote 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.liferay.portos.bo.service.CollaudoService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.CollaudoService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -41,80 +40,79 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.CollaudoServiceUtil */ public class CollaudoServiceImpl extends CollaudoServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.CollaudoServiceUtil} to access the collaudo remote service. - */ - - public Collaudo getCollaudo(long collaudoId) throws PortalException, SystemException { - return collaudoLocalService.getCollaudo(collaudoId); - } - - public Collaudo addCollaudo(long intPraticaId, ServiceContext serviceContext) throws PortalException, SystemException { - // User user = userLocalService.getUser(serviceContext.getUserId()); - // List owners = soggettoLocalService.findByIntPratica_CodiceFiscale(intPraticaId, - // user.getScreenName()); - // for (Soggetto owner : owners) { - // if (owner.getTipologiaSoggetto().equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) { - // return collaudoLocalService.addCollaudo(intPraticaId, serviceContext); - // } - // } - // throw new SystemException("unbale to add Fine Lavori. Subject is not a direttore lavori"); - return collaudoLocalService.addCollaudo(intPraticaId, serviceContext); - } - - public Collaudo deleteCollaudo(Collaudo collaudo) throws PortalException, SystemException { - - return collaudoLocalService.deleteCollaudo(collaudo); - } - - public Collaudo deleteCollaudo(long collaudoId) throws PortalException, SystemException { - - return collaudoLocalService.deleteCollaudo(collaudoId); - } - - - public Collaudo updateCollaudo(long userId, long collaudoId, long intPraticaId, boolean parziale, boolean completata, - Date dataCollaudo, String codiceFiscaleDelegato, boolean normEsenteBollo, String noteCollaudo) - throws PortalException, SystemException { - - Collaudo collaudo = getCollaudo(collaudoId); - - if (collaudo.getUserId() == userId) { - collaudo = - collaudoLocalService.updateCollaudo(userId, collaudoId, intPraticaId, parziale, completata, dataCollaudo, - codiceFiscaleDelegato, normEsenteBollo, noteCollaudo); - } - - return collaudo; - } - - public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - return collaudoLocalService.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, - orderByComparator); - } - - public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { - return collaudoLocalService.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); - } - - public Collaudo getLastEditable(long intPraticaId) throws SystemException { - return collaudoLocalService.getLastEditable(intPraticaId); - } - - public Collaudo pagaInvia(long collaudoId, String codiceFiscaleCommittente, String currentURL, - ServiceContext serviceContext) throws SystemException, PortalException { - - return collaudoLocalService.pagaInvia(collaudoId, codiceFiscaleCommittente, currentURL, serviceContext); - } - - public Collaudo updateEsito(long collaudoId, int stato) throws SystemException, PortalException { - // Collaudo fineLavori = collaudoLocalService.getCollaudo(collaudoId); - // DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), - // ActionKeys.ADD_ENTRY); - return collaudoLocalService.updateEsito(collaudoId, stato); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.CollaudoServiceUtil} to access the collaudo remote service. + */ + + @Override + public Collaudo getCollaudo(long collaudoId) throws PortalException, SystemException { + + return collaudoLocalService.getCollaudo(collaudoId); + } + + @Override + public Collaudo addCollaudo(long intPraticaId, ServiceContext serviceContext) throws PortalException, + SystemException { + + return collaudoLocalService.addCollaudo(intPraticaId, serviceContext); + } + + @Override + public Collaudo deleteCollaudo(Collaudo collaudo) throws PortalException, SystemException { + + return collaudoLocalService.deleteCollaudo(collaudo); + } + + @Override + public Collaudo deleteCollaudo(long collaudoId) throws PortalException, SystemException { + + return collaudoLocalService.deleteCollaudo(collaudoId); + } + + @Override + public Collaudo updateCollaudo(long userId, long collaudoId, long intPraticaId, boolean parziale, + boolean completata, Date dataCollaudo, String codiceFiscaleDelegato, boolean normEsenteBollo, + String noteCollaudo) throws PortalException, SystemException { + + Collaudo collaudo = getCollaudo(collaudoId); + if (collaudo.getUserId() == userId) { + collaudo = collaudoLocalService.updateCollaudo(userId, collaudoId, intPraticaId, parziale, completata, + dataCollaudo, codiceFiscaleDelegato, normEsenteBollo, noteCollaudo); + } + return collaudo; + } + + @Override + public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, + int end, OrderByComparator orderByComparator) throws SystemException { + + return collaudoLocalService.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, + orderByComparator); + } + + @Override + public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { + + return collaudoLocalService.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); + } + + @Override + public Collaudo getLastEditable(long intPraticaId) throws SystemException { + + return collaudoLocalService.getLastEditable(intPraticaId); + } + + @Override + public Collaudo pagaInvia(long collaudoId, String codiceFiscaleCommittente, String currentURL, + ServiceContext serviceContext) throws SystemException, PortalException { + + return collaudoLocalService.pagaInvia(collaudoId, codiceFiscaleCommittente, currentURL, serviceContext); + } + + @Override + public Collaudo updateEsito(long collaudoId, int stato) throws SystemException, PortalException { + + return collaudoLocalService.updateEsito(collaudoId, stato); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java index 9a3474a1..493acbe8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -32,6 +32,7 @@ import com.liferay.portal.kernel.dao.orm.Criterion; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; 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; @@ -47,13 +48,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the comune 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.liferay.portos.bo.service.ComuneLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ComuneLocalService} 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 Davide Barbagallo, 3F Consulting @@ -63,18 +63,14 @@ import com.liferay.portal.service.ServiceContext; public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { @Override public Comune addComune(long userId, String codiceProvincia, String codiceComune, String codiceIstat, - String codiceBelfiore, String denominazione, boolean provincia, boolean stato, String mailSuap, String mailSue, - ServiceContext serviceContext) throws PortalException, SystemException { + String codiceBelfiore, String denominazione, boolean provincia, boolean stato, String mailSuap, + String mailSue, ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - validate(serviceContext.getCompanyId(), 0L, codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, provincia); - Comune comune = comunePersistence.create(counterLocalService.increment(Comune.class.getName())); - comune.setCompanyId(serviceContext.getCompanyId()); comune.setUserId(user.getUserId()); comune.setUserName(user.getFullName()); @@ -90,9 +86,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setMailSuap(mailSuap); comune.setMailSue(mailSue); comune = comunePersistence.update(comune); - return comune; - } @Override @@ -101,20 +95,15 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - validate(serviceContext.getCompanyId(), 0L, codiceProvincia, codiceComune, codiceIstat, codiceBelfiore, denominazione, provincia); - Comune comune = comunePersistence.create(counterLocalService.increment(Comune.class.getName())); - comune.setCompanyId(serviceContext.getCompanyId()); comune.setUserId(user.getUserId()); comune.setUserName(user.getFullName()); comune.setCreateDate(serviceContext.getCreateDate(now)); comune.setModifiedDate(serviceContext.getModifiedDate(now)); - comune.setCodiceProvincia(codiceProvincia); comune.setCodiceComune(codiceComune); comune.setCodiceIstat(codiceIstat); @@ -124,7 +113,6 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setMailSuap(mailSuap); comune.setMailSue(mailSue); comune = comunePersistence.update(comune); - return comune; } @@ -138,7 +126,6 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { public long countByKeywords(long companyId, String keywords) throws SystemException { DynamicQuery query = queryByKeywords(companyId, keywords); - return dynamicQueryCount(query); } @@ -146,7 +133,6 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { public void deleteByCompanyId(long companyId) throws SystemException { List list = comunePersistence.findByCompanyId(companyId); - for (Comune comune : list) { deleteComune(comune); } @@ -162,7 +148,6 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { public Comune deleteComune(long comuneId) throws PortalException, SystemException { Comune comune = comunePersistence.findByPrimaryKey(comuneId); - return deleteComune(comune); } @@ -216,12 +201,14 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { return comunePersistence.findByC_CP(companyId, codiceProvincia); } + @Override public List findByCompanyIdCodiceProvincia(long companyId, String codiceProvincia, int start, int end, OrderByComparator orderByComparator) throws SystemException { return comunePersistence.findByC_CP(companyId, codiceProvincia, start, end, orderByComparator); } + @SuppressWarnings("unchecked") @Override public List findByKeywords(long companyId, String keywords, int start, int end, OrderByComparator orderByComparator) throws SystemException { @@ -238,18 +225,14 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { @Override public Comune updateComune(long userId, long comuneId, String codiceProvincia, String codiceComune, - String codiceIstat, String denominazione, boolean provincia, boolean stato, String mailSuap, String mailSue, - ServiceContext serviceContext) throws PortalException, SystemException { + String codiceIstat, String denominazione, boolean provincia, boolean stato, String mailSuap, + String mailSue, ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - Comune comune = comunePersistence.fetchByPrimaryKey(comuneId); - validate(serviceContext.getCompanyId(), comuneId, codiceProvincia, codiceComune, codiceIstat, comune.getCodiceBelfiore(), denominazione, provincia); - comune.setCompanyId(serviceContext.getCompanyId()); comune.setUserId(user.getUserId()); comune.setUserName(user.getFullName()); @@ -263,11 +246,8 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setMailSue(mailSue); comune.setDenominazione(denominazione); comune.setProvincia(provincia); - comune = comunePersistence.update(comune); - return comune; - } @Override @@ -276,20 +256,15 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - Comune comune = comunePersistence.fetchByPrimaryKey(comuneId); - validate(serviceContext.getCompanyId(), comuneId, codiceProvincia, codiceComune, codiceIstat, comune.getCodiceBelfiore(), denominazione, provincia); - comune.setCompanyId(serviceContext.getCompanyId()); comune.setUserId(user.getUserId()); comune.setUserName(user.getFullName()); comune.setCreateDate(serviceContext.getCreateDate(now)); comune.setModifiedDate(serviceContext.getModifiedDate(now)); - comune.setCodiceProvincia(codiceProvincia); comune.setCodiceComune(codiceComune); comune.setCodiceIstat(codiceIstat); @@ -297,27 +272,24 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { comune.setMailSue(mailSue); comune.setDenominazione(denominazione); comune.setProvincia(provincia); - comune = comunePersistence.update(comune); - return comune; } + @Override public List getComuniForOrganizationByUserId(long userId) throws SystemException { List comuni = new ArrayList(); - List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId); if (Validator.isNotNull(organizationList)) { for (Organization org : organizationList) { - - List territori = - TerritorioLocalServiceUtil.getTerritori(org.getCompanyId(), org.getGroupId(), -1, -1); + List territori = TerritorioLocalServiceUtil.getTerritori(org.getCompanyId(), + org.getGroupId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (Validator.isNotNull(territori)) { for (Territorio terr : territori) { - Comune comune = comuneLocalService.fetchComune(terr.getComuneId()); + Comune comune = fetchComune(terr.getComuneId()); if (Validator.isNotNull(comune)) { - if(!checkIfContained(comune, comuni)){ + if (!checkIfContained(comune, comuni)) { comuni.add(comune); } } @@ -325,30 +297,26 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { } } } - Collections.sort(comuni); - return comuni; } - //ADT BUG BO ID = 1 SEZIONE ATTIVITÀ + // ADT BUG BO ID = 1 SEZIONE ATTIVITÀ + @Override public List getComuniForOrganizationByUserIdUfficioId(long userId, long ufficioId) throws SystemException { List comuni = new ArrayList(); - List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId); if (Validator.isNotNull(organizationList)) { for (Organization org : organizationList) { - - if(org.getGroupId()== ufficioId){ - - List territori = - TerritorioLocalServiceUtil.getTerritori(org.getCompanyId(), org.getGroupId(), -1, -1); + if (org.getGroupId() == ufficioId) { + List territori = TerritorioLocalServiceUtil.getTerritori(org.getCompanyId(), + org.getGroupId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (Validator.isNotNull(territori)) { for (Territorio terr : territori) { - Comune comune = comuneLocalService.fetchComune(terr.getComuneId()); + Comune comune = fetchComune(terr.getComuneId()); if (Validator.isNotNull(comune)) { - if(!checkIfContained(comune, comuni)){ + if (!checkIfContained(comune, comuni)) { comuni.add(comune); } } @@ -357,9 +325,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { } } } - Collections.sort(comuni); - return comuni; } @@ -367,27 +333,23 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { DynamicQuery query = DynamicQueryFactoryUtil.forClass(Comune.class); query.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - - Criterion criterion = - RestrictionsFactoryUtil.ilike("codiceProvincia", StringPool.PERCENT + keywords + StringPool.PERCENT); - criterion = - RestrictionsFactoryUtil.or(criterion, - RestrictionsFactoryUtil.ilike("codiceComune", StringPool.PERCENT + keywords + StringPool.PERCENT)); - criterion = - RestrictionsFactoryUtil.or(criterion, - RestrictionsFactoryUtil.ilike("codiceIstat", StringPool.PERCENT + keywords + StringPool.PERCENT)); - criterion = - RestrictionsFactoryUtil.or(criterion, - RestrictionsFactoryUtil.ilike("codiceBelfiore", StringPool.PERCENT + keywords + StringPool.PERCENT)); - criterion = - RestrictionsFactoryUtil.or(criterion, - RestrictionsFactoryUtil.ilike("denominazione", StringPool.PERCENT + keywords + StringPool.PERCENT)); + Criterion criterion = RestrictionsFactoryUtil.ilike("codiceProvincia", StringPool.PERCENT + keywords + + StringPool.PERCENT); + criterion = RestrictionsFactoryUtil.or(criterion, + RestrictionsFactoryUtil.ilike("codiceComune", StringPool.PERCENT + keywords + StringPool.PERCENT)); + criterion = RestrictionsFactoryUtil.or(criterion, + RestrictionsFactoryUtil.ilike("codiceIstat", StringPool.PERCENT + keywords + StringPool.PERCENT)); + criterion = RestrictionsFactoryUtil.or(criterion, + RestrictionsFactoryUtil.ilike("codiceBelfiore", StringPool.PERCENT + keywords + StringPool.PERCENT)); + criterion = RestrictionsFactoryUtil.or(criterion, + RestrictionsFactoryUtil.ilike("denominazione", StringPool.PERCENT + keywords + StringPool.PERCENT)); query.add(criterion); return query; } - private void validate(long companyId, long comuneId, String codiceProvincia, String codiceComune, String codiceIstat, - String codiceBelfiore, String denominazione, boolean provincia) throws PortalException, SystemException { + private void validate(long companyId, long comuneId, String codiceProvincia, String codiceComune, + String codiceIstat, String codiceBelfiore, String denominazione, boolean provincia) throws PortalException, + SystemException { if (codiceBelfiore != null && !codiceBelfiore.startsWith("Z")) { if (Validator.isNull(codiceProvincia)) @@ -397,12 +359,10 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { if (Validator.isNull(codiceIstat)) throw new CodiceIstatException(); } - if (Validator.isNull(codiceBelfiore)) throw new CodiceBelfioreException(); if (Validator.isNull(denominazione)) throw new DenominazioneException(); - Comune comune = comunePersistence.fetchByC_CB(companyId, codiceBelfiore); if (comune != null && comune.getPrimaryKey() != comuneId) throw new DuplicateComuneException(); @@ -412,18 +372,16 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl { throw new DuplicateComuneException(); } } - - boolean checkIfContained(Comune comune, List comuni){ + + boolean checkIfContained(Comune comune, List comuni) { + boolean result = false; - - for(Comune comuneEl: comuni){ - - if(comuneEl.getComuneId() == comune.getComuneId()){ + for (Comune comuneEl : comuni) { + if (comuneEl.getComuneId() == comune.getComuneId()) { result = true; break; } } - return result; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneServiceImpl.java index b495fbf4..117d99c9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -25,13 +25,12 @@ import com.liferay.portal.kernel.exception.SystemException; * The implementation of the comune remote 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.liferay.portos.bo.service.ComuneService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ComuneService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -39,19 +38,20 @@ import com.liferay.portal.kernel.exception.SystemException; * @see it.tref.liferay.portos.bo.service.ComuneServiceUtil */ public class ComuneServiceImpl extends ComuneServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.ComuneServiceUtil} to access the comune remote service. - */ + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ComuneServiceUtil} to access the comune remote service. + */ - public Comune getComune(long comuneId) throws PortalException, SystemException { - return ComuneLocalServiceUtil.getComune(comuneId); - } + @Override + public Comune getComune(long comuneId) throws PortalException, SystemException { - public List getComunes(int start, int end) throws SystemException { - return ComuneLocalServiceUtil.getComunes(start, end); - } + return ComuneLocalServiceUtil.getComune(comuneId); + } + @Override + public List getComunes(int start, int end) throws SystemException { + + return ComuneLocalServiceUtil.getComunes(start, end); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java index 58bbbf07..d7d45213 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -44,15 +44,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the comunicazione 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.liferay.portos.bo.service.ComunicazioneLocalService} - * interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ComunicazioneLocalService} interface. * *

- * 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 Davide Barbagallo, 3F Consulting @@ -62,94 +59,86 @@ import com.liferay.portal.service.ServiceContext; public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBaseImpl { /* * NOTE FOR DEVELOPERS: - * + * * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to - * access the comunicazione local service. + * it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to access the comunicazione local service. */ - public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, - ServiceContext serviceContext) throws SystemException, PortalException { - Comunicazione comunicazione = comunicazionePersistence.create(counterLocalService - .increment(Comunicazione.class.getName())); + @Override + public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext) + throws SystemException, PortalException { + Comunicazione comunicazione = comunicazionePersistence.create(counterLocalService.increment(Comunicazione.class + .getName())); User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - comunicazione.setCompanyId(serviceContext.getCompanyId()); comunicazione.setUserId(user.getUserId()); comunicazione.setUserName(user.getFullName()); comunicazione.setCreateDate(serviceContext.getCreateDate(now)); comunicazione.setModifiedDate(serviceContext.getModifiedDate(now)); comunicazione.setGroupId(serviceContext.getScopeGroupId()); - comunicazione.setIntPraticaId(intPraticaId); comunicazione.setDomanda(domanda); - comunicazione = comunicazionePersistence.update(comunicazione); - // Send notification mail for new Comunicazione Mediata this.invioAddMailNotifica(comunicazione.getComunicazioneId(), serviceContext); - return comunicazione; } + @Override public Comunicazione updateComunicazione(long comunicazioneId, String risposta) throws SystemException, PortalException { - Comunicazione comunicazione = comunicazionePersistence.fetchByPrimaryKey(comunicazioneId); + Comunicazione comunicazione = comunicazionePersistence.fetchByPrimaryKey(comunicazioneId); Date now = new Date(); comunicazione.setDtRisposta(now); comunicazione.setRisposta(risposta); - comunicazione = comunicazionePersistence.update(comunicazione); - - // resourceLocalService.updateModelResources(comunicazione, - // serviceContext); IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId()); if (WorkflowUtil.isWorkflowDisattivabile(intPratica.getIntPraticaId()) && Validator.isNotNull(intPratica.getStatusByUserId())) { - - this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(), - now); + this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(), now); } - return comunicazione; } + @Override public List findByIntPratica(long intPraticaId) throws SystemException { + return comunicazionePersistence.findByIntPratica(intPraticaId); } + @Override public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { + return comunicazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { + return comunicazionePersistence.countByIntPratica(intPraticaId); } + @Override public int countNotAnsweredByIntPratica(long intPraticaId) throws SystemException { + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtRisposta")); - return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery); } - private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext) - throws PortalException, SystemException { - - Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId); + private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws PortalException, + SystemException { + Comunicazione comunicazione = getComunicazione(comunicazioneId); IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId()); - User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId()); - List titolari = soggettoLocalService.getValidByIntPratica_CodiceFiscale( - intPratica.getIntPraticaId(), titolaredigitaleUser.getScreenName()); + List titolari = soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(), + titolaredigitaleUser.getScreenName()); String eMail = StringPool.BLANK; String receiver = StringPool.BLANK; if (!titolari.isEmpty()) { @@ -157,35 +146,27 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase eMail = titolareDigitale.getEmail(); receiver = titolareDigitale.getDescrizioneCompleta(); } - String[] to = { eMail }; String[] cc = new String[0]; String[] ccn = new String[0]; - - String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni"; - String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), - intPratica.getIntPraticaId(), "/html/fascicolofe/view_fascicolo.jsp", queryString); - + String queryString = StringPool.UNDERLINE + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni"; + String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(), + "/html/fascicolofe/view_fascicolo.jsp", queryString); JSONObject templateVariable = JSONFactoryUtil.createJSONObject(); templateVariable.put("receiver", receiver); templateVariable.put("link", url); - - MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, - Comunicazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", - templateVariable, null, serviceContext); + MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), + to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariable, null, serviceContext); } private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date) throws PortalException, SystemException { - Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId); - + Comunicazione comunicazione = getComunicazione(comunicazioneId); User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId); - String[] to = { tecnicoIstruttore.getEmailAddress() }; String[] cc = new String[0]; String[] ccn = new String[0]; - String tipoPratica = StringPool.BLANK; long intPraticaId = comunicazione.getIntPraticaId(); if (AzioniPraticheUtil.isDeposito(intPraticaId)) { @@ -193,23 +174,17 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } - JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); templateVariables.put("receiver", tecnicoIstruttore.getFullName()); templateVariables.put("tipoPratica", tipoPratica); - templateVariables.put("tipoOggetto", - LanguageUtil.get(LocaleUtil.ITALIAN, "label.comunicazione.mediata")); - templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm") - .format(date)); - + templateVariables.put("tipoOggetto", LanguageUtil.get(LocaleUtil.ITALIAN, "label.comunicazione.mediata")); + templateVariables.put("dataInvio", + FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date)); ServiceContext serviceContext = new ServiceContext(); serviceContext.setScopeGroupId(comunicazione.getGroupId()); serviceContext.setCompanyId(comunicazione.getCompanyId()); serviceContext.setUserId(comunicazione.getUserId()); - - MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, - Comunicazione.class.getName(), to, cc, ccn, "NOTIFICA-BO", templateVariables, null, - serviceContext); + MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), + to, cc, ccn, "NOTIFICA-BO", templateVariables, null, serviceContext); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneServiceImpl.java index f5ce2446..43d8b906 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -23,13 +23,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the comunicazione remote 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.liferay.portos.bo.service.ComunicazioneService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ComunicazioneService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -37,21 +36,22 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.ComunicazioneServiceUtil */ public class ComunicazioneServiceImpl extends ComunicazioneServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.ComunicazioneServiceUtil} to access the comunicazione remote - * service. - */ - - public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext) - throws SystemException, PortalException { - return comunicazioneLocalService.addComunicazione(userId, intPraticaId, domanda, serviceContext); - } - - public Comunicazione updateComunicazione(long comunicazioneId, String risposta) throws SystemException, - PortalException { - return comunicazioneLocalService.updateComunicazione(comunicazioneId, risposta); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ComunicazioneServiceUtil} to access the comunicazione remote service. + */ + + @Override + public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext) + throws SystemException, PortalException { + + return comunicazioneLocalService.addComunicazione(userId, intPraticaId, domanda, serviceContext); + } + + @Override + public Comunicazione updateComunicazione(long comunicazioneId, String risposta) throws SystemException, + PortalException { + + return comunicazioneLocalService.updateComunicazione(comunicazioneId, risposta); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneLocalServiceImpl.java index 85a6f643..1b25dfc0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -29,13 +29,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the configurazione 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.liferay.portos.bo.service.ConfigurazioneLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ConfigurazioneLocalService} 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 Davide Barbagallo, 3F Consulting @@ -43,80 +42,83 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil */ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil} to access the configurazione - * local service. - */ - private static final Log _log = LogFactoryUtil.getLog(ConfigurazioneLocalServiceImpl.class); + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil} to access the configurazione local service. + */ + private static final Log _log = LogFactoryUtil.getLog(ConfigurazioneLocalServiceImpl.class); - public long findByC_ChiaveLong(long companyId, String chiave) throws SystemException { + @Override + public long findByC_ChiaveLong(long companyId, String chiave) throws SystemException { - try { - Configurazione configurazione = configurazionePersistence.fetchByC_Chiave(companyId, chiave); - if (configurazione == null) { - return 0L; - } - return Long.parseLong(configurazione.getValore()); - } catch (NumberFormatException e) { - return 0L; - } - } + try { + Configurazione configurazione = configurazionePersistence.fetchByC_Chiave(companyId, chiave); + if (configurazione == null) { + return 0L; + } + return Long.parseLong(configurazione.getValore()); + } catch (NumberFormatException e) { + return 0L; + } + } - public String findByC_ChiaveString(long companyId, String chiave) throws SystemException { + @Override + public String findByC_ChiaveString(long companyId, String chiave) throws SystemException { - Configurazione configurazione = configurazionePersistence.fetchByC_Chiave(companyId, chiave); - if (configurazione == null) { - return StringPool.BLANK; - } else if (configurazione.getValore() == null) { - return StringPool.BLANK; - } - return configurazione.getValore(); - } + Configurazione configurazione = configurazionePersistence.fetchByC_Chiave(companyId, chiave); + if ((configurazione == null) || (configurazione.getValore() == null)) { + return StringPool.BLANK; + } + return configurazione.getValore(); + } - public Configurazione storeConfig(String chiave, String valore, ServiceContext serviceContext) - throws SystemException, PortalException { + @Override + public Configurazione storeConfig(String chiave, String valore, ServiceContext serviceContext) + throws SystemException, PortalException { - Configurazione configurazione = null; - try { - configurazione = configurazionePersistence.findByC_Chiave(serviceContext.getCompanyId(), chiave); - } catch (NoSuchConfigurazioneException e) { - } - if (configurazione == null) { - configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName())); - configurazione.setChiave(chiave); - configurazione.setCompanyId(serviceContext.getCompanyId()); - configurazione.setCreateDate(new Date()); - configurazione.setGroupId(serviceContext.getScopeGroupId()); - configurazione.setUserId(serviceContext.getUserId()); - configurazione.setUserName(userLocalService.getUser(serviceContext.getUserId()).getFullName()); - } - configurazione.setValore(valore); - return configurazioneLocalService.updateConfigurazione(configurazione); - } + synchronized (Configurazione.class) { + Configurazione configurazione = null; + try { + configurazione = configurazionePersistence.findByC_Chiave(serviceContext.getCompanyId(), chiave); + } catch (NoSuchConfigurazioneException e) { + } + if (configurazione == null) { + configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName())); + configurazione.setChiave(chiave); + configurazione.setCompanyId(serviceContext.getCompanyId()); + configurazione.setCreateDate(new Date()); + configurazione.setGroupId(serviceContext.getScopeGroupId()); + configurazione.setUserId(serviceContext.getUserId()); + configurazione.setUserName(userLocalService.getUser(serviceContext.getUserId()).getFullName()); + } + configurazione.setValore(valore); + return updateConfigurazione(configurazione); + } + } - public long getAndIncrement(long companyId, String chiave) throws SystemException { + @Override + public long getAndIncrement(long companyId, String chiave) throws SystemException { - try { - Configurazione configurazione = configurazionePersistence.findByC_Chiave(companyId, chiave); - long current = Long.parseLong(configurazione.getValore()); - configurazione.setValore(String.valueOf((current + 1))); - configurazioneLocalService.updateConfigurazione(configurazione); - return current; - } catch (NoSuchConfigurazioneException e) { - Configurazione configurazione = - createConfigurazione(counterLocalService.increment(Configurazione.class.getName())); - configurazione.setChiave(chiave); - configurazione.setCompanyId(companyId); - configurazione.setCreateDate(new Date()); - configurazione.setGroupId(-1); - configurazione.setUserId(0l); - configurazione.setValore("2"); - configurazioneLocalService.updateConfigurazione(configurazione); - return 1l; - } catch (NumberFormatException e) { - _log.error("error", e); - throw new SystemException("Errore imprevisto", e); - } - } + synchronized (Configurazione.class) { + Configurazione configurazione = null; + long current = 1L; + try { + configurazione = configurazionePersistence.findByC_Chiave(companyId, chiave); + current = Long.parseLong(configurazione.getValore()); + } catch (NoSuchConfigurazioneException e) { + configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName())); + configurazione.setChiave(chiave); + configurazione.setCompanyId(companyId); + configurazione.setCreateDate(new Date()); + configurazione.setGroupId(-1L); + configurazione.setUserId(0L); + } catch (NumberFormatException e) { + _log.error("error", e); + throw new SystemException("Errore imprevisto", e); + } + configurazione.setValore(String.valueOf((current + 1))); + updateConfigurazione(configurazione); + return current; + } + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneServiceImpl.java index 6621089e..4afc580a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneServiceImpl.java @@ -1,14 +1,12 @@ /** * 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) + * 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 + * 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. */ @@ -25,13 +23,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the configurazione remote 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.liferay.portos.bo.service.ConfigurazioneService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ConfigurazioneService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -39,22 +36,27 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil */ public class ConfigurazioneServiceImpl extends ConfigurazioneServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil} to access the configurazione - * remote service. - */ - - public long findByC_ChiaveLong(long companyId, String chiave) throws SystemException { - return ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, chiave); - } - - public String findByC_ChiaveString(long companyId, String chiave) throws SystemException { - return ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, chiave); - } - - public void storeConfig(String chiave, String valore, ServiceContext serviceContext) throws PortalException, - SystemException { - ConfigurazioneLocalServiceUtil.storeConfig(chiave, valore, serviceContext); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil} to access the configurazione remote service. + */ + + @Override + public long findByC_ChiaveLong(long companyId, String chiave) throws SystemException { + + return ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, chiave); + } + + @Override + public String findByC_ChiaveString(long companyId, String chiave) throws SystemException { + + return ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, chiave); + } + + @Override + public void storeConfig(String chiave, String valore, ServiceContext serviceContext) throws PortalException, + SystemException { + + ConfigurazioneLocalServiceUtil.storeConfig(chiave, valore, serviceContext); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java index b310188d..02e18fc6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java @@ -1,17 +1,19 @@ /** * 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 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. + * 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.bo.service.impl; +import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean; +import it.mwg.sismica.bo.util.CarichiLavoroUtil; import it.mwg.sismica.bo.util.SismicaUtil; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.ControlloPratica; @@ -23,20 +25,22 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.ControlloPraticaLocalServiceBaseImpl; +import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.UnitaOperativeUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; -import it.tref.liferay.portos.bo.util.Constants; import it.tref.liferay.portos.bo.util.GestioneFirmeUtil; +import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.TempisticaConstants; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.kaleo.model.FormLog; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; +import it.tref.liferay.portos.kaleo.shared.util.WorkflowConstants; import java.io.Serializable; +import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.HashSet; @@ -44,6 +48,8 @@ import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeMap; + +import com.liferay.portal.NoSuchWorkflowInstanceLinkException; import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; @@ -59,22 +65,31 @@ import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.json.JSONSerializer; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.IndexerRegistryUtil; import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.MapUtil; import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; import com.liferay.portal.kernel.workflow.WorkflowTask; +import com.liferay.portal.model.Group; +import com.liferay.portal.model.Organization; import com.liferay.portal.model.ResourceConstants; import com.liferay.portal.model.User; import com.liferay.portal.model.UserGroupRole; +import com.liferay.portal.service.GroupLocalServiceUtil; +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 com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; +import com.liferay.portal.util.PortalUtil; import com.liferay.portal.workflow.kaleo.model.KaleoInstance; import com.liferay.portal.workflow.kaleo.service.KaleoInstanceLocalServiceUtil; import com.liferay.portlet.asset.NoSuchEntryException; @@ -85,15 +100,12 @@ import com.liferay.portlet.asset.model.AssetLinkConstants; * The implementation of the controllo pratica 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.liferay.portos.bo.service.ControlloPraticaLocalService} - * interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ControlloPraticaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -102,190 +114,152 @@ import com.liferay.portlet.asset.model.AssetLinkConstants; */ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link - * it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil} to - * access the controllo pratica local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil} to access the controllo pratica local + * service. */ private static final Log _log = LogFactoryUtil.getLog(ControlloPraticaLocalServiceImpl.class); - public ControlloPratica addControlloPratica(long groupId, long userId, long intPraticaId, - long dettPraticaId, boolean updateFlagControlloObbligatorio, ServiceContext serviceContext) - throws PortalException, SystemException { + @Override + @Indexable(type = IndexableType.REINDEX) + public ControlloPratica addControlloPratica(long groupId, long userId, long intPraticaId, long dettPraticaId, + boolean updateFlagControlloObbligatorio, ServiceContext serviceContext) throws PortalException, + SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - long controlloPraticaId = counterLocalService.increment(ControlloPratica.class.getName()); - ControlloPratica entry = controlloPraticaPersistence.create(controlloPraticaId); - entry.setCompanyId(user.getCompanyId()); entry.setUserId(user.getUserId()); entry.setUserName(user.getFullName()); - _log.info("User Full Name: " + user.getFullName()); entry.setCreateDate(serviceContext.getCreateDate(now)); entry.setModifiedDate(serviceContext.getModifiedDate(now)); - entry.setGroupId(groupId); entry.setIntPraticaId(intPraticaId); entry.setDettPraticaId(dettPraticaId); // Workflow entry.setStatus(WorkflowConstants.STATUS_DRAFT); - controlloPraticaPersistence.update(entry); - // Resources resourceLocalService.addModelResources(entry, serviceContext); - // aggiorno int e dett pratica per avvio workflow IntPratica intPratica = intPraticaLocalService.updateStatoPratica(intPraticaId, StatoPraticaConstants.SOTTOPOSTA_A_PARERE); - if (updateFlagControlloObbligatorio - && Constants.TIPO_PRATICA_DEPOSITO.equals(intPratica.getTipoPratica())) { + if (updateFlagControlloObbligatorio && Constants.TIPO_PRATICA_DEPOSITO.equals(intPratica.getTipoPratica())) { intPratica.setControlloObbligatorio(true); intPratica = intPraticaLocalService.updateIntPratica(intPratica); } - // Asset updateAsset(userId, entry, serviceContext.getAssetCategoryIds(), serviceContext.getAssetTagNames(), serviceContext.getAssetLinkEntryIds(), now); - // ADT: BUG BO GESTIONE WORKFLOW Map wfContextMap = new HashMap(); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); if (dettPratica != null && dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { wfContextMap.put("wf_variante", "OK"); } - // /////////// - // Workflow - WorkflowHandlerRegistryUtil.startWorkflowInstance(entry.getCompanyId(), entry.getGroupId(), - entry.getUserId(), ControlloPratica.class.getName(), entry.getPrimaryKey(), entry, - serviceContext, wfContextMap); - - Date dtInvio = null; - if (intPratica.getDtSorteggio() != null) { - dtInvio = intPratica.getDtSorteggio(); - } else { - dtInvio = entry.getCreateDate(); - } - - TempisticaLocalServiceUtil.addTempistica(intPraticaId, dettPraticaId, - TempisticaConstants.TIPO_PRATICA, dtInvio, serviceContext); - + WorkflowHandlerRegistryUtil.startWorkflowInstance(entry.getCompanyId(), entry.getGroupId(), entry.getUserId(), + ControlloPratica.class.getName(), entry.getPrimaryKey(), entry, serviceContext, wfContextMap); + TempisticaLocalServiceUtil.addTempistica(intPraticaId, dettPraticaId, TempisticaConstants.TIPO_PRATICA, + entry.getCreateDate(), serviceContext); return entry; } - public ControlloPratica deleteControlloPratica(long controlloPraticaId) throws PortalException, - SystemException { + @Override + @Indexable(type = IndexableType.DELETE) + public ControlloPratica deleteControlloPratica(long controlloPraticaId) throws PortalException, SystemException { ControlloPratica entry = controlloPraticaPersistence.findByPrimaryKey(controlloPraticaId); - return deleteControlloPratica(entry); } - public ControlloPratica deleteControlloPratica(ControlloPratica entry) throws SystemException, - PortalException { + @Override + @Indexable(type = IndexableType.DELETE) + public ControlloPratica deleteControlloPratica(ControlloPratica entry) throws SystemException, PortalException { // Resources resourceLocalService.deleteResource(entry.getCompanyId(), ControlloPratica.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, entry.getControlloPraticaId()); - // Asset - deleteAsset(entry); - // Workflow - - workflowInstanceLinkLocalService.deleteWorkflowInstanceLinks(entry.getCompanyId(), - entry.getGroupId(), ControlloPratica.class.getName(), entry.getControlloPraticaId()); - + workflowInstanceLinkLocalService.deleteWorkflowInstanceLinks(entry.getCompanyId(), entry.getGroupId(), + ControlloPratica.class.getName(), entry.getControlloPraticaId()); controlloPraticaPersistence.remove(entry); - return entry; } - public List findByIntPraticaId_Status(long intPraticaId, int status) - throws SystemException { + @Override + public List findByIntPraticaId_Status(long intPraticaId, int status) throws SystemException { return controlloPraticaPersistence.findByIntPraticaId_Status(intPraticaId, status); } + @Override public int countByIntPraticaId_Status(long intPraticaId, int status) throws SystemException { return controlloPraticaPersistence.countByIntPraticaId_Status(intPraticaId, status); } - public void updateAsset(long userId, ControlloPratica entry, long[] assetCategoryIds, - String[] assetTagNames, long[] assetLinkEntryIds, Date now) throws PortalException, - SystemException { + @Override + public void updateAsset(long userId, ControlloPratica entry, long[] assetCategoryIds, String[] assetTagNames, + long[] assetLinkEntryIds, Date now) throws PortalException, SystemException { boolean visible = false; - try { - AssetEntry assetEntry = assetEntryLocalService.getEntry(ControlloPratica.class.getName(), entry.getControlloPraticaId()); - if (assetEntry != null) { visible = assetEntry.isVisible(); } - } catch (NoSuchEntryException e) { // do nothing } - AssetEntry assetEntry = assetEntryLocalService.updateEntry(userId, entry.getGroupId(), now, now, - ControlloPratica.class.getName(), entry.getControlloPraticaId(), entry.getUuid(), 0, - assetCategoryIds, assetTagNames, visible, null, null, null, null, ContentTypes.TEXT_PLAIN, - String.valueOf(entry.getPrimaryKey()), String.valueOf(entry.getPrimaryKey()), null, null, 0, - 0, null, false); - + ControlloPratica.class.getName(), entry.getControlloPraticaId(), entry.getUuid(), 0, assetCategoryIds, + assetTagNames, visible, null, null, null, null, ContentTypes.TEXT_PLAIN, + String.valueOf(entry.getPrimaryKey()), String.valueOf(entry.getPrimaryKey()), null, null, 0, 0, null, + false); assetLinkLocalService.updateLinks(userId, assetEntry.getEntryId(), assetLinkEntryIds, AssetLinkConstants.TYPE_RELATED); } + @Override public void deleteAsset(ControlloPratica entry) throws PortalException, SystemException { assetEntryLocalService.deleteEntry(ControlloPratica.class.getName(), entry.getControlloPraticaId()); } - public ControlloPratica updateStatus(long userId, long resourcePrimKey, int status, - ServiceContext serviceContext, List wfNewListVarianti) throws PortalException, - SystemException { + @Override + @Indexable(type = IndexableType.REINDEX) + public ControlloPratica updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext, + List wfNewListVarianti) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); Date now = new Date(); - ControlloPratica entry = controlloPraticaPersistence.findByPrimaryKey(resourcePrimKey); - entry.setStatus(status); entry.setStatusByUserId(userId); entry.setStatusByUserName(user.getFullName()); entry.setStatusDate(serviceContext.getModifiedDate(now)); - intPraticaLocalService.updateStatus(entry.getIntPraticaId(), status); - if (status == WorkflowConstants.STATUS_APPROVED) { - assetEntryLocalService.updateVisible(ControlloPratica.class.getName(), resourcePrimKey, true); IntPratica intPratica = intPraticaLocalService.getIntPratica(entry.getIntPraticaId()); List successivePratiche = dettPraticaLocalService .findCompletedByIntPraticaAndSuccessivoDettPratica(entry.getIntPraticaId(), entry.getDettPraticaId()); - boolean autorizzazione = Constants.TIPO_PRATICA_AUTORIZZAZIONE.equalsIgnoreCase(intPratica - .getTipoPratica()); + boolean autorizzazione = Constants.TIPO_PRATICA_AUTORIZZAZIONE.equals(intPratica.getTipoPratica()); boolean avvioWorkflow = false; for (DettPratica dettPraticaSuc : successivePratiche) { if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPraticaSuc.getTipoIntegrazione()) - && (!autorizzazione || (autorizzazione && !dettPraticaSuc.getVarianteSostanziale()))) { + && !autorizzazione) { avvioWorkflow = true; } } - if (avvioWorkflow) { ServiceContext serviceContextNuovo = (ServiceContext) serviceContext.clone(); serviceContextNuovo.setScopeGroupId(entry.getGroupId()); @@ -294,143 +268,99 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi ControlloPratica cp = addControlloPratica(entry.getGroupId(), userId, lastDettPratica.getIntPraticaId(), lastDettPratica.getDettPraticaId(), false, serviceContextNuovo); - // ADT: bug BO id=7 GESTIONE WORKFLOW - // ControlloPraticaLocalServiceUtil.gestioneWFVarianti(cp); wfNewListVarianti.add(cp); } } else { assetEntryLocalService.updateVisible(ControlloPratica.class.getName(), resourcePrimKey, false); } - entry = controlloPraticaPersistence.update(entry); - Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); indexer.reindex(entry); - return entry; } + @Override public boolean generazioneDocumento(long controlloPraticaId, String jsonParams, String tipoAvviso, - long userIdFirma, Map workflowContext) throws PortalException, - SystemException { - - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(controlloPraticaId); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica - .getDettPraticaId()); + long userIdFirma, Map workflowContext) throws PortalException, SystemException { + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica.getDettPraticaId()); ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(controlloPratica.getCompanyId()); serviceContext.setScopeGroupId(controlloPratica.getGroupId()); serviceContext.setUserId(controlloPratica.getUserId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - String userCodiceFiscale = GestioneFirmeUtil.getCodiceFiscaleFirma(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), intPratica.getStatoPratica()); - - if (Validator.isNull(intPratica.getDtSorteggio()) - || !intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.CONFORME)) { + if (!intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.CONFORME)) { avvisoLocalService.createStandardAvvisoPratica(intPratica, dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, tipoAvviso, userCodiceFiscale, jsonParams, controlloPraticaId); } - return true; } - @Deprecated - public boolean updateStatoPraticaGeneraDocumentoFinale(long controlloPraticaId, String jsonParams, - long userIdFirma, Map workflowContext) throws PortalException, - SystemException { - - return generaDocumentoFinale(controlloPraticaId, jsonParams, userIdFirma, workflowContext); - } - + @Override public boolean generaDocumentoFinale(long controlloPraticaId, String jsonParams, long userIdFirma, Map workflowContext) throws PortalException, SystemException { - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(controlloPraticaId); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica - .getDettPraticaId()); - + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica.getDettPraticaId()); ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(controlloPratica.getCompanyId()); serviceContext.setScopeGroupId(controlloPratica.getGroupId()); serviceContext.setUserId(controlloPratica.getUserId()); - // IntPratica intPratica = - // intPraticaLocalService.getIntPratica(dettPratica.getIntPraticaId()); - // intPratica.setStatoPratica(getEsitoFinale(controlloPraticaId, - // workflowContext)); - // intPratica = intPraticaLocalService.updateIntPratica(intPratica); String statoPratica = getEsitoFinale(controlloPraticaId, workflowContext); - User user = UserLocalServiceUtil.fetchUser(userIdFirma); - String codiceFiscale = ""; + String codiceFiscale = StringPool.BLANK; if (user != null) { codiceFiscale = user.getScreenName(); } else { codiceFiscale = GestioneFirmeUtil.getCodiceFiscaleFirma(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), statoPratica); } - - // TODO Da riempire - // XXX Di cosa? Di caramelle? - String jsonParameters = StringPool.BLANK; - avvisoLocalService.createStandardAvvisoPratica(controlloPratica.getIntPraticaId(), statoPratica, - jsonParameters, dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, + String base64File = StringPool.BLANK; + @SuppressWarnings("unchecked") + Map formParameters = (Map) workflowContext + .get(WorkflowConstants.CONTEXT_TASK_FORM_PARAMETERS); + if (MapUtil.getBoolean(formParameters, "base64", false)) { + base64File = MapUtil.getString(formParameters, "testo_del_documento"); + } + avvisoLocalService.createStandardAvvisoPratica(controlloPratica.getIntPraticaId(), statoPratica, base64File, + dettPratica.getDettPraticaId(), DettPratica.class.getName(), serviceContext, AvvisoUtil.TIPO_AVVISO_FIRMA, codiceFiscale, controlloPraticaId); - return true; } + @Override public void updateIstruttore(long controlloPraticaId, Map workflowContext) throws PortalException, SystemException { - ControlloPratica controlloPratica = controlloPraticaLocalService - .getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); @SuppressWarnings("unchecked") - Map parametri = (Map) workflowContext - .get("CONTEXT_TASK_FORM_PARAMETERS"); + Map parametri = (Map) workflowContext.get("CONTEXT_TASK_FORM_PARAMETERS"); IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); long istruttore = GetterUtil.getLong(parametri.get("istruttore")); intPratica.setStatusByUserId(istruttore); intPratica.setStatusDate(new Date()); intPraticaLocalService.updateIntPratica(intPratica); - } - @Deprecated - public String valutazioneEsitoFinale(long controlloPraticaId, Map workflowContext) - throws PortalException, SystemException { - - return valutazioneEsitoFinaleUpdateStatoPratica(controlloPraticaId, workflowContext); - } - - /** - * I valori di ritorno possibili sono: - * approvato,non_approvato,annullato,richiesta_integrazione - * - * @throws SystemException - * @throws PortalException - */ + // I valori di ritorno possibili sono: approvato,non_approvato,annullato,richiesta_integrazione + @Override public String valutazioneEsitoFinaleUpdateStatoPratica(long controlloPraticaId, Map workflowContext) throws PortalException, SystemException { String esito = getEsitoFinale(controlloPraticaId, workflowContext); String ramoWorkflow = StringPool.BLANK; - ControlloPratica controlloPratica = controlloPraticaLocalService - .getControlloPratica(controlloPraticaId); - - Avviso avviso = avvisoLocalService.fetchLastAvvisoByIntPraticaPerStatoFinale(controlloPratica - .getIntPraticaId()); + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); + Avviso avviso = avvisoLocalService + .fetchLastAvvisoByIntPraticaPerStatoFinale(controlloPratica.getIntPraticaId()); if (avviso != null && avviso.getRifiutato()) { ramoWorkflow = "rifiuto_firma"; } else { - boolean updateIntPratica = true; - switch (esito) { case StatoPraticaConstants.CONFORME: case StatoPraticaConstants.AUTORIZZATA: @@ -449,15 +379,11 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi ramoWorkflow = "annullato"; updateIntPratica = false; // Annulla solo il workflow break; - default: - break; } - if (updateIntPratica) { intPraticaLocalService.updateStatoPratica(controlloPratica.getIntPraticaId(), esito); } } - IndexerRegistryUtil.getIndexer(ControlloPratica.class).reindex(controlloPratica); return ramoWorkflow; } @@ -465,13 +391,9 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi private String getEsitoFinale(long controlloPraticaId, Map workflowContext) throws PortalException, SystemException { - // Map parametri = (Map) - // workflowContext.get("CONTEXT_TASK_FORM_PARAMETERS"); - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); Map parametri = WorkflowUtil.getFormParameters(controlloPratica); String esitoScelta = (String) parametri.get("esito"); - if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(esitoScelta)) { esitoScelta = StatoPraticaConstants.AUTORIZZATA; @@ -479,14 +401,14 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi esitoScelta = StatoPraticaConstants.NON_AUTORIZZATA; } } - return esitoScelta; } - public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, - Map workflowContext) throws PortalException, SystemException { + @Override + public void aggiornaStatoPerRichiestaIntegrazione(long controlloPraticaId, Map workflowContext) + throws PortalException, SystemException { - ControlloPratica controllo = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); + ControlloPratica controllo = getControlloPratica(controlloPraticaId); IntPratica pratica = intPraticaLocalService.getIntPratica(controllo.getIntPraticaId()); String stato = pratica.getStatoPratica(); if (!stato.equalsIgnoreCase(StatoPraticaConstants.PREAVVISO_CONTRARIO)) { @@ -496,22 +418,19 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi intPraticaLocalService.updateIntPratica(pratica); } + @Override public String getJsonListaIstruttori(long controlloPraticaId, Map workflowContext) throws PortalException, SystemException { - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); int unitaOperativa = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()) .getUnitaOperativa(); boolean preassegnazione = (0 == unitaOperativa); long companyId = controlloPratica.getCompanyId(); - long roleId = RoleLocalServiceUtil.getRole(companyId, preassegnazione ? "portos_assegnatore" : "portos_istruttore").getRoleId(); - List userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( controlloPratica.getGroupId(), roleId); - Map sorted = new TreeMap<>(); if (preassegnazione) { Set unitaOperative = new HashSet<>(); @@ -540,115 +459,124 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi } } } - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); jsonObject.put("istruttore", jsonArray); for (JSONObject istruttore : sorted.values()) { jsonArray.put(istruttore); } - return jsonObject.toString(); } + @Override public String getJsonEsitoPratica(long controlloPraticaId, Map workflowContext) throws PortalException, SystemException { - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .getControlloPratica(controlloPraticaId); - - JSONObject jsonObject = JSONFactoryUtil.createJSONObject(); - JSONArray jsonArray = JSONFactoryUtil.createJSONArray(); - jsonObject.put("esito", jsonArray); - + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); + IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - JSONObject etichette = JSONFactoryUtil.createJSONObject(); - etichette.put("label", StatoPraticaConstants.getEsitoDeposito(StatoPraticaConstants.CONFORME)); - etichette.put("value", StatoPraticaConstants.CONFORME); - etichette.put("default", false); - jsonArray.put(etichette); - etichette = JSONFactoryUtil.createJSONObject(); - etichette - .put("label", StatoPraticaConstants.getEsitoDeposito(StatoPraticaConstants.NON_CONFORME)); - etichette.put("value", StatoPraticaConstants.NON_CONFORME); - etichette.put("default", false); - jsonArray.put(etichette); - etichette = JSONFactoryUtil.createJSONObject(); - etichette - .put("label", StatoPraticaConstants.getEsitoDeposito(StatoPraticaConstants.INTEGRAZIONE)); - etichette.put("value", StatoPraticaConstants.INTEGRAZIONE); - etichette.put("default", false); - jsonArray.put(etichette); - etichette = JSONFactoryUtil.createJSONObject(); - etichette.put("label", StatoPraticaConstants.getEsitoDeposito(StatoPraticaConstants.ANNULLATA)); - etichette.put("value", StatoPraticaConstants.ANNULLATA); - etichette.put("default", false); - jsonArray.put(etichette); - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { - JSONObject etichette = JSONFactoryUtil.createJSONObject(); - etichette.put("label", - StatoPraticaConstants.getEsitoAutorizzazione(StatoPraticaConstants.AUTORIZZATA)); - etichette.put("value", StatoPraticaConstants.CONFORME); - etichette.put("default", false); - jsonArray.put(etichette); - etichette = JSONFactoryUtil.createJSONObject(); - etichette.put("label", - StatoPraticaConstants.getEsitoAutorizzazione(StatoPraticaConstants.NON_CONFORME)); - etichette.put("value", StatoPraticaConstants.NON_CONFORME); - etichette.put("default", false); - jsonArray.put(etichette); - etichette = JSONFactoryUtil.createJSONObject(); - etichette.put("label", - StatoPraticaConstants.getEsitoAutorizzazione(StatoPraticaConstants.INTEGRAZIONE)); - etichette.put("value", StatoPraticaConstants.INTEGRAZIONE); - etichette.put("default", false); - jsonArray.put(etichette); - etichette = JSONFactoryUtil.createJSONObject(); - etichette.put("label", - StatoPraticaConstants.getEsitoAutorizzazione(StatoPraticaConstants.PREAVVISO_CONTRARIO)); - etichette.put("value", StatoPraticaConstants.PREAVVISO_CONTRARIO); - etichette.put("default", false); - jsonArray.put(etichette); - etichette = JSONFactoryUtil.createJSONObject(); - etichette.put("label", - StatoPraticaConstants.getEsitoAutorizzazione(StatoPraticaConstants.NO_PARERE)); - etichette.put("value", StatoPraticaConstants.NO_PARERE); - etichette.put("default", false); - jsonArray.put(etichette); + return jsonDeposito; } - return jsonObject.toString(); + switch (intPratica.getTipoProcedura()) { + case Constants.PROCEDURA_P3: + return jsonViarch; + case Constants.PROCEDURA_P8: + case Constants.PROCEDURA_P9: + return jsonSanatoria; + } + return jsonAutorizzazione; } - public ControlloPratica addPraticheAlControllo(long controlloPraticaId, long dettPraticaId) - throws PortalException, SystemException { + private static final String jsonDeposito = StringPool.BLANK; + private static final String jsonAutorizzazione = getJsonAutorizzazione(); + private static final String jsonSanatoria = getJsonSanatoria(); + private static final String jsonViarch = getJsonViarch(); + + private static String getJsonAutorizzazione() { + + JSONArray esito = JSONFactoryUtil.createJSONArray(); + esito.put(etichetta(StatoPraticaConstants.CONFORME)); + esito.put(etichetta(StatoPraticaConstants.NON_CONFORME)); + esito.put(etichetta(StatoPraticaConstants.INTEGRAZIONE)); + esito.put(etichetta(StatoPraticaConstants.PREAVVISO_CONTRARIO)); + esito.put(etichetta(StatoPraticaConstants.NO_PARERE)); + JSONObject ret = JSONFactoryUtil.createJSONObject(); + ret.put("esito", esito); + return ret.toString(); + } + + private static String getJsonSanatoria() { + + JSONArray esito = JSONFactoryUtil.createJSONArray(); + esito.put(etichetta(StatoPraticaConstants.CONFORME)); + esito.put(etichetta("Perizia sanzione", StatoPraticaConstants.INTEGRAZIONE, true)); + esito.put(etichetta(StatoPraticaConstants.NON_CONFORME)); + esito.put(etichetta(StatoPraticaConstants.INTEGRAZIONE)); + esito.put(etichetta(StatoPraticaConstants.PREAVVISO_CONTRARIO)); + esito.put(etichetta(StatoPraticaConstants.NO_PARERE)); + JSONObject ret = JSONFactoryUtil.createJSONObject(); + ret.put("esito", esito); + return ret.toString(); + } + + private static String getJsonViarch() { - ControlloPratica controlloPratica = controlloPraticaLocalService - .getControlloPratica(controlloPraticaId); + JSONArray esito = JSONFactoryUtil.createJSONArray(); + esito.put(etichetta("Attiva VIArch", StatoPraticaConstants.CONFORME)); + esito.put(etichetta("Concludi VIArch", StatoPraticaConstants.NON_CONFORME)); + esito.put(etichetta(StatoPraticaConstants.INTEGRAZIONE)); + JSONObject ret = JSONFactoryUtil.createJSONObject(); + ret.put("esito", esito); + return ret.toString(); + } + + private static JSONObject etichetta(String value) { + + return etichetta(StatoPraticaConstants.getEsitoAutorizzazione(value), value, false, false); + } + + private static JSONObject etichetta(String label, String value) { + + return etichetta(label, value, false, false); + } + + private static JSONObject etichetta(String label, String value, boolean upload) { + + return etichetta(label, value, upload, false); + } + private static JSONObject etichetta(String label, String value, boolean upload, boolean isDefault) { + + JSONObject etichetta = JSONFactoryUtil.createJSONObject(); + etichetta.put("label", label); + etichetta.put("value", value); + etichetta.put("upload", upload); + etichetta.put("default", isDefault); + return etichetta; + } + + @Override + @Indexable(type = IndexableType.REINDEX) + public ControlloPratica addPraticheAlControllo(long controlloPraticaId, long dettPraticaId) throws PortalException, + SystemException { + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); controlloPratica.setDettPraticaId(dettPraticaId); controlloPratica.setModifiedDate(new Date()); - return controlloPraticaPersistence.update(controlloPratica); } /** * ADT: BUG ID=5 - tracciamento operazione aggiungi varianti al controllo - * - * @param controlloPraticaId - * @param dettPraticaId - * @return - * @throws PortalException - * @throws SystemException */ + @Override + @Indexable(type = IndexableType.REINDEX) public ControlloPratica addPraticheAlControlloVarianti(long controlloPraticaId, long dettPraticaId, ServiceContext serviceContext) throws PortalException, SystemException { _log.info("start addPraticheAlControlloVarianti per controlloPraticaId=" + controlloPraticaId); - ControlloPratica controlloPratica = controlloPraticaLocalService - .getControlloPratica(controlloPraticaId); + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); controlloPratica.setDettPraticaId(dettPraticaId); controlloPratica.setModifiedDate(new Date()); ControlloPratica result = controlloPraticaPersistence.update(controlloPratica); - try { WorkflowTask lastTask = WorkflowUtil.getLastTask(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), null, controlloPratica); @@ -657,26 +585,20 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi parametri.put("ingloba_variante", "Varianti inglobate nel controllo"); JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); jsonFormParameters = jsonSerializer.serialize(parametri); - FormLogLocalServiceUtil.addFormLog(lastTask.getWorkflowInstanceId(), 0l, "cambio-istruttore", + FormLogLocalServiceUtil.addFormLog(lastTask.getWorkflowInstanceId(), 0L, "cambio-istruttore", jsonFormParameters, serviceContext); } catch (Exception e) { - _log.error( - "Errore in addPraticheAlControlloVarianti - inserimento log non riuscito -controlloPraticaId = " - + controlloPraticaId, e); + _log.error("Errore in addPraticheAlControlloVarianti - inserimento log non riuscito -controlloPraticaId = " + + controlloPraticaId, e); } - return result; } - public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException, - SystemException { - - ControlloPratica controlloPratica = controlloPraticaLocalService - .getControlloPratica(controlloPraticaId); - - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica - .getDettPraticaId()); + @Override + public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException, SystemException { + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica.getDettPraticaId()); if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { return "portos1_integrazioni"; } else { @@ -684,83 +606,72 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi } } + @Override public String getTipoEsito(long controlloPraticaId) throws SystemException, PortalException { String tipoEsito = StringPool.BLANK; - - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - .fetchControlloPratica(controlloPraticaId); - + ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.fetchControlloPratica(controlloPraticaId); ClassLoader classLoaderKaleo = (ClassLoader) PortletBeanLocatorUtil.locate( - com.liferay.portal.workflow.kaleo.service.ClpSerializer.getServletContextName(), - "portletClassLoader"); - + com.liferay.portal.workflow.kaleo.service.ClpSerializer.getServletContextName(), "portletClassLoader"); DynamicQuery dqKaleo = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, classLoaderKaleo); dqKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPraticaId)); dqKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName())); - + @SuppressWarnings("unchecked") List listaKaleo = KaleoInstanceLocalServiceUtil.dynamicQuery(dqKaleo); if (listaKaleo != null && !listaKaleo.isEmpty()) { KaleoInstance kaleoInstance = listaKaleo.get(0); if (kaleoInstance != null) { - ClassLoader classLoaderKaleoLog = (ClassLoader) PortletBeanLocatorUtil.locate( it.tref.liferay.portos.kaleo.service.ClpSerializer.getServletContextName(), "portletClassLoader"); - - DynamicQuery dqKaleoLog = DynamicQueryFactoryUtil - .forClass(FormLog.class, classLoaderKaleoLog); - dqKaleoLog.add(RestrictionsFactoryUtil.eq("workflowInstanceId", - kaleoInstance.getKaleoInstanceId())); + DynamicQuery dqKaleoLog = DynamicQueryFactoryUtil.forClass(FormLog.class, classLoaderKaleoLog); + dqKaleoLog.add(RestrictionsFactoryUtil.eq("workflowInstanceId", kaleoInstance.getKaleoInstanceId())); dqKaleoLog.add(RestrictionsFactoryUtil.eq("transitionName", "registra-esito")); - Order defaultOrder = OrderFactoryUtil.desc("createDate"); dqKaleoLog.addOrder(defaultOrder); - + @SuppressWarnings("unchecked") List listaKaleoLog = FormLogLocalServiceUtil.dynamicQuery(dqKaleoLog); if (listaKaleoLog != null && !listaKaleoLog.isEmpty()) { FormLog formLog = listaKaleoLog.get(0); JSONObject json = JSONFactoryUtil.createJSONObject(formLog.getFormParameters()); if (json.has("esito")) { - if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) { - tipoEsito = StatoPraticaConstants.getEsitoDeposito(json.getString("esito")); - } else if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { - tipoEsito = StatoPraticaConstants.getEsitoAutorizzazione(json.getString("esito")); - } + tipoEsito = PraticaUtil.getStatoPratica(json.getString("esito"), + controlloPratica.getIntPraticaId()); } } } } - return tipoEsito; } + @Override public List findByIntPratica(long intPraticaId) throws SystemException { + return controlloPraticaPersistence.findByIntPraticaId(intPraticaId); } - public Long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException, - PortalException { - ControlloPratica controllo = ControlloPraticaLocalServiceUtil - .fetchControlloPratica(controlloPraticaId); - IntPratica pratica = IntPraticaLocalServiceUtil.fetchIntPratica(controllo.getIntPraticaId()); + @Override + public Long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException, PortalException { + ControlloPratica controllo = ControlloPraticaLocalServiceUtil.fetchControlloPratica(controlloPraticaId); + IntPratica pratica = IntPraticaLocalServiceUtil.fetchIntPratica(controllo.getIntPraticaId()); Date apertura = pratica.getDtPratica(); Date chiusura = null; long stop = 0; - - List avvisi = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(), - QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil - .getOrderByComparatorFactory().create("portos_bo_Avviso", "createDate", true)); + List avvisi = AvvisoLocalServiceUtil.findByIntPratica( + pratica.getIntPraticaId(), + QueryUtil.ALL_POS, + QueryUtil.ALL_POS, + OrderByComparatorFactoryUtil.getOrderByComparatorFactory().create("portos_bo_Avviso", "createDate", + true)); Date start = null; Date end = null; - _log.debug("Pratica " + pratica.getNumeroProgetto()); for (Avviso avviso : avvisi) { if (!avviso.isAnnullato()) { String tipo = avviso.getTipoDocumento().toUpperCase(); - _log.debug("Avviso " + avviso.getTipoDocumento() + " " + avviso.getDtAvviso() + " " - + avviso.getCreateDate()); + _log.debug("Avviso " + avviso.getTipoDocumento() + StringPool.SPACE + avviso.getDtAvviso() + + StringPool.SPACE + avviso.getCreateDate()); if (tipo.equals(StatoPraticaConstants.INTEGRAZIONE) || tipo.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)) { start = avviso.getCreateDate(); @@ -800,139 +711,96 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi start = end = null; } } - // C'è uno stop ancora attivo if (Validator.isNotNull(start)) { chiusura = start; } - Long giorni = null; if (Validator.isNull(chiusura)) { giorni = SismicaUtil.daysPast(apertura); } else { giorni = SismicaUtil.daysBetween(apertura, chiusura); } - return giorni - stop; } - /* - * public long calculateDateAvvioProcedimentoOld(long controlloPraticaId) - * throws SystemException, PortalException { - * - * long giorni = 0; - * - * ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil - * .fetchControlloPratica(controlloPraticaId); - * - * Long intPraticaId = controlloPratica.getIntPraticaId(); - * - * List tempisticaList = - * TempisticaLocalServiceUtil.findByIntPratica_Tipo(intPraticaId, - * TempisticaConstants.TIPO_PRATICA); - * - * if (tempisticaList != null && tempisticaList.size() > 0) { Tempistica - * temp = null; - * - * for (Iterator iterator = tempisticaList.iterator(); iterator.hasNext();) - * { Tempistica tempistica = (Tempistica) iterator.next(); if (temp == null - * || temp.getCreateDate().before(tempistica.getCreateDate())) temp = - * tempistica; } - * - * long giorniMillisecFormat = 0; if (temp.getStop() > 0) - * giorniMillisecFormat = temp.getStop() - (temp.getStart() + - * temp.getWait()); else if (temp.getStop() == 0) giorniMillisecFormat = - * System.currentTimeMillis() - (temp.getStart() + temp.getWait()); - * - * giorni = TimeUnit.DAYS.convert(giorniMillisecFormat, - * TimeUnit.MILLISECONDS); } - * - * return giorni; } - */ + @Override + public Organization getOrganizationByControlloPraticaId(long controlloPraticaId) throws PortalException, + SystemException { - /** - * ADT: gestione workflow varianti - * - * @param dettPraticaId - * @throws Exception - */ - public void gestioneWFVarianti(ControlloPratica cp) { - try { - /* - * DettPratica - * dettPratica=DettPraticaLocalServiceUtil.getDettPratica - * (cp.getDettPraticaId()); - * if(dettPratica.getTipoIntegrazione().equals - * (TipoIntegrazioneUtil.VARIANTE)){ _log.info( - * "gestioneWFVarianti - avviato workflow per variante dettPraticaId=" - * +cp.getDettPraticaId()+" -ControlloPraticaId="+cp. - * getControlloPraticaId()); IntPratica intPratica= - * IntPraticaLocalServiceUtil.fetchIntPratica(cp.getIntPraticaId()); - * long statusByuserId=intPratica.getStatusByUserId(); - * _log.info("gestioneWFVarianti -statusByuserId=" - * +statusByuserId+" per int pratica=" - * +intPratica.getIntPraticaId()); //WorkflowInstanceLink - * workflowInstanceLink = - * WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( - * // cp.getCompanyId(),cp.getGroupId(), - * ControlloPratica.class.getName(),cp.getPrimaryKey()); - * //_log.info( - * "gestioneWFVarianti - workflowInstanceLink=="+workflowInstanceLink - * .getWorkflowInstanceId()); if (statusByuserId==0){ - * _log.info("gestioneWFVarianti - KO - statusByuserId=" - * +statusByuserId); return; }else{ - * _log.info("gestioneWFVarianti - statusByuserId determinato =" - * +statusByuserId); } long workflowInstanceId = - * WorkflowUtil.getWorkflowInstanceId(cp); - * - * //creazione record KaleoTaskInstanceToken di tipo ESITO - * ServiceContext serviceContext = new ServiceContext(); - * serviceContext.setCompanyId(cp.getCompanyId()); KaleoInstance - * kaleoInstance = - * KaleoInstanceLocalServiceUtil.getKaleoInstance(workflowInstanceId - * ); KaleoInstanceToken rootKaleoInstanceToken = - * kaleoInstance.getRootKaleoInstanceToken(serviceContext); - * _log.info("gestioneWFVarianti - rootKaleoInstanceToken="+ - * rootKaleoInstanceToken.getCurrentKaleoNodeName()); long - * kaleoTaskInstanceTokenID=CounterLocalServiceUtil.increment( - * "com.liferay.counter.model.Counter"); - * _log.info("kaleoTaskInstanceTokenID="+kaleoTaskInstanceTokenID); - * KaleoTaskInstanceToken x = - * KaleoTaskInstanceTokenLocalServiceUtil. - * createKaleoTaskInstanceToken(kaleoTaskInstanceTokenID); - * x.setKaleoTaskId(21642); x.setKaleoTaskName("Esito"); - * x.setCompleted(false); x.setGroupId(cp.getGroupId()); - * x.setClassName - * ("it.tref.liferay.portos.bo.model.ControlloPratica"); - * x.setClassPK(kaleoInstance.getClassPK()); - * x.setCompanyId(kaleoInstance.getCompanyId()); - * x.setUserId(kaleoInstance.getUserId()); - * x.setUserName(kaleoInstance.getUserName()); x.setCreateDate(new - * Date()); - * x.setKaleoInstanceId(kaleoInstance.getKaleoInstanceId()); - * x.setKaleoDefinitionId(kaleoInstance.getKaleoDefinitionId()); - * x.setKaleoInstanceTokenId - * (rootKaleoInstanceToken.getKaleoInstanceTokenId()); - * x.setWorkflowContext(kaleoInstance.getWorkflowContext()); - * x=KaleoTaskInstanceTokenLocalServiceUtil - * .updateKaleoTaskInstanceToken(x); _log.info( - * "gestioneWFVarianti - KaleoTaskInstanceToken di tipo ESITO creato - KaleoTaskInstanceTokenId = " - * +x.getKaleoTaskInstanceTokenId()); _log.info( - * "gestioneWFVarianti - correttamente eseguito - ControlloPraticaId = " - * +cp.getControlloPraticaId()); - * //////////////////////////////////// - * ///////////////////////////////// - * - * - * - * } - */ - } catch (Exception e) { - _log.error( - "gestioneWFVarianti - Errore in gestioneWFVarianti - dettaPratiacaId=" - + cp.getDettPraticaId(), e); - // throw e; - } + ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); + IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); + Group group = GroupLocalServiceUtil.getGroup(intPratica.getGroupId()); + Organization organization = OrganizationLocalServiceUtil.getOrganization(group.getOrganizationId()); + return organization; } -} + @Override + @SuppressWarnings("unchecked") + public Map getCarichiLavoro(long controlloPraticaId, int giorni) throws SystemException, + PortalException { + + ControlloPratica cp = getControlloPratica(controlloPraticaId); + long companyId = cp.getCompanyId(); + long groupId = cp.getGroupId(); + int unitaOperativa = cp.getUnitaOperativa(); + Calendar calendar = Calendar.getInstance(); + calendar.add(Calendar.DATE, -giorni); + calendar.set(Calendar.HOUR, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.SECOND, 0); + calendar.set(Calendar.MILLISECOND, 0); + DynamicQuery queryCP = dynamicQuery(); + queryCP.add(RestrictionsFactoryUtil.ge("createDate", calendar.getTime())); + queryCP.add(RestrictionsFactoryUtil.eq("groupId", groupId)); + Map carichi = new TreeMap<>(); + int start = 0; + List controlli; + do { + controlli = controlloPraticaPersistence.findWithDynamicQuery(queryCP, start, start + 10); + for (ControlloPratica controllo : controlli) { + IntPratica pratica = IntPraticaLocalServiceUtil.getIntPratica(controllo.getIntPraticaId()); + if ((0 == unitaOperativa) || (pratica.getUnitaOperativa() == unitaOperativa)) { + long workflowInstanceId = 0L; + try { + workflowInstanceId = WorkflowInstanceLinkLocalServiceUtil.getWorkflowInstanceLink(companyId, + groupId, ControlloPratica.class.getName(), controllo.getPrimaryKey()) + .getWorkflowInstanceId(); + } catch (NoSuchWorkflowInstanceLinkException e) { + } + if (workflowInstanceId != 0L) { + DynamicQuery queryFL = FormLogLocalServiceUtil.dynamicQuery(); + queryFL.add(RestrictionsFactoryUtil.eq("workflowInstanceId", workflowInstanceId)); + queryFL.addOrder(OrderFactoryUtil.asc("createDate")); + List logs = FormLogLocalServiceUtil.dynamicQuery(queryFL); + if (logs.size() > 0) { + String istruttore = StringPool.BLANK; + boolean concluso = false; + for (FormLog log : logs) { + switch (log.getTransitionName().toLowerCase()) { + case "assegna": + case "cambio-istruttore": + case "riassegna": + if (concluso) { + CarichiLavoroUtil.incrementaCarico(carichi, istruttore, concluso); + } + JSONObject parameters = JSONFactoryUtil.createJSONObject(log.getFormParameters()); + istruttore = PortalUtil.getUserName(parameters.getLong("istruttore"), + StringPool.BLANK); + concluso = false; + break; + case "registra-esito": + concluso = true; + break; + } + } + CarichiLavoroUtil.incrementaCarico(carichi, istruttore, concluso); + } + } + } + } + start += controlli.size(); + } while (controlli.size() > 0); + return carichi; + } +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaServiceImpl.java index 2827d018..c5bd3af5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaServiceImpl.java @@ -1,14 +1,12 @@ /** * 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) + * 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 + * 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. */ @@ -20,10 +18,12 @@ import it.tref.liferay.portos.bo.service.base.ControlloPraticaServiceBaseImpl; * The implementation of the controllo pratica remote 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.liferay.portos.bo.service.ControlloPraticaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ControlloPraticaService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -32,8 +32,7 @@ import it.tref.liferay.portos.bo.service.base.ControlloPraticaServiceBaseImpl; */ public class ControlloPraticaServiceImpl extends ControlloPraticaServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.ControlloPraticaServiceUtil} to access the controllo pratica remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ControlloPraticaServiceUtil} to access the controllo pratica remote service. */ -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java index ccc0dcfd..bdb308f4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -55,14 +55,12 @@ import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil; * The implementation of the delega 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.liferay.portos.bo.service.DelegaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DelegaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -71,42 +69,35 @@ import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil; */ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil} to access the - * delega local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil} to access the delega local service. */ private Log _log = LogFactoryUtil.getLog(DelegaLocalServiceImpl.class); - public Delega addDelega(long userId, long intPraticaId, long dettPraticaId, String tipologia, - String codiceFiscale, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public Delega addDelega(long userId, long intPraticaId, long dettPraticaId, String tipologia, String codiceFiscale, + ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - Delega delega = delegaPersistence.create(counterLocalService.increment(Delega.class.getName())); - delega.setCompanyId(serviceContext.getCompanyId()); delega.setUserId(user.getUserId()); delega.setUserName(user.getFullName()); delega.setCreateDate(serviceContext.getCreateDate(now)); delega.setModifiedDate(serviceContext.getModifiedDate(now)); delega.setGroupId(serviceContext.getScopeGroupId()); - delega.setIntPraticaId(intPraticaId); delega.setDettPraticaId(dettPraticaId); delega.setTipologia(tipologia); delega.setEsito(DelegheUtil.STATO_ASSEGNATA); delega.setCodiceFiscale(codiceFiscale); - delega = delegaPersistence.update(delega); - return delega; } + @Override public Delega cambioStato(long delegaId, String esito) throws PortalException, SystemException { Date now = new Date(); @@ -120,7 +111,9 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl { return delega; } + @Override public void concludiDeleghePagamento(long dettPraticaId) throws PortalException, SystemException { + List deleghe = this.findByDettPratica_Tipologia_InEsito(dettPraticaId, new String[] { DelegheUtil.TIPO_PAGAMENTO }, new String[] { DelegheUtil.STATO_ASSEGNATA }); for (Delega delega : deleghe) { @@ -130,6 +123,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl { @Override public Delega deleteDelega(Delega delega) throws SystemException { + // TODO cancellare il file quando ci sarà return super.deleteDelega(delega); } @@ -141,288 +135,315 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl { return deleteDelega(delega); } - public List findByIntPratica(long intPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + return delegaPersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); } - public List findByDettPratica(long dettPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByDettPratica(long dettPraticaId, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + return delegaPersistence.findByDettPratica(dettPraticaId, start, end, orderByComparator); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { + return delegaPersistence.countByIntPratica(intPraticaId); } + @Override public int countByDettPratica(long dettPraticaId) throws SystemException { + return delegaPersistence.countByIntPratica(dettPraticaId); } - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + return delegaPersistence.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, end, orderByComparator); } + @Override public List findByCodiceFiscale(String codiceFiscale) throws SystemException { + return delegaPersistence.findByCodiceFiscale(codiceFiscale); } - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) - throws SystemException { + @Override + public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { + return delegaPersistence.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); } + @Override public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByCodiceFiscale_InEsito(codiceFiscale, esiti, start, end, - orderByComparator); + + return delegaPersistence.findByCodiceFiscale_InEsito(codiceFiscale, esiti, start, end, orderByComparator); } + @Override public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { + return delegaPersistence.countByCodiceFiscale_InEsito(codiceFiscale, esiti); } - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, - start, end, orderByComparator); + @Override + public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaPersistence.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, start, end, + orderByComparator); } + @Override public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) throws SystemException { + return delegaPersistence.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti); } + @Override public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti, - start, end, orderByComparator); + + return delegaPersistence.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti, start, + end, orderByComparator); } - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, - String[] esiti) throws SystemException { - return delegaPersistence - .countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti); + @Override + public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, String[] esiti) + throws SystemException { + + return delegaPersistence.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti); } + @Override public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + return delegaPersistence.findByIntPratica_InEsito(intPraticaId, esiti, start, end, orderByComparator); } + @Override public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { + return delegaPersistence.countByIntPratica_InEsito(intPraticaId, esiti); } + @Override public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, - orderByComparator); + + return delegaPersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); } - public List findCfByDettPratica_InEsito(long dettPraticaId, String[] esiti) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findCfByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { DynamicQuery dynamicQuery = createQueryByDettPratica_InEsito(dettPraticaId, esiti); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceFiscale"))); - + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceFiscale"))); return delegaPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { DynamicQuery dynamicQuery = createQueryByDettPratica_InEsito(dettPraticaId, esiti); - return delegaPersistence.findWithDynamicQuery(dynamicQuery); } - public List findCfByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, - String[] esiti) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findCfByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti) + throws SystemException { DynamicQuery dynamicQuery = createQueryByDettPratica_InEsito(dettPraticaId, esiti); dynamicQuery.add(RestrictionsFactoryUtil.in("tipologia", tipologie)); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceFiscale"))); - + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceFiscale"))); return delegaPersistence.findWithDynamicQuery(dynamicQuery); } - public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, - String[] esiti) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti) + throws SystemException { DynamicQuery dynamicQuery = createQueryByDettPratica_InEsito(dettPraticaId, esiti); dynamicQuery.add(RestrictionsFactoryUtil.in("tipologia", tipologie)); - return delegaPersistence.findWithDynamicQuery(dynamicQuery); } private DynamicQuery createQueryByDettPratica_InEsito(long dettPraticaId, String[] esiti) { + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaId", dettPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.in("esito", esiti)); - return dynamicQuery; } + @Override public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { + return delegaPersistence.countByDettPratica_InEsito(dettPraticaId, esiti); } - public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, - start, end, orderByComparator); + @Override + public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaPersistence.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, start, end, + orderByComparator); } + @Override public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) throws SystemException { + return delegaPersistence.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti); } - public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, - String codiceFiscale, String tipologia, String[] esiti, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, orderByComparator); + @Override + public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, + String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return delegaPersistence.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti, start, end, orderByComparator); } + @Override public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, String tipologia, String[] esiti) throws SystemException { - return delegaPersistence.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); + + return delegaPersistence.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti); } - public List findByDettPratica_CodiceFiscale_Tipologia_InEsito(long dettPraticaId, - String codiceFiscale, String[] tipologie, String[] esiti, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByDettPratica_CodiceFiscale_Tipologia_InEsito(dettPraticaId, - codiceFiscale, tipologie, esiti, start, end, orderByComparator); + @Override + public List findByDettPratica_CodiceFiscale_Tipologia_InEsito(long dettPraticaId, String codiceFiscale, + String[] tipologie, String[] esiti, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return delegaPersistence.findByDettPratica_CodiceFiscale_Tipologia_InEsito(dettPraticaId, codiceFiscale, + tipologie, esiti, start, end, orderByComparator); } + @Override public int countByDettPratica_CodiceFiscale_Tipologia_InEsito(long dettPraticaId, String codiceFiscale, String[] tipologie, String[] esiti) throws SystemException { - return delegaPersistence.countByDettPratica_CodiceFiscale_Tipologia_InEsito(dettPraticaId, - codiceFiscale, tipologie, esiti); + + return delegaPersistence.countByDettPratica_CodiceFiscale_Tipologia_InEsito(dettPraticaId, codiceFiscale, + tipologie, esiti); } - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, - end, orderByComparator); + @Override + public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaPersistence.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, end, + orderByComparator); } - public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, - end, orderByComparator); + @Override + public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaPersistence.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, end, + orderByComparator); } + @Override public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) throws SystemException { + return delegaPersistence.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); } - public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaPersistence.findByDettPratica_Tipologie_InEsiti(dettPraticaId, tipologie, esiti, start, - end, orderByComparator); + @Override + public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaPersistence.findByDettPratica_Tipologie_InEsiti(dettPraticaId, tipologie, esiti, start, end, + orderByComparator); } + @Override public int countByDettPratica_Tipologia_InEsito(long intPraticaId, String[] tipologie, String[] esiti) throws SystemException { + return delegaPersistence.countByDettPratica_Tipologie_InEsiti(intPraticaId, tipologie, esiti); } /** - * * ADT: nuovo metodo generazione documento conclusione delega */ - public void generaDocumentoConcludiDelegaGeologo(long dettPraticaId, Delega delega, - ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public void generaDocumentoConcludiDelegaGeologo(long dettPraticaId, Delega delega, ServiceContext serviceContext) + throws PortalException, SystemException { try { if (delega.getTipologia().equalsIgnoreCase(DelegheUtil.TIPO_GEOLOGO)) { String tipoDocumento = "D_GEO_"; long userId = serviceContext.getUserId(); - DLFolder folderTemplate = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay() .getCompanyGroupId(), 0L, "Template"); - FileEntry fileEntryIdTemplate = DLAppLocalServiceUtil.getFileEntry(serviceContext - .getThemeDisplay().getCompanyGroupId(), folderTemplate.getFolderId(), - "Modello Asseverazione"); + FileEntry fileEntryIdTemplate = DLAppLocalServiceUtil.getFileEntry(serviceContext.getThemeDisplay() + .getCompanyGroupId(), folderTemplate.getFolderId(), "Modello Asseverazione"); DLFolder folderAllegati = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay() .getCompanyGroupId(), 0L, "Allegati"); - String fileName = StringUtils.leftPad(String.valueOf(delega.getIntPraticaId()), 10, '0') - + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento - : StringPool.BLANK) + StringPool.UNDERLINE + System.currentTimeMillis() - + ".pdf"; - + + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento : StringPool.BLANK) + + StringPool.UNDERLINE + System.currentTimeMillis() + ".pdf"; Map parameters = new HashMap(); - ReportDto reportDto = new ReportDto(); reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate.getFileEntryId() }); reportDto.setFolderId(folderAllegati.getFolderId()); reportDto.setFileName(fileName); - reportDto.setHeader(""); + reportDto.setHeader(StringPool.BLANK); reportDto.setHeaderHeight(1); - reportDto.setFooter(""); + reportDto.setFooter(StringPool.BLANK); reportDto.setFooterHeight(40); - reportDto.setParameters(parameters); reportDto.setShowNumberOfPage(true); reportDto.setType(ReportConstants.ReportType.VELOCITY_TO_PDF.toString()); - String resourcePath = getClass().getName().replaceAll("\\w+\\.", "../") .replace(getClass().getSimpleName(), "resource/asseverazioni"); reportDto.setPortalURL(getClass().getResource(resourcePath).getPath()); - - String relazioni = ""; + String relazioni = StringPool.BLANK; Map dichiarazioniMap = delega.getDichiarazioniMap(); if (dichiarazioniMap.containsKey("coniugio") && ((Boolean) dichiarazioniMap.get("coniugio")) && dichiarazioniMap.containsKey("relazioni")) { relazioni = (String) dichiarazioniMap.get("relazioni"); } - User user = userLocalService.getUser(userId); - parameters.put("html", AsseverazioneLocalServiceUtil.testoAsseverazione( - TipoSoggettoUtil.GEOLOGO, user, dettPraticaId, relazioni)); + parameters.put("html", AsseverazioneLocalServiceUtil.testoAsseverazione(TipoSoggettoUtil.GEOLOGO, user, + dettPraticaId, relazioni)); parameters.put("modello", "AS-GEO"); - - ReportResultDto result = ReportUtil.generateReport(delega.getCompanyId(), userId, reportDto, - null); + ReportResultDto result = ReportUtil.generateReport(delega.getCompanyId(), userId, reportDto, null); long fileEntryId = result.getFileEntryIds()[0]; - - // DLFileEntry fileEntry = - // DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId); - // byte[] fileBytes = - // FileUtil.getBytes(fileEntry.getContentStream()); - // File file = new File(PropsUtil.get("user.home") + - // "/asseverazione.pdf"); - // FileUtils.writeByteArrayToFile(file, fileBytes); - - String sha256 = ""; + String sha256 = StringPool.BLANK; try { - sha256 = DigestUtils.sha256Hex(dlAppLocalService.getFileEntry(fileEntryId) - .getContentStream()); + sha256 = DigestUtils.sha256Hex(dlAppLocalService.getFileEntry(fileEntryId).getContentStream()); } catch (Exception e) { } - FirmeBean firmeBean = new FirmeBean(); String jsonFirmatari = FirmeUtil.addFirma(firmeBean, user.getScreenName()); - docPraticaLocalService.addDocPraticaAnnullamento(userId, Delega.class.getName(), - delega.getDelegaId(), delega.getIntPraticaId(), fileEntryId, fileName, tipoDocumento, - sha256, jsonFirmatari, serviceContext); - _log.info("Documento conclusione delega correttamente generato per delegaid = " - + delega.getDelegaId()); - + docPraticaLocalService.addDocPraticaAnnullamento(userId, Delega.class.getName(), delega.getDelegaId(), + delega.getIntPraticaId(), fileEntryId, fileName, tipoDocumento, sha256, jsonFirmatari, + serviceContext); + _log.info("Documento conclusione delega correttamente generato per delegaid = " + delega.getDelegaId()); } else { _log.info("Impossibile generare documento delega - soggetto non trovato"); } - } catch (Exception e) { _log.error("Errore in generaDocumentoConcludiDelegaGeologo", e); throw new PortalException(e); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaServiceImpl.java index a4721c80..e8278e73 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -28,13 +28,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the delega remote 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.liferay.portos.bo.service.DelegaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DelegaService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -42,156 +41,208 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.DelegaServiceUtil */ public class DelegaServiceImpl extends DelegaServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.DelegaServiceUtil} to access the delega remote service. - */ - public Delega addDelega(long userId, long intPraticaId, long dettPraticaId, String tipologia, String codiceFiscale, - ServiceContext serviceContext) throws PortalException, SystemException { - if (!DelegheUtil.hasCreazioneDelega(userId, intPraticaId)) { - throw new SystemException("TODO aggiungere eccezione"); - } - return delegaLocalService.addDelega(userId, intPraticaId, dettPraticaId, tipologia, codiceFiscale, serviceContext); - } - - - public Delega annullaDelega(long delegaId) throws PortalException, SystemException { - return annullaDelega(delegaLocalService.getDelega(delegaId)); - } - - public Delega annullaDelega(Delega delega) throws PortalException, SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId()); - if (!DelegheUtil.hasAnnullaDelega(getUserId(), intPratica.getIntPraticaId())) { - throw new SystemException("TODO aggiungere eccezione"); - } - return delegaLocalService.cambioStato(delega.getDelegaId(), DelegheUtil.STATO_ANNULLATA); - } - - public Delega deleteDelega(Delega delega) throws PortalException, SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId()); - if (!DelegheUtil.hasDeleteDelega(getUserId(), intPratica.getIntPraticaId())) { - throw new SystemException("TODO aggiungere eccezione"); - } - return delegaLocalService.deleteDelega(delega); - } - - public Delega deleteDelega(long delegaId) throws PortalException, SystemException { - return deleteDelega(delegaLocalService.getDelega(delegaId)); - } - - public Delega cambioStato(long userId, long delegaId, String esito) throws PortalException, SystemException { - if (!DelegheUtil.hasCambioStatoDelega(userId, delegaId)) { - throw new SystemException("TODO aggiungere eccezione"); - } - return delegaLocalService.cambioStato(delegaId, esito); - } - - public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - return delegaLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); - } - - public List findByDettPratica(long dettPraticaId, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - return delegaLocalService.findByDettPratica(dettPraticaId, start, end, orderByComparator); - } - - public int countByIntPratica(long intPraticaId) throws SystemException { - return delegaLocalService.countByIntPratica(intPraticaId); - } - - public int countByDettPratica(long dettPraticaId) throws SystemException { - return delegaLocalService.countByDettPratica(dettPraticaId); - } - - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService - .findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, end, orderByComparator); - } - - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { - return delegaLocalService.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); - } - - public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByCodiceFiscale_InEsito(codiceFiscale, esiti, start, end, orderByComparator); - } - - public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { - return delegaLocalService.countByCodiceFiscale_InEsito(codiceFiscale, esiti); - } - - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti, - int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, start, end, - orderByComparator); - } - - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) - throws SystemException { - return delegaLocalService.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti); - } - - public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByIntPratica_InEsito(intPraticaId, esiti, start, end, orderByComparator); - } - - public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { - return delegaLocalService.countByIntPratica_InEsito(intPraticaId, esiti); - } - - public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); - } - - public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { - return delegaLocalService.countByDettPratica_InEsito(dettPraticaId, esiti); - } - - public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti, - int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, start, end, - orderByComparator); - } - - public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) - throws SystemException { - return delegaLocalService.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti); - } - - public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, - String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, tipologia, - esiti, start, end, orderByComparator); - } - - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, - String tipologia, String[] esiti) throws SystemException { - return delegaLocalService.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, tipologia, - esiti); - } - - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti, - int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, end, - orderByComparator); - } - - public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti, - int start, int end, OrderByComparator orderByComparator) throws SystemException { - return delegaLocalService.findByIntPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, end, - orderByComparator); - } - - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) - throws SystemException { - return delegaLocalService.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DelegaServiceUtil} to access the delega remote service. + */ + @Override + public Delega addDelega(long userId, long intPraticaId, long dettPraticaId, String tipologia, String codiceFiscale, + ServiceContext serviceContext) throws PortalException, SystemException { + if (!DelegheUtil.hasCreazioneDelega(userId, intPraticaId)) { + throw new SystemException("TODO aggiungere eccezione"); + } + return delegaLocalService.addDelega(userId, intPraticaId, dettPraticaId, tipologia, codiceFiscale, + serviceContext); + } + + @Override + public Delega annullaDelega(long delegaId) throws PortalException, SystemException { + + return annullaDelega(delegaLocalService.getDelega(delegaId)); + } + + @Override + public Delega annullaDelega(Delega delega) throws PortalException, SystemException { + + IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId()); + if (!DelegheUtil.hasAnnullaDelega(getUserId(), intPratica.getIntPraticaId())) { + throw new SystemException("TODO aggiungere eccezione"); + } + return delegaLocalService.cambioStato(delega.getDelegaId(), DelegheUtil.STATO_ANNULLATA); + } + + @Override + public Delega deleteDelega(Delega delega) throws PortalException, SystemException { + + IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId()); + if (!DelegheUtil.hasDeleteDelega(getUserId(), intPratica.getIntPraticaId())) { + throw new SystemException("TODO aggiungere eccezione"); + } + return delegaLocalService.deleteDelega(delega); + } + + @Override + public Delega deleteDelega(long delegaId) throws PortalException, SystemException { + + return deleteDelega(delegaLocalService.getDelega(delegaId)); + } + + @Override + public Delega cambioStato(long userId, long delegaId, String esito) throws PortalException, SystemException { + + if (!DelegheUtil.hasCambioStatoDelega(userId, delegaId)) { + throw new SystemException("TODO aggiungere eccezione"); + } + return delegaLocalService.cambioStato(delegaId, esito); + } + + @Override + public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return delegaLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); + } + + @Override + public List findByDettPratica(long dettPraticaId, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return delegaLocalService.findByDettPratica(dettPraticaId, start, end, orderByComparator); + } + + @Override + public int countByIntPratica(long intPraticaId) throws SystemException { + + return delegaLocalService.countByIntPratica(intPraticaId); + } + + @Override + public int countByDettPratica(long dettPraticaId) throws SystemException { + + return delegaLocalService.countByDettPratica(dettPraticaId); + } + + @Override + public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, end, + orderByComparator); + } + + @Override + public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { + + return delegaLocalService.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); + } + + @Override + public List findByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByCodiceFiscale_InEsito(codiceFiscale, esiti, start, end, orderByComparator); + } + + @Override + public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { + + return delegaLocalService.countByCodiceFiscale_InEsito(codiceFiscale, esiti); + } + + @Override + public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, start, + end, orderByComparator); + } + + @Override + public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) + throws SystemException { + + return delegaLocalService.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti); + } + + @Override + public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByIntPratica_InEsito(intPraticaId, esiti, start, end, orderByComparator); + } + + @Override + public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { + + return delegaLocalService.countByIntPratica_InEsito(intPraticaId, esiti); + } + + @Override + public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); + } + + @Override + public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { + + return delegaLocalService.countByDettPratica_InEsito(dettPraticaId, esiti); + } + + @Override + public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, start, end, + orderByComparator); + } + + @Override + public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) + throws SystemException { + + return delegaLocalService.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti); + } + + @Override + public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, + String tipologia, String[] esiti, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return delegaLocalService.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti, start, end, orderByComparator); + } + + @Override + public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, + String tipologia, String[] esiti) throws SystemException { + + return delegaLocalService.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, + tipologia, esiti); + } + + @Override + public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, end, + orderByComparator); + } + + @Override + public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return delegaLocalService.findByIntPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, end, + orderByComparator); + } + + @Override + public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) + throws SystemException { + + return delegaLocalService.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java index e8a3b87d..812ea3f8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java @@ -1,18 +1,17 @@ /** * 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 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. + * 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.bo.service.impl; -import it.mwg.sismica.bo.util.HttpServiceUtil; import it.tref.liferay.portos.bo.NoSuchDettPraticaException; import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.ControlloPratica; @@ -23,6 +22,7 @@ import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Tempistica; +import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.DettPraticaLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; @@ -32,16 +32,20 @@ import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.PagamentiUtil; -import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.TempisticaConstants; import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.io.IOException; +import java.io.Serializable; import java.math.BigDecimal; +import java.sql.Types; +import java.text.NumberFormat; import java.util.ArrayList; import java.util.Date; +import java.util.HashMap; import java.util.List; +import java.util.Map; import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.DynamicQuery; @@ -51,9 +55,10 @@ 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.json.JSONArray; +import com.liferay.portal.kernel.json.JSONDeserializer; import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONObject; +import com.liferay.portal.kernel.json.JSONSerializer; import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; @@ -81,14 +86,12 @@ import com.liferay.portlet.asset.model.AssetLinkConstants; * The implementation of the dett pratica 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.liferay.portos.bo.service.DettPraticaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DettPraticaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -97,357 +100,228 @@ import com.liferay.portlet.asset.model.AssetLinkConstants; */ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil} to - * access the dett pratica local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil} to access the dett pratica local service. */ - Log _log = LogFactoryUtil.getLog(DettPraticaLocalServiceImpl.class); + private static final Log _log = LogFactoryUtil.getLog(DettPraticaLocalServiceImpl.class); - private DettPratica initDettPratica(ServiceContext serviceContext) throws PortalException, - SystemException { + private DettPratica initDettPratica(ServiceContext serviceContext) throws PortalException, SystemException { User user = userLocalService.getUser(serviceContext.getUserId()); - Date now = new Date(); - - DettPratica dettPratica = dettPraticaLocalService.createDettPratica(counterLocalService - .increment(DettPratica.class.getName())); - + DettPratica dettPratica = createDettPratica(counterLocalService.increment(DettPratica.class.getName())); dettPratica.setCompanyId(serviceContext.getCompanyId()); dettPratica.setGroupId(serviceContext.getScopeGroupId()); dettPratica.setUserId(serviceContext.getUserId()); - // dettPratica.setUserName(user.getFullName()); dettPratica.setUserName(user.getScreenName()); dettPratica.setCreateDate(serviceContext.getCreateDate(now)); dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - // setto parametri di default - - dettPratica.setIntegrazione(0); + dettPratica.setIntegrazione(0L); dettPratica.setProtocollo(null); dettPratica.setTipoIntegrazione(StringPool.BLANK); dettPratica.setCompleta(false); dettPratica.setGestita(false); - - dettPratica.setOldDettPraticaId(0); dettPratica.setOperaConforme(false); - - dettPratica.setInizioLavoriContestualeOpera(false); - dettPratica.setDataInizioLavoriOpera(null); - dettPratica.setDataInizioEsecuzioneOpera(null); - dettPratica.setDataFineEsecuzioneOpera(null); dettPratica.setNote(StringPool.BLANK); dettPratica.setNoteUfficio(StringPool.BLANK); // in avvio in draft -> pratiche sempre controllate nella loro vita dettPratica.setStatus(WorkflowConstants.STATUS_DRAFT); - - // FIXME da rimuovere perché sostituiti con le deleghe? - // dettPratica.setCodiceFiscaleDelegato(codiceFiscaleDelegato); - // dettPratica.setCodiceRuoloDelegato(codiceRuoloDelegato); - // FIXME da rimuovere - // dettPratica.setVariataDa(variataDa); - // dettPratica.setVarianteNumero(varianteNumero); - // dettPratica.setVarianteSostanziale(varianteSostanziale); - - // FIXME capire a cosa servono e poi rimuovere - // dettPratica.setWorkflowForzato(workflowForzato); - // dettPratica.setSoggettoSostituitoId(soggettoSostituitoId); - // dettPratica.setStatusTask(statusTask); - return dettPratica; } + @Override @Indexable(type = IndexableType.REINDEX) public DettPratica addDettPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) throws SystemException, PortalException { DettPratica dettPratica = initDettPratica(serviceContext); - IntPratica intPratica = intPraticaLocalService.addIntPratica(territorioId, tipoProcedura, - serviceContext); - + IntPratica intPratica = intPraticaLocalService.addIntPratica(territorioId, tipoProcedura, serviceContext); dettPratica.setGroupId(intPratica.getGroupId()); dettPratica.setIntPraticaId(intPratica.getIntPraticaId()); dettPratica.setNormArt3com4(true); dettPratica.setNormArt3com3(true); - dettPratica = dettPraticaPersistence.update(dettPratica); return dettPratica; } + @Override @Indexable(type = IndexableType.REINDEX) public DettPratica addDettPraticaToIntPratica(long intPraticaId, ServiceContext serviceContext) throws PortalException, SystemException { IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); - DettPratica dettPratica = initDettPratica(serviceContext); dettPratica.setGroupId(intPratica.getGroupId()); dettPratica.setIntPraticaId(intPraticaId); - dettPratica = dettPraticaPersistence.update(dettPratica); return dettPratica; } + @Override @Indexable(type = IndexableType.REINDEX) public DettPratica addDettPraticaClonedToIntPratica(long intPraticaId, long dettPraticaToCloneId, String tipoIntegrazione, ServiceContext serviceContext) throws PortalException, SystemException { + _log.info("Cloning dettPratica " + dettPraticaToCloneId); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); - DettPratica dettPratica = initDettPratica(serviceContext); dettPratica = dettPraticaPersistence.update(dettPratica); DettPratica dettPraticaToClone = dettPraticaPersistence.findByPrimaryKey(dettPraticaToCloneId); - dettPratica = copyDettPratica(dettPratica, dettPraticaToClone, tipoIntegrazione, serviceContext); dettPratica.setIntPraticaId(intPratica.getGroupId()); dettPratica.setIntPraticaId(intPraticaId); - dettPratica = dettPraticaPersistence.update(dettPratica); return dettPratica; } - private DettPratica copyDettPratica(DettPratica copy, DettPratica dettPraticaToClone, - String tipoIntegrazione, ServiceContext serviceContext) throws PortalException, SystemException { - - copy = updateDettPraticaDatiDomanda(copy.getUserId(), copy.getDettPraticaId(), - copy.getIntPraticaId(), tipoIntegrazione, dettPraticaToClone.getDestinazione(), - dettPraticaToClone.getAg(), dettPraticaToClone.getDescLongIntervento(), - dettPraticaToClone.getVia(), dettPraticaToClone.getLocalita(), - dettPraticaToClone.getEstremiCatastali(), dettPraticaToClone.getEstremiPratCom(), - dettPraticaToClone.getVarianteSostanziale(), dettPraticaToClone.getCollaudoStatico(), - dettPraticaToClone.getCodiceFiscaleDelegatoCommittente(), - dettPraticaToClone.getCodiceFiscaleDelegatoFineLavori(), - dettPraticaToClone.getCodiceFiscaleDelegatoCollaudo(), - dettPraticaToClone.getLavoriInEconomiaCommittente(), dettPraticaToClone.getMetratura(), - dettPraticaToClone.getLavoriPubblici(), 0l, - dettPraticaToClone.getLavoriPubbliciPercentuale(), dettPraticaToClone.getNumeroCivico(), - dettPraticaToClone.getDcParticelle(), dettPraticaToClone.getDcFoglio(), - dettPraticaToClone.getDcAllegato(), dettPraticaToClone.getDePiani(), - dettPraticaToClone.getDeAltezza(), dettPraticaToClone.getDeInterrati(), - dettPraticaToClone.getDeSuperficie(), dettPraticaToClone.getDeCostruzione(), - dettPraticaToClone.getDeRistrutturazione(), dettPraticaToClone.getDeUso(), - dettPraticaToClone.getDePubblica(), dettPraticaToClone.getDePrivata(), - dettPraticaToClone.getDeUtilizzazione(), dettPraticaToClone.getDePosizioneEdificio(), - dettPraticaToClone.getDeInfStradalePonte(), dettPraticaToClone.getDeInfStradaleStrada(), - dettPraticaToClone.getDeInfStradaleAltro(), dettPraticaToClone.getDeInfIdraulicaLong(), - dettPraticaToClone.getDeInfIdraulicaTrasv(), dettPraticaToClone.getDeInfIdraulicaAltro(), - dettPraticaToClone.getDeInfOperaAccStradale(), - dettPraticaToClone.getDeInfOperaAccIdraulica(), dettPraticaToClone.getDeInfOperaAccAltro(), - dettPraticaToClone.getDeInfAltraInfrastruttura(), dettPraticaToClone.getDeInfAltro(), - dettPraticaToClone.getDeInfAltroDesc(), dettPraticaToClone.getDccFondazioni(), - dettPraticaToClone.getDccStruttureEleMuraturePietrame(), - dettPraticaToClone.getDccStruttureEleMuratureLaterizio(), - dettPraticaToClone.getDccStruttureEleMuratureMisto(), - dettPraticaToClone.getDccStruttureEleMuratureStoriche(), - dettPraticaToClone.getDccStruttureEleAcciaio(), dettPraticaToClone.getDccStruttureEleCA(), - dettPraticaToClone.getDccStruttureEleLegno(), dettPraticaToClone.getDccStruttureEleMistoCA(), - dettPraticaToClone.getDccStruttureEleMistoAcciaio(), - dettPraticaToClone.getDccStruttureEleMistoMuratura(), - dettPraticaToClone.getDccStruttureEleMistoLegno(), - dettPraticaToClone.getDccStruttureElePrefabbricato(), - dettPraticaToClone.getDccStruttureEleAltro(), - dettPraticaToClone.getDccStruttureEleAltroDescrizione(), - dettPraticaToClone.getDccOrizzontamentiCAAcciaio(), - dettPraticaToClone.getDccOrizzontamentiLegno(), - dettPraticaToClone.getDccOrizzontamentiLegnoCA(), - dettPraticaToClone.getDccOrizzontamentiLamieraGrecata(), - dettPraticaToClone.getDccOrizzontamentiVolte(), - dettPraticaToClone.getDccOrizzontamentiAltro(), - dettPraticaToClone.getDccOrizzontamentiAltroDescrizione(), - dettPraticaToClone.getDccCopertura(), dettPraticaToClone.getDccCoperturaCAAcciaio(), - dettPraticaToClone.getDccCoperturaLegno(), dettPraticaToClone.getDccCoperturaLegnoCA(), - dettPraticaToClone.getDccCoperturaLamieraGrecata(), - dettPraticaToClone.getDccCoperturaPannelli(), - dettPraticaToClone.getDccCoperturaPVCTelonati(), dettPraticaToClone.getDccCoperturaLeggere(), - dettPraticaToClone.getDccCoperturaAltro(), - dettPraticaToClone.getDccCoperturaAltroDesrizione(), - dettPraticaToClone.getDccElemNonStrutLaterizio(), - dettPraticaToClone.getDccElemNonStrutCartongesso(), - dettPraticaToClone.getDccElemNonStrutCalcestruzzo(), - dettPraticaToClone.getDccElemNonStrutLegno(), dettPraticaToClone.getDccElemNonStrutAltro(), - dettPraticaToClone.getDccElemNonStrutAltroDescrizione(), - dettPraticaToClone.getDccOpereDiRinforzoInsCatene(), - dettPraticaToClone.getDccOpereDiRinforzoInsCordoli(), - dettPraticaToClone.getDccOpereDiRinforzoIniArmate(), - dettPraticaToClone.getDccOpereDiRinforzoPlaccaggi(), - dettPraticaToClone.getDccOpereDiRinforzoIrrSolai(), - dettPraticaToClone.getDccOpereDiRinforzoRinforziFRP(), - dettPraticaToClone.getDccOpereDiRinforzoTelaiECerchiature(), - dettPraticaToClone.getDccOpereDiRinforzoInsRompitratta(), - dettPraticaToClone.getDccOpereDiRinforzoAltro(), - dettPraticaToClone.getDccOpereDiRinforzoAltroDescrizione(), - dettPraticaToClone.getLocalizzazioneGeografica(), dettPraticaToClone.getTcNuovaCostruzione(), - dettPraticaToClone.getTcAdeguamentoSismico(), dettPraticaToClone.getTcMiglioramentoSismico(), - dettPraticaToClone.getTcRiparazioneInterventoLocale(), dettPraticaToClone.getTcInCA(), - dettPraticaToClone.getTcInOpera(), dettPraticaToClone.getTcPrefabbricato(), - dettPraticaToClone.getTcInAcciaio(), dettPraticaToClone.getTcMista(), - dettPraticaToClone.getTcInMuratura(), dettPraticaToClone.getTcInMuraturaOrdinaria(), - dettPraticaToClone.getTcInMuraturaArmata(), dettPraticaToClone.getTcInMuraturaMista(), - dettPraticaToClone.getTcInLegno(), dettPraticaToClone.getTcAltro(), - dettPraticaToClone.getTcAltroDescrizione(), dettPraticaToClone.getTcConDispositivi(), - dettPraticaToClone.getNormLavoriInProprio(), dettPraticaToClone.getNormEsenteBollo(), - dettPraticaToClone.getNormEsenteSpese(), dettPraticaToClone.getNormDpr01Dep(), - dettPraticaToClone.getNormDpr02Dep(), dettPraticaToClone.getNormDpr01Aut(), - dettPraticaToClone.getNormDpr02Aut(), dettPraticaToClone.getNormDm01(), - dettPraticaToClone.getNormDm02(), dettPraticaToClone.getNormDm03(), - dettPraticaToClone.getNormDm2018(), dettPraticaToClone.getNormDprg01(), - dettPraticaToClone.getNormDprg02(), dettPraticaToClone.getNormAnr(), - dettPraticaToClone.getNormArt3com3(), dettPraticaToClone.getNormArt3com4(), - dettPraticaToClone.getNormOrd01(), dettPraticaToClone.getNormDm04(), - dettPraticaToClone.getNormDm05(), dettPraticaToClone.getNormCI01(), - dettPraticaToClone.getNormLTC01(), dettPraticaToClone.getSuap(), - dettPraticaToClone.getNormSismaBonus(), dettPraticaToClone.getClRischioPreInt(), - dettPraticaToClone.getClRischioPostInt(), dettPraticaToClone.getIntervFinPub(), - dettPraticaToClone.getIntervFinPubDesc(), serviceContext, true, - dettPraticaToClone.getPaesaggioLocale(), dettPraticaToClone.getLivelloDiTutela(), - dettPraticaToClone.getVincoli(), dettPraticaToClone.getDestinazioneAltroIntervento(), - dettPraticaToClone.getTcCostruzioniEsistenti(), dettPraticaToClone.getTcManutOrdStraord(), - dettPraticaToClone.getTcAltriInterventi(), dettPraticaToClone.getTcAltriInterventiDesc(), - dettPraticaToClone.getNoCollaudo(), dettPraticaToClone.getTcNuovaCostruzionePertinenza(), - dettPraticaToClone.getTcInterventoOpereEscavazione(), dettPraticaToClone.getTcViarch(), - dettPraticaToClone.getTcOperaA25(), dettPraticaToClone.getSanatoriaEdilizia47(), - dettPraticaToClone.getSanatoriaEdilizia724(), dettPraticaToClone.getSanatoriaEdilizia326(), - dettPraticaToClone.getNormLavoriNoDirettore()); + private DettPratica copyDettPratica(DettPratica copy, DettPratica source, String tipoIntegrazione, + ServiceContext serviceContext) throws PortalException, SystemException { + copy = updateDettPraticaDatiDomanda(copy.getUserId(), copy.getDettPraticaId(), copy.getIntPraticaId(), + tipoIntegrazione, source.getDestinazione(), source.getAg(), source.getDescLongIntervento(), + source.getVia(), source.getLocalita(), source.getEstremiCatastali(), source.getEstremiPratCom(), + source.getCollaudoStatico(), source.getCodiceFiscaleDelegatoCommittente(), + source.getCodiceFiscaleDelegatoFineLavori(), source.getCodiceFiscaleDelegatoCollaudo(), + source.getLavoriPubblici(), 0L, source.getLavoriPubbliciPercentuale(), source.getDcParticelle(), + source.getDcFoglio(), source.getDcAllegato(), source.getDePiani(), source.getDeAltezza(), + source.getDeInterrati(), source.getDeSuperficie(), source.getDeCostruzione(), + source.getDeRistrutturazione(), source.getDeUso(), source.getDePubblica(), source.getDePrivata(), + source.getDeUtilizzazione(), source.getDePosizioneEdificio(), source.getDeInfStradalePonte(), + source.getDeInfStradaleStrada(), source.getDeInfStradaleAltro(), source.getDeInfIdraulicaLong(), + source.getDeInfIdraulicaTrasv(), source.getDeInfIdraulicaAltro(), source.getDeInfOperaAccStradale(), + source.getDeInfOperaAccIdraulica(), source.getDeInfOperaAccAltro(), + source.getDeInfAltraInfrastruttura(), source.getDeInfAltro(), source.getDeInfAltroDesc(), + source.getDccFondazioni(), source.getDccStruttureEleMuraturePietrame(), + source.getDccStruttureEleMuratureLaterizio(), source.getDccStruttureEleMuratureMisto(), + source.getDccStruttureEleMuratureStoriche(), source.getDccStruttureEleAcciaio(), + source.getDccStruttureEleCA(), source.getDccStruttureEleLegno(), source.getDccStruttureEleMistoCA(), + source.getDccStruttureEleMistoAcciaio(), source.getDccStruttureEleMistoMuratura(), + source.getDccStruttureEleMistoLegno(), source.getDccStruttureElePrefabbricato(), + source.getDccStruttureEleAltro(), source.getDccStruttureEleAltroDescrizione(), + source.getDccOrizzontamentiCAAcciaio(), source.getDccOrizzontamentiLegno(), + source.getDccOrizzontamentiLegnoCA(), source.getDccOrizzontamentiLamieraGrecata(), + source.getDccOrizzontamentiVolte(), source.getDccOrizzontamentiAltro(), + source.getDccOrizzontamentiAltroDescrizione(), source.getDccCopertura(), + source.getDccCoperturaCAAcciaio(), source.getDccCoperturaLegno(), source.getDccCoperturaLegnoCA(), + source.getDccCoperturaLamieraGrecata(), source.getDccCoperturaPannelli(), + source.getDccCoperturaPVCTelonati(), source.getDccCoperturaLeggere(), source.getDccCoperturaAltro(), + source.getDccCoperturaAltroDesrizione(), source.getDccElemNonStrutLaterizio(), + source.getDccElemNonStrutCartongesso(), source.getDccElemNonStrutCalcestruzzo(), + source.getDccElemNonStrutLegno(), source.getDccElemNonStrutAltro(), + source.getDccElemNonStrutAltroDescrizione(), source.getDccOpereDiRinforzoInsCatene(), + source.getDccOpereDiRinforzoInsCordoli(), source.getDccOpereDiRinforzoIniArmate(), + source.getDccOpereDiRinforzoPlaccaggi(), source.getDccOpereDiRinforzoIrrSolai(), + source.getDccOpereDiRinforzoRinforziFRP(), source.getDccOpereDiRinforzoTelaiECerchiature(), + source.getDccOpereDiRinforzoInsRompitratta(), source.getDccOpereDiRinforzoAltro(), + source.getDccOpereDiRinforzoAltroDescrizione(), source.getLocalizzazioneGeografica(), + source.getTcNuovaCostruzione(), source.getTcAdeguamentoSismico(), source.getTcMiglioramentoSismico(), + source.getTcRiparazioneInterventoLocale(), source.getTcInCA(), source.getTcInOpera(), + source.getTcPrefabbricato(), source.getTcInAcciaio(), source.getTcMista(), source.getTcInMuratura(), + source.getTcInMuraturaOrdinaria(), source.getTcInMuraturaArmata(), source.getTcInMuraturaMista(), + source.getTcInLegno(), source.getTcAltro(), source.getTcAltroDescrizione(), + source.getTcConDispositivi(), source.getNormLavoriInProprio(), source.getNormEsenteBollo(), + source.getNormEsenteSpese(), source.getNormDpr01Dep(), source.getNormDpr02Dep(), + source.getNormDpr01Aut(), source.getNormDpr02Aut(), source.getNormDm2018(), source.getNormAnr(), + source.getNormArt3com3(), source.getNormArt3com4(), source.getSuap(), source.getNormSismaBonus(), + source.getClRischioPreInt(), source.getClRischioPostInt(), source.getIntervFinPub(), + source.getIntervFinPubDesc(), serviceContext, true, source.getPaesaggioLocale(), + source.getLivelloDiTutela(), source.getVincoli(), source.getDestinazioneAltroIntervento(), + source.getTcCostruzioniEsistenti(), source.getTcManutOrdStraord(), source.getTcAltriInterventi(), + source.getTcAltriInterventiDesc(), source.getNoCollaudo(), source.getTcNuovaCostruzionePertinenza(), + source.getTcInterventoOpereEscavazione(), source.getTcViarch(), source.getTcOperaA25(), + source.getSanatoriaEdilizia47(), source.getSanatoriaEdilizia724(), source.getSanatoriaEdilizia326(), + source.getNormLavoriNoDirettore(), source.getInterventoVoceP7()); copy = updateDettPraticaGeologo(copy.getUserId(), copy.getDettPraticaId(), copy.getIntPraticaId(), - dettPraticaToClone.getGeoClasseIndagine(), dettPraticaToClone.getGeoCategoriaSottosuolo(), - dettPraticaToClone.getGeoCategoriaTopografica(), dettPraticaToClone.getGeoConsolidamento(), - dettPraticaToClone.getGeoPericolositaGeologica(), - dettPraticaToClone.getGeoRischioGeomorfologicoPai(), - dettPraticaToClone.getGeoPericolositaIdraulicaPai(), - dettPraticaToClone.getGeoRischioIdraulicoPai(), - dettPraticaToClone.getGeoPericolositaSismica(), - dettPraticaToClone.getGeoPericolositaIdraulica(), - dettPraticaToClone.getGeoPericolositaGeomorfica(), - dettPraticaToClone.getGeoFattibilitaGeologica(), - dettPraticaToClone.getGeoFattibilitaSismica(), - dettPraticaToClone.getGeoFattibilitaIdraulica(), dettPraticaToClone.getGeoOperaRilevante(), - dettPraticaToClone.getGeoOpereDiSostegno(), dettPraticaToClone.getGeoOpereInSotterranea(), - dettPraticaToClone.getGeoPresenzaPrescrizioni(), dettPraticaToClone.getGeoNotePrescrizioni(), - dettPraticaToClone.getGeoNoteIndagini(), dettPraticaToClone.getGeoEvidenzeGeomorfiche(), - dettPraticaToClone.getGeoEvidenzeGeologiche(), dettPraticaToClone.getGeoDtRelazione(), - serviceContext, false); - - copy.setCodiceFiscaleDelegatoCommittente(dettPraticaToClone.getCodiceFiscaleDelegatoCommittente()); - copy.setCodiceFiscaleDelegatoFineLavori(dettPraticaToClone.getCodiceFiscaleDelegatoFineLavori()); - copy.setCodiceFiscaleDelegatoCollaudo(dettPraticaToClone.getCodiceFiscaleDelegatoCollaudo()); - - copy.setCodiceFiscalePrincipaleCollaudatore(dettPraticaToClone - .getCodiceFiscalePrincipaleCollaudatore()); - copy.setCodiceFiscalePrincipaleCommittente(dettPraticaToClone.getCodiceFiscalePrincipaleCommittente()); - copy.setCodiceFiscalePrincipaleDirettoreLavori(dettPraticaToClone - .getCodiceFiscalePrincipaleDirettoreLavori()); - copy.setCodiceFiscalePrincipaleDitta(dettPraticaToClone.getCodiceFiscalePrincipaleDitta()); - copy.setCodiceFiscalePrincipaleGeologo(dettPraticaToClone.getCodiceFiscalePrincipaleGeologo()); - copy.setCodiceFiscalePrincipaleProgettista(dettPraticaToClone.getCodiceFiscalePrincipaleProgettista()); - + source.getGeoClasseIndagine(), source.getGeoCategoriaSottosuolo(), source.getGeoCategoriaTopografica(), + source.getGeoConsolidamento(), source.getGeoPericolositaGeologica(), + source.getGeoRischioGeomorfologicoPai(), source.getGeoPericolositaIdraulicaPai(), + source.getGeoRischioIdraulicoPai(), source.getGeoPericolositaSismica(), + source.getGeoPericolositaIdraulica(), source.getGeoPericolositaGeomorfica(), + source.getGeoFattibilitaGeologica(), source.getGeoFattibilitaSismica(), + source.getGeoFattibilitaIdraulica(), source.getGeoOperaRilevante(), source.getGeoOpereDiSostegno(), + source.getGeoOpereInSotterranea(), source.getGeoPresenzaPrescrizioni(), + source.getGeoNotePrescrizioni(), source.getGeoNoteIndagini(), source.getGeoEvidenzeGeomorfiche(), + source.getGeoEvidenzeGeologiche(), source.getGeoDtRelazione(), serviceContext, false); + copy.setCodiceFiscaleDelegatoCommittente(source.getCodiceFiscaleDelegatoCommittente()); + copy.setCodiceFiscaleDelegatoFineLavori(source.getCodiceFiscaleDelegatoFineLavori()); + copy.setCodiceFiscaleDelegatoCollaudo(source.getCodiceFiscaleDelegatoCollaudo()); + copy.setCodiceFiscalePrincipaleCollaudatore(source.getCodiceFiscalePrincipaleCollaudatore()); + copy.setCodiceFiscalePrincipaleCommittente(source.getCodiceFiscalePrincipaleCommittente()); + copy.setCodiceFiscalePrincipaleDirettoreLavori(source.getCodiceFiscalePrincipaleDirettoreLavori()); + copy.setCodiceFiscalePrincipaleDitta(source.getCodiceFiscalePrincipaleDitta()); + copy.setCodiceFiscalePrincipaleGeologo(source.getCodiceFiscalePrincipaleGeologo()); + copy.setCodiceFiscalePrincipaleProgettista(source.getCodiceFiscalePrincipaleProgettista()); return copy; } - public DettPratica cloneDettagliSoggetti(long dettPraticaId, long dettPraticaToCloneId) - throws NoSuchDettPraticaException, SystemException { + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica cloneDettagliSoggetti(long dettPraticaId, long sourceId) throws NoSuchDettPraticaException, + SystemException { DettPratica copy = dettPraticaPersistence.findByPrimaryKey(dettPraticaId); - DettPratica dettPraticaToClone = dettPraticaPersistence.findByPrimaryKey(dettPraticaToCloneId); - - copy.setCodiceFiscaleDelegatoCommittente(dettPraticaToClone.getCodiceFiscaleDelegatoCommittente()); - copy.setCodiceFiscaleDelegatoFineLavori(dettPraticaToClone.getCodiceFiscaleDelegatoFineLavori()); - copy.setCodiceFiscaleDelegatoCollaudo(dettPraticaToClone.getCodiceFiscaleDelegatoCollaudo()); - - copy.setCodiceFiscalePrincipaleCollaudatore(dettPraticaToClone - .getCodiceFiscalePrincipaleCollaudatore()); - copy.setCodiceFiscalePrincipaleCommittente(dettPraticaToClone.getCodiceFiscalePrincipaleCommittente()); - copy.setCodiceFiscalePrincipaleDirettoreLavori(dettPraticaToClone - .getCodiceFiscalePrincipaleDirettoreLavori()); - copy.setCodiceFiscalePrincipaleDitta(dettPraticaToClone.getCodiceFiscalePrincipaleDitta()); - copy.setCodiceFiscalePrincipaleGeologo(dettPraticaToClone.getCodiceFiscalePrincipaleGeologo()); - copy.setCodiceFiscalePrincipaleProgettista(dettPraticaToClone.getCodiceFiscalePrincipaleProgettista()); - + DettPratica source = dettPraticaPersistence.findByPrimaryKey(sourceId); + copy.setCodiceFiscaleDelegatoCommittente(source.getCodiceFiscaleDelegatoCommittente()); + copy.setCodiceFiscaleDelegatoFineLavori(source.getCodiceFiscaleDelegatoFineLavori()); + copy.setCodiceFiscaleDelegatoCollaudo(source.getCodiceFiscaleDelegatoCollaudo()); + copy.setCodiceFiscalePrincipaleCollaudatore(source.getCodiceFiscalePrincipaleCollaudatore()); + copy.setCodiceFiscalePrincipaleCommittente(source.getCodiceFiscalePrincipaleCommittente()); + copy.setCodiceFiscalePrincipaleDirettoreLavori(source.getCodiceFiscalePrincipaleDirettoreLavori()); + copy.setCodiceFiscalePrincipaleDitta(source.getCodiceFiscalePrincipaleDitta()); + copy.setCodiceFiscalePrincipaleGeologo(source.getCodiceFiscalePrincipaleGeologo()); + copy.setCodiceFiscalePrincipaleProgettista(source.getCodiceFiscalePrincipaleProgettista()); copy = dettPraticaPersistence.update(copy); return copy; } - // public void cloneSoggettiByDettPratica(long dettPraticaIdToClone, long - // dettPraticaIdCloned, - // ServiceContext serviceContext) throws NoSuchDettPraticaException, - // SystemException{ - // - // User user = userLocalService.getUser(serviceContext.getUserId()); - // - // DettPratica dettPraticaToClone = - // dettPraticaPersistence.findByPrimaryKey(dettPraticaIdToClone); - // DettPratica dettPraticaCloned = - // dettPraticaPersistence.findByPrimaryKey(dettPraticaIdCloned); - // - // List soggettiToClone = - // soggettoLocalService.findByDettPratica(dettPraticaIdToClone); - // for (Soggetto soggetto : soggettiToClone) { - // soggettoLocalService.cloneSoggetto(user.getUserId(), - // dettPraticaIdToClone, - // dettPraticaToClone.getIntPraticaId(), soggetto, serviceContext); - // } - // - // } - + @Override @Indexable(type = IndexableType.REINDEX) - public DettPratica addDettPraticaForImport(ServiceContext serviceContext) throws SystemException, - PortalException { - - DettPratica dettPratica = dettPraticaLocalService.createDettPratica(counterLocalService - .increment(DettPratica.class.getName())); + public DettPratica addDettPraticaForImport(ServiceContext serviceContext) throws SystemException, PortalException { + DettPratica dettPratica = createDettPratica(counterLocalService.increment(DettPratica.class.getName())); dettPratica.setCompanyId(serviceContext.getCompanyId()); dettPratica.setGroupId(serviceContext.getScopeGroupId()); dettPratica.setUserId(serviceContext.getUserId()); dettPratica.setUserName(StringPool.BLANK); dettPratica.setCreateDate(serviceContext.getCreateDate()); dettPratica.setModifiedDate(serviceContext.getModifiedDate()); - // in avvio in draft -> pratiche sempre controllate nella loro vita dettPratica.setStatus(WorkflowConstants.STATUS_DRAFT); dettPraticaPersistence.update(dettPratica); - return dettPratica; } + @Override public DettPratica getLastEditableByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - // dynamicQuery.add(RestrictionsFactoryUtil.eq("status", - // WorkflowConstants.STATUS_DRAFT)); - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_DRAFT)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(disjunction); - dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); + @SuppressWarnings("unchecked") List ritorno = dynamicQuery(dynamicQuery, 0, 1); - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } + @Override public DettPratica getLastCompletedByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); - // togliere commento dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); + @SuppressWarnings("unchecked") List ritorno = dynamicQuery(dynamicQuery, 0, 1); - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } + @Override public DettPratica getLastCompletedBeforeDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) throws SystemException { @@ -456,35 +330,27 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dynamicQuery.add(RestrictionsFactoryUtil.lt("dettPraticaId", dettPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); - // togliere commento dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); + @SuppressWarnings("unchecked") List ritorno = dynamicQuery(dynamicQuery, 0, 1); - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } - public DettPratica getLastCompletedByIntPraticaAndProtocolloNotEmpty(long intPraticaId) - throws SystemException { + @Override + public DettPratica getLastCompletedByIntPraticaAndProtocolloNotEmpty(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); - - // togliere commento dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); + @SuppressWarnings("unchecked") List ritorno = dynamicQuery(dynamicQuery, 0, 1); - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } + @Override public DettPratica getLastdByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) throws SystemException { @@ -494,76 +360,66 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche)); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); + @SuppressWarnings("unchecked") List ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } + @Override public DettPratica getLastEditabledByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche)); - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_DRAFT)); disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(disjunction); - dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); + @SuppressWarnings("unchecked") List ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } - public List findCompletedByIntPraticaAndTipoPratica(long intPraticaId, - List tipoPratiche) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findCompletedByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) + throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); - dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche)); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); return dynamicQuery(dynamicQuery); } + @Override public int countCompletedByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); - dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche)); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); - int size = dynamicQuery(dynamicQuery).size(); - return size; + return dynamicQuery(dynamicQuery).size(); } - public List findCompletedByIntPraticaAndSuccessivoDettPratica(long intPraticaId, - long dettPraticaId) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findCompletedByIntPraticaAndSuccessivoDettPratica(long intPraticaId, long dettPraticaId) + throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("tipoIntegrazione", - TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); + dynamicQuery.add(RestrictionsFactoryUtil.ne("tipoIntegrazione", TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); dynamicQuery.add(RestrictionsFactoryUtil.ne("tipoIntegrazione", TipoIntegrazioneUtil.ANNULLA)); - dynamicQuery.add(RestrictionsFactoryUtil.gt("dettPraticaId", dettPraticaId)); dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId")); return dynamicQuery(dynamicQuery); @@ -574,29 +430,24 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl public DettPratica deleteDettPratica(DettPratica dettPratica) throws SystemException, PortalException { deleteAsset(dettPratica); - List soggetti = soggettoLocalService.findByDettPratica(dettPratica.getDettPraticaId()); for (Soggetto soggetto : soggetti) { soggettoLocalService.deleteSoggetto(soggetto); } - List allegati = docPraticaLocalService.findByClassPk(dettPratica.getDettPraticaId()); for (DocPratica allegato : allegati) { docPraticaLocalService.deleteDocPratica(allegato); } - - List asseverazioni = asseverazioneLocalService.findByDettPratica( - dettPratica.getDettPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + List asseverazioni = asseverazioneLocalService.findByDettPratica(dettPratica.getDettPraticaId(), + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (Asseverazione asseverazione : asseverazioni) { asseverazioneLocalService.deleteAsseverazione(asseverazione); } - - List deleghe = delegaLocalService.findByDettPratica(dettPratica.getDettPraticaId(), - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + List deleghe = delegaLocalService.findByDettPratica(dettPratica.getDettPraticaId(), QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); for (Delega delega : deleghe) { delegaLocalService.deleteDelega(delega); } - List pagamenti = pagamentoLocalService.findByClassPk(dettPratica.getDettPraticaId()); for (Pagamento pagamento : pagamenti) { pagamentoLocalService.deletePagamento(pagamento); @@ -609,45 +460,37 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl public DettPratica deleteDettPratica(long dettPraticaId) throws PortalException, SystemException { DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(dettPraticaId); - return deleteDettPratica(dettPratica); } - public DettPratica getByOldDettPraticaId(long oldDettPraticaId) throws PortalException, SystemException { - - return dettPraticaPersistence.fetchByOldDettPratica(oldDettPraticaId); - } - + @Override public List search(SearchContext searchContext) throws PortalException, SystemException { Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(DettPratica.class); Hits hits = indexer.search(searchContext); - List list = new ArrayList<>(); for (Document document : hits.getDocs()) { long dettPraticaId = GetterUtil.getLong(document.get(Field.ENTRY_CLASS_PK)); - DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); if (dettPratica != null) { list.add(dettPratica); } else { long companyId = GetterUtil.getLong(document.get(Field.COMPANY_ID)); - indexer.delete(companyId, document.getUID()); } } - return list; } + @Override public int searchCount(SearchContext searchContext) throws PortalException { Indexer indexer = IndexerRegistryUtil.nullSafeGetIndexer(DettPratica.class); Hits hits = indexer.search(searchContext); - return hits.getLength(); } + @Override @Indexable(type = IndexableType.REINDEX) public DettPratica updateDettPraticaSoggetti(long userId, long dettPraticaId, long intPraticaId, String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, @@ -655,106 +498,84 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl SystemException { Date now = new Date(); - - validate(userId, dettPraticaId, intPraticaId, codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, serviceContext); - DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); - dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); dettPratica.setIntPraticaId(intPraticaId); dettPratica.setCodiceFiscaleDelegatoCommittente(codiceFiscaleDelegatoCommittente); dettPratica.setCodiceFiscaleDelegatoFineLavori(codiceFiscaleDelegatoFineLavori); dettPratica.setCodiceFiscaleDelegatoCollaudo(codiceFiscaleDelegatoCollaudo); - dettPratica = dettPraticaPersistence.update(dettPratica); - resourceLocalService.updateModelResources(dettPratica, serviceContext); - updateAsset(dettPratica, serviceContext); return dettPratica; } + @Override @Indexable(type = IndexableType.REINDEX) - public DettPratica updateDettPratica(long userId, long dettPraticaId, long intPraticaId, - long integrazione, String protocollo, String tipoIntegrazione, boolean completa, boolean gestita, - String codicePagamentoOneri, String causalePagamentoOneri, String mezzoPagamentoOneri, - String importoBolli, String importoSpeseIstruttoria, Date dataEffettuazione, int statusTask, - boolean workflowForzato, long soggettoSostituitoId, long oldDettPraticaId, String destinazione, - String ag, String descLongIntervento, String via, String localita, String estremiCatastali, - String estremiPratCom, long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, String codiceFiscaleDelegatoCommittente, - String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo, - String codiceRuoloDelegato, boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, Date dataInizioLavoriOpera, Date dataInizioEsecuzioneOpera, - Date dataFineEsecuzioneOpera, String metratura, boolean lavoriPubblici, long pagamentoIdOneri, - int lavoriPubbliciPercentuale, String numeroCivico, String dcParticelle, String dcFoglio, - String dcAllegato, String dePiani, String deAltezza, String deInterrati, String deSuperficie, - String deCostruzione, String deRistrutturazione, String deUso, String dePubblica, - String dePrivata, String deUtilizzazione, String dePosizioneEdificio, boolean deInfStradalePonte, - boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, - boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, boolean deInfOperaAccStradale, - boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura, - boolean deInfAltro, String deInfAltroDesc, String dccFondazioni, + public DettPratica updateDettPratica(long userId, long dettPraticaId, long intPraticaId, long integrazione, + String protocollo, String tipoIntegrazione, boolean completa, boolean gestita, String codicePagamentoOneri, + String causalePagamentoOneri, String mezzoPagamentoOneri, String importoBolli, + String importoSpeseIstruttoria, Date dataEffettuazione, int statusTask, long soggettoSostituitoId, + String destinazione, String ag, String descLongIntervento, String via, String localita, + String estremiCatastali, String estremiPratCom, long varianteNumero, boolean operaConforme, + boolean collaudoStatico, String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, + String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, long pagamentoIdOneri, + int lavoriPubbliciPercentuale, String dcParticelle, String dcFoglio, String dcAllegato, String dePiani, + String deAltezza, String deInterrati, String deSuperficie, String deCostruzione, String deRistrutturazione, + String deUso, String dePubblica, String dePrivata, String deUtilizzazione, String dePosizioneEdificio, + boolean deInfStradalePonte, boolean deInfStradaleStrada, boolean deInfStradaleAltro, + boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, + boolean deInfOperaAccStradale, boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, + boolean deInfAltraInfrastruttura, boolean deInfAltro, String deInfAltroDesc, String dccFondazioni, boolean dccStruttureEleMuraturePietrame, boolean dccStruttureEleMuratureLaterizio, boolean dccStruttureEleMuratureMisto, boolean dccStruttureEleMuratureStoriche, String dccStruttureEleAcciaio, String dccStruttureEleCA, String dccStruttureEleLegno, - boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, - boolean dccStruttureEleMistoMuratura, boolean dccStruttureEleMistoLegno, - boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, - String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, - boolean dccOrizzontamentiLegno, boolean dccOrizzontamentiLegnoCA, - boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, + boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, boolean dccStruttureEleMistoMuratura, + boolean dccStruttureEleMistoLegno, boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, + String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, boolean dccOrizzontamentiLegno, + boolean dccOrizzontamentiLegnoCA, boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, boolean dccOrizzontamentiAltro, String dccOrizzontamentiAltroDescrizione, String dccCopertura, boolean dccCoperturaCAAcciaio, boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA, - boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, - boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, boolean dccCoperturaAltro, - String dccCoperturaAltroDesrizione, boolean dccElemNonStrutLaterizio, - boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, - boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, - String dccElemNonStrutAltroDescrizione, boolean dccOpereDiRinforzoInsCatene, - boolean dccOpereDiRinforzoInsCordoli, boolean dccOpereDiRinforzoIniArmate, - boolean dccOpereDiRinforzoPlaccaggi, boolean dccOpereDiRinforzoIrrSolai, - boolean dccOpereDiRinforzoRinforziFRP, boolean dccOpereDiRinforzoTelaiECerchiature, - boolean dccOpereDiRinforzoInsRompitratta, boolean dccOpereDiRinforzoAltro, - String dccOpereDiRinforzoAltroDescrizione, String geoClasseIndagine, + boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, boolean dccCoperturaPVCTelonati, + boolean dccCoperturaLeggere, boolean dccCoperturaAltro, String dccCoperturaAltroDesrizione, + boolean dccElemNonStrutLaterizio, boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, + boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, String dccElemNonStrutAltroDescrizione, + boolean dccOpereDiRinforzoInsCatene, boolean dccOpereDiRinforzoInsCordoli, + boolean dccOpereDiRinforzoIniArmate, boolean dccOpereDiRinforzoPlaccaggi, + boolean dccOpereDiRinforzoIrrSolai, boolean dccOpereDiRinforzoRinforziFRP, + boolean dccOpereDiRinforzoTelaiECerchiature, boolean dccOpereDiRinforzoInsRompitratta, + boolean dccOpereDiRinforzoAltro, String dccOpereDiRinforzoAltroDescrizione, String geoClasseIndagine, String geoCategoriaSottosuolo, String geoCategoriaTopografica, String geoConsolidamento, - String geoPericolositaGeologica, String geoRischioGeomorfologicoPai, - String geoPericolositaIdraulicaPai, String geoRischioIdraulicoPai, String geoPericolositaSismica, - String geoPericolositaIdraulica, String geoPericolositaGeomorfica, - String geoFattibilitaGeologica, String geoFattibilitaSismica, String geoFattibilitaIdraulica, - String geoOperaRilevante, String geoOpereDiSostegno, String geoOpereInSotterranea, - String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini, - String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione, + String geoPericolositaGeologica, String geoRischioGeomorfologicoPai, String geoPericolositaIdraulicaPai, + String geoRischioIdraulicoPai, String geoPericolositaSismica, String geoPericolositaIdraulica, + String geoPericolositaGeomorfica, String geoFattibilitaGeologica, String geoFattibilitaSismica, + String geoFattibilitaIdraulica, String geoOperaRilevante, String geoOpereDiSostegno, + String geoOpereInSotterranea, String geoPresenzaPrescrizioni, String geoNotePrescrizioni, + String geoNoteIndagini, String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione, Double pagInterventiRestauroManufatti, Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagCondotte, Double pagPalificazioni, Double pagImpiantiEolici, Double pagNuoveRealizzazioni, Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari, Double pagPareriDiMassima, Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi, Double pagRilascioAttestazioni, Double pagConsultazioniArchivio, String note, String noteUfficio, String localizzazioneGeografica, boolean tcNuovaCostruzione, boolean tcAdeguamentoSismico, - boolean tcMiglioramentoSismico, boolean tcRiparazioneInterventoLocale, boolean tcInCA, - boolean tcInOpera, boolean tcPrefabbricato, boolean tcInAcciaio, boolean tcMista, - boolean tcInMuratura, boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata, - boolean tcInMuraturaMista, boolean tcInLegno, boolean tcAltro, String tcAltroDescrizione, - boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, - boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut, - boolean normDpr02Aut, boolean normDm01, boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, boolean normArt3com3, - boolean normArt3com4, boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, String clRischioPreInt, - String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, - ServiceContext serviceContext, boolean bozza, String paesaggioLocale, String livelloDiTutela, - String vincoli, String destinazioneAltroIntervento, Boolean tcCostruzioniEsistenti, - Boolean tcManutOrdStraord, Boolean tcAltriInterventi, String tcAltriInterventiDesc, - boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, - boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, - boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) throws PortalException, - SystemException { + boolean tcMiglioramentoSismico, boolean tcRiparazioneInterventoLocale, boolean tcInCA, boolean tcInOpera, + boolean tcPrefabbricato, boolean tcInAcciaio, boolean tcMista, boolean tcInMuratura, + boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata, boolean tcInMuraturaMista, boolean tcInLegno, + boolean tcAltro, String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, + boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, boolean normAnr, boolean normArt3com3, + boolean normArt3com4, boolean suap, boolean normSismaBonus, String clRischioPreInt, + String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, ServiceContext serviceContext, + boolean bozza, String paesaggioLocale, String livelloDiTutela, String vincoli, + String destinazioneAltroIntervento, Boolean tcCostruzioniEsistenti, Boolean tcManutOrdStraord, + Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo, + boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, boolean tcViarch, + boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, + boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + String interventoVoceP7) throws PortalException, SystemException { Date now = new Date(); - DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); - dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); dettPratica.setIntPraticaId(intPraticaId); dettPratica.setIntegrazione(integrazione); @@ -769,9 +590,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setImportoSpeseIstruttoria(importoSpeseIstruttoria); dettPratica.setDataEffettuazione(dataEffettuazione); dettPratica.setStatusTask(statusTask); - dettPratica.setWorkflowForzato(workflowForzato); dettPratica.setSoggettoSostituitoId(soggettoSostituitoId); - dettPratica.setOldDettPraticaId(oldDettPraticaId); dettPratica.setDestinazione(destinazione); dettPratica.setAg(ag); dettPratica.setDescLongIntervento(descLongIntervento); @@ -779,9 +598,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setLocalita(localita); dettPratica.setEstremiCatastali(estremiCatastali); dettPratica.setEstremiPratCom(estremiPratCom); - dettPratica.setVariataDa(variataDa); dettPratica.setVarianteNumero(varianteNumero); - dettPratica.setVarianteSostanziale(varianteSostanziale); dettPratica.setOperaConforme(operaConforme); dettPratica.setCollaudoStatico(collaudoStatico); dettPratica.setNoCollaudo(noCollaudo); @@ -792,17 +609,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setCodiceFiscaleDelegatoCommittente(codiceFiscaleDelegatoCommittente); dettPratica.setCodiceFiscaleDelegatoFineLavori(codiceFiscaleDelegatoFineLavori); dettPratica.setCodiceFiscaleDelegatoCollaudo(codiceFiscaleDelegatoCollaudo); - dettPratica.setCodiceRuoloDelegato(codiceRuoloDelegato); - dettPratica.setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); - dettPratica.setInizioLavoriContestualeOpera(inizioLavoriContestualeOpera); - dettPratica.setDataInizioLavoriOpera(dataInizioLavoriOpera); - dettPratica.setDataInizioEsecuzioneOpera(dataInizioEsecuzioneOpera); - dettPratica.setDataFineEsecuzioneOpera(dataFineEsecuzioneOpera); - dettPratica.setMetratura(metratura); dettPratica.setLavoriPubblici(lavoriPubblici); dettPratica.setPagamentoIdOneri(pagamentoIdOneri); dettPratica.setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); - dettPratica.setNumeroCivico(numeroCivico); dettPratica.setDcParticelle(dcParticelle); dettPratica.setDcFoglio(dcFoglio); dettPratica.setDcAllegato(dcAllegato); @@ -945,156 +754,89 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setNormDpr02Dep(normDpr02Dep); dettPratica.setNormDpr01Aut(normDpr01Aut); dettPratica.setNormDpr02Aut(normDpr02Aut); - // dettPratica.setNormDpr03(normDpr02Dep); - // dettPratica.setNormDpr04(normDpr02Dep); - // dettPratica.setNormDpr05(normDpr02Dep); - dettPratica.setNormDm01(normDm01); - dettPratica.setNormDm02(normDm02); - dettPratica.setNormDm03(normDm03); dettPratica.setNormDm2018(normDm2018); - dettPratica.setNormDm04(normDm04); - dettPratica.setNormDm05(normDm05); - dettPratica.setNormDprg01(normDprg01); - dettPratica.setNormDprg02(normDprg02); dettPratica.setNormAnr(normAnr); - dettPratica.setNormOrd01(normOrd01); - dettPratica.setNormCI01(normCI01); - dettPratica.setNormLTC01(normLTC01); dettPratica.setNormArt3com3(normArt3com3); dettPratica.setNormArt3com4(normArt3com4); - dettPratica.setSuap(suap); dettPratica.setNormSismaBonus(normSismaBonus); dettPratica.setClRischioPreInt(clRischioPreInt); dettPratica.setClRischioPostInt(clRischioPostInt); dettPratica.setIntervFinPub(intervFinPub); dettPratica.setIntervFinPubDesc(intervFinPubDesc); - dettPratica.setPaesaggioLocale(paesaggioLocale); dettPratica.setLivelloDiTutela(livelloDiTutela); dettPratica.setVincoli(vincoli); - dettPratica.setDestinazioneAltroIntervento(destinazioneAltroIntervento); dettPratica.setTcCostruzioniEsistenti(tcCostruzioniEsistenti); dettPratica.setTcManutOrdStraord(tcManutOrdStraord); dettPratica.setTcAltriInterventi(tcAltriInterventi); dettPratica.setTcAltriInterventiDesc(tcAltriInterventiDesc); - dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47); dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724); dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326); - + dettPratica.setInterventoVoceP7(interventoVoceP7); dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore); - dettPratica = dettPraticaPersistence.update(dettPratica); - resourceLocalService.updateModelResources(dettPratica, serviceContext); - updateAsset(dettPratica, serviceContext); return dettPratica; } + @Override @Indexable(type = IndexableType.REINDEX) public DettPratica updateDettPraticaDatiDomanda(long userId, long dettPraticaId, long intPraticaId, String tipoIntegrazione, String destinazione, String ag, String descLongIntervento, String via, - String localita, String estremiCatastali, String estremiPratCom, boolean varianteSostanziale, - boolean collaudoStatico, String codiceFiscaleDelegatoCommittente, - String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo, - boolean lavoriInEconomiaCommittente, String metratura, boolean lavoriPubblici, - long pagamentoIdOneri, int lavoriPubbliciPercentuale, String numeroCivico, String dcParticelle, - String dcFoglio, String dcAllegato, String dePiani, String deAltezza, String deInterrati, - String deSuperficie, String deCostruzione, String deRistrutturazione, String deUso, - String dePubblica, String dePrivata, String deUtilizzazione, String dePosizioneEdificio, + String localita, String estremiCatastali, String estremiPratCom, boolean collaudoStatico, + String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, + String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, long pagamentoIdOneri, + int lavoriPubbliciPercentuale, String dcParticelle, String dcFoglio, String dcAllegato, String dePiani, + String deAltezza, String deInterrati, String deSuperficie, String deCostruzione, String deRistrutturazione, + String deUso, String dePubblica, String dePrivata, String deUtilizzazione, String dePosizioneEdificio, boolean deInfStradalePonte, boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, boolean deInfOperaAccStradale, boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, - boolean deInfAltraInfrastruttura, boolean deInfAltro, String deInfAltroDesc, - String dccFondazioni, boolean dccStruttureEleMuraturePietrame, - boolean dccStruttureEleMuratureLaterizio, boolean dccStruttureEleMuratureMisto, - boolean dccStruttureEleMuratureStoriche, String dccStruttureEleAcciaio, String dccStruttureEleCA, - String dccStruttureEleLegno, boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, - boolean dccStruttureEleMistoMuratura, boolean dccStruttureEleMistoLegno, - boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, - String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, - boolean dccOrizzontamentiLegno, boolean dccOrizzontamentiLegnoCA, - boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, + boolean deInfAltraInfrastruttura, boolean deInfAltro, String deInfAltroDesc, String dccFondazioni, + boolean dccStruttureEleMuraturePietrame, boolean dccStruttureEleMuratureLaterizio, + boolean dccStruttureEleMuratureMisto, boolean dccStruttureEleMuratureStoriche, + String dccStruttureEleAcciaio, String dccStruttureEleCA, String dccStruttureEleLegno, + boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, boolean dccStruttureEleMistoMuratura, + boolean dccStruttureEleMistoLegno, boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, + String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, boolean dccOrizzontamentiLegno, + boolean dccOrizzontamentiLegnoCA, boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, boolean dccOrizzontamentiAltro, String dccOrizzontamentiAltroDescrizione, String dccCopertura, boolean dccCoperturaCAAcciaio, boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA, - boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, - boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, boolean dccCoperturaAltro, - String dccCoperturaAltroDesrizione, boolean dccElemNonStrutLaterizio, - boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, - boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, - String dccElemNonStrutAltroDescrizione, boolean dccOpereDiRinforzoInsCatene, - boolean dccOpereDiRinforzoInsCordoli, boolean dccOpereDiRinforzoIniArmate, - boolean dccOpereDiRinforzoPlaccaggi, boolean dccOpereDiRinforzoIrrSolai, - boolean dccOpereDiRinforzoRinforziFRP, boolean dccOpereDiRinforzoTelaiECerchiature, - boolean dccOpereDiRinforzoInsRompitratta, boolean dccOpereDiRinforzoAltro, - String dccOpereDiRinforzoAltroDescrizione, String localizzazioneGeografica, - boolean tcNuovaCostruzione, boolean tcAdeguamentoSismico, boolean tcMiglioramentoSismico, - boolean tcRiparazioneInterventoLocale, boolean tcInCA, boolean tcInOpera, + boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, boolean dccCoperturaPVCTelonati, + boolean dccCoperturaLeggere, boolean dccCoperturaAltro, String dccCoperturaAltroDesrizione, + boolean dccElemNonStrutLaterizio, boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, + boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, String dccElemNonStrutAltroDescrizione, + boolean dccOpereDiRinforzoInsCatene, boolean dccOpereDiRinforzoInsCordoli, + boolean dccOpereDiRinforzoIniArmate, boolean dccOpereDiRinforzoPlaccaggi, + boolean dccOpereDiRinforzoIrrSolai, boolean dccOpereDiRinforzoRinforziFRP, + boolean dccOpereDiRinforzoTelaiECerchiature, boolean dccOpereDiRinforzoInsRompitratta, + boolean dccOpereDiRinforzoAltro, String dccOpereDiRinforzoAltroDescrizione, + String localizzazioneGeografica, boolean tcNuovaCostruzione, boolean tcAdeguamentoSismico, + boolean tcMiglioramentoSismico, boolean tcRiparazioneInterventoLocale, boolean tcInCA, boolean tcInOpera, boolean tcPrefabbricato, boolean tcInAcciaio, boolean tcMista, boolean tcInMuratura, - boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata, boolean tcInMuraturaMista, - boolean tcInLegno, boolean tcAltro, String tcAltroDescrizione, boolean tcConDispositivi, - boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, - boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut, boolean normDpr02Aut, - boolean normDm01, boolean normDm02, boolean normDm03, boolean normDm2018, boolean normDprg01, - boolean normDprg02, boolean normAnr, boolean normArt3com3, boolean normArt3com4, - boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, boolean normLTC01, - boolean suap, boolean normSismaBonus, String clRischioPreInt, String clRischioPostInt, - boolean intervFinPub, String intervFinPubDesc, ServiceContext serviceContext, boolean bozza, - String paesaggioLocale, String livelloDiTutela, String vincoli, + boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata, boolean tcInMuraturaMista, boolean tcInLegno, + boolean tcAltro, String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, + boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, boolean normAnr, boolean normArt3com3, + boolean normArt3com4, boolean suap, boolean normSismaBonus, String clRischioPreInt, + String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, ServiceContext serviceContext, + boolean bozza, String paesaggioLocale, String livelloDiTutela, String vincoli, String destinazioneAltroIntervento, Boolean tcCostruzioniEsistenti, Boolean tcManutOrdStraord, Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, - boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore) throws PortalException, - SystemException { + boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore, String interventoVoceP7) + throws PortalException, SystemException { Date now = new Date(); - - validateDatiDomanda(userId, dettPraticaId, intPraticaId, tipoIntegrazione, metratura, lavoriPubblici, - pagamentoIdOneri, lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, - dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, - deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, - deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, - deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, - dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, - dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, - dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, - dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, - dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, - dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, - dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, - dccCopertura, dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, - dccCoperturaLamieraGrecata, dccCoperturaPannelli, dccCoperturaPVCTelonati, - dccCoperturaLeggere, dccCoperturaAltro, dccCoperturaAltroDesrizione, - dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, - dccElemNonStrutLegno, dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, - dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, - dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, - dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, localizzazioneGeografica, - tcNuovaCostruzione, tcAdeguamentoSismico, tcMiglioramentoSismico, - tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, tcInAcciaio, tcMista, - tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, - tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, - normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, - normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, - normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, - clRischioPostInt, intervFinPub, intervFinPubDesc, sanatoriaEdilizia47, sanatoriaEdilizia724, - sanatoriaEdilizia326, normLavoriNoDirettore, serviceContext, bozza); - DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); - dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - dettPratica.setIntPraticaId(intPraticaId); - dettPratica.setTipoIntegrazione(tipoIntegrazione); - dettPratica.setVarianteSostanziale(varianteSostanziale); - dettPratica.setDestinazione(destinazione); dettPratica.setAg(ag); dettPratica.setDescLongIntervento(descLongIntervento); @@ -1102,18 +844,15 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setLocalita(localita); dettPratica.setEstremiCatastali(estremiCatastali); dettPratica.setEstremiPratCom(estremiPratCom); - dettPratica.setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); dettPratica.setCollaudoStatico(collaudoStatico); dettPratica.setNoCollaudo(noCollaudo); dettPratica.setTcNuovaCostruzionePertinenza(tcNuovaCostruzionePertinenza); dettPratica.setTcInterventoOpereEscavazione(tcInterventoOpereEscavazione); dettPratica.setTcViarch(tcViarch); dettPratica.setTcOperaA25(tcOperaA25); - dettPratica.setMetratura(metratura); dettPratica.setLavoriPubblici(lavoriPubblici); dettPratica.setPagamentoIdOneri(pagamentoIdOneri); dettPratica.setLavoriPubbliciPercentuale(lavoriPubbliciPercentuale); - dettPratica.setNumeroCivico(numeroCivico); dettPratica.setDcParticelle(dcParticelle); dettPratica.setDcFoglio(dcFoglio); dettPratica.setDcAllegato(dcAllegato); @@ -1213,181 +952,81 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setNormDpr02Dep(normDpr02Dep); dettPratica.setNormDpr01Aut(normDpr01Aut); dettPratica.setNormDpr02Aut(normDpr02Aut); - // dettPratica.setNormDpr03(normDpr02Dep); - // dettPratica.setNormDpr04(normDpr02Dep); - // dettPratica.setNormDpr05(normDpr02Dep); - dettPratica.setNormDm01(normDm01); - dettPratica.setNormDm02(normDm02); - dettPratica.setNormDm03(normDm03); dettPratica.setNormDm2018(normDm2018); - dettPratica.setNormDm04(normDm04); - dettPratica.setNormDm05(normDm05); - dettPratica.setNormDprg01(normDprg01); - dettPratica.setNormDprg02(normDprg02); dettPratica.setNormAnr(normAnr); - dettPratica.setNormOrd01(normOrd01); - dettPratica.setNormCI01(normCI01); - dettPratica.setNormLTC01(normLTC01); dettPratica.setNormArt3com3(normArt3com3); dettPratica.setNormArt3com4(normArt3com4); - dettPratica.setSuap(suap); dettPratica.setNormSismaBonus(normSismaBonus); dettPratica.setClRischioPreInt(clRischioPreInt); dettPratica.setClRischioPostInt(clRischioPostInt); dettPratica.setIntervFinPub(intervFinPub); dettPratica.setIntervFinPubDesc(intervFinPubDesc); - dettPratica.setCodiceFiscaleDelegatoCommittente(codiceFiscaleDelegatoCommittente); dettPratica.setCodiceFiscaleDelegatoFineLavori(codiceFiscaleDelegatoFineLavori); dettPratica.setCodiceFiscaleDelegatoCollaudo(codiceFiscaleDelegatoCollaudo); - dettPratica.setPaesaggioLocale(paesaggioLocale); dettPratica.setLivelloDiTutela(livelloDiTutela); dettPratica.setVincoli(vincoli); - dettPratica.setDestinazioneAltroIntervento(destinazioneAltroIntervento); dettPratica.setTcCostruzioniEsistenti(tcCostruzioniEsistenti); dettPratica.setTcManutOrdStraord(tcManutOrdStraord); dettPratica.setTcAltriInterventi(tcAltriInterventi); dettPratica.setTcAltriInterventiDesc(tcAltriInterventiDesc); - dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326); dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47); dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724); - + dettPratica.setInterventoVoceP7(interventoVoceP7); dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore); - dettPratica = dettPraticaPersistence.update(dettPratica); - resourceLocalService.updateModelResources(dettPratica, serviceContext); - updateAsset(dettPratica, serviceContext); return dettPratica; } + @Override @Indexable(type = IndexableType.REINDEX) public DettPratica updateDettPraticaDatiIntegrazione(long userId, long dettPraticaId, long intPraticaId, String tipoIntegrazione, String destinazione, String descLongIntervento, boolean collaudoStatico, String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, - String codiceFiscaleDelegatoCollaudo, boolean lavoriInEconomiaCommittente, - boolean lavoriPubblici, boolean deInfStradalePonte, boolean deInfStradaleStrada, - boolean deInfStradaleAltro, boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, - boolean deInfIdraulicaAltro, boolean deInfOperaAccStradale, boolean deInfOperaAccIdraulica, - boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura, boolean deInfAltro, - String deInfAltroDesc, String dccFondazioni, boolean dccStruttureEleMuraturePietrame, + String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, boolean deInfStradalePonte, + boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, + boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, boolean deInfOperaAccStradale, + boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura, + boolean deInfAltro, String deInfAltroDesc, String dccFondazioni, boolean dccStruttureEleMuraturePietrame, boolean dccStruttureEleMuratureLaterizio, boolean dccStruttureEleMuratureMisto, boolean dccStruttureEleMuratureStoriche, String dccStruttureEleAcciaio, String dccStruttureEleCA, String dccStruttureEleLegno, boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, boolean dccStruttureEleMistoMuratura, boolean dccStruttureEleMistoLegno, - boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, - String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, - boolean dccOrizzontamentiLegno, boolean dccOrizzontamentiLegnoCA, - boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, - boolean dccOrizzontamentiAltro, String dccOrizzontamentiAltroDescrizione, String dccCopertura, - boolean dccCoperturaCAAcciaio, boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA, - boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, - boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, boolean dccCoperturaAltro, - String dccCoperturaAltroDesrizione, boolean dccElemNonStrutLaterizio, - boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, - boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, - String dccElemNonStrutAltroDescrizione, boolean dccOpereDiRinforzoInsCatene, + boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, String dccStruttureEleAltroDescrizione, + boolean dccOrizzontamentiCAAcciaio, boolean dccOrizzontamentiLegno, boolean dccOrizzontamentiLegnoCA, + boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, boolean dccOrizzontamentiAltro, + String dccOrizzontamentiAltroDescrizione, String dccCopertura, boolean dccCoperturaCAAcciaio, + boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA, boolean dccCoperturaLamieraGrecata, + boolean dccCoperturaPannelli, boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, + boolean dccCoperturaAltro, String dccCoperturaAltroDesrizione, boolean dccElemNonStrutLaterizio, + boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, boolean dccElemNonStrutLegno, + boolean dccElemNonStrutAltro, String dccElemNonStrutAltroDescrizione, boolean dccOpereDiRinforzoInsCatene, boolean dccOpereDiRinforzoInsCordoli, boolean dccOpereDiRinforzoIniArmate, boolean dccOpereDiRinforzoPlaccaggi, boolean dccOpereDiRinforzoIrrSolai, boolean dccOpereDiRinforzoRinforziFRP, boolean dccOpereDiRinforzoTelaiECerchiature, boolean dccOpereDiRinforzoInsRompitratta, boolean dccOpereDiRinforzoAltro, - String dccOpereDiRinforzoAltroDescrizione, boolean tcNuovaCostruzione, - boolean tcAdeguamentoSismico, boolean tcMiglioramentoSismico, - boolean tcRiparazioneInterventoLocale, boolean normLavoriInProprio, boolean normEsenteBollo, - boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut, - boolean normDpr02Aut, boolean normArt3com3, boolean normArt3com4, ServiceContext serviceContext, - boolean bozza, boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, - boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, - boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, - boolean normLavoriNoDirettore) throws PortalException, SystemException { + String dccOpereDiRinforzoAltroDescrizione, boolean tcNuovaCostruzione, boolean tcAdeguamentoSismico, + boolean tcMiglioramentoSismico, boolean tcRiparazioneInterventoLocale, boolean normLavoriInProprio, + boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normArt3com3, boolean normArt3com4, + ServiceContext serviceContext, boolean bozza, boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, + boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, + boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore, + String interventoVoceP7) throws PortalException, SystemException { Date now = new Date(); - - // validateDatiDomanda(userId, dettPraticaId, intPraticaId, - // tipoIntegrazione, metratura, - // lavoriPubblici, - // pagamentoIdOneri, lavoriPubbliciPercentuale, numeroCivico, - // dcParticelle, dcFoglio, - // dcAllegato, dePiani, - // deAltezza, deInterrati, deSuperficie, deCostruzione, - // deRistrutturazione, deUso, dePubblica, - // dePrivata, - // deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - // deInfStradaleStrada, - // deInfStradaleAltro, - // deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, - // deInfOperaAccStradale, - // deInfOperaAccIdraulica, - // deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, - // deInfAltroDesc, dccFondazioni, - // dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, - // dccStruttureEleMuratureMisto, - // dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, - // dccStruttureEleCA, - // dccStruttureEleLegno, - // dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, - // dccStruttureEleMistoMuratura, - // dccStruttureEleMistoLegno, - // dccStruttureElePrefabbricato, dccStruttureEleAltro, - // dccStruttureEleAltroDescrizione, - // dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno, - // dccOrizzontamentiLegnoCA, - // dccOrizzontamentiLamieraGrecata, - // dccOrizzontamentiVolte, dccOrizzontamentiAltro, - // dccOrizzontamentiAltroDescrizione, - // dccCopertura, - // dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, - // dccCoperturaLamieraGrecata, - // dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, - // dccCoperturaAltro, - // dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, - // dccElemNonStrutCartongesso, - // dccElemNonStrutCalcestruzzo, - // dccElemNonStrutLegno, dccElemNonStrutAltro, - // dccElemNonStrutAltroDescrizione, - // dccOpereDiRinforzoInsCatene, - // dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, - // dccOpereDiRinforzoPlaccaggi, - // dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - // dccOpereDiRinforzoTelaiECerchiature, - // dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, - // dccOpereDiRinforzoAltroDescrizione, - // localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, - // tcMiglioramentoSismico, - // tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, - // tcInAcciaio, tcMista, - // tcInMuratura, - // tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, - // tcInLegno, tcAltro, - // tcAltroDescrizione, - // tcConDispositivi, normLavoriInProprio, normEsenteBollo, - // normEsenteSpese, normDpr01Dep, - // normDpr02Dep, - // normDpr01Aut, normDpr02Aut, normDm01, normDm02, normDm03, normDprg01, - // normDprg02, normAnr, - // normArt3com3, - // normArt3com4, normOrd01, normDm04, normDm05, normCI01, normLTC01, - // suap, normSismaBonus, - // clRischioPreInt, - // clRischioPostInt, intervFinPub, intervFinPubDesc, serviceContext, - // bozza); - DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); - dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - dettPratica.setIntPraticaId(intPraticaId); - dettPratica.setTipoIntegrazione(tipoIntegrazione); - dettPratica.setDestinazione(destinazione); dettPratica.setDescLongIntervento(descLongIntervento); - dettPratica.setLavoriInEconomiaCommittente(lavoriInEconomiaCommittente); dettPratica.setCollaudoStatico(collaudoStatico); dettPratica.setNoCollaudo(noCollaudo); dettPratica.setTcNuovaCostruzionePertinenza(tcNuovaCostruzionePertinenza); @@ -1468,100 +1107,36 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setNormDpr02Aut(normDpr02Aut); dettPratica.setNormArt3com3(normArt3com3); dettPratica.setNormArt3com4(normArt3com4); - dettPratica.setCodiceFiscaleDelegatoCommittente(codiceFiscaleDelegatoCommittente); dettPratica.setCodiceFiscaleDelegatoFineLavori(codiceFiscaleDelegatoFineLavori); dettPratica.setCodiceFiscaleDelegatoCollaudo(codiceFiscaleDelegatoCollaudo); - dettPratica.setSanatoriaEdilizia47(sanatoriaEdilizia47); dettPratica.setSanatoriaEdilizia326(sanatoriaEdilizia326); dettPratica.setSanatoriaEdilizia724(sanatoriaEdilizia724); - + dettPratica.setInterventoVoceP7(interventoVoceP7); dettPratica.setNormLavoriNoDirettore(normLavoriNoDirettore); - dettPratica = dettPraticaPersistence.update(dettPratica); - resourceLocalService.updateModelResources(dettPratica, serviceContext); - updateAsset(dettPratica, serviceContext); return dettPratica; } - private void validateDatiDomanda(long userId, long dettPraticaId, long intPraticaId, - String tipoIntegrazione, String metratura, boolean lavoriPubblici, long pagamentoId, - int lavoriPubbliciPercentuale, String numeroCivico, String dcParticelle, String dcFoglio, - String dcAllegato, String dePiani, String deAltezza, String deInterrati, String deSuperficie, - String deCostruzione, String deRistrutturazione, String deUso, String dePubblica, - String dePrivata, String deUtilizzazione, String dePosizioneEdificio, boolean deInfStradalePonte, - boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, - boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, boolean deInfOperaAccStradale, - boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura, - boolean deInfAltro, String deInfAltroDesc, String dccFondazioni, - boolean dccStruttureEleMuraturePietrame, boolean dccStruttureEleMuratureLaterizio, - boolean dccStruttureEleMuratureMisto, boolean dccStruttureEleMuratureStoriche, - String dccStruttureEleAcciaio, String dccStruttureEleCA, String dccStruttureEleLegno, - boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, - boolean dccStruttureEleMistoMuratura, boolean dccStruttureEleMistoLegno, - boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, - String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, - boolean dccOrizzontamentiLegno, boolean dccOrizzontamentiLegnoCA, - boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, - boolean dccOrizzontamentiAltro, String dccOrizzontamentiAltroDescrizione, String dccCopertura, - boolean dccCoperturaCAAcciaio, boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA, - boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, - boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, boolean dccCoperturaAltro, - String dccCoperturaAltroDesrizione, boolean dccElemNonStrutLaterizio, - boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, - boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, - String dccElemNonStrutAltroDescrizione, boolean dccOpereDiRinforzoInsCatene, - boolean dccOpereDiRinforzoInsCordoli, boolean dccOpereDiRinforzoIniArmate, - boolean dccOpereDiRinforzoPlaccaggi, boolean dccOpereDiRinforzoIrrSolai, - boolean dccOpereDiRinforzoRinforziFRP, boolean dccOpereDiRinforzoTelaiECerchiature, - boolean dccOpereDiRinforzoInsRompitratta, boolean dccOpereDiRinforzoAltro, - String dccOpereDiRinforzoAltroDescrizione, String localizzazioneGeografica, - boolean tcNuovaCostruzione, boolean tcAdeguamentoSismico, boolean tcMiglioramentoSismico, - boolean tcRiparazioneInterventoLocale, boolean tcInCA, boolean tcInOpera, - boolean tcPrefabbricato, boolean tcInAcciaio, boolean tcMista, boolean tcInMuratura, - boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata, boolean tcInMuraturaMista, - boolean tcInLegno, boolean tcAltro, String tcAltroDescrizione, boolean tcConDispositivi, - boolean normLavoriInProprio, boolean normEsenteBollo, boolean normEsenteSpese, - boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut, boolean normDpr02Aut, - boolean normDm01, boolean normDm02, boolean normDm03, boolean normDm2018, boolean normDprg01, - boolean normDprg02, boolean normAnr, boolean normArt3com3, boolean normArt3com4, - boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, boolean normLTC01, - boolean suap, boolean normSismaBonus, String clRischioPreInt, String clRischioPostInt, - boolean intervFinPub, String intervFinPubDesc, boolean sanatoriaEdilizia47, - boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore, - ServiceContext serviceContext, boolean bozza) { - } - + @Override @Indexable(type = IndexableType.REINDEX) public DettPratica updateDettPraticaGeologo(long userId, long dettPraticaId, long intPraticaId, String geoClasseIndagine, String geoCategoriaSottosuolo, String geoCategoriaTopografica, String geoConsolidamento, String geoPericolositaGeologica, String geoRischioGeomorfologicoPai, String geoPericolositaIdraulicaPai, String geoRischioIdraulicoPai, String geoPericolositaSismica, - String geoPericolositaIdraulica, String geoPericolositaGeomorfica, - String geoFattibilitaGeologica, String geoFattibilitaSismica, String geoFattibilitaIdraulica, - String geoOperaRilevante, String geoOpereDiSostegno, String geoOpereInSotterranea, - String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini, - String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione, - ServiceContext serviceContext, boolean bozza) throws PortalException, SystemException { + String geoPericolositaIdraulica, String geoPericolositaGeomorfica, String geoFattibilitaGeologica, + String geoFattibilitaSismica, String geoFattibilitaIdraulica, String geoOperaRilevante, + String geoOpereDiSostegno, String geoOpereInSotterranea, String geoPresenzaPrescrizioni, + String geoNotePrescrizioni, String geoNoteIndagini, String geoEvidenzeGeomorfiche, + String geoEvidenzeGeologiche, Date geoDtRelazione, ServiceContext serviceContext, boolean bozza) + throws PortalException, SystemException { Date now = new Date(); - - validateDatiGeologo(userId, dettPraticaId, intPraticaId, geoClasseIndagine, geoCategoriaSottosuolo, - geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica, - geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, geoRischioIdraulicoPai, - geoPericolositaSismica, geoPericolositaIdraulica, geoPericolositaGeomorfica, - geoFattibilitaGeologica, geoFattibilitaSismica, geoFattibilitaIdraulica, geoOperaRilevante, - geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, geoNotePrescrizioni, - geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, geoDtRelazione, - serviceContext, bozza); - DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); - dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - dettPratica.setGeoClasseIndagine(geoClasseIndagine); dettPratica.setGeoCategoriaSottosuolo(geoCategoriaSottosuolo); dettPratica.setGeoCategoriaTopografica(geoCategoriaTopografica); @@ -1585,15 +1160,14 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setGeoEvidenzeGeomorfiche(geoEvidenzeGeomorfiche); dettPratica.setGeoEvidenzeGeologiche(geoEvidenzeGeologiche); dettPratica.setGeoDtRelazione(geoDtRelazione); - dettPratica = dettPraticaPersistence.update(dettPratica); - resourceLocalService.updateModelResources(dettPratica, serviceContext); - updateAsset(dettPratica, serviceContext); return dettPratica; } + @Override + @Indexable(type = IndexableType.REINDEX) public DettPratica updateDettPraticaPagamento(long dettPraticaId, String importoSpeseIstruttoria, String importoBolli, Double pagInterventiRestauroManufatti, Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagCondotte, Double pagPalificazioni, @@ -1603,11 +1177,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl Double pagSoggettiAdAutorizzazione, ServiceContext serviceContext) throws SystemException, PortalException { Date now = new Date(); - DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); - dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - dettPratica.setImportoSpeseIstruttoria(importoSpeseIstruttoria); dettPratica.setImportoBolli(importoBolli); dettPratica.setPagInterventiRestauroManufatti(pagInterventiRestauroManufatti); @@ -1626,17 +1197,16 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dettPratica.setPagRilascioAttestazioni(pagRilascioAttestazioni); dettPratica.setPagConsultazioniArchivio(pagConsultazioniArchivio); dettPratica.setPagSoggettiAdAutorizzazione(pagSoggettiAdAutorizzazione); - dettPratica = dettPraticaPersistence.update(dettPratica); - resourceLocalService.updateModelResources(dettPratica, serviceContext); - updateAsset(dettPratica, serviceContext); return dettPratica; } - public DettPratica updateCheckPagamenti(long dettPraticaId, boolean normEsenteSpese, - boolean normEsenteBollo) throws SystemException, PortalException { + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica updateCheckPagamenti(long dettPraticaId, boolean normEsenteSpese, boolean normEsenteBollo) + throws SystemException, PortalException { DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); dettPratica.setNormEsenteSpese(normEsenteSpese); @@ -1645,49 +1215,43 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return dettPratica; } - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, String stato) throws IOException, + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica updateEsitoPagamento(long pagamentoId, long dettPraticaId, String stato) throws IOException, SystemException, PortalException { - updateEsitoPagamento(pagamentoId, dettPraticaId, 0l, stato); + return updateEsitoPagamento(pagamentoId, dettPraticaId, 0L, stato); } - public void updateEsitoPagamento(long pagamentoId, long dettPraticaId, long fileEntryId, String stato) + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica updateEsitoPagamento(long pagamentoId, long dettPraticaId, long fileEntryId, String stato) throws IOException, SystemException, PortalException { Date now = new Date(); DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); dettPratica.setModifiedDate(now); - Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId); String tipoPagamento = pagamento.getTipoPagamento(); - if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { boolean completed = false; if (!dettPratica.isNormEsenteBollo() && !dettPratica.isNormEsenteSpese()) { if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - Pagamento pagamentoBolli = pagamentoLocalService.getPagamento(dettPratica - .getPagamentoIdBolli()); - completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli - .getUtilizzata()); + Pagamento pagamentoBolli = pagamentoLocalService.getPagamento(dettPratica.getPagamentoIdBolli()); + completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata()); } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { - Pagamento pagamentoSpese = pagamentoLocalService.getPagamento(dettPratica - .getPagamentoIdOneri()); - completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese - .getUtilizzata()); + Pagamento pagamentoSpese = pagamentoLocalService.getPagamento(dettPratica.getPagamentoIdOneri()); + completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata()); } } else { - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento) - && dettPratica.isNormEsenteBollo()) { + if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento) && dettPratica.isNormEsenteBollo()) { completed = true; - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) - && dettPratica.isNormEsenteSpese()) { + } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) && dettPratica.isNormEsenteSpese()) { completed = true; } } - if (completed) { dettPratica = updateEsito(dettPraticaId, WorkflowConstants.STATUS_APPROVED); - try { WorkflowUtil.valutaEffettiInvioVariante(dettPratica); } catch (Exception e) { @@ -1696,68 +1260,55 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl } pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); delegaLocalService.concludiDeleghePagamento(dettPraticaId); - } else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) { pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); } - + return dettPratica; } + @Override public boolean isControlloObbligatorio(DettPratica dettPratica) { boolean isRiparazione = dettPratica.getTcRiparazioneInterventoLocale(); if (isRiparazione && !dettPratica.getTcNuovaCostruzione()) { return false; } - return !dettPratica.getDestinazione().equals("1") && !dettPratica.getDestinazione().equals("2"); - } - public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException, - PortalException { + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException, PortalException { boolean sendMail = false; - Date now = new Date(); DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); dettPratica.setModifiedDate(now); - dettPratica.setStatus(stato); dettPratica.setCompleta(true); dettPratica.setDataEffettuazione(now); - IntPratica intPratica = intPraticaLocalService.updateDelegati(dettPratica.getIntPraticaId(), - dettPratica.getCodiceFiscaleDelegatoFineLavori(), - dettPratica.getCodiceFiscaleDelegatoCollaudo(), isControlloObbligatorio(dettPratica)); + dettPratica.getCodiceFiscaleDelegatoFineLavori(), dettPratica.getCodiceFiscaleDelegatoCollaudo(), + isControlloObbligatorio(dettPratica)); if (intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE) { intPratica.setValidata(true); intPratica = intPraticaLocalService.updateIntPratica(intPratica); } asseverazioneLocalService.concludiAsseverazioniExpired(dettPraticaId); - if (TipoIntegrazioneUtil.VARIANTE.equals(dettPratica.getTipoIntegrazione())) { - dettPratica.setVarianteNumero(dettPraticaPersistence - .countByIntPraticaId_TipoIntegrazione_Completa(dettPratica.getIntPraticaId(), - TipoIntegrazioneUtil.VARIANTE, true) + 1); - if (AzioniPraticheUtil.isAutorizzazione(dettPratica.getIntPraticaId()) - && !dettPratica.getVarianteSostanziale()) { - sendMail = true; - } - + dettPratica.setVarianteNumero(dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione_Completa( + dettPratica.getIntPraticaId(), TipoIntegrazioneUtil.VARIANTE, true) + 1); } else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equals(dettPratica.getTipoIntegrazione())) { dettPratica.setIntegrazione(dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione_Completa( dettPratica.getIntPraticaId(), TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, true) + 1); } else if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())) { sendMail = true; } - dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica); - + dettPratica = updateDettPratica(dettPratica); docPraticaLocalService.completeInvalidation(dettPratica.getIntPraticaId()); soggettoLocalService.completeInvalidation(dettPratica.getIntPraticaId()); - // chiudo timer pratica se presente if (TipoIntegrazioneUtil.ANNULLA.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { Tempistica tempisticaPratica = tempisticaLocalService.getTempistica(intPratica.getCompanyId(), @@ -1766,51 +1317,41 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl tempisticaLocalService.concludiTempistica(tempisticaPratica.getTempisticaId(), new Date()); } // chiudo timer integrazione se presente - Tempistica tempisticaIntegrazione = tempisticaLocalService.getTempistica( - intPratica.getCompanyId(), intPratica.getIntPraticaId(), - TempisticaConstants.TIPO_INTEGRAZIONE, false); + Tempistica tempisticaIntegrazione = tempisticaLocalService.getTempistica(intPratica.getCompanyId(), + intPratica.getIntPraticaId(), TempisticaConstants.TIPO_INTEGRAZIONE, false); if (tempisticaIntegrazione != null) { - tempisticaLocalService.concludiTempistica(tempisticaIntegrazione.getTempisticaId(), - new Date()); + tempisticaLocalService.concludiTempistica(tempisticaIntegrazione.getTempisticaId(), new Date()); } - } else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica - .getTipoIntegrazione())) { + } else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { // chiudo time integrazione Tempistica tempisticaI = tempisticaLocalService.getTempistica(intPratica.getCompanyId(), dettPratica.getIntPraticaId(), TempisticaConstants.TIPO_INTEGRAZIONE, false); if (tempisticaI != null) { tempisticaLocalService.concludiTempistica(tempisticaI.getTempisticaId(), new Date()); } - // gestione tempistica riavvio in caso di integrazione long intPraticaId = dettPratica.getIntPraticaId(); - Tempistica tempisticaP = tempisticaLocalService.getTempistica(intPratica.getCompanyId(), - intPraticaId, TempisticaConstants.TIPO_PRATICA, false); + Tempistica tempisticaP = tempisticaLocalService.getTempistica(intPratica.getCompanyId(), intPraticaId, + TempisticaConstants.TIPO_PRATICA, false); if (tempisticaP != null) { tempisticaLocalService.ravvioTempistica(tempisticaP.getTempisticaId(), new Date()); } - } - if (sendMail && WorkflowUtil.isWorkflowDisattivabile(dettPratica.getIntPraticaId()) && Validator.isNotNull(intPratica.getStatusByUserId())) { inviaMailnotifica(dettPraticaId, intPratica.getStatusByUserId(), now); } - return dettPratica; } - private void inviaMailnotifica(long dettPraticaId, long tecnicoIstruttoreId, Date date) - throws SystemException, PortalException { + private void inviaMailnotifica(long dettPraticaId, long tecnicoIstruttoreId, Date date) throws SystemException, + PortalException { DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); - User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId); - String[] to = { tecnicoIstruttore.getEmailAddress() }; String[] cc = new String[0]; String[] ccn = new String[0]; - String tipoPratica = StringPool.BLANK; long intPraticaId = dettPratica.getIntPraticaId(); if (AzioniPraticheUtil.isDeposito(intPraticaId)) { @@ -1818,7 +1359,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } - JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); templateVariables.put("receiver", tecnicoIstruttore.getFullName()); templateVariables.put("tipoPratica", tipoPratica); @@ -1826,112 +1366,81 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl LocaleUtil.ITALIAN, Validator.isNotNull(dettPratica.getTipoIntegrazione()) ? "label-integrazione-" + dettPratica.getTipoIntegrazione() : StringPool.BLANK)); - templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm") - .format(date)); - + templateVariables.put("dataInvio", + FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date)); ServiceContext serviceContext = new ServiceContext(); serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setCompanyId(dettPratica.getCompanyId()); serviceContext.setUserId(dettPratica.getUserId()); - MailUtil.invioMailNotifica(dettPratica.getIntPraticaId(), dettPraticaId, dettPraticaId, - DettPratica.class.getName(), to, cc, ccn, "NOTIFICA-BO", templateVariables, null, - serviceContext); + DettPratica.class.getName(), to, cc, ccn, "NOTIFICA-BO", templateVariables, null, serviceContext); } - public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException, - SystemException, PortalException { + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException, SystemException, + PortalException { DettPratica dettPratica = updateEsito(dettPraticaId, stato); long intPraticaId = dettPratica.getIntPraticaId(); intPraticaLocalService.updateStatoPratica(intPraticaId, StatoPraticaConstants.SOTTOPOSTA_A_PARERE); - ControlloPratica controlloPratica = controlloPraticaLocalService.findByIntPraticaId_Status( - intPraticaId, WorkflowConstants.STATUS_PENDING).get(0); - controlloPraticaLocalService.addPraticheAlControllo(controlloPratica.getControlloPraticaId(), - dettPraticaId); - + ControlloPratica controlloPratica = controlloPraticaLocalService.findByIntPraticaId_Status(intPraticaId, + WorkflowConstants.STATUS_PENDING).get(0); + controlloPraticaLocalService.addPraticheAlControllo(controlloPratica.getControlloPraticaId(), dettPraticaId); return dettPratica; } + @Override public DettPratica pagaInvia(long dettPraticaId, Double pagInterventiRestauroManufatti, - Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, - Double pagCondotte, Double pagPalificazioni, Double pagImpiantiEolici, - Double pagNuoveRealizzazioni, Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari, - Double pagPareriDiMassima, Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi, - Double pagRilascioAttestazioni, Double pagConsultazioniArchivio, String importoSpeseIstruttoria, - String codiceFiscaleCommittente, Double pagSoggettiAdAutorizzazione, String currentURL, ServiceContext serviceContext) + Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagCondotte, + Double pagPalificazioni, Double pagImpiantiEolici, Double pagNuoveRealizzazioni, + Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari, Double pagPareriDiMassima, + Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi, Double pagRilascioAttestazioni, + Double pagConsultazioniArchivio, String importoSpeseIstruttoria, String codiceFiscaleCommittente, + Double pagSoggettiAdAutorizzazione, String currentURL, ServiceContext serviceContext) throws SystemException, PortalException { DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(dettPraticaId); - BigDecimal importoBolli = PagamentiUtil.getImportoBolli(dettPratica.getCompanyId(), dettPratica.getDettPraticaId(), dettPratica.getTipoIntegrazione()); PagamentiUtil.nuovoPagamento(currentURL, dettPratica.getDettPraticaId(), DettPratica.class.getName(), - PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, - serviceContext); + PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); PagamentiUtil.nuovoPagamento(currentURL, dettPratica.getDettPraticaId(), DettPratica.class.getName(), - PagamentoConstants.PAGAMENTO_ONERI, importoSpeseIstruttoria, codiceFiscaleCommittente, - serviceContext); - + PagamentoConstants.PAGAMENTO_ONERI, importoSpeseIstruttoria, codiceFiscaleCommittente, serviceContext); dettPratica = updateDettPraticaPagamento(dettPratica.getDettPraticaId(), importoSpeseIstruttoria, - importoBolli.toString(), pagInterventiRestauroManufatti, pagAltriCasiCulturali, - pagLottizzazioni, pagGrandiStrutture, pagCondotte, pagPalificazioni, pagImpiantiEolici, - pagNuoveRealizzazioni, pagImmobiliPreesistenti, pagManifestiPubblicitari, pagPareriDiMassima, - pagAltriCasiPaesaggistici, pagVariantiPareriResi, pagRilascioAttestazioni, - pagConsultazioniArchivio, pagSoggettiAdAutorizzazione, serviceContext); - + importoBolli.toString(), pagInterventiRestauroManufatti, pagAltriCasiCulturali, pagLottizzazioni, + pagGrandiStrutture, pagCondotte, pagPalificazioni, pagImpiantiEolici, pagNuoveRealizzazioni, + pagImmobiliPreesistenti, pagManifestiPubblicitari, pagPareriDiMassima, pagAltriCasiPaesaggistici, + pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, pagSoggettiAdAutorizzazione, + serviceContext); long intPraticaid = dettPratica.getIntPraticaId(); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaid); if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY) { intPraticaLocalService.updateStatus(intPraticaid, WorkflowConstants.STATUS_INCOMPLETE); } - dettPratica = updateDettPratica(dettPratica); - updateStatus(dettPraticaId, WorkflowConstants.STATUS_INCOMPLETE); - - dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); - + dettPratica = getDettPratica(dettPraticaId); return dettPratica; } - private void validateDatiGeologo(long userId, long dettPraticaId, long intPraticaId, - String geoClasseIndagine, String geoCategoriaSottosuolo, String geoCategoriaTopografica, - String geoConsolidamento, String geoPericolositaGeologica, String geoRischioGeomorfologicoPai, - String geoPericolositaIdraulicaPai, String geoRischioIdraulicoPai, String geoPericolositaSismica, - String geoPericolositaIdraulica, String geoPericolositaGeomorfica, - String geoFattibilitaGeologica, String geoFattibilitaSismica, String geoFattibilitaIdraulica, - String geoOperaRilevante, String geoOpereDiSostegno, String geoOpereInSotterranea, - String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini, - String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione, - ServiceContext serviceContext, boolean bozza) { - } - - private void validate(long userId, long dettPraticaId, long intPraticaId, - String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, - String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) { - } - + @Override @Indexable(type = IndexableType.REINDEX) - public DettPratica updateStatus(long userId, long resourcePrimKey, int status, - ServiceContext serviceContext) throws PortalException, SystemException { + public DettPratica updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext) + throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); Date now = new Date(); - DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(resourcePrimKey); - dettPratica.setStatus(status); dettPratica.setStatusByUserId(user.getUserId()); dettPratica.setStatusByUserName(user.getFullName()); dettPratica.setStatusDate(serviceContext.getModifiedDate(now)); - if (status == WorkflowConstants.STATUS_APPROVED) { assetEntryLocalService.updateVisible(DettPratica.class.getName(), resourcePrimKey, true); } else { assetEntryLocalService.updateVisible(DettPratica.class.getName(), resourcePrimKey, false); } - return dettPraticaPersistence.update(dettPratica); } @@ -1939,12 +1448,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl try { assetEntryLocalService.deleteEntry(DettPratica.class.getName(), dettPratica.getPrimaryKey()); - expandoValueLocalService.deleteValues(DettPratica.class.getName(), dettPratica.getPrimaryKey()); - resourceLocalService.deleteResource(dettPratica.getCompanyId(), DettPratica.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, dettPratica.getDettPraticaId()); - } catch (PortalException e) { throw new SystemException(e); } @@ -1953,64 +1459,66 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl private void updateAsset(DettPratica dettPratica, ServiceContext serviceContext) throws PortalException, SystemException { - AssetEntry assetEntry = assetEntryLocalService.updateEntry(dettPratica.getUserId(), - dettPratica.getGroupId(), dettPratica.getCreateDate(), dettPratica.getModifiedDate(), - DettPratica.class.getName(), dettPratica.getPrimaryKey(), dettPratica.getUuid(), 0L, - serviceContext.getAssetCategoryIds(), serviceContext.getAssetTagNames(), true, null, null, - null, ContentTypes.TEXT_HTML, dettPratica.getDescLongIntervento(), - dettPratica.getDescLongIntervento(), null, null, null, 0, 0, 0, false); - + AssetEntry assetEntry = assetEntryLocalService.updateEntry(dettPratica.getUserId(), dettPratica.getGroupId(), + dettPratica.getCreateDate(), dettPratica.getModifiedDate(), DettPratica.class.getName(), + dettPratica.getPrimaryKey(), dettPratica.getUuid(), 0L, serviceContext.getAssetCategoryIds(), + serviceContext.getAssetTagNames(), true, null, null, null, ContentTypes.TEXT_HTML, + dettPratica.getDescLongIntervento(), dettPratica.getDescLongIntervento(), null, null, null, 0, 0, 0, + false); assetLinkLocalService.updateLinks(dettPratica.getUserId(), assetEntry.getEntryId(), serviceContext.getAssetLinkEntryIds(), AssetLinkConstants.TYPE_RELATED); - dettPratica.setExpandoBridgeAttributes(serviceContext); } - public DettPratica updateDettPraticaProtocollo(long dettPraticaId, String protocollo) - throws PortalException, SystemException { + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica updateDettPraticaProtocollo(long dettPraticaId, String protocollo) throws PortalException, + SystemException { - DettPratica dettPratica = dettPraticaLocalService.fetchDettPratica(dettPraticaId); + DettPratica dettPratica = fetchDettPratica(dettPraticaId); dettPratica.setModifiedDate(new Date()); dettPratica.setProtocollo(protocollo); dettPratica.setDtProtocollo(new Date()); - - dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica); - + dettPratica = updateDettPratica(dettPratica); IntPratica intPratica = intPraticaLocalService.getIntPratica(dettPratica.getIntPraticaId()); if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE) { - intPraticaLocalService.updateStatoPratica(dettPratica.getIntPraticaId(), - StatoPraticaConstants.VIDIMATA); + intPraticaLocalService.updateStatoPratica(dettPratica.getIntPraticaId(), StatoPraticaConstants.VIDIMATA); } return dettPratica; } - public DettPratica findByProtocollo(long companyId, long groupId, String protocollo) - throws PortalException, SystemException { + @Override + public DettPratica findByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, + SystemException { return dettPraticaPersistence.findByC_G_Protocollo(companyId, groupId, protocollo); } - public DettPratica fetchByProtocollo(long companyId, long groupId, String protocollo) - throws PortalException, SystemException { + @Override + public DettPratica fetchByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, + SystemException { return dettPraticaPersistence.fetchByC_G_Protocollo(companyId, groupId, protocollo); } + @Override public DettPratica fetchByProtocollo(String protocollo) throws PortalException, SystemException { return dettPraticaPersistence.fetchByProtocollo(protocollo); } + @Override public List findByIntPraticaId(long intPraticaId) throws SystemException { return dettPraticaPersistence.findByIntPraticaId(intPraticaId); } - public List findByIntPraticaIdInviate(long intPraticaId, int start, int end) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findByIntPraticaIdInviate(long intPraticaId, int start, int end) throws SystemException { - DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_ANY)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); @@ -2018,6 +1526,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @SuppressWarnings("unchecked") + @Override public List findPraticheCompleteNotProtocollo(int start, int end) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryPraticheCompleteNotProtocollo(); @@ -2025,6 +1535,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countPraticheCompleteNotProtocollo() throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryPraticheCompleteNotProtocollo(); @@ -2033,7 +1544,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl private DynamicQuery getDynamicQueryPraticheCompleteNotProtocollo() { - DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completa", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); Disjunction or = RestrictionsFactoryUtil.disjunction(); @@ -2043,6 +1554,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List findPraticheCompleteNotGestite(int start, int end) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryPraticheCompleteNotGestite(); @@ -2050,6 +1563,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public int countPraticheCompleteNotGestite() throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryPraticheCompleteNotGestite(); @@ -2058,7 +1572,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl private DynamicQuery getDynamicQueryPraticheCompleteNotGestite() { - DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("completa", true)); dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); @@ -2066,184 +1580,68 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return dynamicQuery; } - public List findByIntPraticaId_TipoIntegrazione_Completa(long intPraticaId, - String tipoIntegrazione, boolean completa) throws SystemException { + @Override + public List findByIntPraticaId_TipoIntegrazione_Completa(long intPraticaId, String tipoIntegrazione, + boolean completa) throws SystemException { - return dettPraticaPersistence.findByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, - tipoIntegrazione, completa); + return dettPraticaPersistence.findByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, tipoIntegrazione, + completa); } + @Override public int countByIntPraticaId_TipoIntegrazione_Completa(long intPraticaId, String tipoIntegrazione, boolean completa) throws SystemException { - return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, - tipoIntegrazione, completa); - } - - public List findPraticheCompletateNonVersionate(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryPraticheCompletateNonVersionate(); - dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaId")); - return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - public int countPraticheCompletateNonversionate() throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryPraticheCompletateNonVersionate(); - return (int) dettPraticaPersistence.countWithDynamicQuery(dynamicQuery); - } - - private DynamicQuery getDynamicQueryPraticheCompletateNonVersionate() { - - DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completa", true)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("versionata", false)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); - dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("protocollo")); - return dynamicQuery; + return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, tipoIntegrazione, + completa); } + @Override + @Indexable(type = IndexableType.REINDEX) public DettPratica updateDettPraticaGestita(long dettPraticaId, boolean gestita) throws SystemException { - DettPratica dettPratica = dettPraticaLocalService.fetchDettPratica(dettPraticaId); + DettPratica dettPratica = fetchDettPratica(dettPraticaId); dettPratica.setModifiedDate(new Date()); dettPratica.setGestita(gestita); - - return dettPraticaLocalService.updateDettPratica(dettPratica); + return updateDettPratica(dettPratica); } - public void updateAsset(DettPratica dettPratica, long[] categoryIds, boolean visible) - throws SystemException, PortalException { + @Override + @Indexable(type = IndexableType.REINDEX) + public DettPratica updateStatus(long dettPraticaId, int status) throws PortalException, SystemException { - // List tagNames = new ArrayList(); - // IntPratica intPratica = - // intPraticaLocalService.getIntPratica(dettPratica.getIntPraticaId()); - // TODO gestire la nuova logica di asset - // aggiunta tag tipologia pratica - // if (dettPratica.getIntegrazione() != 0L) { - // String tagName = - // TagsPraticaValue.getTagsLabelMap().get(dettPratica.getTipoIntegrazione()); - // if (Validator.isNotNull(tagName)) { - // tagNames.add(tagName); - // } - // } else { - // if (intPratica.isVariante()) { - // tagNames.add(TagsPraticaValue.VARIANTE); - // } else { - // tagNames.add(TagsPraticaValue.ORIGINALE); - // } - // } - // - // DettPratica dettPraticaLast = - // dettPraticaLocalService.getLastDettPratica(dettPratica.getIntPraticaId()); - // boolean sorteggiata = - // sorteggioLocalService.isDettPraticaSorteggiata(dettPraticaLast.getCompanyId(), - // dettPraticaLast.getDettPraticaId()); - // if (sorteggiata) { - // tagNames.add(TagsPraticaValue.getTagsLabelMap().get(StatoPraticaConstants.SORTEGGIATA)); - // } - // - // if - // (intPratica.getStatoPratica().equals(StatoPraticaConstants.ANNULLATA)) - // { - // String tagName = - // TagsPraticaValue.getTagsLabelMap().get(TipoIntegrazioneConstants.ANNULLA); - // tagNames.add(tagName); - // } - // - // // aggiunta tag validazione - // if (dettPratica.isValidata()) { - // tagNames.add(TagsPraticaValue.getTagsLabelMap().get(StatoPraticaConstants.VIDIMATA)); - // // eventuale aggiunta tag anomalia fine lavoro - // if - // (StatoPraticaConstants.isStatoPraticaFineLavoriConAnomalia(dettPratica)) - // { - // tagNames.add(TagsPraticaValue.getTagsLabelMap().get(StatoPraticaConstants.FINE_LAVORI_CON_ANOMALIA)); - // } - // } else { - // tagNames.add(TagsPraticaValue.getTagsLabelMap().get(StatoPraticaConstants.RIFIUTATA)); - // } - // // pratica indica se è stata variata - // if (intPratica.getVariataDa() != 0l) { - // tagNames.add(TagsPraticaValue.getTagsLabelMap().get(StatoPraticaConstants.VARIATA)); - // } - // // aggiunta del tag pending - // if (dettPratica.getStatus() == WorkflowConstants.STATUS_PENDING) { - // tagNames.add(TagsPraticaValue.getTagsLabelMap().get(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)); - // } else { - // String tagName = - // TagsPraticaValue.getTagsLabelMap().get(intPratica.getStatoPratica()); - // if (Validator.isNotNull(tagName)) { - // tagNames.add(tagName); - // } - // if (Validator.isNotNull(intPratica.getStatoPraticaWorkflow())) { - // tagName = - // TagsPraticaValue.getTagsLabelMap().get(intPratica.getStatoPraticaWorkflow()); - // if (Validator.isNotNull(tagName)) { - // tagNames.add(tagName); - // } - // } - // } - // - // ServiceContext serviceContext = new ServiceContext(); - // serviceContext.setCompanyId(dettPratica.getCompanyId()); - // serviceContext.setScopeGroupId(dettPratica.getGroupId()); - // serviceContext.setUserId(dettPratica.getUserId()); - // - // try { - // AssetEntry currentAssetEntry = - // assetEntryLocalService.getEntry(DettPratica.class.getName(), - // dettPratica.getDettPraticaId()); - // categoryIds = - // createUpdateAssetCategory(intPratica, dettPratica, - // currentAssetEntry.getCategoryIds(), - // serviceContext); - // visible = currentAssetEntry.isVisible() || visible; - // } catch (Exception e) { - // } - // - // if (categoryIds.length > 0) { - // assetEntryLocalService.updateEntry(dettPratica.getUserId(), - // dettPratica.getGroupId(), - // DettPratica.class.getName(), dettPratica.getDettPraticaId(), - // dettPratica.getUuid(), 0l, - // categoryIds, - // tagNames.toArray(new String[] {}), visible, null, null, - // dettPratica.getCreateDate(), null, - // ContentTypes.TEXT_HTML, - // PraticaUtil.generateTitle(dettPratica.getDettPraticaId()), null, - // PraticaUtil.generateTitle(dettPratica.getDettPraticaId()), null, - // null, 0, 0, null, false); - // } - } - - public void updateStatus(long dettPraticaId, int status) throws PortalException, SystemException { - - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + DettPratica dettPratica = getDettPratica(dettPraticaId); dettPratica.setStatus(status); - updateDettPratica(dettPratica); + return updateDettPratica(dettPratica); } + @Override + @Indexable(type = IndexableType.REINDEX) public DettPratica updateSignal(long dettPraticaId, Date dtInvioSignal) throws SystemException { DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); dettPratica.setDtInvioSignal(dtInvioSignal); - return dettPraticaLocalService.updateDettPratica(dettPratica); + return updateDettPratica(dettPratica); } + @Override public int countInvioSignal() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryInvioSignal(null); return (int) dettPraticaPersistence.countWithDynamicQuery(dynamicQuery); } + @Override public DettPratica getInvioSignal(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryInvioSignal(dettPraticaId); + @SuppressWarnings("unchecked") List integrazioni = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1); - return !integrazioni.isEmpty() ? integrazioni.get(0) : null; + return integrazioni.isEmpty() ? null : integrazioni.get(0); } + @SuppressWarnings("unchecked") + @Override public List getInviiSignal(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryInvioSignal(null); @@ -2251,139 +1649,275 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @Override public DynamicQuery dynamicQueryInvioSignal(Long dettPraticaId) throws SystemException { - DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); - + DynamicQuery dynamicQuery = dynamicQuery(); if (Validator.isNotNull(dettPraticaId)) { dynamicQuery.add(PropertyFactoryUtil.forName("avvisoId").eq(dettPraticaId)); } dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioSignal").isNull()); dynamicQuery.add(PropertyFactoryUtil.forName("status").eq(WorkflowConstants.STATUS_APPROVED)); - dynamicQuery.add(PropertyFactoryUtil.forName("tipoIntegrazione").eq( - TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); - + dynamicQuery.add(PropertyFactoryUtil.forName("tipoIntegrazione") + .eq(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List findByPagamentoId(long pagamentoId) throws SystemException { - DynamicQuery dynamicQuery = dettPraticaLocalService.dynamicQuery(); - + DynamicQuery dynamicQuery = dynamicQuery(); Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); disjunction.add(RestrictionsFactoryUtil.eq("pagamentoIdOneri", pagamentoId)); disjunction.add(RestrictionsFactoryUtil.eq("pagamentoIdBolli", pagamentoId)); dynamicQuery.add(disjunction); - return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery); } + @Override + @Indexable(type = IndexableType.REINDEX) public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) throws PortalException, SystemException { - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + DettPratica dettPratica = getDettPratica(dettPraticaId); switch (tipologiaSoggetto) { case TipoSoggettoUtil.COMMITTENTE: dettPratica.setCodiceFiscalePrincipaleCommittente(codiceFiscale); break; - case TipoSoggettoUtil.COLLAUDATORE: dettPratica.setCodiceFiscalePrincipaleCollaudatore(codiceFiscale); break; - case TipoSoggettoUtil.DIRETTORE_LAVORI: dettPratica.setCodiceFiscalePrincipaleDirettoreLavori(codiceFiscale); break; - case TipoSoggettoUtil.PROGETTISTA: dettPratica.setCodiceFiscalePrincipaleProgettista(codiceFiscale); break; - case TipoSoggettoUtil.GEOLOGO: dettPratica.setCodiceFiscalePrincipaleGeologo(codiceFiscale); break; - case TipoSoggettoUtil.DITTA: dettPratica.setCodiceFiscalePrincipaleDitta(codiceFiscale); break; - case TipoSoggettoUtil.ARCHEOLOGO: dettPratica.setCodiceFiscalePrincipaleArcheologo(codiceFiscale); break; - - default: - break; } - dettPratica = DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); return dettPratica; } - public void sendToVersioning(long dettPraticaId, String url) throws Exception { - - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); - String jsonToVersioning = dettPratica.serializeToVersioning(); - - JSONObject responseObj = HttpServiceUtil.postJson(url, jsonToVersioning); - int version = responseObj.getInt("version"); - dettPratica.setVersion(version); - dettPratica.setVersionata(true); - dettPraticaLocalService.updateDettPratica(dettPratica); + private static final List dettPraticaFields; + private static final Map dettPraticaFieldsTypes; + static { + @SuppressWarnings("serial") + List hiddenFields = new ArrayList() { + { + add("causalePagamentoBolli"); + add("causalePagamentoOneri"); + add("codicePagamentoBolli"); + add("codicePagamentoOneri"); + add("companyId"); + add("completa"); + add("createDate"); + add("dataEffettuazione"); + add("dettPraticaId"); + add("dtInvioSignal"); + add("dtProtocollo"); + add("geoDtRelazione"); + add("gestita"); + add("groupId"); + add("importoBolli"); + add("importoSpeseIstruttoria"); + add("integrazione"); + add("intPraticaId"); + add("mezzoPagamentoBolli"); + add("mezzoPagamentoOneri"); + add("modifiedDate"); + add("pagAdeguamentoSismico"); + add("pagAltriCasiCulturali"); + add("pagAltriCasiPaesaggistici"); + add("pagAltro"); + add("pagamentoIdBolli"); + add("pagamentoIdOneri"); + add("pagCalcolatoAdeguamentoSismico"); + add("pagCalcolatoMiglioramentoSismico"); + add("pagCalcolatoOperaNonQuantificabile"); + add("pagCalcolatoRiparazioneInterventoLocale"); + add("pagCondotte"); + add("pagConsultazioniArchivio"); + add("pagEffettivoAdeguamentoSismico"); + add("pagEffettivoMiglioramentoSismico"); + add("pagEffettivoOperaNonQuantificabile"); + add("pagEffettivoRiparazioneInterventoLocale"); + add("pagGrandiStrutture"); + add("pagImmobiliPreesistenti"); + add("pagImpiantiEolici"); + add("pagInterventiRestauroManufatti"); + add("pagLottizzazioni"); + add("pagManifestiPubblicitari"); + add("pagMiglioramentoSismico"); + add("pagMiglioramentoSismicoSicilia"); + add("pagNoteUtente"); + add("pagNuovaCostruzione"); + add("pagNuoveRealizzazioni"); + add("pagOperaNonQuantificabile"); + add("pagPalificazioni"); + add("pagPareriDiMassima"); + add("pagRilascioAttestazioni"); + add("pagRiparazioneInterventoLocale"); + add("pagSoggettiAdAutorizzazione"); + add("pagVarianti"); + add("pagVariantiPareriResi"); + add("protocollo"); + add("soggettoSostituitoId"); + add("status"); + add("statusByUserId"); + add("statusByUserName"); + add("statusDate"); + add("statusTask"); + add("tipoIntegrazione"); + add("uuid_"); + add("userId"); + add("userName"); + add("varianteNumero"); + add("version"); + } + }; + dettPraticaFields = new ArrayList<>(); + dettPraticaFieldsTypes = new HashMap<>(); + for (int i = 0; i < DettPraticaImpl.TABLE_COLUMNS.length; i++) { + String field = (String) DettPraticaImpl.TABLE_COLUMNS[i][0]; + if (!hiddenFields.contains(field)) { + dettPraticaFields.add(field); + } + dettPraticaFieldsTypes.put(field, (int) DettPraticaImpl.TABLE_COLUMNS[i][1]); + } } - public int getNumeroDiVersioni(String url) throws NumberFormatException, Exception { - return Integer.parseInt(HttpServiceUtil.getUrl(url, "0")); + @Override + public List getDettPraticaFields() { + + return dettPraticaFields; } - public String getVersionNumber(String url, int version) throws Exception { + @Override + @SuppressWarnings("unchecked") + public List getVersioni(long intPraticaId) throws SystemException { - String response = callToVersion(url); + DynamicQuery query = queryVersioning(intPraticaId); + query.addOrder(OrderFactoryUtil.asc("dettPraticaId")); + return dettPraticaPersistence.findWithDynamicQuery(query); + } - JSONObject jsonObjectResponse = JSONFactoryUtil.createJSONObject(response); - JSONObject snapshot = jsonObjectResponse.getJSONObject("Snapshot"); - int responseVersion = snapshot.getInt("version"); - if (responseVersion != version) { - _log.error("Le versioni non corrispondono"); + @Override + public List> callForChanges(long intPraticaId) throws SystemException { + + DynamicQuery query = queryVersioning(intPraticaId); + query.addOrder(OrderFactoryUtil.asc("dettPraticaId")); + @SuppressWarnings("unchecked") + List lista = dettPraticaPersistence.findWithDynamicQuery(query); + int size = lista.size(); + List> versions = new ArrayList<>(size); + List> changes = new ArrayList<>(size); + JSONSerializer serializer = JSONFactoryUtil.createJSONSerializer(); + JSONDeserializer> deserializer = JSONFactoryUtil.createJSONDeserializer(); + for (int i = 0; i < size; i++) { + versions.add(deserializer.deserialize(serializer.serialize(lista.get(i)))); + changes.add(new HashMap()); } - JSONObject jsonFields = snapshot.getJSONObject("fields"); - for (String hiddenField : PraticaUtil.getDettPraticaHiddenFields()) { - jsonFields.remove(hiddenField); + for (String field : dettPraticaFields) { + Serializable v0 = null == versions.get(0).get(field) ? StringPool.BLANK : versions.get(0).get(field); + boolean changed = false; + for (int i = 1; i < size; i++) { + Serializable v1 = null == versions.get(i).get(field) ? StringPool.BLANK : versions.get(i).get(field); + if (!v1.equals(v0)) { + changed = true; + break; + } + } + if (changed) { + for (int i = 0; i < versions.size(); i++) { + Serializable v = null == versions.get(i).get(field) ? StringPool.BLANK : versions.get(i).get(field); + changes.get(i).put(field, v); + } + } } - - return jsonFields.toString(); + return changes; } - private String callToVersion(String versioningURL) throws Exception { - return HttpServiceUtil.getUrl(versioningURL); - } - - public JSONArray callForChanges(String url) throws Exception { - - String response = callToVersion(url); - - JSONArray jsonArray = JSONFactoryUtil.createJSONObject(response).getJSONArray("values"); + @Override + public boolean isNumber(String field) { - return jsonArray; + switch (dettPraticaFieldsTypes.get(field)) { + case Types.BOOLEAN: + case Types.TIMESTAMP: + return false; + case Types.VARCHAR: + switch (field) { + case "importoSpeseIstruttoria": + return true; + } + return false; + case Types.BIGINT: + case Types.DOUBLE: + case Types.INTEGER: + return true; + default: + _log.info(dettPraticaFieldsTypes.get(field)); + } + return true; } - public DettPratica fetchByOldDettPraticaId(long oldDettPraticaId) throws SystemException { - - return dettPraticaPersistence.fetchByOldDettPraticaId(oldDettPraticaId); + @Override + public String format(String field, Serializable value) { + + switch (dettPraticaFieldsTypes.get(field)) { + case Types.BOOLEAN: + return (Boolean) value ? "Sì" : "No"; + case Types.TIMESTAMP: + Date dt; + if (value instanceof Long) { + dt = new Date((Long) value); + } else if (value instanceof String) { + String s = (String) value; + if (s.isEmpty()) { + return s; + } + dt = new Date(Long.parseLong(s)); + } else { + return "{{{{{{{" + value + "}}}}}}}"; + } + return FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(dt); + case Types.VARCHAR: + return (String) value; + case Types.BIGINT: + case Types.DOUBLE: + case Types.INTEGER: + return NumberFormat.getInstance().format(value); + default: + _log.info(dettPraticaFieldsTypes.get(field)); + return "XXXXXXXXXXXXX"; + } } + @Override public int countVariateByIntPratica(long intPraticaId) throws SystemException { - return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione(intPraticaId, - TipoIntegrazioneUtil.VARIANTE); + return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione(intPraticaId, TipoIntegrazioneUtil.VARIANTE); } - /** - * ADT: nuovo metodo per stampa fascicolo - * - * @param intPraticaId - * @return - * @throws SystemException - */ + private DynamicQuery queryVersioning(long intPraticaId) { + DynamicQuery query = dynamicQuery(); + query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + query.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_APPROVED)); + query.add(RestrictionsFactoryUtil.ne("tipoIntegrazione", TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); + return query; + } + + // ADT: nuovo metodo per stampa fascicolo + @Override public DettPratica getFirstCompletedByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -2391,12 +1925,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaId")); + @SuppressWarnings("unchecked") List ritorno = dynamicQuery(dynamicQuery, 0, 1); - if (ritorno.isEmpty()) { - return null; - } else { - return ritorno.get(0); - } + return ritorno.isEmpty() ? null : ritorno.get(0); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java index de73d1ed..f1203405 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -19,38 +19,32 @@ import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.DettPraticaServiceBaseImpl; import it.tref.liferay.portos.bo.service.permission.DettPraticaEntryPermission; import it.tref.liferay.portos.bo.service.permission.DettPraticaPermission; -import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.DelegheUtil; -import it.tref.liferay.portos.bo.util.PraticaUtil; import java.io.IOException; +import java.io.Serializable; import java.util.Date; import java.util.List; - -import sun.security.krb5.internal.PAData; +import java.util.Map; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONArray; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.model.Company; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.security.permission.ActionKeys; -import com.liferay.portal.service.CompanyLocalServiceUtil; import com.liferay.portal.service.ServiceContext; /** * The implementation of the dett pratica remote 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.liferay.portos.bo.service.DettPraticaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DettPraticaService} interface. * *

- * This is a remote service. Methods of this service are expected to have - * security checks based on the propagated JAAS credentials because this service - * can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -59,17 +53,20 @@ import com.liferay.portal.service.ServiceContext; */ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.DettPraticaServiceUtil} to - * access the dett pratica remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DettPraticaServiceUtil} to access the dett pratica remote service. */ + private static final Log _log = LogFactoryUtil.getLog(DettPraticaServiceImpl.class); + + @Override public DettPratica getDettPratica(long dettPraticaId) throws PortalException, SystemException { DettPraticaEntryPermission.check(getPermissionChecker(), dettPraticaId, ActionKeys.VIEW); return dettPraticaLocalService.getDettPratica(dettPraticaId); } + @Override public DettPratica addDettPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) throws PortalException, SystemException { @@ -78,461 +75,315 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { return dettPraticaLocalService.addDettPratica(territorioId, tipoProcedura, serviceContext); } + @Override public DettPratica addDettPraticaToIntPratica(long intPraticaId, ServiceContext serviceContext) throws PortalException, SystemException { + return dettPraticaLocalService.addDettPraticaToIntPratica(intPraticaId, serviceContext); } + @Override public DettPratica addDettPraticaClonedToIntPratica(long intPraticaId, long dettPraticaToCloneId, String tipoIntegrazione, ServiceContext serviceContext) throws PortalException, SystemException { + return dettPraticaLocalService.addDettPraticaClonedToIntPratica(intPraticaId, dettPraticaToCloneId, tipoIntegrazione, serviceContext); } + @Override public DettPratica getLastEditableByIntPratica(long intPraticaId) throws PortalException, SystemException { DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(intPraticaId); if (dettPratica != null) { - DettPraticaEntryPermission.check(getPermissionChecker(), dettPratica.getDettPraticaId(), - ActionKeys.VIEW); + DettPraticaEntryPermission.check(getPermissionChecker(), dettPratica.getDettPraticaId(), ActionKeys.VIEW); } return dettPratica; } + @Override public DettPratica deleteDettPratica(DettPratica dettPratica) throws PortalException, SystemException { return dettPraticaLocalService.deleteDettPratica(dettPratica); } + @Override public DettPratica deleteDettPratica(long dettPraticaId) throws PortalException, SystemException { return dettPraticaLocalService.deleteDettPratica(dettPraticaId); } + @Override public DettPratica updateDettPraticaSoggetti(long userId, long dettPraticaId, long intPraticaId, String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) throws PortalException, SystemException { return dettPraticaLocalService.updateDettPraticaSoggetti(userId, dettPraticaId, intPraticaId, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, serviceContext); + codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, + serviceContext); } - public DettPratica updateDettPratica(long userId, long dettPraticaId, long intPraticaId, - long integrazione, String protocollo, String tipoIntegrazione, boolean completa, boolean gestita, - String codicePagamento, String causalePagamento, String mezzoPagamento, String importoBolli, - String importoSpeseIstruttoria, Date dataEffettuazione, int statusTask, boolean workflowForzato, - long soggettoSostituitoId, long oldDettPraticaId, String destinazione, String ag, - String descLongIntervento, String via, String localita, String estremiCatastali, - String estremiPratCom, long variataDa, long varianteNumero, boolean varianteSostanziale, - boolean operaConforme, boolean collaudoStatico, String codiceFiscaleDelegatoCommittente, - String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo, - String codiceRuoloDelegato, boolean lavoriInEconomiaCommittente, - boolean inizioLavoriContestualeOpera, Date dataInizioLavoriOpera, Date dataInizioEsecuzioneOpera, - Date dataFineEsecuzioneOpera, String metratura, boolean lavoriPubblici, long pagamentoId, - int lavoriPubbliciPercentuale, String numeroCivico, String dcParticelle, String dcFoglio, - String dcAllegato, String dePiani, String deAltezza, String deInterrati, String deSuperficie, - String deCostruzione, String deRistrutturazione, String deUso, String dePubblica, - String dePrivata, String deUtilizzazione, String dePosizioneEdificio, boolean deInfStradalePonte, - boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong, - boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, boolean deInfOperaAccStradale, - boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura, - boolean deInfAltro, String deInfAltroDesc, String dccFondazioni, + @Override + public DettPratica updateDettPratica(long userId, long dettPraticaId, long intPraticaId, long integrazione, + String protocollo, String tipoIntegrazione, boolean completa, boolean gestita, String codicePagamento, + String causalePagamento, String mezzoPagamento, String importoBolli, String importoSpeseIstruttoria, + Date dataEffettuazione, int statusTask, long soggettoSostituitoId, String destinazione, String ag, + String descLongIntervento, String via, String localita, String estremiCatastali, String estremiPratCom, + long varianteNumero, boolean operaConforme, boolean collaudoStatico, + String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, + String codiceFiscaleDelegatoCollaudo, boolean lavoriPubblici, long pagamentoId, + int lavoriPubbliciPercentuale, String dcParticelle, String dcFoglio, String dcAllegato, String dePiani, + String deAltezza, String deInterrati, String deSuperficie, String deCostruzione, String deRistrutturazione, + String deUso, String dePubblica, String dePrivata, String deUtilizzazione, String dePosizioneEdificio, + boolean deInfStradalePonte, boolean deInfStradaleStrada, boolean deInfStradaleAltro, + boolean deInfIdraulicaLong, boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, + boolean deInfOperaAccStradale, boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, + boolean deInfAltraInfrastruttura, boolean deInfAltro, String deInfAltroDesc, String dccFondazioni, boolean dccStruttureEleMuraturePietrame, boolean dccStruttureEleMuratureLaterizio, boolean dccStruttureEleMuratureMisto, boolean dccStruttureEleMuratureStoriche, String dccStruttureEleAcciaio, String dccStruttureEleCA, String dccStruttureEleLegno, - boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, - boolean dccStruttureEleMistoMuratura, boolean dccStruttureEleMistoLegno, - boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, - String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, - boolean dccOrizzontamentiLegno, boolean dccOrizzontamentiLegnoCA, - boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, + boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio, boolean dccStruttureEleMistoMuratura, + boolean dccStruttureEleMistoLegno, boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro, + String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio, boolean dccOrizzontamentiLegno, + boolean dccOrizzontamentiLegnoCA, boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte, boolean dccOrizzontamentiAltro, String dccOrizzontamentiAltroDescrizione, String dccCopertura, boolean dccCoperturaCAAcciaio, boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA, - boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, - boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, boolean dccCoperturaAltro, - String dccCoperturaAltroDesrizione, boolean dccElemNonStrutLaterizio, - boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, - boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, - String dccElemNonStrutAltroDescrizione, boolean dccOpereDiRinforzoInsCatene, - boolean dccOpereDiRinforzoInsCordoli, boolean dccOpereDiRinforzoIniArmate, - boolean dccOpereDiRinforzoPlaccaggi, boolean dccOpereDiRinforzoIrrSolai, - boolean dccOpereDiRinforzoRinforziFRP, boolean dccOpereDiRinforzoTelaiECerchiature, - boolean dccOpereDiRinforzoInsRompitratta, boolean dccOpereDiRinforzoAltro, - String dccOpereDiRinforzoAltroDescrizione, String geoClasseIndagine, + boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli, boolean dccCoperturaPVCTelonati, + boolean dccCoperturaLeggere, boolean dccCoperturaAltro, String dccCoperturaAltroDesrizione, + boolean dccElemNonStrutLaterizio, boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo, + boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro, String dccElemNonStrutAltroDescrizione, + boolean dccOpereDiRinforzoInsCatene, boolean dccOpereDiRinforzoInsCordoli, + boolean dccOpereDiRinforzoIniArmate, boolean dccOpereDiRinforzoPlaccaggi, + boolean dccOpereDiRinforzoIrrSolai, boolean dccOpereDiRinforzoRinforziFRP, + boolean dccOpereDiRinforzoTelaiECerchiature, boolean dccOpereDiRinforzoInsRompitratta, + boolean dccOpereDiRinforzoAltro, String dccOpereDiRinforzoAltroDescrizione, String geoClasseIndagine, String geoCategoriaSottosuolo, String geoCategoriaTopografica, String geoConsolidamento, - String geoPericolositaGeologica, String geoRischioGeomorfologicoPai, - String geoPericolositaIdraulicaPai, String geoRischioIdraulicoPai, String geoPericolositaSismica, - String geoPericolositaIdraulica, String geoPericolositaGeomorfica, - String geoFattibilitaGeologica, String geoFattibilitaSismica, String geoFattibilitaIdraulica, - String geoOperaRilevante, String geoOpereDiSostegno, String geoOpereInSotterranea, - String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini, - String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione, + String geoPericolositaGeologica, String geoRischioGeomorfologicoPai, String geoPericolositaIdraulicaPai, + String geoRischioIdraulicoPai, String geoPericolositaSismica, String geoPericolositaIdraulica, + String geoPericolositaGeomorfica, String geoFattibilitaGeologica, String geoFattibilitaSismica, + String geoFattibilitaIdraulica, String geoOperaRilevante, String geoOpereDiSostegno, + String geoOpereInSotterranea, String geoPresenzaPrescrizioni, String geoNotePrescrizioni, + String geoNoteIndagini, String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione, Double pagInterventiRestauroManufatti, Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagCondotte, Double pagPalificazioni, Double pagImpiantiEolici, Double pagNuoveRealizzazioni, Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari, Double pagPareriDiMassima, Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi, Double pagRilascioAttestazioni, Double pagConsultazioniArchivio, String note, String noteUfficio, String localizzazioneGeografica, boolean tcNuovaCostruzione, boolean tcAdeguamentoSismico, - boolean tcMiglioramentoSismico, boolean tcRiparazioneInterventoLocale, boolean tcInCA, - boolean tcInOpera, boolean tcPrefabbricato, boolean tcInAcciaio, boolean tcMista, - boolean tcInMuratura, boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata, - boolean tcInMuraturaMista, boolean tcInLegno, boolean tcAltro, String tcAltroDescrizione, - boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo, - boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut, - boolean normDpr02Aut, boolean normDm01, boolean normDm02, boolean normDm03, boolean normDm2018, - boolean normDprg01, boolean normDprg02, boolean normAnr, boolean normArt3com3, - boolean normArt3com4, boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01, - boolean normLTC01, boolean suap, boolean normSismaBonus, String clRischioPreInt, - String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, - ServiceContext serviceContext, boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, - String paesaggioLocale, String livelloDiTutela, String vincoli, - String destinazioneAltroIntervento, Boolean tcCostruzioniEsistenti, Boolean tcManutOrdStraord, - Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo, + boolean tcMiglioramentoSismico, boolean tcRiparazioneInterventoLocale, boolean tcInCA, boolean tcInOpera, + boolean tcPrefabbricato, boolean tcInAcciaio, boolean tcMista, boolean tcInMuratura, + boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata, boolean tcInMuraturaMista, boolean tcInLegno, + boolean tcAltro, String tcAltroDescrizione, boolean tcConDispositivi, boolean normLavoriInProprio, + boolean normEsenteBollo, boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, + boolean normDpr01Aut, boolean normDpr02Aut, boolean normDm2018, boolean normAnr, boolean normArt3com3, + boolean normArt3com4, boolean suap, boolean normSismaBonus, String clRischioPreInt, + String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, ServiceContext serviceContext, + boolean bozza, boolean disabledSubmit, boolean geoDisabledSubmit, String paesaggioLocale, + String livelloDiTutela, String vincoli, String destinazioneAltroIntervento, Boolean tcCostruzioniEsistenti, + Boolean tcManutOrdStraord, Boolean tcAltriInterventi, String tcAltriInterventiDesc, boolean noCollaudo, boolean tcNuovaCostruzionePertinenza, boolean tcInterventoOpereEscavazione, boolean tcViarch, boolean tcOperaA25, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, - boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione) throws PortalException, SystemException { + boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore, double pagSoggettiAdAutorizzazione, + String interventoVoceP7) throws PortalException, SystemException { DettPratica dettPratica = null; - if (oldDettPraticaId == 0) { - - if (!disabledSubmit && DelegheUtil.hasDelegaCompilazioneDomanda(userId, dettPraticaId)) { - - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(tipoIntegrazione)) { - - dettPratica = dettPraticaLocalService.updateDettPraticaDatiIntegrazione(userId, - dettPraticaId, intPraticaId, tipoIntegrazione, destinazione, descLongIntervento, - collaudoStatico, codiceFiscaleDelegatoCommittente, - codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, - lavoriInEconomiaCommittente, lavoriPubblici, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, - deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, - deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, - dccFondazioni, dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, - dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, - dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, - dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, - dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, - dccStruttureElePrefabbricato, dccStruttureEleAltro, - dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, - dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, - dccOrizzontamentiLamieraGrecata, dccOrizzontamentiVolte, dccOrizzontamentiAltro, - dccOrizzontamentiAltroDescrizione, dccCopertura, dccCoperturaCAAcciaio, - dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, - dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, - dccCoperturaAltro, dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, - dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, - dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, - dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, - dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, - dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, - dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, tcNuovaCostruzione, - tcAdeguamentoSismico, tcMiglioramentoSismico, tcRiparazioneInterventoLocale, - normLavoriInProprio, normEsenteBollo, normEsenteSpese, normDpr01Dep, - normDpr02Dep, normDpr01Aut, normDpr02Aut, normArt3com3, normArt3com4, - serviceContext, bozza, noCollaudo, tcNuovaCostruzionePertinenza, - tcInterventoOpereEscavazione, tcViarch, tcOperaA25, - sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore); - - } else { - - dettPratica = dettPraticaLocalService.updateDettPraticaDatiDomanda(userId, dettPraticaId, - intPraticaId, tipoIntegrazione, destinazione, ag, descLongIntervento, via, - localita, estremiCatastali, estremiPratCom, varianteSostanziale, collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, lavoriInEconomiaCommittente, metratura, - lavoriPubblici, pagamentoId, lavoriPubbliciPercentuale, numeroCivico, - dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, deInterrati, - deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, - deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, - deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, - deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, - deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, - dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, - dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, - dccStruttureEleAcciaio, dccStruttureEleCA, dccStruttureEleLegno, - dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, - dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, - dccStruttureElePrefabbricato, dccStruttureEleAltro, - dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, - dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, - dccOrizzontamentiLamieraGrecata, dccOrizzontamentiVolte, dccOrizzontamentiAltro, - dccOrizzontamentiAltroDescrizione, dccCopertura, dccCoperturaCAAcciaio, - dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, - dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, - dccCoperturaAltro, dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, - dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, - dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, - dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, - dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, - dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, - dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, - localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, - tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, - tcPrefabbricato, tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, - tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, - tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, - normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, - normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, - normArt3com4, normOrd01, normDm04, normDm05, normCI01, normLTC01, suap, - normSismaBonus, clRischioPreInt, clRischioPostInt, intervFinPub, - intervFinPubDesc, serviceContext, bozza, paesaggioLocale, livelloDiTutela, - vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, - tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, - tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, tcViarch, tcOperaA25, - sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, - normLavoriNoDirettore); - - } - + if (!disabledSubmit && DelegheUtil.hasDelegaCompilazioneDomanda(userId, dettPraticaId)) { + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(tipoIntegrazione)) { + dettPratica = dettPraticaLocalService.updateDettPraticaDatiIntegrazione(userId, dettPraticaId, + intPraticaId, tipoIntegrazione, destinazione, descLongIntervento, collaudoStatico, + codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, + codiceFiscaleDelegatoCollaudo, lavoriPubblici, deInfStradalePonte, deInfStradaleStrada, + deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, + deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, + deInfAltro, deInfAltroDesc, dccFondazioni, dccStruttureEleMuraturePietrame, + dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, + dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, + dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, + dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, + dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, + dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, + dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, + dccCopertura, dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, + dccCoperturaLamieraGrecata, dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, + dccCoperturaAltro, dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, + dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, + dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, dccOpereDiRinforzoInsCatene, + dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, + dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, dccOpereDiRinforzoTelaiECerchiature, + dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, + tcNuovaCostruzione, tcAdeguamentoSismico, tcMiglioramentoSismico, + tcRiparazioneInterventoLocale, normLavoriInProprio, normEsenteBollo, normEsenteSpese, + normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normArt3com3, normArt3com4, + serviceContext, bozza, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, + tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, + normLavoriNoDirettore, interventoVoceP7); + } else { + dettPratica = dettPraticaLocalService.updateDettPraticaDatiDomanda(userId, dettPraticaId, intPraticaId, + tipoIntegrazione, destinazione, ag, descLongIntervento, via, localita, estremiCatastali, + estremiPratCom, collaudoStatico, codiceFiscaleDelegatoCommittente, + codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, lavoriPubblici, pagamentoId, + lavoriPubbliciPercentuale, dcParticelle, dcFoglio, dcAllegato, dePiani, deAltezza, deInterrati, + deSuperficie, deCostruzione, deRistrutturazione, deUso, dePubblica, dePrivata, deUtilizzazione, + dePosizioneEdificio, deInfStradalePonte, deInfStradaleStrada, deInfStradaleAltro, + deInfIdraulicaLong, deInfIdraulicaTrasv, deInfIdraulicaAltro, deInfOperaAccStradale, + deInfOperaAccIdraulica, deInfOperaAccAltro, deInfAltraInfrastruttura, deInfAltro, + deInfAltroDesc, dccFondazioni, dccStruttureEleMuraturePietrame, + dccStruttureEleMuratureLaterizio, dccStruttureEleMuratureMisto, + dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, dccStruttureEleCA, + dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio, + dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato, + dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio, + dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata, + dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione, + dccCopertura, dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA, + dccCoperturaLamieraGrecata, dccCoperturaPannelli, dccCoperturaPVCTelonati, dccCoperturaLeggere, + dccCoperturaAltro, dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, + dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, + dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione, dccOpereDiRinforzoInsCatene, + dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, + dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, dccOpereDiRinforzoTelaiECerchiature, + dccOpereDiRinforzoInsRompitratta, dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, + localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, tcMiglioramentoSismico, + tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, tcInAcciaio, tcMista, + tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, + tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, + normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm2018, normAnr, normArt3com3, + normArt3com4, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, intervFinPub, + intervFinPubDesc, serviceContext, bozza, paesaggioLocale, livelloDiTutela, vincoli, + destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, tcAltriInterventi, + tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, tcInterventoOpereEscavazione, + tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, sanatoriaEdilizia326, + normLavoriNoDirettore, interventoVoceP7); } - if (!geoDisabledSubmit - && DelegheUtil.hasDelegaCompilazioneSezioneGeologica(userId, dettPraticaId)) { - dettPratica = dettPraticaLocalService.updateDettPraticaGeologo(userId, dettPraticaId, - intPraticaId, geoClasseIndagine, geoCategoriaSottosuolo, geoCategoriaTopografica, - geoConsolidamento, geoPericolositaGeologica, geoRischioGeomorfologicoPai, - geoPericolositaIdraulicaPai, geoRischioIdraulicoPai, geoPericolositaSismica, - geoPericolositaIdraulica, geoPericolositaGeomorfica, geoFattibilitaGeologica, - geoFattibilitaSismica, geoFattibilitaIdraulica, geoOperaRilevante, - geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, - geoNotePrescrizioni, geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, - geoDtRelazione, serviceContext, bozza); - - } - } else { - - dettPratica = dettPraticaLocalService.updateDettPratica(userId, dettPraticaId, intPraticaId, - integrazione, protocollo, tipoIntegrazione, completa, gestita, codicePagamento, - causalePagamento, mezzoPagamento, importoBolli, importoSpeseIstruttoria, - dataEffettuazione, statusTask, workflowForzato, soggettoSostituitoId, oldDettPraticaId, - destinazione, ag, descLongIntervento, via, localita, estremiCatastali, estremiPratCom, - variataDa, varianteNumero, varianteSostanziale, operaConforme, collaudoStatico, - codiceFiscaleDelegatoCommittente, codiceFiscaleDelegatoFineLavori, - codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato, lavoriInEconomiaCommittente, - inizioLavoriContestualeOpera, dataInizioLavoriOpera, dataInizioEsecuzioneOpera, - dataFineEsecuzioneOpera, metratura, lavoriPubblici, pagamentoId, - lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio, dcAllegato, dePiani, - deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione, deUso, - dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte, - deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv, - deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro, - deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni, - dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio, - dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio, - dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, - dccStruttureEleMistoAcciaio, dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, - dccStruttureElePrefabbricato, dccStruttureEleAltro, dccStruttureEleAltroDescrizione, - dccOrizzontamentiCAAcciaio, dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, - dccOrizzontamentiLamieraGrecata, dccOrizzontamentiVolte, dccOrizzontamentiAltro, - dccOrizzontamentiAltroDescrizione, dccCopertura, dccCoperturaCAAcciaio, - dccCoperturaLegno, dccCoperturaLegnoCA, dccCoperturaLamieraGrecata, dccCoperturaPannelli, - dccCoperturaPVCTelonati, dccCoperturaLeggere, dccCoperturaAltro, - dccCoperturaAltroDesrizione, dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, - dccElemNonStrutCalcestruzzo, dccElemNonStrutLegno, dccElemNonStrutAltro, - dccElemNonStrutAltroDescrizione, dccOpereDiRinforzoInsCatene, - dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate, dccOpereDiRinforzoPlaccaggi, - dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP, - dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta, - dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine, - geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, + } + if (!geoDisabledSubmit && DelegheUtil.hasDelegaCompilazioneSezioneGeologica(userId, dettPraticaId)) { + dettPratica = dettPraticaLocalService.updateDettPraticaGeologo(userId, dettPraticaId, intPraticaId, + geoClasseIndagine, geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica, geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, geoRischioIdraulicoPai, geoPericolositaSismica, geoPericolositaIdraulica, - geoPericolositaGeomorfica, geoFattibilitaGeologica, geoFattibilitaSismica, - geoFattibilitaIdraulica, geoOperaRilevante, geoOpereDiSostegno, geoOpereInSotterranea, - geoPresenzaPrescrizioni, geoNotePrescrizioni, geoNoteIndagini, geoEvidenzeGeomorfiche, - geoEvidenzeGeologiche, geoDtRelazione, pagInterventiRestauroManufatti, - pagAltriCasiCulturali, pagLottizzazioni, pagGrandiStrutture, pagCondotte, - pagPalificazioni, pagImpiantiEolici, pagNuoveRealizzazioni, pagImmobiliPreesistenti, - pagManifestiPubblicitari, pagPareriDiMassima, pagAltriCasiPaesaggistici, - pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, note, noteUfficio, - localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, - tcMiglioramentoSismico, tcRiparazioneInterventoLocale, tcInCA, tcInOpera, - tcPrefabbricato, tcInAcciaio, tcMista, tcInMuratura, tcInMuraturaOrdinaria, - tcInMuraturaArmata, tcInMuraturaMista, tcInLegno, tcAltro, tcAltroDescrizione, - tcConDispositivi, normLavoriInProprio, normEsenteBollo, normEsenteSpese, normDpr01Dep, - normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02, normDm03, normDm2018, - normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01, normDm04, - normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt, clRischioPostInt, - intervFinPub, intervFinPubDesc, serviceContext, bozza, paesaggioLocale, livelloDiTutela, - vincoli, destinazioneAltroIntervento, tcCostruzioniEsistenti, tcManutOrdStraord, - tcAltriInterventi, tcAltriInterventiDesc, noCollaudo, tcNuovaCostruzionePertinenza, - tcInterventoOpereEscavazione, tcViarch, tcOperaA25, sanatoriaEdilizia47, sanatoriaEdilizia724, - sanatoriaEdilizia326, normLavoriNoDirettore, pagSoggettiAdAutorizzazione); - + geoPericolositaGeomorfica, geoFattibilitaGeologica, geoFattibilitaSismica, geoFattibilitaIdraulica, + geoOperaRilevante, geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, + geoNotePrescrizioni, geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, + geoDtRelazione, serviceContext, bozza); } return dettPratica; } + @Override public DettPratica fetchDettPratica(long dettPraticaId) throws SystemException { + return dettPraticaLocalService.fetchDettPratica(dettPraticaId); } + @Override public DettPratica getLastCompletedByIntPratica(long intPraticaId) throws SystemException { + return dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); } + @Override public DettPratica getLastdByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) throws SystemException { return dettPraticaLocalService.getLastdByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); } + @Override public DettPratica getLastEditabledByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) throws SystemException { + return dettPraticaLocalService.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); } - public List findCompletedByIntPraticaAndTipoPratica(long intPraticaId, - List tipoPratiche) throws SystemException { + @Override + public List findCompletedByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) + throws SystemException { + return dettPraticaLocalService.findCompletedByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); } + @Override public int countCompletedByIntPraticaAndTipoPratica(long intPraticaId, List tipoPratiche) throws SystemException { + return dettPraticaLocalService.countCompletedByIntPraticaAndTipoPratica(intPraticaId, tipoPratiche); } - // public void updatePagamentoManuale(long pagamentoId, long dettPraticaId, - // byte[] content, String - // sourceFileName, - // ServiceContext serviceContext) throws PortalException, SystemException { - // - // DettPratica dettPratica = - // dettPraticaLocalService.getDettPratica(dettPraticaId); - // if (getUserId() == dettPratica.getUserId()) { - // dettPraticaLocalService.updatePagamentoManuale(pagamentoId, - // dettPraticaId, content, - // sourceFileName, - // serviceContext); - // } else { - // throw new - // SystemException("pagamento manuale aggiornabile solo da titolare del dettPratica"); - // } - // } - + @Override public DettPratica pagaInvia(long dettPraticaId, Double pagInterventiRestauroManufatti, Double pagAltriCasiCulturali, Double pagLottizzazioni, Double pagGrandiStrutture, Double pagCondotte, Double pagPalificazioni, Double pagImpiantiEolici, Double pagNuoveRealizzazioni, Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari, Double pagPareriDiMassima, Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi, Double pagRilascioAttestazioni, Double pagConsultazioniArchivio, String importoSpeseIstruttoria, String codiceFiscaleCommittente, - Double pagSoggettiAdAutorizzazione, String currentURL, ServiceContext serviceContext) throws SystemException, PortalException { - - return dettPraticaLocalService.pagaInvia(dettPraticaId, pagInterventiRestauroManufatti, - pagAltriCasiCulturali, pagLottizzazioni, pagGrandiStrutture, pagCondotte, - pagPalificazioni, pagImpiantiEolici, pagNuoveRealizzazioni, pagImmobiliPreesistenti, - pagManifestiPubblicitari, pagPareriDiMassima, pagAltriCasiPaesaggistici, - pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, importoSpeseIstruttoria, - codiceFiscaleCommittente, pagSoggettiAdAutorizzazione, currentURL, serviceContext); - + Double pagSoggettiAdAutorizzazione, String currentURL, ServiceContext serviceContext) + throws SystemException, PortalException { + + return dettPraticaLocalService.pagaInvia(dettPraticaId, pagInterventiRestauroManufatti, pagAltriCasiCulturali, + pagLottizzazioni, pagGrandiStrutture, pagCondotte, pagPalificazioni, pagImpiantiEolici, + pagNuoveRealizzazioni, pagImmobiliPreesistenti, pagManifestiPubblicitari, pagPareriDiMassima, + pagAltriCasiPaesaggistici, pagVariantiPareriResi, pagRilascioAttestazioni, pagConsultazioniArchivio, + importoSpeseIstruttoria, codiceFiscaleCommittente, pagSoggettiAdAutorizzazione, currentURL, + serviceContext); } - public DettPratica updateCheckPagamenti(long dettPraticaId, boolean normEsenteSpese, - boolean normEsenteBollo) throws SystemException, PortalException { + @Override + public DettPratica updateCheckPagamenti(long dettPraticaId, boolean normEsenteSpese, boolean normEsenteBollo) + throws SystemException, PortalException { + return dettPraticaLocalService.updateCheckPagamenti(dettPraticaId, normEsenteSpese, normEsenteBollo); } - public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException, - PortalException { + @Override + public DettPratica updateEsito(long dettPraticaId, int stato) throws IOException, SystemException, PortalException { + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), ActionKeys.ADD_ENTRY); return dettPraticaLocalService.updateEsito(dettPraticaId, stato); } - public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException, - SystemException, PortalException { + @Override + public DettPratica updateEsitoIntegrazione(long dettPraticaId, int stato) throws IOException, SystemException, + PortalException { + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), ActionKeys.ADD_ENTRY); return dettPraticaLocalService.updateEsitoIntegrazione(dettPraticaId, stato); } - // public void sostituisciPagamento(long pagamentoId, long dettPraticaId, - // String - // codiceFiscaleCommittente, String mezzo, - // String url, ServiceContext serviceContext) throws PortalException, - // SystemException { - // - // DettPratica dettPratica = - // dettPraticaLocalService.getDettPratica(dettPraticaId); - // if (getUserId() == dettPratica.getUserId()) { - // dettPraticaLocalService.sostituisciPagamento(pagamentoId, dettPraticaId, - // codiceFiscaleCommittente, mezzo, url, - // serviceContext); - // } else { - // throw new - // SystemException("pagamento aggiornabile solo da titolare del dettPratica"); - // } - // - // } - + @Override public DettPratica updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) throws PortalException, SystemException { + return dettPraticaLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); } - public int getNumeroDiVersioni(long intPraticaId, long companyId) throws Exception { - Company company = CompanyLocalServiceUtil.getCompany(companyId); - String shapshotsCountURL = (String) company.getExpandoBridge().getAttribute( - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT, false); + @Override + public List getDettPraticaFields() { - shapshotsCountURL += intPraticaId; - - return dettPraticaLocalService.getNumeroDiVersioni(shapshotsCountURL); + return dettPraticaLocalService.getDettPraticaFields(); } - public String getJsonVersion(long intPraticaId, long companyId, int version) throws Exception { - - Company company = CompanyLocalServiceUtil.getCompany(companyId); - String shapshotsURL = (String) company.getExpandoBridge().getAttribute( - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS, false); - - shapshotsURL += intPraticaId + StringPool.FORWARD_SLASH + version; - - return dettPraticaLocalService.getVersionNumber(shapshotsURL, version); - + @Override + public List getVersioni(long intPraticaId) throws SystemException { + return dettPraticaLocalService.getVersioni(intPraticaId); } - public String callForChanges(long intPraticaId, long companyId, int version) throws Exception { - Company company = CompanyLocalServiceUtil.getCompany(companyId); - String changesURL = (String) company.getExpandoBridge().getAttribute( - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_CHANGES, false); - - changesURL += intPraticaId + StringPool.FORWARD_SLASH + "from" + StringPool.FORWARD_SLASH - + (version + 1); - - JSONArray changes = dettPraticaLocalService.callForChanges(changesURL); - - StringBuilder sb = new StringBuilder(); - sb.append(StringPool.OPEN_BRACKET); - - for (int i = 0; i < changes.length(); i++) { - - if (!PraticaUtil.getDettPraticaHiddenFields().contains( - changes.getJSONObject(i).getString("property"))) { - sb.append(StringPool.QUOTE).append(changes.getJSONObject(i).getString("property")) - .append(StringPool.QUOTE).append(StringPool.COMMA); - } - - } - if (sb.length() > 1) { - sb.setLength(sb.length() - 1); - } - sb.append(StringPool.CLOSE_BRACKET); - return sb.toString(); + @Override + public List> callForChanges(long intPraticaId) throws SystemException { + return dettPraticaLocalService.callForChanges(intPraticaId); } - public void sendToVersioning(long dettPraticaId, long companyId) throws Exception { + @Override + public boolean isNumber(String field) { - Company company = CompanyLocalServiceUtil.getCompany(companyId); - String commitURL = (String) company.getExpandoBridge().getAttribute( - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT, false); + return dettPraticaLocalService.isNumber(field); + } - dettPraticaLocalService.sendToVersioning(dettPraticaId, commitURL); + @Override + public String format(String field, Serializable value) { + return dettPraticaLocalService.format(field, value); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaLocalServiceImpl.java index e1b24e19..fd83d913 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -39,13 +39,12 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; * The implementation of the doc aggiuntiva 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.liferay.portos.bo.service.DocAggiuntivaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DocAggiuntivaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -53,145 +52,134 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; * @see it.tref.liferay.portos.bo.service.DocAggiuntivaLocalServiceUtil */ public class DocAggiuntivaLocalServiceImpl extends DocAggiuntivaLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.DocAggiuntivaLocalServiceUtil} to access the doc aggiuntiva - * local service. - */ - - public List findByIntPratica(long intPraticaId) throws SystemException { - - return docAggiuntivaPersistence.findByIntPratica(intPraticaId); - } - - public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - - return docAggiuntivaPersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); - } - - public int countByIntPratica(long intPraticaId) throws SystemException { - - return docAggiuntivaPersistence.countByIntPratica(intPraticaId); - } - - public List findByDettPratica(long dettPraticaId) throws SystemException { - - return docAggiuntivaPersistence.findByIntPratica(dettPraticaId); - } - - public List findByDettPratica(long dettPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - return docAggiuntivaPersistence.findByIntPratica(dettPraticaId, start, end, orderByComparator); - } - - public int countByDettPratica(long dettPraticaId) throws SystemException { - - return docAggiuntivaPersistence.countByIntPratica(dettPraticaId); - } - - public List findByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { - - return docAggiuntivaPersistence.findByIntPratica_FeVisible(intPraticaId, feVisible); - } - - public List findByIntPraticaFeVisible(long intPraticaId, boolean feVisible, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - return docAggiuntivaPersistence.findByIntPratica_FeVisible(intPraticaId, feVisible, start, end, orderByComparator); - } - - public int countByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { - - return docAggiuntivaPersistence.countByIntPratica_FeVisible(intPraticaId, feVisible); - } - - public DocAggiuntiva addDocAggiuntiva(long userId, long intPraticaId, long dettPraticaId, String descrizione, - boolean feVisible, byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, - PortalException { - - DocAggiuntiva docAggiuntiva = - docAggiuntivaPersistence.create(counterLocalService.increment(DocAggiuntiva.class.getName())); - - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); - - User user = userPersistence.findByPrimaryKey(userId); - - Date now = new Date(); - - docAggiuntiva.setCompanyId(serviceContext.getCompanyId()); - docAggiuntiva.setUserId(user.getUserId()); - docAggiuntiva.setUserName(user.getFullName()); - docAggiuntiva.setCreateDate(serviceContext.getCreateDate(now)); - docAggiuntiva.setModifiedDate(serviceContext.getModifiedDate(now)); - docAggiuntiva.setGroupId(serviceContext.getScopeGroupId()); - - docAggiuntiva.setIntPraticaId(intPraticaId); - docAggiuntiva.setDettPraticaId(dettPraticaId); - - docAggiuntiva.setDescrizione(descrizione); - docAggiuntiva.setFeVisible(feVisible); - - long fileEntryId = 0l; - - long defaultFolderId = - configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), - ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - - Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); - String folderName = PraticaUtil.getFolderName(dettPratica.getDettPraticaId()); - Folder folder = null; - try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName); - } catch (NoSuchFolderException e) { - // cartella non presente -> creo cartella - folder = - dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); - } - String title = - now.getTime() + StringPool.UNDERLINE + "doc_aggiuntiva" + StringPool.UNDERLINE - + docAggiuntiva.getDocAggiuntivaId() + StringPool.UNDERLINE + sourceFileName; - String description = sourceFileName; - String mimeType = MimeTypesUtil.getContentType(sourceFileName); - - String changeLog = StringPool.BLANK; - FileEntry fileEntry = - dlAppLocalService.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(), folder.getFolderId(), - now.getTime() + "_" + sourceFileName, mimeType, title, description, changeLog, content, serviceContext); - fileEntryId = fileEntry.getFileEntryId(); - docAggiuntiva.setFileEntryId(fileEntryId); - - docAggiuntiva = docAggiuntivaPersistence.update(docAggiuntiva); - - return docAggiuntiva; - } - - @Override - public DocAggiuntiva deleteDocAggiuntiva(DocAggiuntiva docAggiuntiva) throws SystemException { - - try { - if (Validator.isNotNull(docAggiuntiva.getFileEntryId())) { - dlAppLocalService.deleteFileEntry(docAggiuntiva.getFileEntryId()); - } - } catch (NoSuchFileEntryException | NoSuchRepositoryEntryException e) { - - } catch (PortalException e) { - throw new SystemException(e); - } - return super.deleteDocAggiuntiva(docAggiuntiva); - } - - @Override - public DocAggiuntiva deleteDocAggiuntiva(long docAggiuntivaId) throws PortalException, SystemException { - - return deleteDocAggiuntiva(docAggiuntivaLocalService.getDocAggiuntiva(docAggiuntivaId)); - } - - public DocAggiuntiva fetchByOldFileEntryId(long oldFileEntryId) throws SystemException { - - return docAggiuntivaPersistence.fetchByoldFileEntryId(oldFileEntryId); - } - + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DocAggiuntivaLocalServiceUtil} to access the doc aggiuntiva local service. + */ + + @Override + public List findByIntPratica(long intPraticaId) throws SystemException { + + return docAggiuntivaPersistence.findByIntPratica(intPraticaId); + } + + @Override + public List findByIntPratica(long intPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return docAggiuntivaPersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); + } + + @Override + public int countByIntPratica(long intPraticaId) throws SystemException { + + return docAggiuntivaPersistence.countByIntPratica(intPraticaId); + } + + @Override + public List findByDettPratica(long dettPraticaId) throws SystemException { + + return docAggiuntivaPersistence.findByIntPratica(dettPraticaId); + } + + @Override + public List findByDettPratica(long dettPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return docAggiuntivaPersistence.findByIntPratica(dettPraticaId, start, end, orderByComparator); + } + + @Override + public int countByDettPratica(long dettPraticaId) throws SystemException { + + return docAggiuntivaPersistence.countByIntPratica(dettPraticaId); + } + + @Override + public List findByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { + + return docAggiuntivaPersistence.findByIntPratica_FeVisible(intPraticaId, feVisible); + } + + @Override + public List findByIntPraticaFeVisible(long intPraticaId, boolean feVisible, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return docAggiuntivaPersistence.findByIntPratica_FeVisible(intPraticaId, feVisible, start, end, + orderByComparator); + } + + @Override + public int countByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { + + return docAggiuntivaPersistence.countByIntPratica_FeVisible(intPraticaId, feVisible); + } + + @Override + public DocAggiuntiva addDocAggiuntiva(long userId, long intPraticaId, long dettPraticaId, String descrizione, + boolean feVisible, byte[] content, String sourceFileName, ServiceContext serviceContext) + throws SystemException, PortalException { + + DocAggiuntiva docAggiuntiva = docAggiuntivaPersistence.create(counterLocalService.increment(DocAggiuntiva.class + .getName())); + DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + User user = userPersistence.findByPrimaryKey(userId); + Date now = new Date(); + docAggiuntiva.setCompanyId(serviceContext.getCompanyId()); + docAggiuntiva.setUserId(user.getUserId()); + docAggiuntiva.setUserName(user.getFullName()); + docAggiuntiva.setCreateDate(serviceContext.getCreateDate(now)); + docAggiuntiva.setModifiedDate(serviceContext.getModifiedDate(now)); + docAggiuntiva.setGroupId(serviceContext.getScopeGroupId()); + docAggiuntiva.setIntPraticaId(intPraticaId); + docAggiuntiva.setDettPraticaId(dettPraticaId); + docAggiuntiva.setDescrizione(descrizione); + docAggiuntiva.setFeVisible(feVisible); + long fileEntryId = 0L; + long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); + Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); + String folderName = PraticaUtil.getFolderName(dettPratica.getDettPraticaId()); + Folder folder = null; + try { + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); + } catch (NoSuchFolderException e) { + // cartella non presente -> creo cartella + folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), + defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); + } + String title = now.getTime() + "_doc_aggiuntiva_" + docAggiuntiva.getDocAggiuntivaId() + StringPool.UNDERLINE + + sourceFileName; + String description = sourceFileName; + String mimeType = MimeTypesUtil.getContentType(sourceFileName); + String changeLog = StringPool.BLANK; + FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(), + folder.getFolderId(), now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, + description, changeLog, content, serviceContext); + fileEntryId = fileEntry.getFileEntryId(); + docAggiuntiva.setFileEntryId(fileEntryId); + docAggiuntiva = docAggiuntivaPersistence.update(docAggiuntiva); + return docAggiuntiva; + } + + @Override + public DocAggiuntiva deleteDocAggiuntiva(DocAggiuntiva docAggiuntiva) throws SystemException { + + try { + if (Validator.isNotNull(docAggiuntiva.getFileEntryId())) { + dlAppLocalService.deleteFileEntry(docAggiuntiva.getFileEntryId()); + } + } catch (NoSuchFileEntryException | NoSuchRepositoryEntryException e) { + } catch (PortalException e) { + throw new SystemException(e); + } + return super.deleteDocAggiuntiva(docAggiuntiva); + } + + @Override + public DocAggiuntiva deleteDocAggiuntiva(long docAggiuntivaId) throws PortalException, SystemException { + + return deleteDocAggiuntiva(getDocAggiuntiva(docAggiuntivaId)); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaServiceImpl.java index 79f4bc27..1b7dfa43 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -26,13 +26,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the doc aggiuntiva remote 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.liferay.portos.bo.service.DocAggiuntivaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DocAggiuntivaService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -40,66 +39,87 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.DocAggiuntivaServiceUtil */ public class DocAggiuntivaServiceImpl extends DocAggiuntivaServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.DocAggiuntivaServiceUtil} to access the doc aggiuntiva remote - * service. - */ - - public List findByIntPratica(long intPraticaId) throws SystemException { - return docAggiuntivaLocalService.findByIntPratica(intPraticaId); - } - - public List findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - return docAggiuntivaLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); - } - - public int countByIntPratica(long intPraticaId) throws SystemException { - return docAggiuntivaLocalService.countByIntPratica(intPraticaId); - } - - public List findByDettPratica(long dettPraticaId) throws SystemException { - return docAggiuntivaLocalService.findByIntPratica(dettPraticaId); - } - - public List findByDettPratica(long dettPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return docAggiuntivaLocalService.findByIntPratica(dettPraticaId, start, end, orderByComparator); - } - - public int countByDettPratica(long dettPraticaId) throws SystemException { - return docAggiuntivaLocalService.countByIntPratica(dettPraticaId); - } - - public List findByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { - return docAggiuntivaLocalService.findByIntPraticaFeVisible(intPraticaId, feVisible); - } - - public List findByIntPratica(long intPraticaId, boolean feVisible, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return docAggiuntivaLocalService.findByIntPraticaFeVisible(intPraticaId, feVisible, start, end, orderByComparator); - } - - public int countByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { - return docAggiuntivaLocalService.countByIntPraticaFeVisible(intPraticaId, feVisible); - } - - public DocAggiuntiva addDocAggiuntiva(long userId, long intPraticaId, long dettPraticaId, String descrizione, - boolean feVisible, byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, - PortalException { - return docAggiuntivaLocalService.addDocAggiuntiva(userId, intPraticaId, dettPraticaId, descrizione, feVisible, - content, sourceFileName, serviceContext); - } - - public DocAggiuntiva deleteDocAggiuntiva(DocAggiuntiva docAggiuntiva) throws SystemException { - return docAggiuntivaLocalService.deleteDocAggiuntiva(docAggiuntiva); - } - - public DocAggiuntiva deleteDocAggiuntiva(long docAggiuntivaId) throws PortalException, SystemException { - return docAggiuntivaLocalService.deleteDocAggiuntiva(docAggiuntivaId); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DocAggiuntivaServiceUtil} to access the doc aggiuntiva remote service. + */ + @Override + public List findByIntPratica(long intPraticaId) throws SystemException { + + return docAggiuntivaLocalService.findByIntPratica(intPraticaId); + } + + @Override + public List findByIntPratica(long intPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return docAggiuntivaLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); + } + + @Override + public int countByIntPratica(long intPraticaId) throws SystemException { + + return docAggiuntivaLocalService.countByIntPratica(intPraticaId); + } + + @Override + public List findByDettPratica(long dettPraticaId) throws SystemException { + + return docAggiuntivaLocalService.findByIntPratica(dettPraticaId); + } + + @Override + public List findByDettPratica(long dettPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return docAggiuntivaLocalService.findByIntPratica(dettPraticaId, start, end, orderByComparator); + } + + @Override + public int countByDettPratica(long dettPraticaId) throws SystemException { + + return docAggiuntivaLocalService.countByIntPratica(dettPraticaId); + } + + @Override + public List findByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { + + return docAggiuntivaLocalService.findByIntPraticaFeVisible(intPraticaId, feVisible); + } + + @Override + public List findByIntPratica(long intPraticaId, boolean feVisible, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return docAggiuntivaLocalService.findByIntPraticaFeVisible(intPraticaId, feVisible, start, end, + orderByComparator); + } + + @Override + public int countByIntPraticaFeVisible(long intPraticaId, boolean feVisible) throws SystemException { + + return docAggiuntivaLocalService.countByIntPraticaFeVisible(intPraticaId, feVisible); + } + + @Override + public DocAggiuntiva addDocAggiuntiva(long userId, long intPraticaId, long dettPraticaId, String descrizione, + boolean feVisible, byte[] content, String sourceFileName, ServiceContext serviceContext) + throws SystemException, PortalException { + + return docAggiuntivaLocalService.addDocAggiuntiva(userId, intPraticaId, dettPraticaId, descrizione, feVisible, + content, sourceFileName, serviceContext); + } + + @Override + public DocAggiuntiva deleteDocAggiuntiva(DocAggiuntiva docAggiuntiva) throws SystemException { + + return docAggiuntivaLocalService.deleteDocAggiuntiva(docAggiuntiva); + } + + @Override + public DocAggiuntiva deleteDocAggiuntiva(long docAggiuntivaId) throws PortalException, SystemException { + + return docAggiuntivaLocalService.deleteDocAggiuntiva(docAggiuntivaId); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java index e301b59d..04b17965 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -26,7 +26,6 @@ import java.util.List; import com.liferay.portal.NoSuchRepositoryEntryException; import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; import com.liferay.portal.kernel.dao.orm.Junction; import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; import com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil; @@ -55,14 +54,12 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; * The implementation of the doc pratica 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.liferay.portos.bo.service.DocPraticaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DocPraticaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -71,9 +68,8 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; */ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil} to - * access the doc pratica local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil} to access the doc pratica local service. */ @Override @@ -84,7 +80,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { dlAppLocalService.deleteFileEntry(docPratica.getDlFileEntryId()); } } catch (NoSuchFileEntryException | NoSuchRepositoryEntryException e) { - } catch (PortalException e) { throw new SystemException(e); } @@ -94,31 +89,25 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { @Override public DocPratica deleteDocPratica(long docPraticaId) throws PortalException, SystemException { - return deleteDocPratica(docPraticaLocalService.getDocPratica(docPraticaId)); + return deleteDocPratica(getDocPratica(docPraticaId)); } - public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, - byte[] dlFileEntry, String fileName, String version, boolean praticaValidata, String descLong, - String tipologia, String sha256, boolean aggiornato, String jsonFirmatari, - long dettPraticaIdRimozione, Date dtDataRimozione, ServiceContext serviceContext) - throws PortalException, SystemException { + @Override + public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, byte[] dlFileEntry, + String fileName, String version, boolean praticaValidata, String descLong, String tipologia, String sha256, + boolean aggiornato, String jsonFirmatari, long dettPraticaIdRimozione, Date dtDataRimozione, + ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class - .getName())); - + DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class.getName())); FileEntry fileEntry = addAttachment(classPk, intPraticaId, userId, fileName, dlFileEntry, tipologia); - docPratica.setCompanyId(serviceContext.getCompanyId()); docPratica.setUserId(user.getUserId()); docPratica.setUserName(user.getFullName()); docPratica.setCreateDate(serviceContext.getCreateDate(now)); docPratica.setModifiedDate(serviceContext.getModifiedDate(now)); docPratica.setGroupId(serviceContext.getScopeGroupId()); - docPratica.setClassName(className); docPratica.setClassPk(classPk); docPratica.setIntPraticaId(intPraticaId); @@ -132,72 +121,56 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { docPratica.setJsonFirmatari(jsonFirmatari); docPratica.setDettPraticaIdRimozione(dettPraticaIdRimozione); docPratica.setDtDataRimozione(dtDataRimozione); - docPratica.setStatus(WorkflowConstants.STATUS_PENDING); - docPratica = docPraticaPersistence.update(docPratica); - return docPratica; } - public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, - byte[] dlFileEntry, String fileName, String tipologia, String jsonFirmatari, - ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, byte[] dlFileEntry, + String fileName, String tipologia, String jsonFirmatari, ServiceContext serviceContext) + throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class - .getName())); - + DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class.getName())); FileEntry fileEntry = addAttachment(classPk, intPraticaId, userId, fileName, dlFileEntry, tipologia); - docPratica.setCompanyId(serviceContext.getCompanyId()); docPratica.setUserId(user.getUserId()); docPratica.setUserName(user.getFullName()); docPratica.setCreateDate(serviceContext.getCreateDate(now)); docPratica.setModifiedDate(serviceContext.getModifiedDate(now)); docPratica.setGroupId(serviceContext.getScopeGroupId()); - docPratica.setClassName(className); docPratica.setClassPk(classPk); docPratica.setIntPraticaId(intPraticaId); docPratica.setDlFileEntryId(fileEntry.getFileEntryId()); - docPratica.setVersion("0"); docPratica.setPraticaValidata(false); docPratica.setDescLong(fileName); docPratica.setTipologia(tipologia); docPratica.setAggiornato(false); docPratica.setJsonFirmatari(jsonFirmatari); - docPratica.setDettPraticaIdRimozione(0l); + docPratica.setDettPraticaIdRimozione(0L); docPratica.setDtDataRimozione(null); - docPratica.setStatus(WorkflowConstants.STATUS_PENDING); - docPratica = docPraticaPersistence.update(docPratica); - return docPratica; } - public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, - long fileEntryId, String fileName, String tipologia, String jsonFirmatari, - ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, long fileEntryId, + String fileName, String tipologia, String jsonFirmatari, ServiceContext serviceContext) + throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class - .getName())); - + DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class.getName())); docPratica.setCompanyId(serviceContext.getCompanyId()); docPratica.setUserId(user.getUserId()); docPratica.setUserName(user.getFullName()); docPratica.setCreateDate(serviceContext.getCreateDate(now)); docPratica.setModifiedDate(serviceContext.getModifiedDate(now)); docPratica.setGroupId(serviceContext.getScopeGroupId()); - docPratica.setClassName(className); docPratica.setClassPk(classPk); docPratica.setIntPraticaId(intPraticaId); @@ -208,72 +181,26 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { docPratica.setTipologia(tipologia); docPratica.setAggiornato(false); docPratica.setJsonFirmatari(jsonFirmatari); - docPratica.setDettPraticaIdRimozione(0l); + docPratica.setDettPraticaIdRimozione(0L); docPratica.setDtDataRimozione(null); - docPratica.setStatus(WorkflowConstants.STATUS_PENDING); - docPratica = docPraticaPersistence.update(docPratica); - return docPratica; } - public DocPratica addDocPraticaForImport(long userId, String className, long classPk, long intPraticaId, - byte[] dlFileEntry, String fileName, String version, boolean praticaValidata, String descLong, - String tipologia, String sha256, boolean aggiornato, String jsonFirmatari, - long dettPraticaIdRimozione, Date dtDataRimozione, long oldDocPraticaId, - ServiceContext serviceContext) throws PortalException, SystemException { - - Date now = new Date(); - - DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class - .getName())); - - docPratica.setCompanyId(serviceContext.getCompanyId()); - docPratica.setUserId(userId); - if (userId > 0) { - User user = userPersistence.findByPrimaryKey(userId); - docPratica.setUserName(user.getFullName()); - } - docPratica.setCreateDate(serviceContext.getCreateDate(now)); - docPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - docPratica.setGroupId(serviceContext.getScopeGroupId()); - docPratica.setClassName(className); - docPratica.setClassPk(classPk); - docPratica.setIntPraticaId(intPraticaId); - docPratica.setVersion(version); - docPratica.setPraticaValidata(praticaValidata); - docPratica.setDescLong(descLong); - docPratica.setTipologia(tipologia); - docPratica.setSha256(sha256); - docPratica.setAggiornato(aggiornato); - docPratica.setJsonFirmatari(jsonFirmatari); - docPratica.setDettPraticaIdRimozione(dettPraticaIdRimozione); - docPratica.setDtDataRimozione(dtDataRimozione); - docPratica.setOldDocPraticaId(oldDocPraticaId); - - docPratica.setStatus(WorkflowConstants.STATUS_APPROVED); - - return docPraticaPersistence.update(docPratica); - } - + @Override public FileEntry addAttachment(long classPk, long intPraticaId, long delegaUserId, String sourceFileName, byte[] content, String tipoAllegato) throws SystemException, PortalException { FileEntry fileEntry = null; - - // DettPratica dettPratica = - // dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); IntPratica intPratica = intPraticaPersistence.fetchByPrimaryKey(intPraticaId); Territorio territorio = territorioPersistence.fetchByPrimaryKey(intPratica.getTerritorioId()); - long companyId = territorio.getCompanyId(); long groupId = territorio.getGroupId(); - // TODO forse è meglio ragionare con un'altra logica per i permessi User user = UserLocalServiceUtil.getRoleUsers( - RoleLocalServiceUtil.getRole(intPratica.getCompanyId(), RoleConstants.ADMINISTRATOR) - .getRoleId()).get(0); + RoleLocalServiceUtil.getRole(intPratica.getCompanyId(), RoleConstants.ADMINISTRATOR).getRoleId()) + .get(0); try { PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(user)); } catch (Exception e) { @@ -281,43 +208,35 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { } long userId = user.getUserId(); - ServiceContext serviceContext = new ServiceContext(); serviceContext.setCompanyId(companyId); serviceContext.setScopeGroupId(groupId); serviceContext.setUserId(userId); - // TODO forse mettiamo i permesssi ma non mi pare sicuro. - long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(companyId, ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); - String folderName = PraticaUtil.getFolderName(classPk); - Folder folder = null; try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName); + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); } catch (NoSuchFolderException e) { // cartella non presente -> creo cartella - folder = dlAppLocalService.addFolder(userId, defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); + folder = dlAppLocalService.addFolder(userId, defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName, StringPool.BLANK, serviceContext); } Date now = new Date(); String title = tipoAllegato + StringPool.UNDERLINE + sourceFileName; String description = sourceFileName; String mimeType = MimeTypesUtil.getContentType(sourceFileName); - String changeLog = StringPool.BLANK; fileEntry = dlAppLocalService.addFileEntry(userId, folder.getRepositoryId(), folder.getFolderId(), - now.getTime() + "_" + sourceFileName, mimeType, title, description, changeLog, content, - serviceContext); - + now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, description, changeLog, + content, serviceContext); try { - PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil - .create(UserLocalServiceUtil.getUser(delegaUserId))); + PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil + .getUser(delegaUserId))); } catch (Exception e) { throw new SystemException(e); @@ -325,23 +244,26 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return fileEntry; } + @Override public FileEntry getAttachment(long classPk) throws SystemException, PortalException { DocPratica fileAllegato = docPraticaPersistence.findByPrimaryKey(classPk); return dlAppLocalService.getFileEntry(fileAllegato.getDlFileEntryId()); } + @Override public void addFirma(long docPraticaId, String codiceFiscale) throws PortalException, SystemException { - DocPratica docPratica = docPraticaLocalService.getDocPratica(docPraticaId); + DocPratica docPratica = getDocPratica(docPraticaId); docPratica.setJsonFirmatari(FirmeUtil.addFirma(docPratica.getJsonFirmatari(), codiceFiscale)); - docPraticaLocalService.updateDocPratica(docPratica); + updateDocPratica(docPratica); } + @Override public void addFirmeAndApprova(long docPraticaId, List codiciFiscali) throws PortalException, SystemException { - DocPratica docPratica = docPraticaLocalService.getDocPratica(docPraticaId); + DocPratica docPratica = getDocPratica(docPraticaId); String jsonFirmatari = docPratica.getJsonFirmatari(); for (String codiceFiscale : codiciFiscali) { jsonFirmatari = FirmeUtil.addFirmaDigitale(jsonFirmatari, codiceFiscale); @@ -349,43 +271,47 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { docPratica.setJsonFirmatari(jsonFirmatari); docPratica.setModifiedDate(new Date()); docPratica.setStatus(WorkflowConstants.STATUS_APPROVED); - docPraticaLocalService.updateDocPratica(docPratica); + updateDocPratica(docPratica); } - public void addErrorAndApprova(long docPraticaId, String errorCode) throws PortalException, - SystemException { + @Override + public void addErrorAndApprova(long docPraticaId, String errorCode) throws PortalException, SystemException { - DocPratica docPratica = docPraticaLocalService.getDocPratica(docPraticaId); + DocPratica docPratica = getDocPratica(docPraticaId); docPratica.setModifiedDate(new Date()); docPratica.setErrorCode(errorCode); - if ("400".equalsIgnoreCase(errorCode)) { + if ("400".equals(errorCode)) { docPratica.setStatus(WorkflowConstants.STATUS_DENIED); } - docPraticaLocalService.updateDocPratica(docPratica); + updateDocPratica(docPratica); } + @Override public void removeFirma(long docPraticaId, String codiceFiscale) throws PortalException, SystemException { - DocPratica docPratica = docPraticaLocalService.getDocPratica(docPraticaId); + DocPratica docPratica = getDocPratica(docPraticaId); docPratica.setJsonFirmatari(FirmeUtil.removeFirma(docPratica.getJsonFirmatari(), codiceFiscale)); - docPraticaLocalService.updateDocPratica(docPratica); + updateDocPratica(docPratica); } - public DocPratica updateDocPraticaAggiornato(long docPraticaId, boolean aggiornato) - throws SystemException { + @Override + public DocPratica updateDocPraticaAggiornato(long docPraticaId, boolean aggiornato) throws SystemException { DocPratica docPratica = docPraticaPersistence.fetchByPrimaryKey(docPraticaId); docPratica.setAggiornato(aggiornato); docPratica.setModifiedDate(new Date()); - return docPraticaLocalService.updateDocPratica(docPratica); + return updateDocPratica(docPratica); } + @Override public int countDocPraticaDaInviareDax() throws SystemException { DynamicQuery dynamicQuery = dynamicQueryDocPraticaDaInviareDax(); return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getDocPraticaDaInviareDax(int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQueryDocPraticaDaInviareDax(); @@ -394,7 +320,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { private DynamicQuery dynamicQueryDocPraticaDaInviareDax() { - DynamicQuery dynamicQuery = docPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("dtInvioDax").isNull()); dynamicQuery.add(PropertyFactoryUtil.forName("daxId").eq(0L)); dynamicQuery.add(PropertyFactoryUtil.forName("praticaValidata").eq(true)); @@ -402,48 +328,57 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery; } + @Override public int countByClassPk(long classPk) throws SystemException { return docPraticaPersistence.countByClassPk(classPk); } + @Override public List findByClassPk(long classPk, int start, int end) throws SystemException { return docPraticaPersistence.findByClassPk(classPk, start, end); } + @Override public List findByIntPratica(long intPraticaId) throws SystemException { return docPraticaPersistence.findByIntPratica(intPraticaId); } + @Override public List findByClassPk(long classPk) throws SystemException { return docPraticaPersistence.findByClassPk(classPk); } - public List findByStaus(int status, int start, int end, OrderByComparator order) - throws SystemException { + @Override + public List findByStaus(int status, int start, int end, OrderByComparator order) throws SystemException { return docPraticaPersistence.findByStatus(status, start, end, order); } + @Override public int countByStatus(long status) throws SystemException { return docPraticaPersistence.countByStatus(status); } + @Override public int countByClassPk_Tipologia(long classPk, String tipologia) throws SystemException { return docPraticaPersistence.countByClassPk_Tipologia(classPk, tipologia); } + @Override public List findByClassPk_Tipologia(long classPk, String tipologia, int start, int end) throws SystemException { return docPraticaPersistence.findByClassPk_Tipologia(classPk, tipologia, start, end); } + @SuppressWarnings("unchecked") + @Override public List findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) throws SystemException { @@ -454,8 +389,10 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery, start, end); } - public List findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, - String tipologia, int start, int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia, + int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); @@ -465,8 +402,10 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery(dynamicQuery, start, end); } - public List findByIntPratica_ClassPk_Tipologie(long intPraticaId, long classPk, - List tipologie) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findByIntPratica_ClassPk_Tipologie(long intPraticaId, long classPk, List tipologie) + throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); @@ -476,6 +415,8 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List findByIntPratica_ClassPkEqual_Tipologie(long intPraticaId, long classPk, List tipologie) throws SystemException { @@ -487,29 +428,26 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery(dynamicQuery); } - public DocPratica fetchByC_Group_DlFileEntry_Version(long dlFileEntryId, String version) - throws SystemException { + @Override + public DocPratica fetchByC_Group_DlFileEntry_Version(long dlFileEntryId, String version) throws SystemException { return docPraticaPersistence.fetchByDlFileEntry_Version(dlFileEntryId, version); } - public DocPratica fetchByOldDocPraticaId(long oldDocPraticaId) throws SystemException { - - return docPraticaPersistence.fetchByOldDocPratica(oldDocPraticaId); - } - + @Override public List findDistinctDlFileEntryId(long classPk, String tipologia, int start, int end) throws SystemException { return findDistinctDlFileEntryId(new long[] { classPk }, tipologia, start, end); } + @SuppressWarnings("unchecked") + @Override public List findDistinctDlFileEntryId(long[] classPks, String tipologia, int start, int end) throws SystemException { - DynamicQuery dynamicQuery = docPraticaLocalService.dynamicQuery(); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("dlFileEntryId"))); + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("dlFileEntryId"))); dynamicQuery.add(PropertyFactoryUtil.forName("tipologia").eq(tipologia)); Junction or = RestrictionsFactoryUtil.disjunction(); for (long classPk : classPks) { @@ -520,6 +458,8 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return docPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } + @SuppressWarnings("unchecked") + @Override public List getValidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -529,8 +469,10 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery(dynamicQuery); } - public List getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, - int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); @@ -540,61 +482,63 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery(dynamicQuery, start, end); } - public int countValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia) - throws SystemException { + @Override + public int countValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia) throws SystemException { DynamicQuery dynamicQuery = createvalidTmpQueryByIntPratica(intPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologia", tipologia)); - return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery); } - public List getValidTmpByIntPratica(long intPraticaId, int start, int end) - throws SystemException { - DynamicQuery dynamicQuery = createvalidTmpQueryByIntPratica(intPraticaId); + @SuppressWarnings("unchecked") + @Override + public List getValidTmpByIntPratica(long intPraticaId, int start, int end) throws SystemException { + DynamicQuery dynamicQuery = createvalidTmpQueryByIntPratica(intPraticaId); dynamicQuery.addOrder(OrderFactoryUtil.asc("tipologia")); return dynamicQuery(dynamicQuery, start, end); } - public List getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, - int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { DynamicQuery dynamicQuery = createvalidTmpQueryByIntPratica(intPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologia", tipologia)); - dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaIdRimozione")); return dynamicQuery(dynamicQuery, start, end); } - public List getValidTmpByIntPratica_DettPratica_Tipologia(long intPraticaId, - long dettPraticaId, String tipologia, int start, int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getValidTmpByIntPratica_DettPratica_Tipologia(long intPraticaId, long dettPraticaId, + String tipologia, int start, int end) throws SystemException { DynamicQuery dynamicQuery = createvalidTmpQueryByIntPratica(intPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologia", tipologia)); dynamicQuery.add(RestrictionsFactoryUtil.eq("classPk", dettPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("className", DettPratica.class.getName())); - dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaIdRimozione")); return dynamicQuery(dynamicQuery, start, end); } - public List getValidTmpByIntPratica_Tipologie(long intPraticaId, String[] tipologie, - int start, int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getValidTmpByIntPratica_Tipologie(long intPraticaId, String[] tipologie, int start, int end) + throws SystemException { DynamicQuery dynamicQuery = createvalidTmpQueryByIntPratica(intPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.in("tipologia", tipologie)); - dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaIdRimozione")); return dynamicQuery(dynamicQuery, start, end); } - public int countValidTmpByIntPratica_Tipologie(long intPraticaId, String[] tipologie) - throws SystemException { + @Override + public int countValidTmpByIntPratica_Tipologie(long intPraticaId, String[] tipologie) throws SystemException { DynamicQuery dynamicQuery = createvalidTmpQueryByIntPratica(intPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.in("tipologia", tipologie)); - return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery); } @@ -603,10 +547,11 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", null)); - return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getInvalidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -616,6 +561,8 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -625,20 +572,21 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { return dynamicQuery(dynamicQuery); } - public List getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, - String tipologia, int start, int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, String tipologia, + int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.le("classPk", classPk)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologia", tipologia)); - // dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", - // null)); dynamicQuery.add(RestrictionsFactoryUtil.eq("rimosso", false)); dynamicQuery.addOrder(OrderFactoryUtil.desc("classPk")); return dynamicQuery(dynamicQuery, start, end); } + @Override public void completeInvalidation(long intPraticaId) throws SystemException { Date now = new Date(); @@ -646,39 +594,24 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { for (DocPratica docPratica : allegatiDaInvalidare) { docPratica.setRimosso(true); docPratica.setDtDataRimozione(now); - docPratica = updateDocPratica(docPratica); } } - public List getDocPraticaWithOldFileEntryId(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(DocPratica.class); - dynamicQuery.add(PropertyFactoryUtil.forName("oldDlFileEntryId").ne(0L)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("oldDlFileEntryId")); - - return docPraticaLocalService.dynamicQuery(dynamicQuery, start, end); - } - - // ADT BUG FE ID = 9 - public DocPratica addDocPraticaAnnullamento(long userId, String className, long classPk, - long intPraticaId, long fileEntryId, String fileName, String tipologia, String sha256, - String jsonFirmatari, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public DocPratica addDocPraticaAnnullamento(long userId, String className, long classPk, long intPraticaId, + long fileEntryId, String fileName, String tipologia, String sha256, String jsonFirmatari, + ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class - .getName())); - + DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class.getName())); docPratica.setCompanyId(serviceContext.getCompanyId()); docPratica.setUserId(user.getUserId()); docPratica.setUserName(user.getFullName()); docPratica.setCreateDate(serviceContext.getCreateDate(now)); docPratica.setModifiedDate(serviceContext.getModifiedDate(now)); docPratica.setGroupId(serviceContext.getScopeGroupId()); - docPratica.setClassName(className); docPratica.setClassPk(classPk); docPratica.setIntPraticaId(intPraticaId); @@ -690,29 +623,18 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { docPratica.setSha256(sha256); docPratica.setAggiornato(false); docPratica.setJsonFirmatari(jsonFirmatari); - docPratica.setDettPraticaIdRimozione(0l); + docPratica.setDettPraticaIdRimozione(0L); docPratica.setDtDataRimozione(null); - docPratica.setStatus(WorkflowConstants.STATUS_PENDING); - docPratica = docPraticaPersistence.update(docPratica); - return docPratica; } - /** - * Metodo nuovo ADT - * - * @param intPraticaId - * @param classPk - * @param tipologia - * @param start - * @param end - * @return - * @throws SystemException - */ - public List findByIntPratica_ClassPk_TipologiaNew(long intPraticaId, long classPk, - String tipologia, int start, int end) throws SystemException { + // Metodo nuovo ADT + @SuppressWarnings("unchecked") + @Override + public List findByIntPratica_ClassPk_TipologiaNew(long intPraticaId, long classPk, String tipologia, + int start, int end) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); @@ -721,5 +643,4 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl { dynamicQuery.addOrder(OrderFactoryUtil.desc("classPk")); return dynamicQuery(dynamicQuery, start, end); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaServiceImpl.java index e6f99c76..d386fd10 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -26,13 +26,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the doc pratica remote 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.liferay.portos.bo.service.DocPraticaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.DocPraticaService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -40,103 +39,112 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.DocPraticaServiceUtil */ public class DocPraticaServiceImpl extends DocPraticaServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.DocPraticaServiceUtil} to access the doc pratica remote - * service. - */ - public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, byte[] dlFileEntry, - String fileName, String version, boolean praticaValidata, String descLong, String tipologia, String sha256, - boolean aggiornato, String jsonFirmatari, long intPraticaIdRimozione, long dettPraticaIdRimozione, - Date dtDataRimozione, ServiceContext serviceContext) throws PortalException, SystemException { + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.DocPraticaServiceUtil} to access the doc pratica remote service. + */ + @Override + public DocPratica addDocPratica(long userId, String className, long classPk, long intPraticaId, byte[] dlFileEntry, + String fileName, String version, boolean praticaValidata, String descLong, String tipologia, String sha256, + boolean aggiornato, String jsonFirmatari, long intPraticaIdRimozione, long dettPraticaIdRimozione, + Date dtDataRimozione, ServiceContext serviceContext) throws PortalException, SystemException { - // TODO aggiungere controlli di permessi di aggiutna file!!!! + // TODO aggiungere controlli di permessi di aggiunta file!!!! + return docPraticaLocalService.addDocPratica(userId, className, classPk, intPraticaId, dlFileEntry, fileName, + version, praticaValidata, descLong, tipologia, sha256, aggiornato, jsonFirmatari, + dettPraticaIdRimozione, dtDataRimozione, serviceContext); + } - return docPraticaLocalService.addDocPratica(userId, className, classPk, intPraticaId, dlFileEntry, fileName, - version, praticaValidata, descLong, tipologia, sha256, aggiornato, jsonFirmatari, dettPraticaIdRimozione, - dtDataRimozione, serviceContext); + @Override + public DocPratica getDocPratica(long docPraticaId) throws PortalException, SystemException { - } + // TODO permessi + return docPraticaLocalService.getDocPratica(docPraticaId); + } - public DocPratica getDocPratica(long docPraticaId) throws PortalException, SystemException { + @Override + public int countByClassPk_Tipologia(long classPk, String tipologia) throws SystemException { - // TODO permessi - return docPraticaLocalService.getDocPratica(docPraticaId); - } + // TODO permessi + return docPraticaLocalService.countByClassPk_Tipologia(classPk, tipologia); + } - public int countByClassPk_Tipologia(long classPk, String tipologia) throws SystemException { + @Override + public List findByClassPk_Tipologia(long dettPratica, String tipologia, int start, int end) + throws SystemException { - // TODO permessi - return docPraticaLocalService.countByClassPk_Tipologia(classPk, tipologia); - } + // TODO permessi + return docPraticaLocalService.findByClassPk_Tipologia(dettPratica, tipologia, start, end); + } - public List findByClassPk_Tipologia(long dettPratica, String tipologia, int start, int end) - throws SystemException { + @Override + public List findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { - // TODO permessi - return docPraticaLocalService.findByClassPk_Tipologia(dettPratica, tipologia, start, end); - } + // TODO permessi + return docPraticaLocalService.findByIntPratica_Tipologia(intPraticaId, tipologia, start, end); + } - public List findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) - throws SystemException { + @Override + public List findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia, + int start, int end) throws SystemException { - // TODO permessi - return docPraticaLocalService.findByIntPratica_Tipologia(intPraticaId, tipologia, start, end); - } + return docPraticaLocalService.findByIntPratica_ClassPk_Tipologia(intPraticaId, classPk, tipologia, start, end); + } - public List findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia, - int start, int end) throws SystemException { + @Override + public DocPratica deleteDocPratica(DocPratica docPratica) throws PortalException, SystemException { - return docPraticaLocalService.findByIntPratica_ClassPk_Tipologia(intPraticaId, classPk, tipologia, start, end); - } + return docPraticaLocalService.deleteDocPratica(docPratica); + } - public DocPratica deleteDocPratica(DocPratica docPratica) throws PortalException, SystemException { + @Override + public DocPratica deleteDocPratica(long docPraticaId) throws PortalException, SystemException { + return docPraticaLocalService.deleteDocPratica(docPraticaId); + } - return docPraticaLocalService.deleteDocPratica(docPratica); - } + @Override + public List getValidByIntPratica(long intPraticaId) throws SystemException { - public DocPratica deleteDocPratica(long docPraticaId) throws PortalException, SystemException { + // TODO permessi + return docPraticaLocalService.getValidByIntPratica(intPraticaId); + } + @Override + public List getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { - return docPraticaLocalService.deleteDocPratica(docPraticaId); - } + // TODO permessi + return docPraticaLocalService.getValidByIntPratica_Tipologia(intPraticaId, tipologia, start, end); + } - public List getValidByIntPratica(long intPraticaId) throws SystemException { + @Override + public List getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) + throws SystemException { - // TODO permessi - return docPraticaLocalService.getValidByIntPratica(intPraticaId); - } + // TODO permessi + return docPraticaLocalService.getValidTmpByIntPratica_Tipologia(intPraticaId, tipologia, start, end); + } - public List getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) - throws SystemException { + @Override + public List getInvalidByIntPratica(long intPraticaId) throws SystemException { - // TODO permessi - return docPraticaLocalService.getValidByIntPratica_Tipologia(intPraticaId, tipologia, start, end); - } + // TODO permessi + return docPraticaLocalService.getInvalidByIntPratica(intPraticaId); + } - public List getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end) - throws SystemException { + @Override + public List getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { - // TODO permessi - return docPraticaLocalService.getValidTmpByIntPratica_Tipologia(intPraticaId, tipologia, start, end); - } + // TODO permessi + return docPraticaLocalService.getInvalidTmpByIntPratica(intPraticaId); + } - public List getInvalidByIntPratica(long intPraticaId) throws SystemException { + @Override + public List getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, String tipologia, + int start, int end) throws SystemException { - // TODO permessi - return docPraticaLocalService.getInvalidByIntPratica(intPraticaId); - } - - public List getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { - - // TODO permessi - return docPraticaLocalService.getInvalidTmpByIntPratica(intPraticaId); - } - - public List getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, String tipologia, - int start, int end) throws SystemException { - - return docPraticaLocalService.getValidUntilClassPkByIntPratica(intPraticaId, classPk, tipologia, start, end); - } + return docPraticaLocalService.getValidUntilClassPkByIntPratica(intPraticaId, classPk, tipologia, start, end); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java index c5d525ee..2e14158e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -57,13 +57,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the fine lavori 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.liferay.portos.bo.service.FineLavoriLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.FineLavoriLocalService} 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 Davide Barbagallo, 3F Consulting @@ -71,520 +70,444 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil */ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil} to access the fine lavori local - * service. - */ - - private FineLavori initFineLavori(ServiceContext serviceContext) throws PortalException, SystemException { - - User user = userLocalService.getUser(serviceContext.getUserId()); - - Date now = new Date(); - - FineLavori fineLavori = fineLavoriPersistence.create(counterLocalService.increment(DettPratica.class.getName())); - - fineLavori.setCompanyId(serviceContext.getCompanyId()); - fineLavori.setGroupId(serviceContext.getScopeGroupId()); - fineLavori.setUserId(serviceContext.getUserId()); - fineLavori.setUserName(user.getFullName()); - fineLavori.setCreateDate(serviceContext.getCreateDate(now)); - fineLavori.setModifiedDate(serviceContext.getModifiedDate(now)); - - // setto parametri di default - fineLavori.setParziale(false); - fineLavori.setDataEffettuazione(null); - fineLavori.setDataFineLavori(null); - fineLavori.setCodiceFiscaleDelegato(StringPool.BLANK); - fineLavori.setNormEsenteBollo(false); - fineLavori.setNormEsenteCollaudo(false); - fineLavori.setComunicazioneDirettoreLavori(StringPool.BLANK); - - return fineLavori; - } - - @Indexable(type = IndexableType.REINDEX) - public FineLavori addFineLavori(long intPraticaId, ServiceContext serviceContext) throws PortalException, - SystemException { - - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - - FineLavori fineLavori = initFineLavori(serviceContext); - fineLavori.setGroupId(intPratica.getGroupId()); - fineLavori.setIntPraticaId(intPraticaId); - - fineLavoriPersistence.update(fineLavori); - return fineLavori; - } - - @Override - @Indexable(type = IndexableType.DELETE) - public FineLavori deleteFineLavori(FineLavori fineLavori) throws SystemException, PortalException { - - List docPraticas = - docPraticaLocalService.findByClassPk(fineLavori.getFineLavoriId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); - for (DocPratica docPratica : docPraticas) { - docPraticaLocalService.deleteDocPratica(docPratica); - } - - List pagamenti = pagamentoLocalService.findByClassPk(fineLavori.getFineLavoriId()); - for (Pagamento pagamento : pagamenti) { - pagamentoLocalService.deletePagamento(pagamento); - } - - return super.deleteFineLavori(fineLavori); - } - - @Override - @Indexable(type = IndexableType.DELETE) - public FineLavori deleteFineLavori(long fineLavoriId) throws PortalException, SystemException { - - FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); - - return deleteFineLavori(fineLavori); - } - - @Indexable(type = IndexableType.REINDEX) - public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, - boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, - boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws NoSuchFineLavoriException, - SystemException { - - FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); - - fineLavori.setParziale(parziale); - fineLavori.setCompletata(completata); - fineLavori.setDataFineLavori(dataFineLavori); - fineLavori.setCodiceFiscaleDelegato(codiceFiscaleDelegato); - fineLavori.setNormEsenteBollo(normEsenteBollo); - fineLavori.setNormEsenteCollaudo(normEsenteCollaudo); - fineLavori.setComunicazioneDirettoreLavori(comunicazioneDirettoreLavori); - - fineLavori = fineLavoriPersistence.update(fineLavori); - - return fineLavori; - } - - public FineLavori getLastEditable(long intPraticaId) throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId")); - List fineLavoriList = dynamicQuery(dynamicQuery, 0, 1); - if (!fineLavoriList.isEmpty()) { - return fineLavoriList.get(0); - } - return null; - } - - public FineLavori getLastCompleted(long intPraticaId) throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId")); - List fineLavoriList = dynamicQuery(dynamicQuery, 0, 1); - if (!fineLavoriList.isEmpty()) { - return fineLavoriList.get(0); - } - return null; - } - - public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL, - ServiceContext serviceContext) throws SystemException, PortalException { - - FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); - - BigDecimal importoBolli = - PagamentiCommonUtil.getImportoBolli(fineLavori.getCompanyId(), fineLavori.getFineLavoriId(), - FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI); - - fineLavori.setImportoBolli(importoBolli.toString()); - fineLavori = updateFineLavori(fineLavori); - - PagamentiUtil.nuovoPagamento(currentURL, fineLavori.getFineLavoriId(), FineLavori.class.getName(), - PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); - - return fineLavori; - } - - // public void sostituisciPagamento(long pagamentoId, long fineLavoriId, String - // codiceFiscaleCommittente, String mezzo, - // String url, ServiceContext serviceContext) throws PortalException, SystemException { - // - // FineLavori fineLavori = getFineLavori(fineLavoriId); - // Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); - // String currentUtilizzata = pagamento.getUtilizzata(); - // String currentMezzo = pagamento.getMezzo(); - // - // boolean irisEnable = PagamentiUtil.irisIsEnable(pagamento.getCompanyId()); - // if (fineLavori.getPagamentoId() != pagamentoId) { - // throw new PortalException("Pagamento non abbinato alla Fine Lavori"); - // } - // if (mezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)) { - // if (irisEnable) { - // throw new PortalException("Creazione pagamento manuale con iris enable non possibile"); - // } else if (currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) - // || currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)) { - // fineLavori.setPagamentoId(0l); - // fineLavori = updateFineLavori(fineLavori); - // - // pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA); - // pagamentoLocalService.updatePagamento(pagamento); - // - // PagamentiUtil.nuovoPagamento(url, fineLavoriId, FineLavori.class.getName(), - // pagamento.getImportoBolli(), - // pagamento.getImportoSpeseIstruttoria(), codiceFiscaleCommittente, serviceContext); - // } else { - // throw new PortalException("Creazione pagamento manuale con stato " + currentUtilizzata + - // " non possibile"); - // } - // } else if (mezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS)) { - // if (irisEnable - // && (currentMezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) || (currentUtilizzata - // .equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) || currentUtilizzata - // .equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA)))) { - // - // fineLavori.setPagamentoId(0l); - // fineLavori = updateFineLavori(fineLavori); - // - // pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA); - // pagamentoLocalService.updatePagamento(pagamento); - // PagamentiUtil.nuovoPagamento(url, fineLavoriId, FineLavori.class.getName(), - // pagamento.getImportoBolli(), - // pagamento.getImportoSpeseIstruttoria(), codiceFiscaleCommittente, serviceContext); - // } else { - // throw new PortalException("Pagamento IRIS non sostituibile"); - // } - // - // } else { - // throw new PortalException("Mezzo non presente"); - // } - // - // } - - public void updateEsitoPagamento(long pagamentoId, long fineLavoriId, String stato) throws SystemException, - PortalException { - - updateEsitoPagamento(pagamentoId, fineLavoriId, 0l, stato); - } - - public void updateEsitoPagamento(long pagamentoId, long fineLavoriId, long fileEntryId, String stato) - throws SystemException, PortalException { - - Date now = new Date(); - FineLavori fineLavori = fineLavoriPersistence.fetchByPrimaryKey(fineLavoriId); - - fineLavori.setModifiedDate(now); - if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { - - fineLavori.setCompletata(true); - fineLavori.setDataEffettuazione(now); - fineLavori - .setNumero(fineLavoriPersistence.countByIntPraticaId_Completata(fineLavori.getIntPraticaId(), true) + 1); - fineLavori = updateFineLavori(fineLavori); - - updateIntPraticaStatus(fineLavori, fineLavori.getIntPraticaId()); - - docPraticaLocalService.completeInvalidation(fineLavori.getIntPraticaId()); - - IntPratica intPratica = intPraticaLocalService.getIntPratica(fineLavori.getIntPraticaId()); - if (WorkflowUtil.isWorkflowDisattivabile(fineLavori.getIntPraticaId()) - && Validator.isNotNull(intPratica.getStatusByUserId())) { - this.inviaMailnotifica(fineLavoriId, intPratica.getStatusByUserId(), now); - } - pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); - } else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) - || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) - || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) { - pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); - } - - } - - public FineLavori updateEsito(long fineLavoriId, int stato) throws SystemException, PortalException { - - Date now = new Date(); - FineLavori fineLavori = fineLavoriPersistence.fetchByPrimaryKey(fineLavoriId); - fineLavori.setModifiedDate(now); - - fineLavori.setCompletata(true); - fineLavori.setDataEffettuazione(now); - fineLavori.setNumero(fineLavoriPersistence.countByIntPraticaId_Completata(fineLavori.getIntPraticaId(), true) + 1); - fineLavori = updateFineLavori(fineLavori); - - updateIntPraticaStatus(fineLavori, fineLavori.getIntPraticaId()); - - docPraticaLocalService.completeInvalidation(fineLavori.getIntPraticaId()); - - IntPratica intPratica = intPraticaLocalService.getIntPratica(fineLavori.getIntPraticaId()); - if (WorkflowUtil.isWorkflowDisattivabile(fineLavori.getIntPraticaId()) - && Validator.isNotNull(intPratica.getStatusByUserId())) { - this.inviaMailnotifica(fineLavoriId, intPratica.getStatusByUserId(), now); - } - - return fineLavori; - } - - private void inviaMailnotifica(long fineLavoriId, long tecnicoIstruttoreId, Date date) throws SystemException, - PortalException { - - FineLavori fineLavori = fineLavoriPersistence.fetchByPrimaryKey(fineLavoriId); - - User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId); - - String[] to = {tecnicoIstruttore.getEmailAddress()}; - String[] cc = new String[0]; - String[] ccn = new String[0]; - - String tipoPratica = StringPool.BLANK; - long intPraticaId = fineLavori.getIntPraticaId(); - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { - tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { - tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil} to access the fine lavori local service. + */ + + private FineLavori initFineLavori(ServiceContext serviceContext) throws PortalException, SystemException { + + User user = userLocalService.getUser(serviceContext.getUserId()); + Date now = new Date(); + FineLavori fineLavori = fineLavoriPersistence + .create(counterLocalService.increment(DettPratica.class.getName())); + fineLavori.setCompanyId(serviceContext.getCompanyId()); + fineLavori.setGroupId(serviceContext.getScopeGroupId()); + fineLavori.setUserId(serviceContext.getUserId()); + fineLavori.setUserName(user.getFullName()); + fineLavori.setCreateDate(serviceContext.getCreateDate(now)); + fineLavori.setModifiedDate(serviceContext.getModifiedDate(now)); + // setto parametri di default + fineLavori.setParziale(false); + fineLavori.setDataEffettuazione(null); + fineLavori.setDataFineLavori(null); + fineLavori.setCodiceFiscaleDelegato(StringPool.BLANK); + fineLavori.setNormEsenteBollo(false); + fineLavori.setNormEsenteCollaudo(false); + fineLavori.setComunicazioneDirettoreLavori(StringPool.BLANK); + return fineLavori; + } + + @Override + @Indexable(type = IndexableType.REINDEX) + public FineLavori addFineLavori(long intPraticaId, ServiceContext serviceContext) throws PortalException, + SystemException { + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + FineLavori fineLavori = initFineLavori(serviceContext); + fineLavori.setGroupId(intPratica.getGroupId()); + fineLavori.setIntPraticaId(intPraticaId); + fineLavoriPersistence.update(fineLavori); + return fineLavori; + } + + @Override + @Indexable(type = IndexableType.DELETE) + public FineLavori deleteFineLavori(FineLavori fineLavori) throws SystemException, PortalException { + + List docPraticas = docPraticaLocalService.findByClassPk(fineLavori.getFineLavoriId(), + QueryUtil.ALL_POS, QueryUtil.ALL_POS); + for (DocPratica docPratica : docPraticas) { + docPraticaLocalService.deleteDocPratica(docPratica); + } + List pagamenti = pagamentoLocalService.findByClassPk(fineLavori.getFineLavoriId()); + for (Pagamento pagamento : pagamenti) { + pagamentoLocalService.deletePagamento(pagamento); + } + return super.deleteFineLavori(fineLavori); + } + + @Override + @Indexable(type = IndexableType.DELETE) + public FineLavori deleteFineLavori(long fineLavoriId) throws PortalException, SystemException { + + FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); + return deleteFineLavori(fineLavori); + } + + @Override + @Indexable(type = IndexableType.REINDEX) + public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, + boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, + boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws NoSuchFineLavoriException, + SystemException { + + FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); + fineLavori.setParziale(parziale); + fineLavori.setCompletata(completata); + fineLavori.setDataFineLavori(dataFineLavori); + fineLavori.setCodiceFiscaleDelegato(codiceFiscaleDelegato); + fineLavori.setNormEsenteBollo(normEsenteBollo); + fineLavori.setNormEsenteCollaudo(normEsenteCollaudo); + fineLavori.setComunicazioneDirettoreLavori(comunicazioneDirettoreLavori); + fineLavori = fineLavoriPersistence.update(fineLavori); + return fineLavori; + } + + @Override + public FineLavori getLastEditable(long intPraticaId) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false)); + dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId")); + @SuppressWarnings("unchecked") + List fineLavoriList = dynamicQuery(dynamicQuery, 0, 1); + return fineLavoriList.isEmpty() ? null : fineLavoriList.get(0); + } + + @Override + public FineLavori getLastCompleted(long intPraticaId) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId")); + @SuppressWarnings("unchecked") + List fineLavoriList = dynamicQuery(dynamicQuery, 0, 1); + return fineLavoriList.isEmpty() ? null : fineLavoriList.get(0); + } + + @Override + public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL, + ServiceContext serviceContext) throws SystemException, PortalException { + + FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); + BigDecimal importoBolli = PagamentiCommonUtil.getImportoBolli(fineLavori.getCompanyId(), + fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI); + fineLavori.setImportoBolli(importoBolli.toString()); + fineLavori = updateFineLavori(fineLavori); + PagamentiUtil.nuovoPagamento(currentURL, fineLavori.getFineLavoriId(), FineLavori.class.getName(), + PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); + return fineLavori; + } + + @Override + public void updateEsitoPagamento(long pagamentoId, long fineLavoriId, String stato) throws SystemException, + PortalException { + + updateEsitoPagamento(pagamentoId, fineLavoriId, 0l, stato); + } + + @Override + public void updateEsitoPagamento(long pagamentoId, long fineLavoriId, long fileEntryId, String stato) + throws SystemException, PortalException { + + Date now = new Date(); + FineLavori fineLavori = fineLavoriPersistence.fetchByPrimaryKey(fineLavoriId); + fineLavori.setModifiedDate(now); + if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_PAGATA)) { + fineLavori.setCompletata(true); + fineLavori.setDataEffettuazione(now); + fineLavori.setNumero(fineLavoriPersistence.countByIntPraticaId_Completata(fineLavori.getIntPraticaId(), + true) + 1); + fineLavori = updateFineLavori(fineLavori); + updateIntPraticaStatus(fineLavori, fineLavori.getIntPraticaId()); + docPraticaLocalService.completeInvalidation(fineLavori.getIntPraticaId()); + IntPratica intPratica = intPraticaLocalService.getIntPratica(fineLavori.getIntPraticaId()); + if (WorkflowUtil.isWorkflowDisattivabile(fineLavori.getIntPraticaId()) + && Validator.isNotNull(intPratica.getStatusByUserId())) { + this.inviaMailnotifica(fineLavoriId, intPratica.getStatusByUserId(), now); + } + pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); + } else if (stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) + || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) + || stato.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) { + pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, stato); + } + + } + + @Override + public FineLavori updateEsito(long fineLavoriId, int stato) throws SystemException, PortalException { + + Date now = new Date(); + FineLavori fineLavori = fineLavoriPersistence.fetchByPrimaryKey(fineLavoriId); + fineLavori.setModifiedDate(now); + fineLavori.setCompletata(true); + fineLavori.setDataEffettuazione(now); + fineLavori + .setNumero(fineLavoriPersistence.countByIntPraticaId_Completata(fineLavori.getIntPraticaId(), true) + 1); + fineLavori = updateFineLavori(fineLavori); + updateIntPraticaStatus(fineLavori, fineLavori.getIntPraticaId()); + docPraticaLocalService.completeInvalidation(fineLavori.getIntPraticaId()); + IntPratica intPratica = intPraticaLocalService.getIntPratica(fineLavori.getIntPraticaId()); + if (WorkflowUtil.isWorkflowDisattivabile(fineLavori.getIntPraticaId()) + && Validator.isNotNull(intPratica.getStatusByUserId())) { + this.inviaMailnotifica(fineLavoriId, intPratica.getStatusByUserId(), now); + } + return fineLavori; + } + + private void inviaMailnotifica(long fineLavoriId, long tecnicoIstruttoreId, Date date) throws SystemException, + PortalException { + + FineLavori fineLavori = fineLavoriPersistence.fetchByPrimaryKey(fineLavoriId); + User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId); + String[] to = { tecnicoIstruttore.getEmailAddress() }; + String[] cc = new String[0]; + String[] ccn = new String[0]; + String tipoPratica = StringPool.BLANK; + long intPraticaId = fineLavori.getIntPraticaId(); + if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); + } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); + } + JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); + templateVariables.put("receiver", tecnicoIstruttore.getFullName()); + templateVariables.put("tipoPratica", tipoPratica); + templateVariables.put("tipoOggetto", + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" + (fineLavori.getParziale() ? "09" : "07"))); + templateVariables.put("dataInvio", + FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date)); + ServiceContext serviceContext = new ServiceContext(); + serviceContext.setScopeGroupId(fineLavori.getGroupId()); + serviceContext.setCompanyId(fineLavori.getCompanyId()); + serviceContext.setUserId(fineLavori.getUserId()); + MailUtil.invioMailNotifica(fineLavori.getIntPraticaId(), 0l, fineLavoriId, FineLavori.class.getName(), to, cc, + ccn, "NOTIFICA-BO", templateVariables, null, serviceContext); + } + + private IntPratica updateIntPraticaStatus(FineLavori fineLavori, long intPraticaId) throws PortalException, + SystemException { + + IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + if (fineLavori.isParziale()) { + intPratica.setFineLavoriParziale(true); + } else { + intPratica.setFineLavoriTotale(true); + } + intPratica = intPraticaLocalService.updateIntPratica(intPratica); + return intPratica; + } + + @Override + public FineLavori updateFineLavoriProtocollo(long fineLavoriId, String protocollo) throws PortalException, + SystemException { + + FineLavori fineLavori = fetchFineLavori(fineLavoriId); + fineLavori.setModifiedDate(new Date()); + fineLavori.setProtocollo(protocollo); + fineLavori.setDtProtocollo(new Date()); + fineLavori = updateFineLavori(fineLavori); + return fineLavori; + } + + @Override + public FineLavori findByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, + SystemException { + + return fineLavoriPersistence.findByC_G_Protocollo(companyId, groupId, protocollo); + } + + @Override + public FineLavori fetchByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, + SystemException { + + return fineLavoriPersistence.fetchByC_G_Protocollo(companyId, groupId, protocollo); + } + + @Override + public FineLavori fetchByProtocollo(String protocollo) throws PortalException, SystemException { + + return fineLavoriPersistence.fetchByProtocollo(protocollo); + } + + @Override + public List findByIntPraticaId(long intPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return fineLavoriPersistence.findByIntPraticaId(intPraticaId, start, end, orderByComparator); + } + + @Override + public int countByIntPraticaId(long intPraticaId) throws SystemException { + + return fineLavoriPersistence.countByIntPraticaId(intPraticaId); + } + + @Override + public List findByIntPraticaId_Parziale(long intPraticaId, boolean parziale, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return fineLavoriPersistence.findByIntPraticaId_Parziale(intPraticaId, parziale, start, end, orderByComparator); + } + + @Override + public int countByIntPraticaId_Parziale(long intPraticaId, boolean parziale) throws SystemException { + + return fineLavoriPersistence.countByIntPraticaId_Parziale(intPraticaId, parziale); + } + + @Override + public List findByIntPraticaId_Completata(long intPraticaId, boolean completata, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + + return fineLavoriPersistence.findByIntPraticaId_Completata(intPraticaId, completata, start, end, + orderByComparator); + } + + @Override + public int countByIntPraticaId_Completata(long intPraticaId, boolean completata) throws SystemException { + + return fineLavoriPersistence.countByIntPraticaId_Completata(intPraticaId, completata); + } + + @Override + public List findByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato, + int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return fineLavoriPersistence.findByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato, start, end, + orderByComparator); + } + + @Override + public int countByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato) + throws SystemException { + + return fineLavoriPersistence.countByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato); + } - JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); - templateVariables.put("receiver", tecnicoIstruttore.getFullName()); - templateVariables.put("tipoPratica", tipoPratica); - templateVariables.put("tipoOggetto", - LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-" + (fineLavori.getParziale() ? "09" : "07"))); - templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date)); + @Override + public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, + int end, OrderByComparator orderByComparator) throws SystemException { + + return fineLavoriPersistence.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, + orderByComparator); + } + + @Override + public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setScopeGroupId(fineLavori.getGroupId()); - serviceContext.setCompanyId(fineLavori.getCompanyId()); - serviceContext.setUserId(fineLavori.getUserId()); - - MailUtil.invioMailNotifica(fineLavori.getIntPraticaId(), 0l, fineLavoriId, FineLavori.class.getName(), to, cc, ccn, - "NOTIFICA-BO", templateVariables, null, serviceContext); - } - - private IntPratica updateIntPraticaStatus(FineLavori fineLavori, long intPraticaId) throws PortalException, - SystemException { - - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); - if (fineLavori.isParziale()) { - intPratica.setFineLavoriParziale(true); - } else { - intPratica.setFineLavoriTotale(true); - } - intPratica = intPraticaLocalService.updateIntPratica(intPratica); - return intPratica; - } - - public FineLavori updateFineLavoriProtocollo(long fineLavoriId, String protocollo) throws PortalException, - SystemException { - - FineLavori fineLavori = fineLavoriLocalService.fetchFineLavori(fineLavoriId); - fineLavori.setModifiedDate(new Date()); - fineLavori.setProtocollo(protocollo); - fineLavori.setDtProtocollo(new Date()); - fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori); - - return fineLavori; - } - - public FineLavori findByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, - SystemException { - - return fineLavoriPersistence.findByC_G_Protocollo(companyId, groupId, protocollo); - } - - public FineLavori fetchByProtocollo(long companyId, long groupId, String protocollo) throws PortalException, - SystemException { - - return fineLavoriPersistence.fetchByC_G_Protocollo(companyId, groupId, protocollo); - } - - public FineLavori fetchByProtocollo(String protocollo) throws PortalException, SystemException { - - return fineLavoriPersistence.fetchByProtocollo(protocollo); - } - - public List findByIntPraticaId(long intPraticaId, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - - return fineLavoriPersistence.findByIntPraticaId(intPraticaId, start, end, orderByComparator); - } - - public int countByIntPraticaId(long intPraticaId) throws SystemException { - - return fineLavoriPersistence.countByIntPraticaId(intPraticaId); - } - - public List findByIntPraticaId_Parziale(long intPraticaId, boolean parziale, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - return fineLavoriPersistence.findByIntPraticaId_Parziale(intPraticaId, parziale, start, end, orderByComparator); - } - - public int countByIntPraticaId_Parziale(long intPraticaId, boolean parziale) throws SystemException { - - return fineLavoriPersistence.countByIntPraticaId_Parziale(intPraticaId, parziale); - } - - public List findByIntPraticaId_Completata(long intPraticaId, boolean completata, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - return fineLavoriPersistence.findByIntPraticaId_Completata(intPraticaId, completata, start, end, orderByComparator); - } - - public int countByIntPraticaId_Completata(long intPraticaId, boolean completata) throws SystemException { - - return fineLavoriPersistence.countByIntPraticaId_Completata(intPraticaId, completata); - } - - public List findByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - - return fineLavoriPersistence.findByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato, start, end, - orderByComparator); - } - - public int countByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato) throws SystemException { - - return fineLavoriPersistence.countByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato); - } - - public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - - return fineLavoriPersistence.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, - orderByComparator); - } - - public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { - - return fineLavoriPersistence.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); - } - - public List findByIntPraticaId_Parziale_Completata(long intPraticaId, boolean parziale, - boolean completata, int start, int end, OrderByComparator orderByComparator) throws SystemException { - - return fineLavoriPersistence.findByIntPraticaId_Parziale_Completata(intPraticaId, parziale, completata, start, end, - orderByComparator); - } - - public int countByIntPraticaId_Parziale_Completata(long intPraticaId, boolean parziale, boolean completata) - throws SystemException { - - return fineLavoriPersistence.countByIntPraticaId_Parziale_Completata(intPraticaId, parziale, completata); - } - - public List findByIntPraticaId_Parziale_leFineLavoriId(long fineLavoriId, long intPraticaId, - boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.lt("fineLavoriId", fineLavoriId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); - - return dynamicQuery(dynamicQuery, start, end, orderByComparator); - } - - public int countByIntPraticaId_Parziale_leFineLavoriId(long fineLavoriId, long intPraticaId, boolean parziale) - throws SystemException { - - DynamicQuery dynamicQuery = dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.lt("fineLavoriId", fineLavoriId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); - - List results = dynamicQuery(dynamicQuery); - return results.isEmpty() ? 0 : results.size(); - } - - public List findFineLavoriCompleteNotProtocollo(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotProtocollo(); - dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); - return fineLavoriPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - public int countFineLavoriCompleteNotProtocollo() throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotProtocollo(); - return (int) fineLavoriPersistence.countWithDynamicQuery(dynamicQuery); - } - - private DynamicQuery getDynamicQueryFineLavoriCompleteNotProtocollo() { - - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); - Disjunction or = RestrictionsFactoryUtil.disjunction(); - or.add(RestrictionsFactoryUtil.eq("protocollo", StringPool.BLANK)); - or.add(RestrictionsFactoryUtil.isNull("protocollo")); - dynamicQuery.add(or); - return dynamicQuery; - } - - public List findFineLavoriCompleteNotGestite(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotGestite(); - dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); - return fineLavoriPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - public int countFineLavoriCompleteNotGestite() throws SystemException { - - DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotGestite(); - return (int) fineLavoriPersistence.countWithDynamicQuery(dynamicQuery); - } - - private DynamicQuery getDynamicQueryFineLavoriCompleteNotGestite() { - - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); - dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("protocollo")); - return dynamicQuery; - } - - public List findIntPraticaByFineLavori() throws PortalException, SystemException { - - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); - List ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); - - return ids; - } - - public List findIntPraticaByFineLavori(String codiceFiscaleDelegatoCollaudo) throws PortalException, SystemException { - - DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); - dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscaleDelegatoCollaudo)); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); - List ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); - - return ids; - } - - - // public List findIntPraticaByFineLavoriParziale(boolean parziale, List - // intPraticaIds) - // throws PortalException, SystemException { - // - // DynamicQuery dynamicQuery = fineLavoriLocalService.dynamicQuery(); - // dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", intPraticaIds)); - // dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); - // dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); - // List ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); - // - // return ids; - // } - // - - public FineLavori fetchByOldDettPraticaId(long oldDettPraticaId) throws SystemException { - - return fineLavoriPersistence.fetchByOldDettPraticaId(oldDettPraticaId); - } + return fineLavoriPersistence.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); + } + + @Override + public List findByIntPraticaId_Parziale_Completata(long intPraticaId, boolean parziale, + boolean completata, int start, int end, OrderByComparator orderByComparator) throws SystemException { + + return fineLavoriPersistence.findByIntPraticaId_Parziale_Completata(intPraticaId, parziale, completata, start, + end, orderByComparator); + } + + @Override + public int countByIntPraticaId_Parziale_Completata(long intPraticaId, boolean parziale, boolean completata) + throws SystemException { + + return fineLavoriPersistence.countByIntPraticaId_Parziale_Completata(intPraticaId, parziale, completata); + } + + @SuppressWarnings("unchecked") + @Override + public List findByIntPraticaId_Parziale_leFineLavoriId(long fineLavoriId, long intPraticaId, + boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.lt("fineLavoriId", fineLavoriId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); + return dynamicQuery(dynamicQuery, start, end, orderByComparator); + } + + @Override + public int countByIntPraticaId_Parziale_leFineLavoriId(long fineLavoriId, long intPraticaId, boolean parziale) + throws SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + dynamicQuery.add(RestrictionsFactoryUtil.lt("fineLavoriId", fineLavoriId)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale)); + @SuppressWarnings("unchecked") + List results = dynamicQuery(dynamicQuery); + return results.isEmpty() ? 0 : results.size(); + } + + @SuppressWarnings("unchecked") + @Override + public List findFineLavoriCompleteNotProtocollo(int start, int end) throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotProtocollo(); + dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); + return fineLavoriPersistence.findWithDynamicQuery(dynamicQuery, start, end); + } + + @Override + public int countFineLavoriCompleteNotProtocollo() throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotProtocollo(); + return (int) fineLavoriPersistence.countWithDynamicQuery(dynamicQuery); + } + + private DynamicQuery getDynamicQueryFineLavoriCompleteNotProtocollo() { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); + Disjunction or = RestrictionsFactoryUtil.disjunction(); + or.add(RestrictionsFactoryUtil.eq("protocollo", StringPool.BLANK)); + or.add(RestrictionsFactoryUtil.isNull("protocollo")); + dynamicQuery.add(or); + return dynamicQuery; + } + + @SuppressWarnings("unchecked") + @Override + public List findFineLavoriCompleteNotGestite(int start, int end) throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotGestite(); + dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); + return fineLavoriPersistence.findWithDynamicQuery(dynamicQuery, start, end); + } + + @Override + public int countFineLavoriCompleteNotGestite() throws SystemException { + + DynamicQuery dynamicQuery = getDynamicQueryFineLavoriCompleteNotGestite(); + return (int) fineLavoriPersistence.countWithDynamicQuery(dynamicQuery); + } + + private DynamicQuery getDynamicQueryFineLavoriCompleteNotGestite() { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("gestita", false)); + dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK)); + dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("protocollo")); + return dynamicQuery; + } + + @Override + public List findIntPraticaByFineLavori() throws PortalException, SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); + @SuppressWarnings("unchecked") + List ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); + return ids; + } + + @Override + public List findIntPraticaByFineLavori(String codiceFiscaleDelegatoCollaudo) throws PortalException, + SystemException { + + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true)); + dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscaleDelegatoCollaudo)); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId"))); + @SuppressWarnings("unchecked") + List ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery); + return ids; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java index 3100c47c..0b0e3e1d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -27,13 +27,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the fine lavori remote 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.liferay.portos.bo.service.FineLavoriService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.FineLavoriService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -41,133 +40,121 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.FineLavoriServiceUtil */ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.FineLavoriServiceUtil} to access the fine lavori remote - * service. - */ + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.FineLavoriServiceUtil} to access the fine lavori remote service. + */ - public FineLavori getFineLavori(long fineLavoriId) throws PortalException, SystemException { + @Override + public FineLavori getFineLavori(long fineLavoriId) throws PortalException, SystemException { - return fineLavoriLocalService.getFineLavori(fineLavoriId); - } + return fineLavoriLocalService.getFineLavori(fineLavoriId); + } - public FineLavori addFineLavori(long intPraticaId, ServiceContext serviceContext) throws PortalException, - SystemException { + @Override + public FineLavori addFineLavori(long intPraticaId, ServiceContext serviceContext) throws PortalException, + SystemException { - // User user = userLocalService.getUser(serviceContext.getUserId()); - // List owners = soggettoLocalService.findByIntPratica_CodiceFiscale(intPraticaId, - // user.getScreenName()); - // for (Soggetto owner : owners) { - // if (owner.getTipologiaSoggetto().equals(TipoSoggettoUtil.DIRETTORE_LAVORI)) { - // return fineLavoriLocalService.addFineLavori(intPraticaId, serviceContext); - // } - // } - // throw new SystemException("unbale to add Fine Lavori. Subject is not a direttore lavori"); - return fineLavoriLocalService.addFineLavori(intPraticaId, serviceContext); - } + return fineLavoriLocalService.addFineLavori(intPraticaId, serviceContext); + } - public FineLavori deleteFineLavori(FineLavori fineLavori) throws PortalException, SystemException { + @Override + public FineLavori deleteFineLavori(FineLavori fineLavori) throws PortalException, SystemException { - return fineLavoriLocalService.deleteFineLavori(fineLavori); - } + return fineLavoriLocalService.deleteFineLavori(fineLavori); + } - public FineLavori deleteFineLavori(long fineLavoriId) throws PortalException, SystemException { + @Override + public FineLavori deleteFineLavori(long fineLavoriId) throws PortalException, SystemException { - return fineLavoriLocalService.deleteFineLavori(fineLavoriId); - } + return fineLavoriLocalService.deleteFineLavori(fineLavoriId); + } - public FineLavori updateFineLavori(FineLavori fineLavori) throws SystemException { + @Override + public FineLavori updateFineLavori(FineLavori fineLavori) throws SystemException { - return fineLavoriLocalService.updateFineLavori(fineLavori); - } + return fineLavoriLocalService.updateFineLavori(fineLavori); + } - public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, - boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, - boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws PortalException, SystemException { + @Override + public FineLavori updateFineLavori(long userId, long fineLavoriId, long intPraticaId, boolean parziale, + boolean completata, Date dataFineLavori, String codiceFiscaleDelegato, boolean normEsenteBollo, + boolean normEsenteCollaudo, String comunicazioneDirettoreLavori) throws PortalException, SystemException { - FineLavori fineLavori = getFineLavori(fineLavoriId); + FineLavori fineLavori = getFineLavori(fineLavoriId); + if (fineLavori.getUserId() == userId) { + fineLavori = fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, intPraticaId, parziale, + completata, dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo, + comunicazioneDirettoreLavori); + } + return fineLavori; + } - if (fineLavori.getUserId() == userId) { - fineLavori = - fineLavoriLocalService.updateFineLavori(userId, fineLavoriId, intPraticaId, parziale, completata, - dataFineLavori, codiceFiscaleDelegato, normEsenteBollo, normEsenteCollaudo, comunicazioneDirettoreLavori); - } + @Override + public FineLavori getLastEditable(long intPraticaId) throws SystemException { - return fineLavori; - } + return fineLavoriLocalService.getLastEditable(intPraticaId); + } - public FineLavori getLastEditable(long intPraticaId) throws SystemException { + @Override + public FineLavori getLastCompleted(long intPraticaId) throws SystemException { - return fineLavoriLocalService.getLastEditable(intPraticaId); - } + return fineLavoriLocalService.getLastCompleted(intPraticaId); + } - public FineLavori getLastCompleted(long intPraticaId) throws SystemException { + @Override + public List findByIntPraticaId_Parziale(long intPraticaId, boolean parziale, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return fineLavoriLocalService.getLastCompleted(intPraticaId); - } + return fineLavoriLocalService + .findByIntPraticaId_Parziale(intPraticaId, parziale, start, end, orderByComparator); + } - public List findByIntPraticaId_Parziale(long intPraticaId, boolean parziale, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + @Override + public int countByIntPraticaId_Parziale(long intPraticaId, boolean parziale) throws SystemException { - return fineLavoriLocalService.findByIntPraticaId_Parziale(intPraticaId, parziale, start, end, orderByComparator); - } + return fineLavoriLocalService.countByIntPraticaId_Parziale(intPraticaId, parziale); + } - public int countByIntPraticaId_Parziale(long intPraticaId, boolean parziale) throws SystemException { + @Override + public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL, + ServiceContext serviceContext) throws SystemException, PortalException { - return fineLavoriLocalService.countByIntPraticaId_Parziale(intPraticaId, parziale); - } + return fineLavoriLocalService.pagaInvia(fineLavoriId, codiceFiscaleCommittente, currentURL, serviceContext); + } - public FineLavori pagaInvia(long fineLavoriId, String codiceFiscaleCommittente, String currentURL, - ServiceContext serviceContext) throws SystemException, PortalException { + @Override + public FineLavori updateEsito(long fineLavoriId, int stato) throws SystemException, PortalException { - return fineLavoriLocalService.pagaInvia(fineLavoriId, codiceFiscaleCommittente, currentURL, serviceContext); - } + return fineLavoriLocalService.updateEsito(fineLavoriId, stato); + } - public FineLavori updateEsito(long fineLavoriId, int stato) throws SystemException, PortalException { + @Override + public List findByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato, + int start, int end, OrderByComparator orderByComparator) throws SystemException { - // FineLavori fineLavori = fineLavoriLocalService.getFineLavori(fineLavoriId); - // DettPraticaPermission.check(getPermissionChecker(), dettPratica.getGroupId(), - // ActionKeys.ADD_ENTRY); - return fineLavoriLocalService.updateEsito(fineLavoriId, stato); - } + return fineLavoriLocalService.findByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato, start, end, + orderByComparator); + } - public List findByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public int countByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato) + throws SystemException { - return fineLavoriLocalService.findByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato, start, end, - orderByComparator); - } + return fineLavoriLocalService.countByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato); + } - public int countByIntPraticaId_CodiceFiscale(long intPraticaId, String codiceFiscaleDelegato) throws SystemException { + @Override + public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, + int end, OrderByComparator orderByComparator) throws SystemException { - return fineLavoriLocalService.countByIntPraticaId_CodiceFiscale(intPraticaId, codiceFiscaleDelegato); - } + return fineLavoriLocalService.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, + orderByComparator); + } - public List findByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + @Override + public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { - return fineLavoriLocalService.findByCodiceFiscale_Completata(codiceFiscaleDelegato, completata, start, end, - orderByComparator); - } - - public int countByCodiceFiscale_Completata(String codiceFiscaleDelegato, boolean completata) throws SystemException { - - return fineLavoriLocalService.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); - } - - // public void sostituisciPagamento(long pagamentoId, long fineLavoriId, String - // codiceFiscaleCommittente, String mezzo, - // String url, ServiceContext serviceContext) throws PortalException, SystemException { - // - // FineLavori fineLavori = fineLavoriLocalService.getFineLavori(fineLavoriId); - // if (getUserId() == fineLavori.getUserId()) { - // fineLavoriLocalService.sostituisciPagamento(pagamentoId, fineLavoriId, - // codiceFiscaleCommittente, mezzo, url, - // serviceContext); - // } else { - // throw new SystemException("pagamento aggiornabile solo da titolare del dettPratica"); - // } - // - // } + return fineLavoriLocalService.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java index 86da772a..4cdda5e5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java @@ -48,12 +48,14 @@ import com.liferay.portal.kernel.exception.SystemException; public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowActionLocalServiceBaseImpl { /* * NOTE FOR DEVELOPERS: - * + * * Never reference this interface directly. Always use {@link * it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil} * to access the history workflow action local service. */ + @Override + @SuppressWarnings("unchecked") public List findByIntPratica(long intPraticaId, int sort) throws SystemException { DynamicQuery query = DynamicQueryFactoryUtil.forClass(HistoryWorkflowAction.class); @@ -69,5 +71,4 @@ public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowAction public List findByIntPratica(long intPraticaId) throws SystemException { return historyWorkflowActionPersistence.findByIntPratica(intPraticaId); } - -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionServiceImpl.java index d9af21c5..2982bdc6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionServiceImpl.java @@ -1,14 +1,12 @@ /** * 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) + * 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 + * 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. */ @@ -20,21 +18,22 @@ import it.tref.liferay.portos.bo.service.base.HistoryWorkflowActionServiceBaseIm * The implementation of the history workflow action remote 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.liferay.portos.bo.service.HistoryWorkflowActionService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.HistoryWorkflowActionService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting * @see it.tref.liferay.portos.bo.service.base.HistoryWorkflowActionServiceBaseImpl * @see it.tref.liferay.portos.bo.service.HistoryWorkflowActionServiceUtil */ -public class HistoryWorkflowActionServiceImpl - extends HistoryWorkflowActionServiceBaseImpl { +public class HistoryWorkflowActionServiceImpl extends HistoryWorkflowActionServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.HistoryWorkflowActionServiceUtil} to access the history workflow action remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.HistoryWorkflowActionServiceUtil} to access the history workflow action remote + * service. */ -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IUVLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IUVLocalServiceImpl.java deleted file mode 100644 index d06cbdd1..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IUVLocalServiceImpl.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * 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.liferay.portos.bo.service.impl; - -import it.tref.liferay.portos.bo.model.IUV; -import it.tref.liferay.portos.bo.service.base.IUVLocalServiceBaseImpl; - -import java.util.Date; -import java.util.List; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; - -/** - * The implementation of the i u v 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.liferay.portos.bo.service.IUVLocalService} 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. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.base.IUVLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.IUVLocalServiceUtil - */ -public class IUVLocalServiceImpl extends IUVLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.IUVLocalServiceUtil} to access the i u v local service. - */ - - public IUV addIUV(long pagamentoId, String codice, String tipoPagamento, ServiceContext serviceContext) - throws PortalException, SystemException { - - User user = userPersistence.findByPrimaryKey(serviceContext.getUserId()); - - Date now = new Date(); - - IUV iuv = iuvPersistence.create(counterLocalService.increment(IUV.class.getName())); - - iuv.setCompanyId(serviceContext.getCompanyId()); - iuv.setUserId(user.getUserId()); - iuv.setUserName(user.getFullName()); - iuv.setCreateDate(serviceContext.getCreateDate(now)); - iuv.setModifiedDate(serviceContext.getModifiedDate(now)); - iuv.setGroupId(serviceContext.getScopeGroupId()); - - iuv.setPagamentoId(pagamentoId); - iuv.setCodice(codice); - iuv.setTipoPagamento(tipoPagamento); - - iuv = iuvPersistence.update(iuv); - - return iuv; - } - - public List findByPagamento(long pagamentoId) throws SystemException { - - return iuvPersistence.findByPagamento(pagamentoId); - } - - public List findByTipoPagamento(String tipoPagamento) throws SystemException { - - return iuvPersistence.findByTipoPagamento(tipoPagamento); - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/InfoFascicoloLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/InfoFascicoloLocalServiceImpl.java deleted file mode 100644 index ea0e97a4..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/InfoFascicoloLocalServiceImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.liferay.portos.bo.service.impl; - -import it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; -import it.tref.liferay.portos.bo.model.InfoFascicolo; -import it.tref.liferay.portos.bo.service.base.InfoFascicoloLocalServiceBaseImpl; - -import java.util.Date; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; - -/** - * The implementation of the info fascicolo 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.liferay.portos.bo.service.InfoFascicoloLocalService} - * 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. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.base.InfoFascicoloLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil - */ -public class InfoFascicoloLocalServiceImpl extends InfoFascicoloLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.InfoFascicoloLocalServiceUtil} to - * access the info fascicolo local service. - */ - - public InfoFascicolo addInfoFascicolo(long intPraticaId, String numeroProgetto, - ServiceContext serviceContext) throws SystemException, PortalException { - return addInfoFascicolo(intPraticaId, numeroProgetto, false, serviceContext); - } - - public InfoFascicolo addInfoFascicolo(long intPraticaId, String numeroProgetto, boolean alreadyImported, - ServiceContext serviceContext) throws SystemException, PortalException { - - User user = userLocalService.getUser(serviceContext.getUserId()); - Date now = new Date(); - - InfoFascicolo infoFascicolo = infoFascicoloLocalService.createInfoFascicolo(counterLocalService - .increment(InfoFascicolo.class.getName())); - - infoFascicolo.setCompanyId(serviceContext.getCompanyId()); - infoFascicolo.setGroupId(serviceContext.getScopeGroupId()); - infoFascicolo.setUserId(serviceContext.getUserId()); - infoFascicolo.setUserName(user.getScreenName()); - infoFascicolo.setCreateDate(serviceContext.getCreateDate(now)); - infoFascicolo.setModifiedDate(serviceContext.getModifiedDate(now)); - - infoFascicolo.setIntPraticaId(intPraticaId); - infoFascicolo.setNumeroProgetto(numeroProgetto); - infoFascicolo.setAlreadyImported(alreadyImported); - - return infoFascicolo; - - } - - public InfoFascicolo findByIntPratica(long intPraticaId) throws SystemException, - NoSuchInfoFascicoloException { - return infoFascicoloPersistence.findByIntPratica(intPraticaId); - } - - public InfoFascicolo fetchByIntPratica(long intPraticaId) throws SystemException, - NoSuchInfoFascicoloException { - return infoFascicoloPersistence.fetchByIntPratica(intPraticaId); - } - - public InfoFascicolo updateAlreadyImportedField(long infoFascicoloId) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = infoFascicoloPersistence.findByPrimaryKey(infoFascicoloId); - infoFascicolo.setAlreadyImported(true); - return infoFascicoloLocalService.updateInfoFascicolo(infoFascicolo); - } - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index b8e38270..e9f70481 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java @@ -1,65 +1,54 @@ /** * 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 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. + * 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.bo.service.impl; import it.tref.liferay.portos.bo.NoSuchIntPraticaException; import it.tref.liferay.portos.bo.model.AllegatoManuale; -import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comunicazione; import it.tref.liferay.portos.bo.model.ControlloPratica; -import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocAggiuntiva; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.FineLavori; -import it.tref.liferay.portos.bo.model.HistoryWorkflowAction; import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica; import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.model.Territorio; -import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.IntPraticaLocalServiceBaseImpl; -import it.tref.liferay.portos.bo.service.persistence.IntPraticaActionableDynamicQuery; import it.tref.liferay.portos.bo.service.persistence.IntPraticaFinderUtil; import it.tref.liferay.portos.bo.shared.bean.FirmeBean; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; -import it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.Constants; import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; -import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; -import it.tref.liferay.portos.mailmanager.model.Email; -import it.tref.liferay.portos.mailmanager.model.EmailAttachment; import it.tref.liferay.portos.report.shared.constants.ReportConstants; import it.tref.liferay.portos.report.shared.dto.ReportDto; import it.tref.liferay.portos.report.shared.dto.ReportResultDto; @@ -67,8 +56,6 @@ import it.tref.liferay.portos.report.shared.util.ReportUtil; import java.io.IOException; import java.io.Serializable; -import java.sql.Connection; -import java.sql.Statement; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; @@ -78,15 +65,10 @@ import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; -import java.util.Map.Entry; import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang.StringUtils; -import com.liferay.portal.kernel.cache.CacheRegistryUtil; -import com.liferay.portal.kernel.cache.MultiVMPoolUtil; -import com.liferay.portal.kernel.cache.SingleVMPoolUtil; -import com.liferay.portal.kernel.dao.jdbc.DataAccess; import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; @@ -98,69 +80,44 @@ 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.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.json.JSONSerializer; import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.Folder; +import com.liferay.portal.kernel.search.Indexable; +import com.liferay.portal.kernel.search.IndexableType; import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.IndexerRegistryUtil; -import com.liferay.portal.kernel.servlet.DirectServletRegistryUtil; -import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowException; import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; -import com.liferay.portal.kernel.workflow.WorkflowInstance; import com.liferay.portal.kernel.workflow.WorkflowTask; -import com.liferay.portal.model.Company; import com.liferay.portal.model.Group; import com.liferay.portal.model.Organization; -import com.liferay.portal.model.Role; import com.liferay.portal.model.User; -import com.liferay.portal.model.WorkflowInstanceLink; import com.liferay.portal.security.permission.PermissionThreadLocal; -import com.liferay.portal.service.ClassNameLocalServiceUtil; -import com.liferay.portal.service.CompanyLocalServiceUtil; import com.liferay.portal.service.GroupLocalServiceUtil; import com.liferay.portal.service.OrganizationLocalServiceUtil; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil; -import com.liferay.portal.util.PortalUtil; -import com.liferay.portal.workflow.kaleo.model.KaleoInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoInstanceToken; -import com.liferay.portal.workflow.kaleo.model.KaleoLog; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskAssignmentInstance; -import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; import com.liferay.portlet.documentlibrary.NoSuchFolderException; -import com.liferay.portlet.documentlibrary.model.DLFileEntry; -import com.liferay.portlet.documentlibrary.model.DLFolder; -import com.liferay.portlet.documentlibrary.model.DLSyncConstants; -import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; -import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil; -import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil; -import com.liferay.portlet.dynamicdatamapping.model.DDMContent; -import com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink; -import com.liferay.portlet.messageboards.model.MBDiscussion; -import com.liferay.portlet.social.model.SocialActivity; /** * The implementation of the int pratica 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.liferay.portos.bo.service.IntPraticaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.IntPraticaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -169,60 +126,47 @@ import com.liferay.portlet.social.model.SocialActivity; */ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil} to - * access the int pratica local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil} to access the int pratica local service. */ private static Log _log = LogFactoryUtil.getLog(IntPraticaLocalServiceImpl.class); @Override + @Indexable(type = IndexableType.REINDEX) public IntPratica addIntPratica(long territorioId, String tipoProcedura, ServiceContext serviceContext) throws SystemException, PortalException { User user = userLocalService.getUser(serviceContext.getUserId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId); Date now = new Date(); - - IntPratica intPratica = intPraticaLocalService.createIntPratica(counterLocalService - .increment(IntPratica.class.getName())); + IntPratica intPratica = createIntPratica(counterLocalService.increment(IntPratica.class.getName())); intPratica.setCompanyId(serviceContext.getCompanyId()); - // intPratica.setGroupId(serviceContext.getScopeGroupId()); intPratica.setGroupId(territorio.getGroupId()); intPratica.setUserId(serviceContext.getUserId()); - // intPratica.setUserName(user.getFullName()); intPratica.setUserName(user.getScreenName()); intPratica.setCreateDate(serviceContext.getCreateDate(now)); intPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - // intPratica.setTipoPratica(Constants.PRATICA_ZONE.get(territorio.getZona())); intPratica.setTipoPratica(Constants.PRATICA_ZONE.get(tipoProcedura)); intPratica.setTerritorioId(territorioId); intPratica.setTipoProcedura(tipoProcedura); - // in avvio in draft -> pratiche sempre controllate nella loro vita intPratica.setStatus(WorkflowConstants.STATUS_ANY); intPratica = intPraticaPersistence.update(intPratica); - Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); indexer.reindex(intPratica); - return intPratica; - } @Override + @Indexable(type = IndexableType.REINDEX) public IntPratica addIntPratica(long userId, String userName, String tipoPratica, long territorioId, - String tipoProcedura, Date dtSorteggio, String statoPratica, String numeroProgetto, - boolean validata, int esitoControllo, Date dtPratica, long oldIntPraticaId, - ServiceContext serviceContext) throws PortalException, SystemException { + String tipoProcedura, String statoPratica, String numeroProgetto, boolean validata, int esitoControllo, + Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException { Date now = new Date(); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId); - - IntPratica intPratica = intPraticaPersistence.create(counterLocalService.increment(IntPratica.class - .getName())); - + IntPratica intPratica = intPraticaPersistence.create(counterLocalService.increment(IntPratica.class.getName())); intPratica.setCompanyId(serviceContext.getCompanyId()); intPratica.setUserId(userId); if (userId != 0) { @@ -231,583 +175,152 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } else { intPratica.setUserName(userName); } - intPratica.setCreateDate(serviceContext.getCreateDate(now)); intPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - // intPratica.setGroupId(serviceContext.getScopeGroupId()); intPratica.setGroupId(territorio.getGroupId()); - intPratica.setTipoPratica(tipoPratica); intPratica.setTerritorioId(territorioId); intPratica.setTipoProcedura(tipoProcedura); - intPratica.setDtSorteggio(dtSorteggio); intPratica.setStatoPratica(statoPratica); intPratica.setNumeroProgetto(numeroProgetto); intPratica.setValidata(validata); intPratica.setEsitoControllo(esitoControllo); intPratica.setDtPratica(dtPratica); - - intPratica.setOldIntPraticaId(oldIntPraticaId); - intPratica = intPraticaPersistence.update(intPratica); - return intPratica; } @Override - public List svuotaDatabase2(ServiceContext serviceContext) { - List esito = new ArrayList<>(); - try { - Connection connection = DataAccess.getUpgradeOptimizedConnection(); - Statement statement = connection.createStatement(); - - Map> svuotare = new HashMap>() { - private static final long serialVersionUID = 1; - { - put("kaleoinstance", KaleoInstance.class); - put("kaleoinstancetoken", KaleoInstanceToken.class); - put("kaleolog", KaleoLog.class); - put("kaleotaskassignmentinstance", KaleoTaskAssignmentInstance.class); - put("kaleotaskinstancetoken", KaleoTaskInstanceToken.class); - put("portos_bo_allegatomanuale", AllegatoManuale.class); - put("portos_bo_asseverazione", Asseverazione.class); - put("portos_bo_avviso", Avviso.class); - put("portos_bo_collaudo", Collaudo.class); - put("portos_bo_controllopratica", ControlloPratica.class); - put("portos_bo_delega", Delega.class); - put("portos_bo_dettpratica", DettPratica.class); - put("portos_bo_docaggiuntiva", DocAggiuntiva.class); - put("portos_bo_docpratica", DocPratica.class); - put("portos_bo_finelavori", FineLavori.class); - put("portos_bo_historyworkflowaction", HistoryWorkflowAction.class); - put("portos_bo_intpratica", IntPratica.class); - put("portos_bo_pagamento", Pagamento.class); - put("portos_bo_pareregeo", ParereGeologo.class); - put("portos_bo_soggetto", Soggetto.class); - put("portos_bo_sorteggio", Sorteggio.class); - put("portos_bo_tempistica", Tempistica.class); - put("portos_mail_email", Email.class); - put("portos_mail_emailattachment", EmailAttachment.class); - put("socialactivity", SocialActivity.class); - put("workflowinstancelink", WorkflowInstanceLink.class); - } - }; - - for (Entry> entry : svuotare.entrySet()) { - String table = entry.getKey(); - String className = entry.getValue().getName(); - - statement.execute("TRUNCATE TABLE " + table); - esitoLog(esito, "Tabella " + table + " svuotata"); - counterLocalService.increment(className); - counterLocalService.reset(className); - esitoLog(esito, "Contatore di " + className + " azzerato"); - } - configurazioneLocalService.storeConfig(Constants.NUMERO_PROGETTO_KEY_DB, "1", serviceContext); - - // Pulizia Document Library - int start = 0; - int totali = 0; - - List folderDaSvuotare = new ArrayList() { - private static final long serialVersionUID = 1; - { - add("Allegati"); - add("Avvisi"); - add("MailManager_EmailAttachments"); - add("Report_Sorteggio"); - add("Report_Sorteggio_BO"); - } - }; - - List fileEntries; - do { - fileEntries = DLFileEntryLocalServiceUtil.getFileEntries(start, start + 1); - totali++; - for (DLFileEntry fileEntry : fileEntries) { - DLFolder folder = fileEntry.getFolder(); - DLFolder parent = folder; - if (Validator.isNotNull(folder)) { - while (Validator.isNotNull(parent.getParentFolderId())) { - folder = parent; - parent = parent.getParentFolder(); - } - if (folderDaSvuotare.contains(parent.getName())) { - if (0 == folder.getParentFolderId()) { - _log.info("Cancello il file " + fileEntry.getName()); - DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); - } else { - _log.info("Cancello la cartella " + folder.getName()); - DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); - } - start--; - } else { - _log.info("Mantengo il file " + fileEntry.getTitle()); - } - } else { - _log.info("Il file " + fileEntry.getName() + " non appartiene a nessuna cartella"); - } - } - start++; - } while (fileEntries.size() > 0); - - final int SLICE = 100; - int cancellati = start = totali = 0; - List folders; - do { - folders = DLFolderLocalServiceUtil.getDLFolders(start, start + SLICE); - int rimossi = 0; - totali += folders.size(); - for (DLFolder folder : folders) { - int nFiles = DLFileEntryLocalServiceUtil.getFileEntriesCount(folder.getGroupId(), - folder.getFolderId()); - if ((0 == nFiles) && (0 != folder.getParentFolderId())) { - DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); - cancellati++; - rimossi++; - } - } - start += folders.size() - rimossi; - _log.info("Analizzate " + totali + " cartelle, cancellate " + cancellati); - } while (folders.size() > 0); - esitoLog(esito, "Analizzate " + totali + " cartelle, cancellate " + cancellati); - - // Utenti - start = 0; - List nonCancellare = new ArrayList<>(); - List users; - do { - users = UserLocalServiceUtil.getUsers(start, start + SLICE); - totali += users.size(); - for (User user : users) { - long companyId = user.getCompanyId(); - Company company = CompanyLocalServiceUtil.getCompany(companyId); - long defaultUserId = company.getDefaultUser().getUserId(); - boolean isAdmin = false; - for (Role role : user.getRoles()) { - if (role.getName().equals("Administrator")) { - isAdmin = true; - break; - } - } - if (isAdmin || (defaultUserId == user.getUserId())) { - nonCancellare.add(user.getUserId()); - esitoLog(esito, - "Non cancello l'utente " + user.getScreenName() + ", " + user.getFirstName() - + " " + user.getLastName()); - } - } - start += users.size(); - } while (users.size() > 0); - long userClassNameId = ClassNameLocalServiceUtil.getClassName(User.class.getName()) - .getClassNameId(); - long controlloPraticaClassNameId = ClassNameLocalServiceUtil.getClassName( - ControlloPratica.class.getName()).getClassNameId(); - long dettPraticaClassNameId = ClassNameLocalServiceUtil.getClassName(DettPratica.class.getName()) - .getClassNameId(); - long workflowInstanceClassNameId = ClassNameLocalServiceUtil.getClassName( - WorkflowInstance.class.getName()).getClassNameId(); - long dlFileEntryClassNameId = ClassNameLocalServiceUtil.getClassName(DLFileEntry.class.getName()) - .getClassNameId(); - long dlFolderClassNameId = ClassNameLocalServiceUtil.getClassName(DLFolder.class.getName()) - .getClassNameId(); - long mbDiscussionClassNameId = ClassNameLocalServiceUtil.getClassName( - MBDiscussion.class.getName()).getClassNameId(); - long ddmContentClassNameId = ClassNameLocalServiceUtil.getClassName(DDMContent.class.getName()) - .getClassNameId(); - - // Utenti, gruppi, organizzazioni - String ids = StringUtils.join(nonCancellare, ","); - statement.execute("DELETE FROM user_ WHERE userid NOT IN (" + ids + ")"); - statement.execute("DELETE FROM group_ WHERE classnameid=" + userClassNameId - + " AND classpk NOT IN (" + ids + ")"); - statement.execute("DELETE FROM contact_ WHERE classnameid=" + userClassNameId - + " AND classpk NOT IN (" + ids + ")"); - statement.execute("DELETE FROM usergroup WHERE userid NOT IN (" + ids + ")"); - statement.execute("DELETE FROM usergrouprole WHERE userid NOT IN (" + ids + ")"); - statement.execute("DELETE FROM users_groups WHERE userid NOT IN (" + ids + ")"); - statement.execute("DELETE FROM users_orgs WHERE userid NOT IN (" + ids + ")"); - statement.execute("DELETE FROM users_roles WHERE userid NOT IN (" + ids + ")"); - - // DDMContent - statement.execute("DELETE FROM dlfileentrymetadata WHERE fileentrymetadataid IN (" - + "SELECT fileentrymetadataid FROM dlfileentrymetadata LEFT JOIN dlfileentry " - + "ON dlfileentrymetadata.fileentryid=dlfileentry.fileentryid " - + "WHERE dlfileentry.fileentryid IS NULL)"); - statement.execute("DELETE FROM ddmcontent WHERE contentid IN (" - + "SELECT contentid FROM ddmcontent LEFT JOIN dlfileentrymetadata " - + "ON ddmcontent.contentid=dlfileentrymetadata.ddmstorageid WHERE name='" - + DDMStorageLink.class.getName() - + "' AND dlfileentrymetadata.fileentrymetadataid IS NULL)"); - statement.execute("DELETE FROM ddmstoragelink WHERE storagelinkid IN (" - + "SELECT storagelinkid FROM ddmstoragelink LEFT JOIN ddmcontent " - + "ON ddmstoragelink.classpk=ddmcontent.contentid " + "WHERE ddmstoragelink.classnameid=" - + ddmContentClassNameId + " AND ddmcontent.contentid IS NULL" + ")"); - - // Message board - statement.execute("DELETE FROM mbdiscussion WHERE classnameid IN (" + workflowInstanceClassNameId - + ")"); - statement.execute("DELETE FROM mbdiscussion WHERE discussionid IN (" - + "SELECT discussionid FROM mbdiscussion LEFT JOIN dlfileentry " - + "ON mbdiscussion.classpk=dlfileentry.fileentryid WHERE mbdiscussion.classnameid=" - + dlFileEntryClassNameId + " AND dlfileentry.fileentryid IS NULL)"); - statement.execute("DELETE FROM mbmessage WHERE classnameid IN (" + workflowInstanceClassNameId - + ")"); - statement.execute("DELETE FROM mbmessage WHERE messageid IN (" - + "SELECT messageid FROM mbdiscussion LEFT JOIN dlfileentry " - + "ON mbmessage.classpk=dlfileentry.fileentryid WHERE mbmessage.classnameid=" - + dlFileEntryClassNameId + " AND dlfileentry.fileentryid IS NULL)"); - statement.execute("DELETE FROM mbthread WHERE threadid IN (" - + "SELECT DISTINCT mbthread.threadid FROM mbthread LEFT JOIN mbmessage " - + "ON mbthread.threadid=mbmessage.threadid WHERE mbmessage.messageid IS NULL)"); - - // Ratings stats - statement.execute("DELETE FROM ratingsstats WHERE classnameid=" + controlloPraticaClassNameId); - statement.execute("DELETE FROM ratingsstats WHERE statsid IN (" - + "SELECT statsid FROM ratingsstats LEFT JOIN dlfileentry " - + "ON ratingsstats.classpk=dlfileentry.fileentryid WHERE ratingsstats.classnameid=" - + dlFileEntryClassNameId + " AND dlfileentry.fileentryid IS NULL)"); - statement.execute("DELETE FROM ratingsstats WHERE statsid IN (" - + "SELECT statsid FROM ratingsstats LEFT JOIN dlfolder " - + "ON ratingsstats.classpk=dlfolder.folderid WHERE ratingsstats.classnameid=" - + dlFolderClassNameId + " AND dlfolder.folderid IS NULL)"); - - // Resource permission - statement.execute("DELETE FROM resourcepermission WHERE name='" - + ControlloPratica.class.getName() + "'"); - statement - .execute("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" - + "SELECT resourcepermissionid FROM resourcepermission LEFT JOIN dlfileentry " - + "ON resourcepermission.primkey=dlfileentry.fileentryid::TEXT WHERE resourcepermission.name='" - + DLFileEntry.class.getName() + "' AND dlfileentry.fileentryid IS NULL)"); - statement.execute("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" - + "SELECT resourcepermissionid FROM resourcepermission LEFT JOIN dlfolder " - + "ON resourcepermission.primkey=dlfolder.folderid::TEXT WHERE resourcepermission.name='" - + DLFolder.class.getName() + "' AND dlfolder.folderid IS NULL)"); - - statement.execute("DELETE FROM systemevent WHERE classnameid=" + userClassNameId - + " AND classpk NOT IN (" + ids + ")"); - - // Asset entry - statement.execute("DELETE FROM assetentry WHERE classnameid=" + userClassNameId - + " AND classpk NOT IN (" + ids + ")"); - statement.execute("DELETE FROM assetentry WHERE classnameid IN (" + controlloPraticaClassNameId - + "," + dettPraticaClassNameId + ")"); - statement.execute("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry LEFT JOIN dlfileentry " - + "ON assetentry.classpk=dlfileentry.fileentryid WHERE assetentry.classnameid=" - + dlFileEntryClassNameId + " AND dlfileentry.fileentryid IS NULL)"); - statement.execute("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry LEFT JOIN dlfolder " - + "ON assetentry.classpk=dlfolder.folderid WHERE assetentry.classnameid=" - + dlFolderClassNameId + " AND dlfolder.folderid IS NULL)"); - statement.execute("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry LEFT JOIN mbdiscussion " - + "ON assetentry.classpk=mbdiscussion.discussionid WHERE assetentry.classnameid=" - + mbDiscussionClassNameId + " AND mbdiscussion.discussionid IS NULL)"); - - // DLSyncObject - statement.execute("DELETE FROM syncdlobject WHERE syncdlobjectid IN (" - + "SELECT syncdlobjectid FROM syncdlobject LEFT JOIN dlfileentry " - + "ON syncdlobject.typepk=dlfileentry.fileentryid WHERE type_='" - + DLSyncConstants.TYPE_FILE + "' AND dlfileentry.fileentryid IS NULL)"); - statement.execute("DELETE FROM syncdlobject WHERE syncdlobjectid IN (" - + "SELECT syncdlobjectid FROM syncdlobject LEFT JOIN dlfolder " - + "ON syncdlobject.typepk=dlfolder.folderid WHERE type_='" + DLSyncConstants.TYPE_FOLDER - + "' AND dlfolder.folderid IS NULL)"); - - // Reset di tutte le cache - SingleVMPoolUtil.clear(); - MultiVMPoolUtil.clear(); - CacheRegistryUtil.clear(); - DirectServletRegistryUtil.clearServlets(); - - } catch (Exception e) { - esitoLog(esito, "Errore: " + e.getMessage()); - } - _log.info("Elaborazione terminata correttamente"); - return esito; - } - - private void esitoLog(List esito, String msg) { - esito.add(msg); - _log.info(msg); - } - - @Override - public void clearDb() throws Exception { - - User user = PermissionThreadLocal.getPermissionChecker().getUser(); - if (PortalUtil.isCompanyAdmin(user)) { - IntPraticaActionableDynamicQuery ipadq = new IntPraticaActionableDynamicQuery() { - - @Override - protected void addOrderCriteria(DynamicQuery dynamicQuery) { - - dynamicQuery.addOrder(OrderFactoryUtil.asc("createDate")); - super.addOrderCriteria(dynamicQuery); - } - - @Override - protected void performAction(Object item) throws PortalException, SystemException { - - IntPratica intPratica = (IntPratica) item; - intPraticaLocalService.deleteIntPratica(intPratica, true); - } - }; - ipadq.setCompanyId(user.getCompanyId()); - ipadq.performActions(); - - counterLocalService.reset(AllegatoManuale.class.getName()); - counterLocalService.reset(Asseverazione.class.getName()); - counterLocalService.reset(Avviso.class.getName()); - counterLocalService.reset(Collaudo.class.getName()); - counterLocalService.reset(Comunicazione.class.getName()); - counterLocalService.reset(ControlloPratica.class.getName()); - counterLocalService.reset(Delega.class.getName()); - counterLocalService.reset(DettPratica.class.getName()); - counterLocalService.reset(DocPratica.class.getName()); - counterLocalService.reset(DocAggiuntiva.class.getName()); - counterLocalService.reset(FineLavori.class.getName()); - counterLocalService.reset(IntPratica.class.getName()); - counterLocalService.reset(Pagamento.class.getName()); - counterLocalService.reset(ParereGeologo.class.getName()); - counterLocalService.reset(Sorteggio.class.getName()); - counterLocalService.reset(StoricoSoggettoPratica.class.getName()); - counterLocalService.reset(Tempistica.class.getName()); - counterLocalService.reset(KaleoInstance.class.getName()); - counterLocalService.reset(KaleoInstanceToken.class.getName()); - counterLocalService.reset(KaleoLog.class.getName()); - counterLocalService.reset(KaleoTaskInstanceToken.class.getName()); - counterLocalService.reset(KaleoTaskAssignmentInstance.class.getName()); - counterLocalService.reset(WorkflowInstanceLink.class.getName()); - - } - } - - @Override - public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, - PortalException { - + @Indexable(type = IndexableType.REINDEX) + public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, PortalException { if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || forced) { if (Validator.isNotNull(intPratica.getDocPraticaAnnullamentoId())) { deleteFileAnnullamento(intPratica.getDocPraticaAnnullamentoId()); } _log.info("*************************************"); _log.info("Deleting intPraticaid: " + intPratica.getIntPraticaId()); - List dettPraticas = dettPraticaLocalService.findByIntPraticaId(intPratica - .getIntPraticaId()); + List dettPraticas = dettPraticaLocalService.findByIntPraticaId(intPratica.getIntPraticaId()); for (DettPratica dettPratica : dettPraticas) { dettPraticaLocalService.deleteDettPratica(dettPratica); } _log.info("Deleted dettPraticas"); - - // List soggetti = - // soggettoLocalService.findByIntPratica(intPratica.getIntPraticaId()); - // for (Soggetto soggetto : soggetti) { - // soggettoLocalService.deleteSoggetto(soggetto); - // } - // - // List allegati = - // docPraticaLocalService.findByIntPratica(intPratica.getIntPraticaId()); - // for (DocPratica allegato : allegati) { - // docPraticaLocalService.deleteDocPratica(allegato); - // } - - List avvisi = avvisoLocalService.findByIntPratica(intPratica.getIntPraticaId(), - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + List avvisi = avvisoLocalService.findByIntPratica(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); for (Avviso avviso : avvisi) { avvisoLocalService.deleteAvviso(avviso); } _log.info("Deleted avvisi"); - List allegatiManuali = allegatoManualeLocalService.findByIntPratica(intPratica .getIntPraticaId()); for (AllegatoManuale allegatoManuale : allegatiManuali) { allegatoManualeLocalService.deleteAllegatoManuale(allegatoManuale); } _log.info("Deleted avvisi manuali"); - List collaudi = collaudoLocalService.findByIntPraticaId(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (Collaudo collaudo : collaudi) { collaudoLocalService.deleteCollaudo(collaudo); } _log.info("Deleted collaudi"); - - List fineLavori = fineLavoriLocalService.findByIntPraticaId( - intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + List fineLavori = fineLavoriLocalService.findByIntPraticaId(intPratica.getIntPraticaId(), + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (FineLavori fineLavoro : fineLavori) { fineLavoriLocalService.deleteFineLavori(fineLavoro); } - - List comunicazioni = comunicazioneLocalService.findByIntPratica(intPratica - .getIntPraticaId()); + List comunicazioni = comunicazioneLocalService + .findByIntPratica(intPratica.getIntPraticaId()); for (Comunicazione comunicazione : comunicazioni) { comunicazioneLocalService.deleteComunicazione(comunicazione); } _log.info("Deleted comunicazioni"); - - List controlloPratiche = controlloPraticaPersistence - .findByIntPraticaId(intPratica.getIntPraticaId()); + List controlloPratiche = controlloPraticaPersistence.findByIntPraticaId(intPratica + .getIntPraticaId()); for (ControlloPratica controlloPratica : controlloPratiche) { controlloPraticaLocalService.deleteControlloPratica(controlloPratica); } _log.info("Deleted controlli pratiche"); - List docaggiuntive = docAggiuntivaLocalService.findByIntPratica( intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (DocAggiuntiva docAggiuntiva : docaggiuntive) { docAggiuntivaLocalService.deleteDocAggiuntiva(docAggiuntiva); } _log.info("Deleted doc_aggiuntiva"); - List pareriGeologo = parereGeologoLocalService.findByIntPraticaId( intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); for (ParereGeologo parereGeologo : pareriGeologo) { parereGeologoLocalService.deleteParereGeologo(parereGeologo); } _log.info("Deleted pareri_geologo"); - - List storicoSoggetti = storicoSoggettoPraticaLocalService - .findByIntPratica(intPratica.getCompanyId(), intPratica.getIntPraticaId(), - QueryUtil.ALL_POS, QueryUtil.ALL_POS); + List storicoSoggetti = storicoSoggettoPraticaLocalService.findByIntPratica( + intPratica.getCompanyId(), intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); for (StoricoSoggettoPratica storicoSoggettoPratica : storicoSoggetti) { storicoSoggettoPraticaLocalService.deleteStoricoSoggettoPratica(storicoSoggettoPratica); } _log.info("Deleted storico_soggetti"); - - Sorteggio sorteggio = sorteggioLocalService.findByIntPratica(intPratica.getIntPraticaId()); - if (sorteggio != null) { - sorteggioLocalService.deleteSorteggio(sorteggio); - } - _log.info("Deleted sorteggi"); - - List tempistiche = tempisticaPersistence.findByIntPratica(intPratica - .getIntPraticaId()); + List tempistiche = tempisticaPersistence.findByIntPratica(intPratica.getIntPraticaId()); for (Tempistica tempistica : tempistiche) { tempisticaLocalService.deleteTempistica(tempistica); } _log.info("Deleted tempistiche"); - _log.info("*************************************"); - return intPraticaPersistence.remove(intPratica); - } - - else { - DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(intPratica - .getIntPraticaId()); - // if( Validator.isNotNull(dettPratica) && dettPratica.getStatus() - // != - // WorkflowConstants.STATUS_APPROVED){ se lastEditable non puo' - // essere approved + } else { + DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(intPratica.getIntPraticaId()); if (Validator.isNotNull(dettPratica)) { - dettPratica = dettPraticaLocalService.deleteDettPratica(dettPratica); } - return intPratica; } - } @Override public IntPratica deleteIntPratica(IntPratica intPratica) throws SystemException, PortalException { return deleteIntPratica(intPratica, false); - } @Override - public IntPratica cloneIntPratica(long intPraticaId, ServiceContext serviceContext) - throws SystemException, PortalException { - - IntPratica intPraticaToClone = intPraticaLocalService.getIntPratica(intPraticaId); + @Indexable(type = IndexableType.REINDEX) + public IntPratica cloneIntPratica(long intPraticaId, ServiceContext serviceContext) throws SystemException, + PortalException { + IntPratica intPraticaToClone = getIntPratica(intPraticaId); IntPratica intPraticaCloned = addIntPratica(intPraticaToClone.getTerritorioId(), intPraticaToClone.getTipoProcedura(), serviceContext); - intPraticaCloned = cloneData(intPraticaCloned, intPraticaToClone); - DettPratica dettPraticaToClone = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); DettPratica dettPraticaCloned = dettPraticaLocalService.addDettPraticaClonedToIntPratica( intPraticaCloned.getIntPraticaId(), dettPraticaToClone.getDettPraticaId(), StringPool.BLANK, serviceContext); - List soggettiValidi = soggettoLocalService.getValidByIntPratica(intPraticaId); for (Soggetto soggettoToClone : soggettiValidi) { - soggettoLocalService.cloneSoggetto(serviceContext.getUserId(), - dettPraticaCloned.getDettPraticaId(), intPraticaCloned.getIntPraticaId(), - soggettoToClone, serviceContext); + soggettoLocalService.cloneSoggetto(serviceContext.getUserId(), dettPraticaCloned.getDettPraticaId(), + intPraticaCloned.getIntPraticaId(), soggettoToClone, serviceContext); } - return intPraticaCloned; } - private IntPratica cloneData(IntPratica intPraticaCloned, IntPratica intPraticaToClone) - throws SystemException { - - intPraticaCloned.setCodiceFiscaleDelegatoFineLavori(intPraticaToClone - .getCodiceFiscaleDelegatoFineLavori()); - intPraticaCloned.setCodiceFiscaleDelegatoCollaudo(intPraticaToClone - .getCodiceFiscaleDelegatoCollaudo()); + private IntPratica cloneData(IntPratica intPraticaCloned, IntPratica intPraticaToClone) throws SystemException { + intPraticaCloned.setCodiceFiscaleDelegatoFineLavori(intPraticaToClone.getCodiceFiscaleDelegatoFineLavori()); + intPraticaCloned.setCodiceFiscaleDelegatoCollaudo(intPraticaToClone.getCodiceFiscaleDelegatoCollaudo()); intPraticaCloned = intPraticaPersistence.update(intPraticaCloned); - return intPraticaCloned; - } @Override + @Indexable(type = IndexableType.REINDEX) public IntPratica updateDelegati(long intPraticaId, String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo, boolean isControlloObbligatorio) throws PortalException, SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); intPratica.setCodiceFiscaleDelegatoFineLavori(codiceFiscaleDelegatoFineLavori); intPratica.setCodiceFiscaleDelegatoCollaudo(codiceFiscaleDelegatoCollaudo); intPratica.setControlloObbligatorio(isControlloObbligatorio); - - intPratica = intPraticaLocalService.updateIntPratica(intPratica); - + intPratica = updateIntPratica(intPratica); return intPratica; } - // public IntPratica pagaInvia(long intPraticaId, int pagAdeguamentoSismico, - // int pagAltro, int - // pagMiglioramentoSismico, - // int pagNuovaCostruzione, boolean pagNuoveCostruzioni, boolean - // pagRiparazioneInterventoLocale, - // boolean pagVarianti, String importoSpeseIstruttoria, String - // codiceFiscaleCommittente, String - // currentURL, - // ServiceContext serviceContext) throws SystemException, PortalException { - // - // DettPratica dettPratica = - // dettPraticaLocalService.getLastEditableByIntPratica(intPraticaId); - // dettPratica = - // dettPraticaLocalService.updateDettPraticaPagamento(dettPratica.getDettPraticaId(), - // pagAdeguamentoSismico, - // pagAltro, pagMiglioramentoSismico, pagNuovaCostruzione, - // pagNuoveCostruzioni, - // pagRiparazioneInterventoLocale, pagVarianti, importoSpeseIstruttoria, - // serviceContext); - // intPraticaLocalService.updateStatus(intPraticaId, - // WorkflowConstants.STATUS_INCOMPLETE); - // dettPratica.setStatus(WorkflowConstants.STATUS_INCOMPLETE); - // dettPraticaLocalService.updateDettPratica(dettPratica); - // - // BigDecimal importoBolli = - // PagamentiUtil.getImportoBolli(dettPratica.getCompanyId(), - // dettPratica.getDettPraticaId(), - // dettPratica.getTipoIntegrazione()); - // PagamentiUtil.nuovoPagamento(currentURL, dettPratica.getDettPraticaId(), - // importoBolli.toString(), - // importoSpeseIstruttoria, codiceFiscaleCommittente, serviceContext); - // IntPratica intPratica = - // intPraticaLocalService.getIntPratica(intPraticaId); - // return intPratica; - // } @Override public IntPratica fetchIntPratica(long intPraticaId) throws SystemException, PortalException { @@ -815,6 +328,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return intPraticaPersistence.fetchByPrimaryKey(intPraticaId); } + @SuppressWarnings("unchecked") @Override public List findFascicoliNotProgetto(int start, int end) throws SystemException { @@ -832,9 +346,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { private DynamicQuery getDynamicQueryFascicoliNotProgetto() { - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); - // dynamicQuery.add(RestrictionsFactoryUtil.eq("status", - // WorkflowConstants.STATUS_INCOMPLETE)); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("validata", true)); Disjunction or = RestrictionsFactoryUtil.disjunction(); or.add(RestrictionsFactoryUtil.eq("numeroProgetto", StringPool.BLANK)); @@ -882,9 +394,10 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } @Override + @Indexable(type = IndexableType.REINDEX) public IntPratica addNumeroProgetto(long intPraticaId) throws PortalException, SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); if (Validator.isNull(intPratica.getNumeroProgetto())) { intPratica.setNumeroProgetto(String.valueOf(configurazioneLocalService.getAndIncrement( intPratica.getCompanyId(), Constants.NUMERO_PROGETTO_KEY_DB))); @@ -892,142 +405,64 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { intPratica.setStatus(WorkflowConstants.STATUS_DRAFT); intPratica.setStatoPratica(StatoPraticaConstants.VIDIMATA); intPratica = updateIntPratica(intPratica); - - // inviaMailNotifica(intPratica); // SUAP } - return intPratica; } - private void inviaMailNotifica(IntPratica intPratica) throws SystemException, PortalException { - - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - - DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPratica - .getIntPraticaId()); - - String eMail = StringPool.BLANK; - if (dettPratica.getSuap()) { - eMail = comune.getMailSuap(); - } else { - eMail = comune.getMailSue(); - } - - String[] to = { eMail }; - String[] cc = new String[0]; - String[] ccn = new String[0]; - - String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), - intPratica.getIntPraticaId(), StringPool.BLANK, StringPool.BLANK); - - JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); - templateVariables.put("cont", StringPool.BLANK); - templateVariables.put("anno", StringPool.BLANK); - templateVariables.put( - "dataVidimazione", - FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format( - intPratica.getDtPratica())); - templateVariables.put("link", url); - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setScopeGroupId(intPratica.getGroupId()); - serviceContext.setCompanyId(intPratica.getCompanyId()); - serviceContext.setUserId(intPratica.getUserId()); - - MailUtil.invioMailNotifica(intPratica.getIntPraticaId(), 0l, intPratica.getIntPraticaId(), - IntPratica.class.getName(), to, cc, ccn, "INVIO-SUAP", templateVariables, null, - serviceContext); - } - @Override - public IntPratica sospendiPratica(long intPraticaId, boolean sospesa) throws SystemException, - PortalException { + @Indexable(type = IndexableType.REINDEX) + public IntPratica sospendiPratica(long intPraticaId, boolean sospesa) throws SystemException, PortalException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); intPratica.setSospesa(sospesa); if (sospesa) { intPratica.setDtSospensione(new Date()); } else { intPratica.setDtSospensione(null); } - - return intPraticaLocalService.updateIntPratica(intPratica); + return updateIntPratica(intPratica); } @Override + @Indexable(type = IndexableType.REINDEX) public IntPratica cambiaTitolare(long intPraticaId, long soggettoId, ServiceContext serviceContext) throws PortalException, SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); intPratica.setModifiedDate(new Date()); - User oldUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); User newUser = UserLocalServiceUtil.getUser(soggettoId); - // sostituisci int pratica intPratica.setUserId(soggettoId); intPratica.setUserName(newUser.getFullName()); - - /* - * TODO: verificare che sia veramente come implementato sotto oppure - * bisogna cambiare il titolare anche di tutti i dettPratica - */ - // sostituisci dett pratica - // List dettPratiche = - // DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); - // for (DettPratica dettPratica : dettPratiche) { - // dettPratica.setUserId(soggettoId); - // DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); - // } - DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); dettPratica.setCodiceFiscaleDelegatoCommittente(newUser.getScreenName()); DettPraticaLocalServiceUtil.updateDettPratica(dettPratica); - // registra storico - StoricoSoggettoPraticaLocalServiceUtil.addStoricoSoggettoPratica(intPraticaId, - oldUser.getFirstName(), oldUser.getLastName(), oldUser.getScreenName(), serviceContext); - + StoricoSoggettoPraticaLocalServiceUtil.addStoricoSoggettoPratica(intPraticaId, oldUser.getFirstName(), + oldUser.getLastName(), oldUser.getScreenName(), serviceContext); Indexer indexer = IndexerRegistryUtil.getIndexer(IntPratica.class); intPratica = updateIntPratica(intPratica); indexer.reindex(intPratica); - return intPratica; - } @Override + + @Indexable(type = IndexableType.REINDEX) public IntPratica updateStatoPratica(long intPraticaId, String statoPratica) throws PortalException, SystemException { + _log.info("updateStatoPratica(" + intPraticaId + ", \"" + statoPratica + "\")"); - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); intPratica.setModifiedDate(new Date()); intPratica.setStatoPratica(statoPratica); - return intPraticaLocalService.updateIntPratica(intPratica); - } - @Override - public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio) throws SystemException { - // TODO vedere se va cambiato lo stato - return updateIntPraticaSorteggio(intPraticaId, dtSorteggio, null); - } - - @Override - public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio, String statoPratica) - throws SystemException { - IntPratica intPratica = intPraticaPersistence.fetchByPrimaryKey(intPraticaId); - intPratica.setDtSorteggio(dtSorteggio); - intPratica.setModifiedDate(new Date()); - if (null != statoPratica) - intPratica.setStatoPratica(statoPratica); - return intPraticaLocalService.updateIntPratica(intPratica); + return updateIntPratica(intPratica); } @Override - public List findByC_UserId(long companyId, long userId, int start, int end) - throws SystemException { - + public List findByC_UserId(long companyId, long userId, int start, int end) throws SystemException { return intPraticaPersistence.findByC_UserId(companyId, userId, start, end); } @@ -1037,17 +472,10 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return intPraticaPersistence.countByC_UserId(companyId, userId); } - @Override - public IntPratica fetchByOldIntPraticaId(long oldIntPraticaId) throws SystemException { - - return intPraticaPersistence.fetchByOldIntPraticaId(oldIntPraticaId); - } - @Override public void updateStatus(long intPraticaId, int status) throws PortalException, SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); - + IntPratica intPratica = getIntPratica(intPraticaId); if (status == WorkflowConstants.STATUS_INCOMPLETE) { intPratica.setStatus(status); } else if (status == WorkflowConstants.STATUS_APPROVED) { @@ -1209,50 +637,34 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return dynamicQuery; } + @SuppressWarnings("unchecked") @Override public List findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end) throws SystemException, PortalException { DynamicQuery dynamicQuery = createQueryFineLavori(companyId, codiceFiscale); return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } @Override - public int countByCanAddFineLavori(long companyId, String codiceFiscale) throws SystemException, - PortalException { - // List ids = - // new - // ArrayList<>(dettPraticaLocalService.findIntPraticaByCodiceFiscaleDelegatoFineLavori(codiceFiscale)); - // if (ids.isEmpty()) { - // return 0; - // } - // ids.removeAll(fineLavoriLocalService.findIntPraticaByFineLavoriParziale(false, - // ids)); - // if (ids.isEmpty()) { - // return 0; - // } + public int countByCanAddFineLavori(long companyId, String codiceFiscale) throws SystemException, PortalException { DynamicQuery dynamicQuery = createQueryFineLavori(companyId, codiceFiscale); - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); } private DynamicQuery createQueryFineLavori(long companyId, String codiceFiscale) throws SystemException, PortalException { - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_ANY)); dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); dynamicQuery.add(RestrictionsFactoryUtil.eq("sospesa", false)); dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoFineLavori", codiceFiscale)); dynamicQuery.add(RestrictionsFactoryUtil.eq("fineLavoriTotale", false)); - return dynamicQuery; } @@ -1261,171 +673,87 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { throws SystemException, PortalException { return intPraticaFinder.canAddCollaudo(codiceFiscale, start, end); - } @Override - public int countByCanAddCollaudo(long companyId, String codiceFiscale) throws SystemException, - PortalException { - - // List ids = fineLavoriLocalService.findIntPraticaByFineLavori(); - // if (ids.isEmpty()) { - // return 0; - // } - // - // DynamicQuery dynamicQuery = createQueryCollaudi(companyId, - // codiceFiscale, ids); - // - // return (int) - // intPraticaPersistence.countWithDynamicQuery(dynamicQuery); + public int countByCanAddCollaudo(long companyId, String codiceFiscale) throws SystemException, PortalException { return intPraticaFinder.canAddCollaudoCount(codiceFiscale); } - private DynamicQuery createQueryCollaudi(long companyId, String codiceFiscale, List ids) - throws SystemException, PortalException { - - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); - dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_ANY)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("sospesa", false)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - - dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscale)); - - Disjunction or = RestrictionsFactoryUtil.disjunction(); - or.add(RestrictionsFactoryUtil.eq("fineLavoriParziale", true)); - or.add(RestrictionsFactoryUtil.eq("fineLavoriTotale", true)); - dynamicQuery.add(or); - - dynamicQuery.add(RestrictionsFactoryUtil.eq("collaudoTotale", false)); - - dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", ids)); - - return dynamicQuery; - } - + @SuppressWarnings("unchecked") @Override public List search(List groupIds, int start, int end) throws SystemException { // TODO Modificare tramite Indexer - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); - // query.add(RestrictionsFactoryUtil.eq("validata", true)); - // query.add(RestrictionsFactoryUtil.eq("gestita", true)); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtPratica")); dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } @Override public int countSearch(List groupIds) throws SystemException { // TODO Modificare tramite Indexer - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); - // query.add(RestrictionsFactoryUtil.eq("validata", true)); - // query.add(RestrictionsFactoryUtil.eq("gestita", true)); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtPratica")); dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); - } + @SuppressWarnings("unchecked") @Override public List searchWithIntPraticaId(List groupIds, long intPraticaId, int start, int end) throws SystemException { // TODO Modificare tramite Indexer - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - // query.add(RestrictionsFactoryUtil.eq("validata", true)); - // query.add(RestrictionsFactoryUtil.eq("gestita", true)); dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtPratica")); dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - return intPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end); } - @Override - public int countSearchWithIntPraticaId(List groupIds, long intPraticaId) throws SystemException { - - // TODO Modificare tramite Indexer - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); - dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - // query.add(RestrictionsFactoryUtil.eq("validata", true)); - // query.add(RestrictionsFactoryUtil.eq("gestita", true)); - dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtPratica")); - dynamicQuery.add(RestrictionsFactoryUtil.ne("statoPratica", StatoPraticaConstants.ANNULLATA)); - - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); - - } - @Override public FileEntry allegaFileAnnullamento(long intPraticaId, byte[] content, String sourceFileName, - String jsonFirmatari, ServiceContext serviceContext) throws SystemException, PortalException, - IOException { + String jsonFirmatari, ServiceContext serviceContext) throws SystemException, PortalException, IOException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); DettPratica dettPratica = dettPraticaLocalService.getLastEditableByIntPratica(intPraticaId); if (Validator.isNull(dettPratica)) { dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); } - FileEntry fileEntry = null; - long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); - String folderName = PraticaUtil.getFolderName(dettPratica.getDettPraticaId()); - Folder folder = null; try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName); + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); } catch (NoSuchFolderException e) { // cartella non presente -> creo cartella folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); } Date now = new Date(); - String title = now.getTime() + StringPool.UNDERLINE + "annullamento" + StringPool.UNDERLINE - + intPraticaId + StringPool.UNDERLINE + sourceFileName; + String title = now.getTime() + "_annullamento_" + intPraticaId + StringPool.UNDERLINE + sourceFileName; String description = sourceFileName; String mimeType = MimeTypesUtil.getContentType(sourceFileName); String sha256 = DigestUtils.sha256Hex(content); String changeLog = StringPool.BLANK; fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(), - folder.getFolderId(), now.getTime() + "_" + sourceFileName, mimeType, title, description, - changeLog, content, serviceContext); - - /* - * DocPratica allegatoAnnullamento = - * docPraticaLocalService.addDocPratica(serviceContext.getUserId(), - * IntPratica.class.getName(), intPraticaId, intPraticaId, - * fileEntry.getFileEntryId(), sourceFileName, - * DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, - * jsonFirmatari, serviceContext); - */ - // ADT BUG FE ID = 9 - DocPratica allegatoAnnullamento = docPraticaLocalService.addDocPraticaAnnullamento( - serviceContext.getUserId(), IntPratica.class.getName(), intPraticaId, intPraticaId, - fileEntry.getFileEntryId(), sourceFileName, - DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, sha256, jsonFirmatari, - serviceContext); - + folder.getFolderId(), now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, + description, changeLog, content, serviceContext); + DocPratica allegatoAnnullamento = docPraticaLocalService.addDocPraticaAnnullamento(serviceContext.getUserId(), + IntPratica.class.getName(), intPraticaId, intPraticaId, fileEntry.getFileEntryId(), sourceFileName, + DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, sha256, jsonFirmatari, serviceContext); intPratica.setModifiedDate(now); intPratica.setDocPraticaAnnullamentoId(allegatoAnnullamento.getDocPraticaId()); - - intPratica = intPraticaLocalService.updateIntPratica(intPratica); - + intPratica = updateIntPratica(intPratica); return fileEntry; } @@ -1433,14 +761,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { public IntPratica generateFileAnnullamento(long intPraticaId, ServiceContext serviceContext) throws SystemException, PortalException, IOException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); if (Validator.isNotNull(intPratica.getDocPraticaAnnullamentoId())) { throw new SystemException("label.error.file.annullamento.already.exist"); } - Date now = new Date(); long userId = serviceContext.getUserId(); - String tipoDocumento = "AIF"; String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoDocumento); long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(intPratica.getCompanyId(), @@ -1449,22 +775,18 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { String propertiesFolder = AvvisoUtil.getAllTipoDocumentoFolderProps().get(tipoDocumento); long fileEntryIdFolder = configurazioneLocalService.findByC_ChiaveLong(intPratica.getCompanyId(), propertiesFolder); - String fileName = StringUtils.leftPad(String.valueOf(intPratica.getIntPraticaId()), 10, '0') - + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento - : StringPool.BLANK) + StringPool.UNDERLINE + System.currentTimeMillis() + ".pdf"; - + + (Validator.isNotNull(tipoDocumento) ? StringPool.UNDERLINE + tipoDocumento : StringPool.BLANK) + + StringPool.UNDERLINE + System.currentTimeMillis() + ".pdf"; ReportDto reportDto = new ReportDto(); reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate }); reportDto.setFolderId(fileEntryIdFolder); reportDto.setFileName(fileName); - reportDto.setHeader(""); + reportDto.setHeader(StringPool.BLANK); reportDto.setHeaderHeight(1); - reportDto.setFooter(""); + reportDto.setFooter(StringPool.BLANK); reportDto.setFooterHeight(1); Map parameters = new HashMap(); - - // if (Validator.isNotNull(userId)) { User user = userLocalService.getUser(userId); Soggetto titolareDigitale = soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPraticaId, user.getScreenName()).get(0); @@ -1472,45 +794,24 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { "html", LanguageUtil.format(LocaleUtil.ITALIAN, "label.firma-annullamento", titolareDigitale.getDescrizioneCompleta())); - // } - reportDto.setParameters(parameters); reportDto.setShowNumberOfPage(true); reportDto.setType(ReportConstants.ReportType.VELOCITY_TO_PDF.toString()); - ReportResultDto result = ReportUtil - .generateReport(intPratica.getCompanyId(), userId, reportDto, null); + ReportResultDto result = ReportUtil.generateReport(intPratica.getCompanyId(), userId, reportDto, null); long fileEntryId = result.getFileEntryIds()[0]; - // intPratica.setFileEntryIdAnnullamento(fileEntryId); - FirmeBean firmeBean = new FirmeBean(); String jsonFirmatari = FirmeUtil.addFirma(firmeBean, user.getScreenName()); - - // //////////////////ADT BUG FE ID = 31 - String sha256 = ""; + String sha256 = StringPool.BLANK; try { sha256 = DigestUtils.sha256Hex(dlAppLocalService.getFileEntry(fileEntryId).getContentStream()); } catch (Exception e) { } - // //////////////////// - /* - * DocPratica allegatoAnnullamento = - * docPraticaLocalService.addDocPratica(userId, - * IntPratica.class.getName(), intPraticaId, intPraticaId, fileEntryId, - * fileName, - * DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, - * jsonFirmatari, serviceContext); - */ - DocPratica allegatoAnnullamento = docPraticaLocalService.addDocPraticaAnnullamento(userId, IntPratica.class.getName(), intPraticaId, intPraticaId, fileEntryId, fileName, - DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, sha256, jsonFirmatari, - serviceContext); - + DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ANNULLAMENTO_FASCICOLO, sha256, jsonFirmatari, serviceContext); intPratica.setModifiedDate(now); intPratica.setDocPraticaAnnullamentoId(allegatoAnnullamento.getDocPraticaId()); - intPratica = intPraticaPersistence.update(intPratica); - return intPratica; } @@ -1519,225 +820,157 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { DocPratica docPratica = docPraticaLocalService.getDocPratica(docPraticaAnnullamentoId); IntPratica intPratica = intPraticaPersistence.findByPrimaryKey(docPratica.getIntPraticaId()); - docPraticaLocalService.deleteDocPratica(docPraticaAnnullamentoId); - intPratica.setModifiedDate(new Date()); intPratica.setDtAnnullamento(null); - intPratica.setDocPraticaAnnullamentoId(0l); - + intPratica.setDocPraticaAnnullamentoId(0L); intPratica = intPraticaPersistence.update(intPratica); } @Override public void completeAnnullamento(long intPraticaId) throws PortalException, SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); - + IntPratica intPratica = getIntPratica(intPraticaId); if (Validator.isNull(intPratica.getDocPraticaAnnullamentoId())) { throw new SystemException("error.annullamento.file.not.exist"); } - Date now = new Date(); intPratica.setModifiedDate(now); intPratica.setStatoPratica(StatoPraticaConstants.ANNULLATA); intPratica.setDtAnnullamento(now); - - intPratica = intPraticaLocalService.updateIntPratica(intPratica); - + intPratica = updateIntPratica(intPratica); DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); User user = PermissionThreadLocal.getPermissionChecker().getUser(); - Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId()); - ServiceContext serviceContext = new ServiceContext(); serviceContext.setUserId(user.getUserId()); serviceContext.setScopeGroupId(territorio.getGroupId()); serviceContext.setCompanyId(territorio.getCompanyId()); - - // BUG BO ID= 9 -- ANNULLAMENTO ISTANZA - Disattivo il workflow - // boolean isWorkFlowSospendibile = - // WorkflowUtil.isWorkflowDisattivabile(intPraticaId); - // if(isWorkFlowSospendibile){ - // WorkflowUtil.attivaWorkflow(intPraticaId, territorio.getGroupId(), - // serviceContext.getUserId(), - // dettPratica.getDettPraticaId(), serviceContext, false); - // } try { DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); queryCP.addOrder(OrderFactoryUtil.desc("controlloPraticaId")); - - // queryCP.add(RestrictionsFactoryUtil.eq("dettPraticaId", - // intPratica.getIntPraticaId())); - List appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, - QueryUtil.ALL_POS, QueryUtil.ALL_POS); - if (appList != null && !appList.isEmpty()) { - - for (ControlloPratica controlloPratica : appList) { - _log.info("disattivazione - ControlloPraticaId=" + @SuppressWarnings("unchecked") + List appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); + for (ControlloPratica controlloPratica : appList) { + _log.info("disattivazione - ControlloPraticaId=" + controlloPratica.getControlloPraticaId()); + try { + WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE, + WorkflowUtil.getWorkflowContext(controlloPratica)); + WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(controlloPratica.getCompanyId(), + controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); + } catch (Exception e) { + _log.error("Errore in annullamento pratica - Impossibile disattivare workflow per controlloPraticaId=" + controlloPratica.getControlloPraticaId()); - try { - WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE, - WorkflowUtil.getWorkflowContext(controlloPratica)); - WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink( - controlloPratica.getCompanyId(), controlloPratica.getGroupId(), - ControlloPratica.class.getName(), controlloPratica.getPrimaryKey()); - } catch (Exception e) { - _log.error("Errore in annullamento pratica - Impossibile disattivare workflow per controlloPraticaId=" - + controlloPratica.getControlloPraticaId()); - } } } - } catch (Exception e) { _log.error("Errore in annullamento pratica - Impossibile disattivare workflow per intPraticaId=" + intPraticaId); } - String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get( StatoPraticaConstants.ANNULLA_ISTANZA); _log.info("debugAvviso: " + propertiesTemplate); - long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), propertiesTemplate); - - avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.ANNULLA_ISTANZA, fileEntryIdTemplate, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), StringPool.BLANK, 0l, 0l, - StringPool.BLANK, 0l, serviceContext); + long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + propertiesTemplate); + avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, + StatoPraticaConstants.ANNULLA_ISTANZA, fileEntryIdTemplate, dettPratica.getDettPraticaId(), + DettPratica.class.getName(), StringPool.BLANK, 0L, 0L, StringPool.BLANK, 0L, serviceContext); } @Override - public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) - throws PortalException, SystemException { + public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) throws PortalException, + SystemException { userLocalService.getUser(istruttoreId); - ControlloPratica controlloPratica = controlloPraticaLocalService - .getControlloPratica(controlloPraticaId); - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); + IntPratica intPratica = getIntPratica(intPraticaId); intPratica.setStatusByUserId(istruttoreId); intPratica.setStatusDate(new Date()); - intPratica = intPraticaLocalService.updateIntPratica(intPratica); + intPratica = updateIntPratica(intPratica); DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); User user = PermissionThreadLocal.getPermissionChecker().getUser(); - ServiceContext serviceContext = new ServiceContext(); serviceContext.setUserId(user.getUserId()); serviceContext.setScopeGroupId(controlloPratica.getGroupId()); serviceContext.setCompanyId(controlloPratica.getCompanyId()); - String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get( StatoPraticaConstants.CAMBIO_ISTRUTTORE); _log.info("debugAvviso: " + propertiesTemplate); - long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), propertiesTemplate); - - avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), - AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.CAMBIO_ISTRUTTORE, fileEntryIdTemplate, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), StringPool.BLANK, 0l, 0l, - StringPool.BLANK, controlloPraticaId, serviceContext); + long fileEntryIdTemplate = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + propertiesTemplate); + avvisoLocalService.addAvviso(intPraticaId, StringPool.BLANK, new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, + StatoPraticaConstants.CAMBIO_ISTRUTTORE, fileEntryIdTemplate, dettPratica.getDettPraticaId(), + DettPratica.class.getName(), StringPool.BLANK, 0L, 0L, StringPool.BLANK, controlloPraticaId, + serviceContext); WorkflowTask lastTask = WorkflowUtil.getLastTask(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), null, controlloPratica); - if (lastTask != null && lastTask.getName().equalsIgnoreCase("Esito")) { WorkflowUtil.assegnaUltimoTask(controlloPratica.getCompanyId(), controlloPratica.getGroupId(), istruttoreId, user.getUserId(), controlloPratica); } - String jsonFormParameters = null; Map parametri = new HashMap(); parametri.put("istruttore", String.valueOf(istruttoreId)); JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer(); jsonFormParameters = jsonSerializer.serialize(parametri); try { - FormLogLocalServiceUtil.addFormLog(lastTask.getWorkflowInstanceId(), 0l, "cambio-istruttore", + FormLogLocalServiceUtil.addFormLog(lastTask.getWorkflowInstanceId(), 0L, "cambio-istruttore", jsonFormParameters, serviceContext); } catch (Exception e) { throw new WorkflowException(e); } - } @Override - public int countCaricoLavoroCF(long ispettoreId, String tipoPratica, Boolean sorteggio, - Long[] intPraticaIds) throws SystemException, PortalException { + public int countCaricoLavoroCF(long ispettoreId, String tipoPratica, Long[] intPraticaIds) throws SystemException, + PortalException { - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); if (Validator.isNotNull(ispettoreId)) { dynamicQuery.add(RestrictionsFactoryUtil.eq("statusByUserId", ispettoreId)); } - dynamicQuery.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_PENDING)); - if (sorteggio != null) { - if (sorteggio) { - dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtSorteggio")); - } else { - - dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtSorteggio")); - - } - } if (Validator.isNotNull(tipoPratica)) { dynamicQuery.add(RestrictionsFactoryUtil.eq("tipoPratica", tipoPratica)); } if (intPraticaIds.length > 0) { dynamicQuery.add(RestrictionsFactoryUtil.in("intPraticaId", intPraticaIds)); } - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); } @Override - public int countCaricoLavoroIstruttore(long ispettoreId, String tipoPratica, Boolean sorteggio) - throws SystemException { + public int countCaricoLavoroIstruttore(long ispettoreId, String tipoPratica) throws SystemException { - DynamicQuery dynamicQuery = intPraticaLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); if (Validator.isNotNull(ispettoreId)) { dynamicQuery.add(RestrictionsFactoryUtil.eq("statusByUserId", ispettoreId)); } - if (sorteggio != null) { - if (sorteggio) { - dynamicQuery.add(RestrictionsFactoryUtil.isNotNull("dtSorteggio")); - } else { - - dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtSorteggio")); - - } - } if (Validator.isNotNull(tipoPratica)) { dynamicQuery.add(RestrictionsFactoryUtil.eq("tipoPratica", tipoPratica)); } - Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.DAY_OF_MONTH, 1); calendar.set(Calendar.MONTH, Calendar.JANUARY); calendar.set(Calendar.YEAR, calendar.get(Calendar.YEAR)); - Date nowDate = new Date(); Date fromDate = calendar.getTime(); - Property createDateProperty = PropertyFactoryUtil.forName("statusDate"); dynamicQuery.add(createDateProperty.between(fromDate, nowDate)); - return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery); - } @Override - public long generateReportPratica(IntPratica intPratica, long userId) throws SystemException, - PortalException { + public long generateReportPratica(IntPratica intPratica, long userId) throws SystemException, PortalException { - DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPratica - .getIntPraticaId()); + DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId()); Comune comune = comuneLocalService.getComune(territorio.getComuneId()); Provincia provincia = provinciaLocalService.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - - // if (Validator.isNotNull(intPratica.getFileEntryId())) { - // dlAppLocalService.deleteFileEntry(intPratica.getFileEntryId()); - // } - String tipoDocumento = "DOM"; String propertiesTemplate = AvvisoUtil.getAllTipoDocumentoFileTemplateProps().get(tipoDocumento); _log.info("debugAvviso: " + propertiesTemplate); @@ -1746,30 +979,25 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { String propertiesFolder = AvvisoUtil.getAllTipoDocumentoFolderProps().get(tipoDocumento); long fileEntryIdFolder = configurazioneLocalService.findByC_ChiaveLong(intPratica.getCompanyId(), propertiesFolder); - String fileName = StringUtils.leftPad(String.valueOf(intPratica.getIntPraticaId()), 10, '0') + StringPool.UNDERLINE + tipoDocumento; - ReportDto reportDto = new ReportDto(); reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate }); reportDto.setFolderId(fileEntryIdFolder); reportDto.setFileName(fileName); - reportDto.setHeader(""); + reportDto.setHeader(StringPool.BLANK); reportDto.setHeaderHeight(1); - reportDto.setFooter(""); + reportDto.setFooter(StringPool.BLANK); reportDto.setFooterHeight(1); Map parameters = new HashMap(); - if (Validator.isNotNull(userId)) { - // User user = userLocalService.getUser(userId); - // parameters.put("html", - // PraticaUtil.retrievePraticaText(intPratica, - // user.getScreenName())); parameters.put("headerTitle", intPratica.getTitle(LocaleUtil.ITALIAN, false)); parameters.put("zona", territorio.getZona()); parameters.put("fascia", territorio.getFascia()); - parameters.put("range", (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() : "") - + " - " + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : "")); + parameters.put("range", (Validator.isNotNull(territorio.getAgMin()) ? territorio.getAgMin() + : StringPool.BLANK) + + " - " + + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : StringPool.BLANK)); parameters.put("ag", dettPratica.getAg()); if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { parameters.put("normDpr01", @@ -1789,105 +1017,73 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { parameters.put("normDm2018", dettPratica.getNormDm2018() ? "'/>" : ""); - parameters.put("normDm01", - dettPratica.getNormDm01() ? "" - : ""); - parameters.put("normDm02", - dettPratica.getNormDm02() ? "" - : ""); - parameters.put("normDm03", - dettPratica.getNormDm03() ? "" - : ""); - parameters.put("normDprg01", - dettPratica.getNormDprg01() ? "" - : ""); - parameters.put("normDprg02", - dettPratica.getNormDprg02() ? "" - : ""); - parameters.put("normAnr", - dettPratica.getNormAnr() ? "" - : ""); + parameters.put("normAnr", dettPratica.getNormAnr() ? "" + : ""); parameters.put("normLavoriInProprio", dettPratica.getNormLavoriInProprio() ? "" : ""); parameters.put("lavoriPubblici", dettPratica.getLavoriPubblici() ? "" : ""); - parameters.put("normEsenteBollo", dettPratica.getNormEsenteBollo() ? "" : ""); parameters.put("normEsenteSpese", dettPratica.getNormEsenteSpese() ? "" : ""); - parameters.put("collaudoStatico", dettPratica.getCollaudoStatico() ? "" : ""); - parameters.put("normArt3com3", dettPratica.getNormEsenteSpese() ? "" : ""); parameters.put("normArt3com4", dettPratica.getNormEsenteSpese() ? "" : ""); - parameters.put("descLongIntervento", dettPratica.getDescLongIntervento()); - parameters.put("provincia", provincia.getProvincia()); parameters.put("comune", comune.getDenominazione()); parameters.put("localita", dettPratica.getLocalita()); parameters.put("via", dettPratica.getVia()); parameters.put("foglio", dettPratica.getDcFoglio()); - parameters.put("particelle", dettPratica.getDcParticelle().replace("|", " ")); + parameters.put("particelle", dettPratica.getDcParticelle().replace(StringPool.PIPE, StringPool.SPACE)); parameters.put("allegato", dettPratica.getDcAllegato()); parameters.put("estremiPratCom", dettPratica.getEstremiPratCom()); parameters.put("estremiCatastali", dettPratica.getEstremiCatastali()); - - String label = ""; + String label = StringPool.BLANK; if (dettPratica.getDestinazione().length() > 1) { - String title = dettPratica.getDestinazione().substring(0, - dettPratica.getDestinazione().length() - 1); + String title = dettPratica.getDestinazione().substring(0, dettPratica.getDestinazione().length() - 1); String uso = title.substring(title.length() - 1); - label = LanguageUtil.get(LocaleUtil.ITALIAN, "destinazione-uso-" + uso) + ":"; + label = LanguageUtil.get(LocaleUtil.ITALIAN, "destinazione-uso-" + uso) + StringPool.COLON; label += StringPool.NEW_LINE; - label = LanguageUtil.get(LocaleUtil.ITALIAN, "destinazione-" + title) + ":"; + label = LanguageUtil.get(LocaleUtil.ITALIAN, "destinazione-" + title) + StringPool.COLON; } - parameters.put("destinazione", label + dettPratica.getDestinazione()); - parameters.put("nuovaCostruzione", dettPratica.getTcNuovaCostruzione() ? "" : ""); boolean interventiEsistenti = dettPratica.getTcAdeguamentoSismico() - || dettPratica.getTcMiglioramentoSismico() - || dettPratica.getTcRiparazioneInterventoLocale(); - parameters.put("interventiEsistenti", - interventiEsistenti ? "" - : ""); + || dettPratica.getTcMiglioramentoSismico() || dettPratica.getTcRiparazioneInterventoLocale(); + parameters.put("interventiEsistenti", interventiEsistenti ? "" + : ""); parameters.put("adeguamentoSismico", dettPratica.getTcAdeguamentoSismico() ? "" : ""); parameters.put("miglioramentoSismico", dettPratica.getTcMiglioramentoSismico() ? "" : ""); - parameters - .put("riparazioneLocale", - dettPratica.getTcRiparazioneInterventoLocale() ? "" - : ""); - + parameters.put("riparazioneLocale", + dettPratica.getTcRiparazioneInterventoLocale() ? "" + : ""); parameters.put("inCa", dettPratica.getTcInCA() ? "" : ""); - parameters.put("inOpera", - dettPratica.getTcInOpera() ? "" - : ""); + parameters.put("inOpera", dettPratica.getTcInOpera() ? "" + : ""); parameters.put("prefabbricato", dettPratica.getTcPrefabbricato() ? "" : ""); - - parameters.put("inMuratura", - dettPratica.getTcInMuratura() ? "" - : ""); + parameters.put("inMuratura", dettPratica.getTcInMuratura() ? "" + : ""); parameters.put("inMuraturaOrdinaria", dettPratica.getTcInMuraturaOrdinaria() ? "" : ""); @@ -1897,41 +1093,29 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { parameters.put("inMuraturaMista", dettPratica.getTcInMuraturaMista() ? "" : ""); - - parameters.put("inLegno", - dettPratica.getTcInLegno() ? "" - : ""); - + parameters.put("inLegno", dettPratica.getTcInLegno() ? "" + : ""); parameters.put("tcAltro", dettPratica.getTcAltroDescrizione()); parameters.put("tcDispositivi", dettPratica.getTcConDispositivi() ? "" : ""); - - parameters.put("dePiani", - LanguageUtil.get(Locale.ITALIAN, "de-piani-" + dettPratica.getDePiani())); - parameters.put("deAltezza", - LanguageUtil.get(Locale.ITALIAN, "de-altezza-" + dettPratica.getDeAltezza())); + parameters.put("dePiani", LanguageUtil.get(Locale.ITALIAN, "de-piani-" + dettPratica.getDePiani())); + parameters.put("deAltezza", LanguageUtil.get(Locale.ITALIAN, "de-altezza-" + dettPratica.getDeAltezza())); parameters.put("deInterrati", LanguageUtil.get(Locale.ITALIAN, "de-interrati-" + dettPratica.getDeInterrati())); parameters.put("deSuperficie", LanguageUtil.get(Locale.ITALIAN, "de-superficie-" + dettPratica.getDeSuperficie())); parameters.put("deCostruzione", LanguageUtil.get(Locale.ITALIAN, "de-costruzione-" + dettPratica.getDeCostruzione())); - parameters.put( - "deRistrutturazione", - LanguageUtil.get(Locale.ITALIAN, - "de-ristrutturazione-" + dettPratica.getDeRistrutturazione())); + parameters.put("deRistrutturazione", + LanguageUtil.get(Locale.ITALIAN, "de-ristrutturazione-" + dettPratica.getDeRistrutturazione())); parameters.put("deUso", LanguageUtil.get(Locale.ITALIAN, "de-uso-" + dettPratica.getDeUso())); parameters.put("deUtilizzazione", LanguageUtil.get(Locale.ITALIAN, "de-utilizzazione-" + dettPratica.getDeUtilizzazione())); - parameters.put( - "dePosizioneEdificio", - LanguageUtil.get(Locale.ITALIAN, - "de-posizione-edificio-" + dettPratica.getDePosizioneEdificio())); - parameters.put("dePubblica", - dettPratica.getDePubblica() + LanguageUtil.get(Locale.ITALIAN, "de-pubblica")); - parameters.put("dePrivata", - dettPratica.getDePrivata() + LanguageUtil.get(Locale.ITALIAN, "de-privata")); + parameters.put("dePosizioneEdificio", + LanguageUtil.get(Locale.ITALIAN, "de-posizione-edificio-" + dettPratica.getDePosizioneEdificio())); + parameters.put("dePubblica", dettPratica.getDePubblica() + LanguageUtil.get(Locale.ITALIAN, "de-pubblica")); + parameters.put("dePrivata", dettPratica.getDePrivata() + LanguageUtil.get(Locale.ITALIAN, "de-privata")); } String[] css = new String[] { "http://localhost:8080/portos-private-fe-theme/css/main.css" }; @@ -1939,20 +1123,17 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { reportDto.setParameters(parameters); reportDto.setShowNumberOfPage(true); reportDto.setType(ReportConstants.ReportType.VELOCITY_TO_PDF.toString()); - - ReportResultDto result = ReportUtil - .generateReport(intPratica.getCompanyId(), userId, reportDto, null); - + ReportResultDto result = ReportUtil.generateReport(intPratica.getCompanyId(), userId, reportDto, null); return result.getFileEntryIds()[0]; } @Override - public IntPratica updateModifiedDate(long intPraticaId, Date modifiedDate) - throws NoSuchIntPraticaException, SystemException { + public IntPratica updateModifiedDate(long intPraticaId, Date modifiedDate) throws NoSuchIntPraticaException, + SystemException { IntPratica intPratica = intPraticaPersistence.findByPrimaryKey(intPraticaId); intPratica.setModifiedDate(modifiedDate); - intPratica = intPraticaLocalService.updateIntPratica(intPratica); + intPratica = updateIntPratica(intPratica); return intPratica; } @@ -1981,15 +1162,13 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return IntPraticaFinderUtil.countDeposito(dtMin, dtMax, groupId, controlloOblligatorio); } - // Bug 33463 @Override - public int countVidimate(Date dtMin, Date dtMax, long groupId, String type, - boolean isControlloObbligatorio) throws SystemException { + public int countVidimate(Date dtMin, Date dtMax, long groupId, String type, boolean isControlloObbligatorio) + throws SystemException { return IntPraticaFinderUtil.countVidimate(dtMin, dtMax, groupId, type, isControlloObbligatorio); } - // Bug 33463 @Override public List countControllo(Date dtMin, Date dtMax, long groupId, String type, boolean isControlloObbligatorio) throws SystemException { @@ -1997,57 +1176,40 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return IntPraticaFinderUtil.countControllo(dtMin, dtMax, groupId, type, isControlloObbligatorio); } - @Override - public List importaVecchiFilesFascicolo(long companyId, int start, int end) - throws SystemException { - - return IntPraticaFinderUtil.importaVecchiFilesFascicolo(companyId, start, end); - } - - @Override - public List findIntPraticaNotExist() throws SystemException { - return IntPraticaFinderUtil.findIntPraticaNotExist(); - } - @Override public List riparaWorkflow() throws SystemException { + return IntPraticaFinderUtil.riparaWorkflow(); } @Override public void reIndexFascicolo(IntPratica intPratica, long companyId) { - try { + try { Indexer intIndexer = IndexerRegistryUtil.getIndexer(IntPratica.class); Indexer controlloIndexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); - if (intPratica != null) { - intIndexer.delete(companyId, intPratica.getUuid()); intIndexer.reindex(IntPratica.class.getName(), intPratica.getIntPraticaId()); - DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class); queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId())); - + @SuppressWarnings("unchecked") List appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - - if (appList != null && !appList.isEmpty()) { - for (ControlloPratica controlloPratica : appList) { - controlloIndexer.delete(companyId, controlloPratica.getUuid()); - controlloIndexer.reindex(ControlloPratica.class.getName(), - controlloPratica.getControlloPraticaId()); - } + for (ControlloPratica controlloPratica : appList) { + controlloIndexer.delete(companyId, controlloPratica.getUuid()); + controlloIndexer + .reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId()); } } } catch (PortalException | SystemException e) { _log.error(e, e); } - } @Override public void reIndexFasciolo(String numeroProgetto, long companyId) throws SystemException { + IntPratica intPratica = null; intPratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto); reIndexFascicolo(intPratica, companyId); @@ -2055,100 +1217,66 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { @Override public void reIndexFasciolo(long intPraticaId, long companyId) throws PortalException, SystemException { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); reIndexFascicolo(intPratica, companyId); } - @Override - public List trovaDoppioni() throws SystemException { - - return IntPraticaFinderUtil.trovaDoppioni(); - - } - @Override public IntPratica findByNumeroProgetto(String numeroProgetto) throws SystemException { - DynamicQuery dq = intPraticaLocalService.dynamicQuery(); + DynamicQuery dq = dynamicQuery(); dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto)); - - List lista = intPraticaLocalService.dynamicQuery(dq); - if (lista != null && !lista.isEmpty()) { - return lista.get(0); - } - - return null; + @SuppressWarnings("unchecked") + List lista = dynamicQuery(dq); + return lista.isEmpty() ? null : lista.get(0); } @Override public List findByTerritorioId(long territorioId) throws SystemException { + return intPraticaPersistence.findByTerritorioId(territorioId); } - /** - * ADT: report tempistiche istruttorie - */ - @Override - public List reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, - long groupId, String type) throws SystemException { - return IntPraticaFinderUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni(dtMin, dtMax, groupId, - type); - } - - /** - * - * @param dtMin - * @param dtMax - * @param groupId - * @return - * @throws SystemException - */ + + // ADT: report tempistiche istruttorie @Override - public Map reportTempisticheIstruttorieCalcolaDataSorteggio(Date dtMin, Date dtMax, - long groupId) throws SystemException { - return IntPraticaFinderUtil.reportTempisticheIstruttorieCalcolaDataSorteggio(dtMin, dtMax, groupId); + public List reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId, + String type) throws SystemException { + + return IntPraticaFinderUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni(dtMin, dtMax, groupId, type); } - /** - * - * ADT: report pratiche vidimate - * - */ + // ADT: report pratiche vidimate @Override public List reportPraticheVidimate(Date dtMin, Date dtMax, long groupId, String type) throws SystemException { return IntPraticaFinderUtil.reportPraticheVidimate(dtMin, dtMax, groupId, type); } - @Override - public Map reportPraticheVidimateCalcolaDataSorteggio(Date dtMin, Date dtMax, long groupId) - throws SystemException { - return IntPraticaFinderUtil.reportPraticheVidimateCalcolaDataSorteggio(dtMin, dtMax, groupId); - } - @Override public int countIngressiAutorizzazioni(Date dtMin, Date dtMax, long groupId) throws SystemException { + return IntPraticaFinderUtil.countIngressiAutorizzazioni(dtMin, dtMax, groupId); } @Override public int countIngressiDepositi(Date dtMin, Date dtMax, long groupId) throws SystemException { + return IntPraticaFinderUtil.countIngressiDepositi(dtMin, dtMax, groupId); } @Override public int countIngressiCO(Date dtMin, Date dtMax, long groupId) throws SystemException { + return IntPraticaFinderUtil.countIngressiCO(dtMin, dtMax, groupId); } @Override - public Organization getOrganizationByIntPraticaId(long intPraticaId) throws PortalException, - SystemException { - IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + public Organization getOrganizationByIntPraticaId(long intPraticaId) throws PortalException, SystemException { + IntPratica intPratica = getIntPratica(intPraticaId); Group group = GroupLocalServiceUtil.getGroup(intPratica.getGroupId()); Organization organization = OrganizationLocalServiceUtil.getOrganization(group.getOrganizationId()); - return organization; } - -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java index 352ff84e..a1c3091e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -27,24 +27,19 @@ import java.util.List; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONFactoryUtil; -import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.service.ServiceContext; /** * The implementation of the int pratica remote 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.liferay.portos.bo.service.IntPraticaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.IntPraticaService} interface. * *

- * This is a remote service. Methods of this service are expected to have - * security checks based on the propagated JAAS credentials because this service - * can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -53,17 +48,18 @@ import com.liferay.portal.service.ServiceContext; */ public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.IntPraticaServiceUtil} to access - * the int pratica remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.IntPraticaServiceUtil} to access the int pratica remote service. */ + @Override public IntPratica getIntPratica(long intPraticaId) throws PortalException, SystemException { // TODO: Permessi return intPraticaLocalService.getIntPratica(intPraticaId); } + @Override public void deleteIntPratica(long intPraticaId, long userId) throws PortalException, SystemException { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); @@ -74,145 +70,85 @@ public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl { } } - // public void pagaInvia(long intPraticaId, int pagAdeguamentoSismico, int - // pagAltro, int - // pagMiglioramentoSismico, - // int pagNuovaCostruzione, boolean pagNuoveCostruzioni, boolean - // pagRiparazioneInterventoLocale, - // boolean pagVarianti, String importoSpeseIstruttoria, String - // codiceFiscaleCommittente, String - // currentUrl, - // ServiceContext serviceContext) throws PortalException, SystemException { - // - // - // intPraticaLocalService.pagaInvia(intPraticaId, pagAdeguamentoSismico, - // pagAltro, - // pagMiglioramentoSismico, - // pagNuovaCostruzione, pagNuoveCostruzioni, pagRiparazioneInterventoLocale, - // pagVarianti, - // importoSpeseIstruttoria, - // codiceFiscaleCommittente, currentUrl, serviceContext); - // - // } - + @Override public void sospendiPratica(long intPraticaId, boolean sospesa) throws PortalException, SystemException { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - - IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), - ActionKeys.SOSPENDI_FASCICOLO); + IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.SOSPENDI_FASCICOLO); intPraticaLocalService.sospendiPratica(intPraticaId, sospesa); - } + @Override public void cambiaTitolare(long intPraticaId, long soggettoId, ServiceContext serviceContext) throws PortalException, SystemException { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - - IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), - ActionKeys.CAMBIO_TITOLARE); + IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.CAMBIO_TITOLARE); intPraticaLocalService.cambiaTitolare(intPraticaId, soggettoId, serviceContext); } - public void updateStatoPratica(long intPraticaId, String statoPratica) throws PortalException, - SystemException { + @Override + public void updateStatoPratica(long intPraticaId, String statoPratica) throws PortalException, SystemException { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.CAMBIO_STATO); intPraticaLocalService.updateStatoPratica(intPraticaId, statoPratica); } + @Override public List search(List groupIds, int start, int end) throws SystemException { // TODO Modificare tramite Indexer // TODO Aggiungere controllo permessi - return intPraticaLocalService.search(groupIds, start, end); - } + @Override public int countSearch(List groupIds) throws SystemException { // TODO Modificare tramite Indexer // TODO Aggiungere controllo permessi - return intPraticaLocalService.countSearch(groupIds); - - } - - public List findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) - throws SystemException, PortalException { - - return intPraticaLocalService.findByCompanyIdSoggettoProgetti(companyId, soggettoId); - } - - public int countByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException, - PortalException { - - return intPraticaLocalService.countByCompanyIdSoggettoProgetti(companyId, soggettoId); - } - - public List findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) - throws SystemException, PortalException { - - return intPraticaLocalService.findByCompanyIdSoggettoArchivio(companyId, soggettoId); - } - - public int countByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException, - PortalException { - - return intPraticaLocalService.countByCompanyIdSoggettoArchivio(companyId, soggettoId); - } - - public List findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, - int end) throws SystemException, PortalException { - - return intPraticaLocalService.findByCompanyIdSoggettoAltriProgetti(companyId, soggettoId, start, end); - } - - public int countByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId) throws SystemException, - PortalException { - - return intPraticaLocalService.countByCompanyIdSoggettoAltriProgetti(companyId, soggettoId); } + @Override public List findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end) throws SystemException, PortalException { return intPraticaLocalService.findByCanAddFineLavori(companyId, codiceFiscale, start, end); } - public int countByCanAddFineLavori(long companyId, String codiceFiscale) throws SystemException, - PortalException { + @Override + public int countByCanAddFineLavori(long companyId, String codiceFiscale) throws SystemException, PortalException { return intPraticaLocalService.countByCanAddFineLavori(companyId, codiceFiscale); } + @Override public List findByCanAddCollaudo(long companyId, String codiceFiscale, int start, int end) throws SystemException, PortalException { return intPraticaLocalService.findByCanAddCollaudo(companyId, codiceFiscale, start, end); } - public int countByCanAddCollaudo(long companyId, String codiceFiscale) throws SystemException, - PortalException { + @Override + public int countByCanAddCollaudo(long companyId, String codiceFiscale) throws SystemException, PortalException { return intPraticaLocalService.countByCanAddCollaudo(companyId, codiceFiscale); } + @Override public FileEntry allegaFileAnnullamento(long intPraticaId, byte[] content, String sourceFileName, - String jsonFirmatari, ServiceContext serviceContext) throws SystemException, PortalException, - IOException { + String jsonFirmatari, ServiceContext serviceContext) throws SystemException, PortalException, IOException { - return intPraticaLocalService.allegaFileAnnullamento(intPraticaId, content, sourceFileName, - jsonFirmatari, serviceContext); + return intPraticaLocalService.allegaFileAnnullamento(intPraticaId, content, sourceFileName, jsonFirmatari, + serviceContext); } + @Override public void completeAnnullamento(long intPraticaId, long userId) throws PortalException, SystemException { if (!AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_ANNULLA) @@ -222,22 +158,10 @@ public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl { intPraticaLocalService.completeAnnullamento(intPraticaId); } - public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) - throws PortalException, SystemException { + @Override + public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) throws PortalException, + SystemException { intPraticaLocalService.cambiaIstruttore(intPraticaId, controlloPraticaId, istruttoreId); } - - public String geosisma(long intPraticaId) throws PortalException, SystemException { - - JSONObject json = JSONFactoryUtil.createJSONObject(); - - IntPratica intPratica = intPraticaLocalService.fetchIntPratica(intPraticaId); - if (Validator.isNotNull(intPratica)) { - json.put("intPraticaId", intPratica.getIntPraticaId()); - } - - return json.toString(); - } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java index c381a2d3..8a0d3505 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java @@ -1,18 +1,17 @@ /** * 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 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. + * 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.bo.service.impl; -import it.tasgroup.idp.generazioneiuv.ElencoIdentificativiType; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.FineLavori; @@ -21,15 +20,14 @@ import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl; import it.tref.liferay.portos.bo.service.base.PagamentoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; -import it.tref.liferay.portos.bo.util.PagamentiCommonUtil; import it.tref.liferay.portos.bo.util.PagamentiUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; import java.io.IOException; import java.util.Date; +import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.HashMap; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; @@ -43,7 +41,6 @@ import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.User; import com.liferay.portal.service.ServiceContext; @@ -54,14 +51,12 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; * The implementation of the pagamento 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.liferay.portos.bo.service.PagamentoLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.PagamentoLocalService} 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 Davide Barbagallo, 3F Consulting @@ -69,113 +64,104 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; * @see it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil */ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { - private static final Log _log = LogFactoryUtil.getLog(PagamentoLocalServiceImpl.class); - + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil} to access the pagamento local service. + */ + + private static final Log _log = LogFactoryUtil.getLog(PagamentoLocalServiceImpl.class); + @SuppressWarnings("serial") - private static Map pagamenti = new HashMap() {{ - put("pagSoggettiAdAutorizzazione", 30.00); - put("pagInterventiRestauroManufatti", 35.00); - put("pagAltriCasiCulturali", 15.00); - put("pagLottizzazioni", 100.00); - put("pagGrandiStrutture", 100.00); - put("pagCondotte", 100.00); - put("pagPalificazioni", 100.00); - put("pagImpiantiEolici", 100.00); - put("pagNuoveRealizzazioni", 35.00); - put("pagImmobiliPreesistenti", 30.00); - put("pagManifestiPubblicitari", 25.00); - put("pagPareriDiMassima", 20.00); - put("pagAltriCasiPaesaggistici", 15.00); - put("pagVariantiPareriResi", 0.00); - put("pagRilascioAttestazioni", 5.00); - put("pagConsultazioniArchivio", 10.00); - put("pagEsenzioneBollo", 0.00); - }}; - - public Map getPagamenti(){ + private static Map pagamenti = new HashMap() { + { + put("pagSoggettiAdAutorizzazione", 30.00); + put("pagInterventiRestauroManufatti", 35.00); + put("pagAltriCasiCulturali", 15.00); + put("pagLottizzazioni", 100.00); + put("pagGrandiStrutture", 100.00); + put("pagCondotte", 100.00); + put("pagPalificazioni", 100.00); + put("pagImpiantiEolici", 100.00); + put("pagNuoveRealizzazioni", 35.00); + put("pagImmobiliPreesistenti", 30.00); + put("pagManifestiPubblicitari", 25.00); + put("pagPareriDiMassima", 20.00); + put("pagAltriCasiPaesaggistici", 15.00); + put("pagVariantiPareriResi", 0.00); + put("pagRilascioAttestazioni", 5.00); + put("pagConsultazioniArchivio", 10.00); + put("pagEsenzioneBollo", 0.00); + } + }; + + @Override + public Map getPagamenti() { return PagamentoLocalServiceImpl.pagamenti; } - - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil} to - * access the pagamento local service. - */ + + @Override public long createPagamentoId() throws SystemException { return counterLocalService.increment(Pagamento.class.getName()); } - public Pagamento addPagamento(String codice, String causale, String mezzo, - String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, - long classPk, String className, long oldPagamentoId, ServiceContext serviceContext) - throws PortalException, SystemException { + @Override + public Pagamento addPagamento(String codice, String causale, String mezzo, String codiceFiscaleCommittente, + String tipoPagamento, String importo, String utilizzata, long classPk, String className, + ServiceContext serviceContext) throws PortalException, SystemException { - return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, - importo, utilizzata, classPk, className, false, oldPagamentoId, StringPool.BLANK, null, - serviceContext); + return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, + utilizzata, classPk, className, false, StringPool.BLANK, serviceContext); } + @Override public Pagamento addPagamentoAndUpdate(String codice, String causale, String mezzo, - String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, - long classPk, String className, long oldPagamentoId, ServiceContext serviceContext) - throws PortalException, SystemException { + String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, long classPk, + String className, ServiceContext serviceContext) throws PortalException, SystemException { - return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, - importo, utilizzata, classPk, className, true, oldPagamentoId, StringPool.BLANK, null, - serviceContext); + return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo, + utilizzata, classPk, className, true, StringPool.BLANK, serviceContext); } + @Override public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo, - String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, - long classPk, String className, long oldPagamentoId, ServiceContext serviceContext) - throws PortalException, SystemException { + String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, long classPk, + String className, ServiceContext serviceContext) throws PortalException, SystemException { - return addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, - tipoPagamento, importo, utilizzata, classPk, className, true, oldPagamentoId, - StringPool.BLANK, null, serviceContext); + return addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, + importo, utilizzata, classPk, className, true, StringPool.BLANK, serviceContext); } + @Override public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo, - String codiceFiscaleCommittente, String tipoImporto, String importo, String utilizzata, - long classPk, String className, long oldPagamentoId, String url, - List iuvs, ServiceContext serviceContext) throws PortalException, - SystemException { + String codiceFiscaleCommittente, String tipoImporto, String importo, String utilizzata, long classPk, + String className, String url, ServiceContext serviceContext) throws PortalException, SystemException { - return addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, - tipoImporto, importo, utilizzata, classPk, className, true, oldPagamentoId, url, iuvs, - serviceContext); + return addPagamentoAndUpdate(pagamentoId, codice, causale, mezzo, codiceFiscaleCommittente, tipoImporto, + importo, utilizzata, classPk, className, true, url, serviceContext); } private Pagamento addPagamentoAndUpdate(Long pagamentoId, String codice, String causale, String mezzo, - String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, - long classPk, String className, boolean updateReference, long oldPagamentoId, String url, - List iuvs, ServiceContext serviceContext) throws PortalException, - SystemException { + String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, long classPk, + String className, boolean updateReference, String url, ServiceContext serviceContext) + throws PortalException, SystemException { Date now = new Date(); - if (Validator.isNull(pagamentoId)) { pagamentoId = createPagamentoId(); } - Pagamento pagamento = createPagamento(pagamentoId); - pagamento.setCompanyId(serviceContext.getCompanyId()); - pagamento.setUserId(serviceContext.getUserId()); - if (serviceContext.getUserId() > 0) { User user = userPersistence.findByPrimaryKey(serviceContext.getUserId()); pagamento.setUserName(user.getFullName()); } - pagamento.setGroupId(serviceContext.getScopeGroupId()); pagamento.setCreateDate(serviceContext.getCreateDate(now)); pagamento.setModifiedDate(serviceContext.getModifiedDate(now)); pagamento.setClassPk(classPk); pagamento.setClassName(className); - pagamento.setTipoPagamento(tipoPagamento); pagamento.setUrl(url); pagamento.setCodice(codice); @@ -184,19 +170,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { pagamento.setCodiceFiscaleCommittente(codiceFiscaleCommittente); pagamento.setImporto(importo); pagamento.setUtilizzata(utilizzata); - pagamento.setOldPagamentoId(oldPagamentoId); - if (Validator.isNotNull(iuvs) && !iuvs.isEmpty()) { - String codiceBolli = StringPool.BLANK; - for (ElencoIdentificativiType iuv : iuvs) { - iuvLocalService.addIUV(pagamentoId, iuv.getIdentificativoUnivocoVersamento(), tipoPagamento, - serviceContext); - codiceBolli += iuv.getIdentificativoUnivocoVersamento() + StringPool.PIPE; - } - codiceBolli = StringUtil.replaceLast(codiceBolli, StringPool.PIPE, StringPool.BLANK); - pagamento.setCodice(codiceBolli); - } - - long intPraticaId = 0l; + long intPraticaId = 0L; if (DettPratica.class.getName().equals(className)) { DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(classPk); intPraticaId = dettPratica.getIntPraticaId(); @@ -213,10 +187,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { dettPratica.setCodicePagamentoBolli(pagamento.getCodice()); dettPratica.setCausalePagamentoBolli(pagamento.getCausale()); dettPratica.setMezzoPagamentoBolli(mezzo); - default: - break; } - dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica); } } else if (FineLavori.class.getName().equals(className)) { @@ -231,10 +202,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { fineLavori.setCodicePagamento(pagamento.getCodice()); fineLavori.setCausalePagamento(pagamento.getCausale()); fineLavori.setMezzoPagamento(mezzo); - default: - break; } - fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori); } } else if (Collaudo.class.getName().equals(className)) { @@ -249,32 +217,26 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { collaudo.setCodicePagamento(pagamento.getCodice()); collaudo.setCausalePagamento(pagamento.getCausale()); collaudo.setMezzoPagamento(mezzo); - default: - break; } - collaudo = collaudoLocalService.updateCollaudo(collaudo); } } else { - throw new PortalException("unable to update pagamento for entity type " + className + " with id " - + classPk); + throw new PortalException("unable to update pagamento for entity type " + className + " with id " + classPk); } - pagamento.setIntPraticaId(intPraticaId); - pagamento = addPagamento(pagamento); - return pagamento; } - public Pagamento updatePagamento(long pagamentoId, String importo) throws PortalException, - SystemException { + @Override + public Pagamento updatePagamento(long pagamentoId, String importo) throws PortalException, SystemException { Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId); pagamento.setImporto(importo); return updatePagamento(pagamento); } + @Override public Pagamento updatePagamento(long pagamentoId, String codiceFiscaleCommittente, String importo) throws PortalException, SystemException { @@ -284,6 +246,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { return updatePagamento(pagamento); } + @Override public Pagamento updatePagamentoUtilizzata(long pagamentoId, String utilizzata) throws PortalException, SystemException { @@ -292,47 +255,54 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { return updatePagamento(pagamento); } + @Override public Pagamento annullaPagamento(long pagamentoId) throws PortalException, SystemException { Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId); pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_ANNULLATO); - return updatePagamento(pagamento); } - public List findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, - int end) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end) + throws SystemException { - DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, - mezzo, null); + DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo, + null); return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); } + @Override public int countByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo) throws SystemException { - DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, - mezzo, null); + DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo, + null); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, String utilizzata, int start, int end) throws SystemException { - DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, - mezzo, utilizzata); + DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo, + utilizzata); return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); } - public int countByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, - String utilizzata) throws SystemException { + @Override + public int countByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, String utilizzata) + throws SystemException { - DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, - mezzo, utilizzata); + DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo, + utilizzata); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); } + @Override public List findByMezzo_Utilizzata(String mezzo, String utilizzata, int start, int end) throws SystemException { @@ -340,38 +310,39 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); } - public Pagamento findByOldPagamentoId(long oldPagamentoId) throws SystemException { - - return pagamentoPersistence.fetchByOldPagamentoId(oldPagamentoId); - } - + @Override public int countByMezzo_Utilizzata(String mezzo, String utilizzata) throws SystemException { return pagamentoPersistence.countByMezzo_Utilizzata(mezzo, utilizzata); } - public List findByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date, - int start, int end) throws SystemException { + @Override + public List findByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date, int start, + int end) throws SystemException { return pagamentoPersistence.findByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date, start, end, OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); } - public int countByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata, - boolean emailPending, Date date) throws SystemException { + @Override + public int countByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata, boolean emailPending, + Date date) throws SystemException { - return pagamentoPersistence.countByMezzo_Utilizzata_EmailPending_CreateDate(mezzo, utilizzata, - emailPending, date); + return pagamentoPersistence.countByMezzo_Utilizzata_EmailPending_CreateDate(mezzo, utilizzata, emailPending, + date); } + @Override public List findByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata, boolean emailPending, Date date, int start, int end) throws SystemException { - return pagamentoPersistence.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo, utilizzata, - emailPending, date, start, end, + return pagamentoPersistence.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo, utilizzata, emailPending, + date, start, end, OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); } + @SuppressWarnings("unchecked") + @Override public List findInPending(Date date, int start, int end, OrderByComparator comparator) throws SystemException { @@ -379,6 +350,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, comparator); } + @Override public int countInPending(Date date) throws SystemException { DynamicQuery dynamicQuery = createPendingQuery(date); @@ -386,15 +358,16 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { } private DynamicQuery createPendingQuery(Date date) { - DynamicQuery dynamicQuery = pagamentoLocalService.dynamicQuery(); + + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.in("utilizzata", new String[] { PagamentoConstants.UTILIZZATA_IN_CORSO, PagamentoConstants.UTILIZZATA_ANNULLATO })); dynamicQuery.add(RestrictionsFactoryUtil.le("createDate", date)); return dynamicQuery; } - public int countByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date) - throws SystemException { + @Override + public int countByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date) throws SystemException { return pagamentoPersistence.countByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date); } @@ -425,19 +398,19 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { return pagamento; } - public Pagamento updateEmailPendingPagamento(long pagamentoId, boolean emailPending) - throws PortalException, SystemException { + @Override + public Pagamento updateEmailPendingPagamento(long pagamentoId, boolean emailPending) throws PortalException, + SystemException { - Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); + Pagamento pagamento = getPagamento(pagamentoId); pagamento.setModifiedDate(new Date()); pagamento.setEmailPending(emailPending); - return pagamentoLocalService.updatePagamento(pagamento); + return updatePagamento(pagamento); } private void deleteDettPraticaPagamento(Pagamento pagamento) throws SystemException { - List dettPraticas = dettPraticaLocalService - .findByPagamentoId(pagamento.getPagamentoId()); + List dettPraticas = dettPraticaLocalService.findByPagamentoId(pagamento.getPagamentoId()); for (DettPratica dettPratica : dettPraticas) { if (PagamentoConstants.PAGAMENTO_ONERI.equals(pagamento.getTipoPagamento())) { dettPratica.setPagamentoIdOneri(0L); @@ -448,10 +421,10 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { } } - private DynamicQuery dynamicQueryFindByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, - String mezzo, String utilizzata) { + private DynamicQuery dynamicQueryFindByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, + String utilizzata) { - DynamicQuery dynamicQuery = pagamentoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleCommittente", codiceFiscaleCommittente)); dynamicQuery.add(RestrictionsFactoryUtil.eq("mezzo", mezzo)); if (Validator.isNotNull(utilizzata)) { @@ -460,186 +433,135 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { return dynamicQuery; } + @Override public int countByClassPk(long classPk) throws SystemException { return pagamentoPersistence.countByClassPk(classPk); } + @Override public List findByClassPk(long classPk) throws SystemException { return pagamentoPersistence.findByClassPk(classPk); } + @Override public List findByIntPratica(long intPraticaId) throws SystemException { return pagamentoPersistence.findByIntPratica(intPraticaId); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { + return pagamentoPersistence.countByIntPratica(intPraticaId); } + @SuppressWarnings("unchecked") + @Override public List findByIntPratica_Visible(long intPraticaId) throws SystemException { + DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId); return pagamentoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countByIntPratica_Visible(long intPraticaId) throws SystemException { + DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); } private DynamicQuery createPagamentiVisibleByIntPratica(long intPraticaId) { - DynamicQuery dynamicQuery = pagamentoLocalService.dynamicQuery(); - + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.ne("utilizzata", PagamentoConstants.UTILIZZATA_IN_CORSO)); - return dynamicQuery; } - public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, - String url, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, String url, + ServiceContext serviceContext) throws PortalException, SystemException { - Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); - long intPraticaId = pagamento.getIntPraticaId(); + Pagamento pagamento = getPagamento(pagamentoId); String currentUtilizzata = pagamento.getUtilizzata(); - String currentMezzo = pagamento.getMezzo(); String tipoPagamento = pagamento.getTipoPagamento(); - - boolean irisEnable = PagamentiCommonUtil.irisIsEnable(pagamento.getCompanyId()); - if (mezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)) { - if (irisEnable) { - throw new PortalException("Creazione pagamento manuale con iris enable non possibile"); - } else if (currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) + if (currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) || currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) || currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)) { - if (DettPratica.class.getName().equals(pagamento.getClassName())) { DettPratica dettPratica = dettPraticaLocalService.getDettPratica(pagamento.getClassPk()); if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - dettPratica.setPagamentoIdOneri(0l); + dettPratica.setPagamentoIdOneri(0L); } else { - dettPratica.setPagamentoIdBolli(0l); + dettPratica.setPagamentoIdBolli(0L); } dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica); } else if (FineLavori.class.getName().equals(pagamento.getClassName())) { FineLavori fineLavori = fineLavoriLocalService.getFineLavori(pagamento.getClassPk()); - fineLavori.setPagamentoId(0l); + fineLavori.setPagamentoId(0L); fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori); } else if (Collaudo.class.getName().equals(pagamento.getClassName())) { Collaudo collaudo = collaudoLocalService.getCollaudo(pagamento.getClassPk()); - collaudo.setPagamentoId(0l); + collaudo.setPagamentoId(0L); collaudo = collaudoLocalService.updateCollaudo(collaudo); } else { throw new RuntimeException("unable to replace pagamento for entity type " + pagamento.getClassName() + " with id " + pagamento.getClassPk()); } - pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA); pagamento.setUtilizzataSostituita(currentUtilizzata); - pagamentoLocalService.updatePagamento(pagamento); - - PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), - tipoPagamento, pagamento.getImporto(), codiceFiscaleCommittente, serviceContext); + updatePagamento(pagamento); + PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), tipoPagamento, + pagamento.getImporto(), codiceFiscaleCommittente, serviceContext); } else { throw new PortalException("Creazione pagamento manuale con stato " + currentUtilizzata + " non possibile"); } - } else if (mezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_IRIS)) { - if (irisEnable - && (currentMezzo.equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) || (currentUtilizzata - .equalsIgnoreCase(PagamentoConstants.UTILIZZATA_NON_PAGABILE) - || currentUtilizzata.equalsIgnoreCase(PagamentoConstants.UTILIZZATA_RIFIUTATA) || currentUtilizzata - .equalsIgnoreCase(PagamentoConstants.UTILIZZATA_ANNULLATO)))) { - - if (DettPratica.class.getName().equals(pagamento.getClassName())) { - DettPratica dettPratica = dettPraticaLocalService.getDettPratica(pagamento.getClassPk()); - if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { - dettPratica.setPagamentoIdOneri(0l); - } else { - dettPratica.setPagamentoIdBolli(0l); - } - dettPratica = dettPraticaLocalService.updateDettPratica(dettPratica); - } else if (FineLavori.class.getName().equals(pagamento.getClassName())) { - FineLavori fineLavori = fineLavoriLocalService.getFineLavori(pagamento.getClassPk()); - fineLavori.setPagamentoId(0l); - fineLavori = fineLavoriLocalService.updateFineLavori(fineLavori); - } else if (Collaudo.class.getName().equals(pagamento.getClassName())) { - Collaudo collaudo = collaudoLocalService.getCollaudo(pagamento.getClassPk()); - collaudo.setPagamentoId(0l); - collaudo = collaudoLocalService.updateCollaudo(collaudo); - } else { - throw new RuntimeException("unable to replace pagamento for entity type " - + pagamento.getClassName() + " with id " + pagamento.getClassPk()); - } - - pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA); - pagamento.setUtilizzataSostituita(currentUtilizzata); - pagamentoLocalService.updatePagamento(pagamento); - - PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), - pagamento.getTipoPagamento(), pagamento.getImporto(), codiceFiscaleCommittente, - serviceContext); - } else { - throw new PortalException("Pagamento IRIS non sostituibile per intPratica " + intPraticaId); - } - } else { throw new PortalException("Mezzo non presente"); } - } - public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, String sourceFileName, - ServiceContext serviceContext) throws IOException, PortalException, SystemException { + @Override + public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, + String sourceFileName, ServiceContext serviceContext) throws IOException, PortalException, SystemException { - Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); - // if (dettPratica.getPagamentoId() != pagamentoId) { - // throw new PortalException("Pagamento non abbinato al dettpratica"); - // } + Pagamento pagamento = getPagamento(pagamentoId); if (pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) && pagamento.getUtilizzata().equalsIgnoreCase(PagamentoConstants.UTILIZZATA_IN_CORSO)) { - long fileEntryId = 0l; - - long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - + long fileEntryId = 0L; + long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); - String folderName = PraticaUtil.getFolderName(pagamento.getClassPk()); - Folder folder = null; try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName); + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); } catch (NoSuchFolderException e) { // cartella non presente -> creo cartella - folder = dlAppLocalService.addFolder(serviceContext.getUserId(), - defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName, - StringPool.BLANK, serviceContext); + folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), + defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); } Date now = new Date(); - String title = now.getTime() + StringPool.UNDERLINE + "pagamento_manuale" + StringPool.UNDERLINE - + pagamento.getPagamentoId() + StringPool.UNDERLINE + sourceFileName; - String description = ""; + String title = now.getTime() + "_pagamento_manuale_" + pagamento.getPagamentoId() + StringPool.UNDERLINE + + sourceFileName; + String description = StringPool.BLANK; String mimeType = MimeTypesUtil.getContentType(sourceFileName); - String changeLog = StringPool.BLANK; - FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), - folder.getRepositoryId(), folder.getFolderId(), now.getTime() + "_" + sourceFileName, - mimeType, title, description, changeLog, content, serviceContext); + FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(), + folder.getFolderId(), now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, + description, changeLog, content, serviceContext); fileEntryId = fileEntry.getFileEntryId(); - pagamento.setNumeroBollettino(numeroBollettino); pagamento.setFileEntryId(fileEntryId); - pagamento = pagamentoLocalService.updatePagamento(pagamento); - + pagamento = updatePagamento(pagamento); if (DettPratica.class.getName().equals(pagamento.getClassName())) { - dettPraticaLocalService.updateEsitoPagamento(pagamentoId, pagamento.getClassPk(), - fileEntryId, PagamentoConstants.UTILIZZATA_PAGATA); + dettPraticaLocalService.updateEsitoPagamento(pagamentoId, pagamento.getClassPk(), fileEntryId, + PagamentoConstants.UTILIZZATA_PAGATA); } else if (FineLavori.class.getName().equals(pagamento.getClassName())) { fineLavoriLocalService.updateEsitoPagamento(pagamentoId, pagamento.getClassPk(), fileEntryId, PagamentoConstants.UTILIZZATA_PAGATA); @@ -650,70 +572,59 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl { throw new RuntimeException("unable to update pagamento manuale for entity type " + pagamento.getClassName() + " with id " + pagamento.getClassPk()); } - } else { throw new SystemException("pagamento manuale non aggiornabile"); } } + @Override public void updatePagamentoManualeFromImport(long pagamentoId, byte[] content, String sourceFileName, ServiceContext serviceContext) throws PortalException, SystemException { - Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); - + Pagamento pagamento = getPagamento(pagamentoId); if (pagamento.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)) { - long fileEntryId = 0l; - - long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - + long fileEntryId = 0L; + long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); - String folderName = PraticaUtil.getFolderName(pagamento.getClassPk()); - Folder folder = null; try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName); + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); } catch (NoSuchFolderException e) { // cartella non presente -> creo cartella - folder = dlAppLocalService.addFolder(serviceContext.getUserId(), - defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName, - StringPool.BLANK, serviceContext); + folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), + defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); } Date now = new Date(); - String title = now.getTime() + StringPool.UNDERLINE + "pagamento_manuale" + StringPool.UNDERLINE - + pagamento.getPagamentoId() + StringPool.UNDERLINE + sourceFileName; - String description = ""; + String title = now.getTime() + "_pagamento_manuale_" + pagamento.getPagamentoId() + StringPool.UNDERLINE + + sourceFileName; + String description = StringPool.BLANK; String mimeType = MimeTypesUtil.getContentType(sourceFileName); String changeLog = StringPool.BLANK; - FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), - folder.getRepositoryId(), folder.getFolderId(), now.getTime() + "_" + sourceFileName, - mimeType, title, description, changeLog, content, serviceContext); + FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), folder.getRepositoryId(), + folder.getFolderId(), now.getTime() + StringPool.UNDERLINE + sourceFileName, mimeType, title, + description, changeLog, content, serviceContext); fileEntryId = fileEntry.getFileEntryId(); - pagamento.setFileEntryId(fileEntryId); - pagamento = pagamentoLocalService.updatePagamento(pagamento); - + pagamento = updatePagamento(pagamento); } else { throw new SystemException("pagamento manuale non aggiornabile"); } } - public Pagamento fetchByOldPagamentoId(long oldPagamentoId) throws SystemException { - - return pagamentoPersistence.fetchByOldPagamentoId(oldPagamentoId); - } - + @Override public Pagamento updateOtf(long pagamentoId, boolean otf) throws PortalException, SystemException { - Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); + + Pagamento pagamento = getPagamento(pagamentoId); pagamento.setOtf(otf); if (otf) { pagamento.setOtfCreateDate(new Date()); } else { pagamento.setOtfCreateDate(null); } - return pagamentoLocalService.updatePagamento(pagamento); + return updatePagamento(pagamento); } -} +} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java index f81a5224..b349ae0c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java @@ -1,19 +1,17 @@ /** * 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 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. + * 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.bo.service.impl; -import java.io.IOException; - import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.FineLavori; @@ -24,6 +22,8 @@ import it.tref.liferay.portos.bo.service.permission.PendingPagamentiPermission; import it.tref.liferay.portos.bo.shared.util.ActionKeys; import it.tref.liferay.portos.bo.util.DelegheUtil; +import java.io.IOException; + import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.service.ServiceContext; @@ -32,14 +32,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the pagamento remote 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.liferay.portos.bo.service.PagamentoService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.PagamentoService} interface. * *

- * This is a remote service. Methods of this service are expected to have - * security checks based on the propagated JAAS credentials because this service - * can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -48,17 +46,16 @@ import com.liferay.portal.service.ServiceContext; */ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.PagamentoServiceUtil} to access - * the pagamento remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.PagamentoServiceUtil} to access the pagamento remote service. */ - public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, - String url, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public void sostituisciPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, String url, + ServiceContext serviceContext) throws PortalException, SystemException { Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId); long userId = findTitolare(pagamentoId); - if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) { pagamentoLocalService.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo, url, serviceContext); @@ -68,20 +65,12 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl { } } - public void rigeneraPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, - String url, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public void rigeneraPagamento(long pagamentoId, String codiceFiscaleCommittente, String mezzo, String url, + ServiceContext serviceContext) throws PortalException, SystemException { if (PendingPagamentiPermission.contains(getPermissionChecker(), serviceContext.getScopeGroupId(), ActionKeys.PAGAMENTI_PENDING)) { - // long userId = serviceContext.getUserId(); - // List roles = RoleLocalServiceUtil.getUserRoles(userId); - // boolean isAllowed = false; - // for (Role role : roles) { - // if (role.getTitle().equals("portos_admin")) { - // isAllowed = true; - // } - // } - // if (isAllowed) { pagamentoLocalService.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo, url, serviceContext); } else { @@ -89,6 +78,7 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl { } } + @Override public void annullaPagamento(long pagamentoId, ServiceContext serviceContext) throws PortalException, SystemException { @@ -100,26 +90,25 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl { } } - public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, String sourceFileName, - ServiceContext serviceContext) throws IOException, PortalException, SystemException { + @Override + public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, + String sourceFileName, ServiceContext serviceContext) throws IOException, PortalException, SystemException { Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId); long userId = findTitolare(pagamentoId); - if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) { - pagamentoLocalService - .updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName, serviceContext); + pagamentoLocalService.updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName, + serviceContext); } else { throw new SystemException("pagamento manuale aggiornabile solo da titolare digitale del " + pagamento.getClassName()); } - } private long findTitolare(long pagamentoId) throws PortalException, SystemException { Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId); - long userId = 0l; + long userId = 0L; if (DettPratica.class.getName().equals(pagamento.getClassName())) { DettPratica dettPratica = dettPraticaLocalService.getDettPratica(pagamento.getClassPk()); userId = dettPratica.getUserId(); @@ -130,10 +119,9 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl { Collaudo collaudo = collaudoLocalService.getCollaudo(pagamento.getClassPk()); userId = collaudo.getUserId(); } else { - throw new RuntimeException("unable to replace pagamento for entity type " - + pagamento.getClassName() + " with id " + pagamento.getClassPk()); + throw new RuntimeException("unable to replace pagamento for entity type " + pagamento.getClassName() + + " with id " + pagamento.getClassPk()); } return userId; } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java index 426a1a0c..7ec2bd85 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java @@ -1,30 +1,39 @@ /** * 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 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. + * 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.bo.service.impl; +import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean; +import it.mwg.sismica.bo.util.CarichiLavoroUtil; +import it.tref.liferay.portos.bo.model.ControlloPratica; +import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.service.base.ParereGeologoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.util.PraticaUtil; +import java.util.Calendar; import java.util.Date; import java.util.List; +import java.util.Map; +import java.util.TreeMap; import com.liferay.portal.NoSuchRepositoryEntryException; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.util.MimeTypesUtil; @@ -33,6 +42,7 @@ import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.User; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.UserLocalServiceUtil; +import com.liferay.portal.util.PortalUtil; import com.liferay.portlet.documentlibrary.NoSuchFileEntryException; import com.liferay.portlet.documentlibrary.NoSuchFolderException; @@ -40,15 +50,12 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; * The implementation of the parere geologo 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.liferay.portos.bo.service.ParereGeologoLocalService} - * interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ParereGeologoLocalService} 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 Davide Barbagallo, 3F Consulting @@ -57,95 +64,81 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException; */ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil} - * to access the parere geologo local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil} to access the parere geologo local service. */ + private static final Log _log = LogFactoryUtil.getLog(ParereGeologoLocalServiceImpl.class); + + @Override public ParereGeologo addParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId, ServiceContext serviceContext) throws SystemException, PortalException { long parereGeologoId = counterLocalService.increment(ParereGeologo.class.getName()); ParereGeologo parereGeologo = parereGeologoPersistence.create(parereGeologoId); - parereGeologo.setCompanyId(serviceContext.getCompanyId()); - User user = UserLocalServiceUtil.getUser(serviceContext.getUserId()); parereGeologo.setUserId(user.getUserId()); parereGeologo.setUserName(user.getScreenName()); parereGeologo.setCreateDate(serviceContext.getCreateDate()); parereGeologo.setModifiedDate(serviceContext.getModifiedDate()); parereGeologo.setGroupId(serviceContext.getScopeGroupId()); - parereGeologo.setIntPraticaId(intPraticaId); parereGeologo.setDettPraticaId(dettPraticaId); parereGeologo.setGeologoUserId(geologoUserId); parereGeologo.setDtRichista(new Date()); - return parereGeologoPersistence.update(parereGeologo); } - public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content, - String fileName, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content, String fileName, + ServiceContext serviceContext) throws PortalException, SystemException { ParereGeologo parereGeologo = getParereGeologo(parereGeologoId); User geologo = UserLocalServiceUtil.getUser(serviceContext.getUserId()); if (Validator.isNotNull(geologo) && serviceContext.getUserId() == geologo.getUserId()) { - Date now = new Date(); - parereGeologo.setModifiedDate(serviceContext.getModifiedDate()); parereGeologo.setDtCompilazione(now); parereGeologo.setParere(parere); - if (Validator.isNotNull(content) && Validator.isNotNull(fileName)) { - - long fileEntryId = 0l; - - long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong( - serviceContext.getCompanyId(), ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); - + long fileEntryId = 0L; + long defaultFolderId = configurazioneLocalService.findByC_ChiaveLong(serviceContext.getCompanyId(), + ConfigurazioneConstants.ATTACHMENT_FOLDER_ID); Folder defaultFolder = dlAppLocalService.getFolder(defaultFolderId); String folderName = PraticaUtil.getFolderName(parereGeologo.getDettPraticaId()); - Folder folder = null; try { - folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), - defaultFolder.getFolderId(), folderName); + folder = dlAppLocalService.getFolder(defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), + folderName); } catch (NoSuchFolderException e) { // cartella non presente -> creo cartella - folder = dlAppLocalService.addFolder(serviceContext.getUserId(), - defaultFolder.getRepositoryId(), defaultFolder.getFolderId(), folderName, - StringPool.BLANK, serviceContext); + folder = dlAppLocalService.addFolder(serviceContext.getUserId(), defaultFolder.getRepositoryId(), + defaultFolder.getFolderId(), folderName, StringPool.BLANK, serviceContext); } - - String title = now.getTime() + StringPool.UNDERLINE + "parere_geologo" + StringPool.UNDERLINE - + parereGeologoId + StringPool.UNDERLINE + fileName; - String description = ""; + String title = now.getTime() + "_parere_" + parereGeologoId + StringPool.UNDERLINE + fileName; + String description = StringPool.BLANK; String mimeType = MimeTypesUtil.getContentType(fileName); - String changeLog = StringPool.BLANK; FileEntry fileEntry = dlAppLocalService.addFileEntry(serviceContext.getUserId(), - folder.getRepositoryId(), folder.getFolderId(), now.getTime() + "_" + fileName, - mimeType, title, description, changeLog, content, serviceContext); + folder.getRepositoryId(), folder.getFolderId(), + now.getTime() + StringPool.UNDERLINE + fileName, mimeType, title, description, changeLog, + content, serviceContext); fileEntryId = fileEntry.getFileEntryId(); parereGeologo.setFileEntryId(fileEntryId); } - return updateParereGeologo(parereGeologo); - } else { - // TODO error chi sta compilando non è il geologo designato o il - // geologo non esiste. + // TODO error chi sta compilando non è il geologo designato o il geologo non esiste. return parereGeologo; } - } @Override public ParereGeologo deleteParereGeologo(long parereGeologoId) throws PortalException, SystemException { - return deleteParereGeologo(parereGeologoLocalService.getParereGeologo(parereGeologoId)); + + return deleteParereGeologo(getParereGeologo(parereGeologoId)); } @Override @@ -164,102 +157,143 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase return super.deleteParereGeologo(parereGeologo); } + @Override public ParereGeologo updateParereGeologo(ParereGeologo parereGeologo) throws SystemException { return parereGeologoPersistence.update(parereGeologo); } + @Override public ParereGeologo remove(ParereGeologo parereGeologoId) throws SystemException { return parereGeologoPersistence.remove(parereGeologoId); } - public List findByIntPraticaId(long intPraticaId, int start, int end) - throws SystemException { + @Override + public List findByIntPraticaId(long intPraticaId, int start, int end) throws SystemException { return parereGeologoPersistence.findByIntPraticaId(intPraticaId, start, end); } + @Override public int countByIntPraticaId(long intPraticaId) throws SystemException { return parereGeologoPersistence.countByIntPraticaId(intPraticaId); } + @Override public List findByIntPraticaIdParereVuoto(long intPraticaId, int start, int end) throws SystemException { return parereGeologoPersistence.findByIntPraticaId_Parere(intPraticaId, StringPool.BLANK, start, end); } + @Override public int countByIntPraticaIdParereVuoto(long intPraticaId) throws SystemException { return parereGeologoPersistence.countByIntPraticaId_Parere(intPraticaId, StringPool.BLANK); } - public List findByIntPraticaId_GeologoId(long intPraticaId, long geologoUserId, int start, - int end) throws SystemException { + @Override + public List findByIntPraticaId_GeologoId(long intPraticaId, long geologoUserId, int start, int end) + throws SystemException { return parereGeologoPersistence.findByIntPraticaId_GeologoId(intPraticaId, geologoUserId, start, end); } + @Override public int countByIntPraticaId_GeologoId(long intPraticaId, long geologoUserId) throws SystemException { return parereGeologoPersistence.countByIntPraticaId_GeologoId(intPraticaId, geologoUserId); } + @Override public List findByGeologoId(long geologoUserId, int start, int end) throws SystemException { return parereGeologoPersistence.findByGeologoId(geologoUserId, start, end); } + @Override public List findByCompanyIdGroupId(long companyId, long groupId) throws SystemException { + return parereGeologoPersistence.findByC_GroupId(companyId, groupId); } + @Override public int countByGeologoId(long geologoUserId) throws SystemException { return parereGeologoPersistence.countByGeologoId(geologoUserId); } - public List findNotParereByGeologoId(long geologoUserId, int start, int end) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findNotParereByGeologoId(long geologoUserId, int start, int end) throws SystemException { - DynamicQuery dynamicQuery = parereGeologoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("geologoUserId", geologoUserId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("parere", "")); - - return parereGeologoLocalService.dynamicQuery(dynamicQuery, start, end); - + dynamicQuery.add(RestrictionsFactoryUtil.eq("parere", StringPool.BLANK)); + return dynamicQuery(dynamicQuery, start, end); } - public List findWithParereByGeologoId(long geologoUserId, int start, int end) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findWithParereByGeologoId(long geologoUserId, int start, int end) throws SystemException { - DynamicQuery dynamicQuery = parereGeologoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("geologoUserId", geologoUserId)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", "")); - - return parereGeologoLocalService.dynamicQuery(dynamicQuery, start, end); - + dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", StringPool.BLANK)); + return dynamicQuery(dynamicQuery, start, end); } + @Override public int countFindNotParereByGeologoId(long geologoUserId) throws SystemException { - DynamicQuery dynamicQuery = parereGeologoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("geologoUserId", geologoUserId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("parere", "")); - + dynamicQuery.add(RestrictionsFactoryUtil.eq("parere", StringPool.BLANK)); return (int) parereGeologoPersistence.countWithDynamicQuery(dynamicQuery); - } + @Override public int countFindWithParereByGeologoId(long geologoUserId) throws SystemException { - DynamicQuery dynamicQuery = parereGeologoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("geologoUserId", geologoUserId)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", "")); - + dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", StringPool.BLANK)); return (int) parereGeologoPersistence.countWithDynamicQuery(dynamicQuery); + } + @Override + @SuppressWarnings("unchecked") + public Map getCarichiLavoro(long controlloPraticaId, int giorni) throws PortalException, + SystemException { + + ControlloPratica cp = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); + long groupId = cp.getGroupId(); + int unitaOperativa = cp.getUnitaOperativa(); + Calendar calendar = Calendar.getInstance(); + calendar.add(Calendar.DATE, -giorni); + calendar.set(Calendar.HOUR, 0); + calendar.set(Calendar.MINUTE, 0); + calendar.set(Calendar.SECOND, 0); + calendar.set(Calendar.MILLISECOND, 0); + DynamicQuery query = dynamicQuery(); + query.add(RestrictionsFactoryUtil.ge("createDate", calendar.getTime())); + Map carichi = new TreeMap<>(); + int start = 0; + List pareri; + do { + pareri = parereGeologoPersistence.findWithDynamicQuery(query, start, start + 10); + for (ParereGeologo parere : pareri) { + IntPratica pratica = intPraticaLocalService.getIntPratica(parere.getIntPraticaId()); + if ((pratica.getGroupId() == groupId) && (pratica.getUnitaOperativa() == unitaOperativa)) { + CarichiLavoroUtil.incrementaCarico(carichi, + PortalUtil.getUserName(parere.getGeologoUserId(), StringPool.BLANK), + Validator.isNotNull(parere.getDtCompilazione())); + } + } + start += pareri.size(); + } while (pareri.size() > 0); + return carichi; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java index ec07d4c2..8cd48f3b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -31,13 +31,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the parere geologo remote 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.liferay.portos.bo.service.ParereGeologoService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ParereGeologoService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -45,72 +44,74 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil */ public class ParereGeologoServiceImpl extends ParereGeologoServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil} to access the parere geologo remote - * service. - */ + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil} to access the parere geologo remote service. + */ + @Override + public ParereGeologo addParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId, + ServiceContext serviceContext) throws SystemException, PortalException { - public ParereGeologo addParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId, - ServiceContext serviceContext) throws SystemException, PortalException { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); + IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.RICHIEDI_PARERE_GEOLOGO); + return parereGeologoLocalService.addParereGeologo(geologoUserId, intPraticaId, dettPraticaId, serviceContext); + } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.RICHIEDI_PARERE_GEOLOGO); + @Override + public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content, String fileName, + ServiceContext serviceContext) throws PortalException, SystemException { - return parereGeologoLocalService.addParereGeologo(geologoUserId, intPraticaId, dettPraticaId, serviceContext); - } + return parereGeologoLocalService + .updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext); + } - public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content, String fileName, - ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public ParereGeologo deleteParereGeologo(long parereGeologoId) throws SystemException, PortalException { - return parereGeologoLocalService.updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext); - } + return parereGeologoLocalService.deleteParereGeologo(parereGeologoId); + } - public ParereGeologo deleteParereGeologo(long parereGeologoId) throws SystemException, PortalException { + @Override + public ParereGeologo updateParereGeologo(ParereGeologo parereGeologo) throws SystemException { - return parereGeologoLocalService.deleteParereGeologo(parereGeologoId); - } + return parereGeologoLocalService.deleteParereGeologo(parereGeologo); + } - public ParereGeologo updateParereGeologo(ParereGeologo parereGeologo) throws SystemException { + @Override + public List findByIntPraticaId(long intPraticaId, int start, int end) throws SystemException { - return parereGeologoLocalService.deleteParereGeologo(parereGeologo); - } + // TODO permessi + return parereGeologoLocalService.findByIntPraticaId(intPraticaId, start, end); + } - public List findByIntPraticaId(long intPraticaId, int start, int end) throws SystemException { + @Override + public List findByIntPraticaId_GeologoId(long intPraticaId, long geologoUserId, int start, int end) + throws SystemException { - // TODO permessi + // TODO permessi + return parereGeologoLocalService.findByIntPraticaId_GeologoId(intPraticaId, geologoUserId, start, end); + } - return parereGeologoLocalService.findByIntPraticaId(intPraticaId, start, end); - } + @Override + public int countByIntPraticaId_GeologoId(long intPraticaId, long geologoUserId) throws SystemException { - public List findByIntPraticaId_GeologoId(long intPraticaId, long geologoUserId, int start, int end) - throws SystemException { + // TODO permessi + return parereGeologoLocalService.countByIntPraticaId_GeologoId(intPraticaId, geologoUserId); + } - // TODO permessi + @Override + public List findByGeologoId(long geologoUserId, int start, int end) throws SystemException { - return parereGeologoLocalService.findByIntPraticaId_GeologoId(intPraticaId, geologoUserId, start, end); - } + // TODO permessi + return parereGeologoLocalService.findByGeologoId(geologoUserId, start, end); + } - public int countByIntPraticaId_GeologoId(long intPraticaId, long geologoUserId) throws SystemException { + @Override + public int countByGeologoId(long geologoUserId) throws SystemException { - // TODO permessi - - return parereGeologoLocalService.countByIntPraticaId_GeologoId(intPraticaId, geologoUserId); - } - - public List findByGeologoId(long geologoUserId, int start, int end) throws SystemException { - - // TODO permessi - - return parereGeologoLocalService.findByGeologoId(geologoUserId, start, end); - } - - public int countByGeologoId(long geologoUserId) throws SystemException { - - // TODO permessi - - return parereGeologoLocalService.countByGeologoId(geologoUserId); - } + // TODO permessi + return parereGeologoLocalService.countByGeologoId(geologoUserId); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaLocalServiceImpl.java index dbd8199b..19f09a79 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -20,7 +20,6 @@ import it.tref.liferay.portos.bo.SiglaException; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.service.base.ProvinciaLocalServiceBaseImpl; -import java.util.ArrayList; import java.util.Date; import java.util.List; @@ -41,14 +40,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the provincia 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.liferay.portos.bo.service.ProvinciaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ProvinciaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -57,127 +54,101 @@ import com.liferay.portal.service.ServiceContext; */ public class ProvinciaLocalServiceImpl extends ProvinciaLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil} to access - * the provincia local service. + * NOTE FOR DEVELOPERS Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil} to access the provincia local service. */ - - // Manifattura Web Group per Regione Siciliana - public List getProvinceAttive() { - List ret = new ArrayList(); - return ret; - } @Override - public Provincia addProvincia(long userId, String codiceProvincia, - String provincia, String regione, String sigla, - ServiceContext serviceContext) throws PortalException, - SystemException { + public Provincia addProvincia(long userId, String codiceProvincia, String nome, String regione, String sigla, + ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - validate(serviceContext.getCompanyId(), 0L, codiceProvincia, provincia, - regione, sigla); - - Provincia provinciaO = provinciaPersistence.create(counterLocalService - .increment(Provincia.class.getName())); - - provinciaO.setCompanyId(serviceContext.getCompanyId()); - provinciaO.setUserId(user.getUserId()); - provinciaO.setUserName(user.getFullName()); - provinciaO.setCreateDate(serviceContext.getCreateDate(now)); - provinciaO.setModifiedDate(serviceContext.getModifiedDate(now)); - - provinciaO.setCodiceProvincia(codiceProvincia); - provinciaO.setProvincia(provincia); - provinciaO.setRegione(regione); - provinciaO.setSigla(sigla); - - provinciaO = provinciaPersistence.update(provinciaO); - - return provinciaO; + validate(serviceContext.getCompanyId(), 0L, codiceProvincia, nome, regione, sigla); + Provincia provincia = provinciaPersistence.create(counterLocalService.increment(Provincia.class.getName())); + provincia.setCompanyId(serviceContext.getCompanyId()); + provincia.setUserId(user.getUserId()); + provincia.setUserName(user.getFullName()); + provincia.setCreateDate(serviceContext.getCreateDate(now)); + provincia.setModifiedDate(serviceContext.getModifiedDate(now)); + provincia.setCodiceProvincia(codiceProvincia); + provincia.setProvincia(nome); + provincia.setRegione(regione); + provincia.setSigla(sigla); + provincia = provinciaPersistence.update(provincia); + return provincia; } - public List findAll(int start, int end, - OrderByComparator orderByComparator) throws SystemException { + @Override + public List findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException { + return provinciaPersistence.findAll(start, end, orderByComparator); } @Override public int countByCompanyId(long companyId) throws SystemException { + return provinciaPersistence.countByCompanyId(companyId); } @Override - public long countByKeywords(long companyId, String keywords) - throws SystemException { + public long countByKeywords(long companyId, String keywords) throws SystemException { DynamicQuery query = queryByKeywords(companyId, keywords); - return dynamicQueryCount(query); } @Override - public Provincia deleteProvincia(long provinciaId) throws PortalException, - SystemException { - - Provincia provincia = provinciaPersistence - .findByPrimaryKey(provinciaId); + public Provincia deleteProvincia(long provinciaId) throws PortalException, SystemException { + Provincia provincia = provinciaPersistence.findByPrimaryKey(provinciaId); return deleteProvincia(provincia); } @Override - public Provincia deleteProvincia(Provincia provincia) - throws SystemException { - - comunePersistence.removeByC_CP(provincia.getCompanyId(), - provincia.getCodiceProvincia()); + public Provincia deleteProvincia(Provincia provincia) throws SystemException { + comunePersistence.removeByC_CP(provincia.getCompanyId(), provincia.getCodiceProvincia()); return super.deleteProvincia(provincia); } @Override - public Provincia fetchByC_C(long companyId, String codiceProvincia) - throws SystemException { + public Provincia fetchByC_C(long companyId, String codiceProvincia) throws SystemException { + return provinciaPersistence.fetchByC_C(companyId, codiceProvincia); } @Override - public Provincia fetchByC_S(long companyId, String sigla) - throws SystemException { + public Provincia fetchByC_S(long companyId, String sigla) throws SystemException { + return provinciaPersistence.fetchByC_S(companyId, sigla); } @Override - public List findByCompanyId(long companyId, int start, int end) - throws SystemException { + public List findByCompanyId(long companyId, int start, int end) throws SystemException { + return provinciaPersistence.findByCompanyId(companyId, start, end); } @Override - public List findByCompanyId(long companyId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - return provinciaPersistence.findByCompanyId(companyId, start, end, - orderByComparator); + public List findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) + throws SystemException { + + return provinciaPersistence.findByCompanyId(companyId, start, end, orderByComparator); } @Override - public Provincia findByC_C(long companyId, String codiceProvincia) - throws NoSuchProvinciaException, SystemException { + public Provincia findByC_C(long companyId, String codiceProvincia) throws NoSuchProvinciaException, SystemException { + return provinciaPersistence.findByC_C(companyId, codiceProvincia); } - public List findByKeywords(long companyId, String keywords, - int start, int end, OrderByComparator orderByComparator) - throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List findByKeywords(long companyId, String keywords, int start, int end, + OrderByComparator orderByComparator) throws SystemException { DynamicQuery query = queryByKeywords(companyId, keywords); - return dynamicQuery(query, start, end, orderByComparator); } @@ -185,73 +156,52 @@ public class ProvinciaLocalServiceImpl extends ProvinciaLocalServiceBaseImpl { DynamicQuery query = DynamicQueryFactoryUtil.forClass(Provincia.class); query.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - - Criterion criterion = RestrictionsFactoryUtil.ilike("codiceProvincia", - StringPool.PERCENT + keywords + StringPool.PERCENT); - criterion = RestrictionsFactoryUtil.or( - criterion, - RestrictionsFactoryUtil.ilike("provincia", StringPool.PERCENT - + keywords + StringPool.PERCENT)); - criterion = RestrictionsFactoryUtil.or( - criterion, - RestrictionsFactoryUtil.ilike("regione", StringPool.PERCENT - + keywords + StringPool.PERCENT)); - criterion = RestrictionsFactoryUtil.or( - criterion, - RestrictionsFactoryUtil.ilike("sigla", StringPool.PERCENT - + keywords + StringPool.PERCENT)); + Criterion criterion = RestrictionsFactoryUtil.ilike("codiceProvincia", StringPool.PERCENT + keywords + + StringPool.PERCENT); + criterion = RestrictionsFactoryUtil.or(criterion, + RestrictionsFactoryUtil.ilike("provincia", StringPool.PERCENT + keywords + StringPool.PERCENT)); + criterion = RestrictionsFactoryUtil.or(criterion, + RestrictionsFactoryUtil.ilike("regione", StringPool.PERCENT + keywords + StringPool.PERCENT)); + criterion = RestrictionsFactoryUtil.or(criterion, + RestrictionsFactoryUtil.ilike("sigla", StringPool.PERCENT + keywords + StringPool.PERCENT)); query.add(criterion); return query; } - public Provincia updateProvincia(long userId, long provinciaId, - String provincia, String regione, String sigla, - ServiceContext serviceContext) throws PortalException, - SystemException { + @Override + public Provincia updateProvincia(long userId, long provinciaId, String nome, String regione, String sigla, + ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - Provincia provinciaO = provinciaPersistence - .fetchByPrimaryKey(provinciaId); - - validate(serviceContext.getCompanyId(), provinciaId, - provinciaO.getCodiceProvincia(), provincia, regione, sigla); - - provinciaO.setCompanyId(serviceContext.getCompanyId()); - provinciaO.setUserId(user.getUserId()); - provinciaO.setUserName(user.getFullName()); - provinciaO.setCreateDate(serviceContext.getCreateDate(now)); - provinciaO.setModifiedDate(serviceContext.getModifiedDate(now)); - - provinciaO.setProvincia(provincia); - provinciaO.setRegione(regione); - provinciaO.setSigla(sigla); - - provinciaO = provinciaPersistence.update(provinciaO); - - return provinciaO; - } - - private void validate(long companyId, long provinciaId, - String codiceProvincia, String provincia, String regione, + Provincia provincia = provinciaPersistence.fetchByPrimaryKey(provinciaId); + validate(serviceContext.getCompanyId(), provinciaId, provincia.getCodiceProvincia(), nome, regione, sigla); + provincia.setCompanyId(serviceContext.getCompanyId()); + provincia.setUserId(user.getUserId()); + provincia.setUserName(user.getFullName()); + provincia.setCreateDate(serviceContext.getCreateDate(now)); + provincia.setModifiedDate(serviceContext.getModifiedDate(now)); + provincia.setProvincia(nome); + provincia.setRegione(regione); + provincia.setSigla(sigla); + provincia = provinciaPersistence.update(provincia); + return provincia; + } + + private void validate(long companyId, long provinciaId, String codiceProvincia, String nome, String regione, String sigla) throws PortalException, SystemException { if (Validator.isNull(codiceProvincia)) throw new CodiceProvinciaException(); - if (Validator.isNull(provincia)) + if (Validator.isNull(nome)) throw new ProvinciaException(); if (Validator.isNull(sigla)) throw new SiglaException(); - - Provincia provinciaO = provinciaPersistence.fetchByC_C(companyId, - codiceProvincia); - if (provinciaO != null && provinciaO.getPrimaryKey() != provinciaId) + Provincia provincia = provinciaPersistence.fetchByC_C(companyId, codiceProvincia); + if (provincia != null && provincia.getPrimaryKey() != provinciaId) throw new DuplicateProvinciaException(); - provinciaO = provinciaPersistence.fetchByC_S(companyId, sigla); - if (provinciaO != null && provinciaO.getPrimaryKey() != provinciaId) + provincia = provinciaPersistence.fetchByC_S(companyId, sigla); + if (provincia != null && provincia.getPrimaryKey() != provinciaId) throw new DuplicateProvinciaException(); } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaServiceImpl.java index 0dd6d30a..73c674a3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaServiceImpl.java @@ -1,14 +1,12 @@ /** * 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) + * 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 + * 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. */ @@ -20,10 +18,12 @@ import it.tref.liferay.portos.bo.service.base.ProvinciaServiceBaseImpl; * The implementation of the provincia remote 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.liferay.portos.bo.service.ProvinciaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.ProvinciaService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -32,8 +32,7 @@ import it.tref.liferay.portos.bo.service.base.ProvinciaServiceBaseImpl; */ public class ProvinciaServiceImpl extends ProvinciaServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.ProvinciaServiceUtil} to access the provincia remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.ProvinciaServiceUtil} to access the provincia remote service. */ -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java index 1904192e..285fabc3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -45,14 +45,12 @@ import com.liferay.portlet.documentlibrary.NoSuchFileEntryException; * The implementation of the soggetto 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.liferay.portos.bo.service.SoggettoLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.SoggettoLocalService} 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 Davide Barbagallo, 3F Consulting @@ -61,42 +59,36 @@ import com.liferay.portlet.documentlibrary.NoSuchFileEntryException; */ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil} to - * access the soggetto local service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil} to access the soggetto local service. */ public static final Log _log = LogFactoryUtil.getLog(SoggettoLocalServiceImpl.class); - public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, - String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, - String provinciaNascita, String comuneNascita, String comuneDomicilio, - String comuneDomicilioEstero, String provinciaDomicilio, String viaDomicilio, - String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, String comune, - String comuneEstero, String provincia, String via, String numeroCivico, String cap, - String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap, - String provinciaNascitaRap, String comuneNascitaRap, String viaRap, String numeroCivicoRap, - String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, String albo, - String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, - String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, - boolean rimosso, String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, - long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, long oldSoggettoId, - boolean tmp, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome, + String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, String provinciaNascita, + String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, String provinciaDomicilio, + String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, + String comune, String comuneEstero, String provincia, String via, String numeroCivico, String cap, + String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap, String provinciaNascitaRap, + String comuneNascitaRap, String viaRap, String numeroCivicoRap, String capRap, String provinciaRap, + String comuneRap, String comuneRapEstero, String albo, String alboDescr, String regAlbo, String provAlbo, + String numIscrAlbo, String telefono, String fax, String email, String tipologiaSoggetto, + String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, String ambitoAttivita, + String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, Date dtDataRimozione, + long soggettoSostituitoId, boolean tmp, ServiceContext serviceContext) throws PortalException, + SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - - Soggetto soggetto = soggettoPersistence - .create(counterLocalService.increment(Soggetto.class.getName())); - + Soggetto soggetto = soggettoPersistence.create(counterLocalService.increment(Soggetto.class.getName())); soggetto.setCompanyId(serviceContext.getCompanyId()); soggetto.setUserId(user.getUserId()); soggetto.setUserName(user.getFullName()); soggetto.setCreateDate(serviceContext.getCreateDate(now)); soggetto.setModifiedDate(serviceContext.getModifiedDate(now)); soggetto.setGroupId(serviceContext.getScopeGroupId()); - soggetto.setDettPraticaId(dettPraticaId); soggetto.setIntPraticaId(intPraticaId); soggetto.setNome(nome); @@ -149,102 +141,69 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { soggetto.setDettPraticaIdRimozione(dettPraticaIdRimozione); soggetto.setDtDataRimozione(dtDataRimozione); soggetto.setSoggettoSostituitoId(soggettoSostituitoId); - soggetto.setOldSoggettoId(oldSoggettoId); soggetto.setTmp(tmp); - soggetto = soggettoPersistence.update(soggetto); - if (!SoggettiUtil.hasSoggettoPrincipale(dettPraticaId, soggetto.getTipologiaSoggetto())) { - updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), - soggetto.getTipologiaSoggetto()); + updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); } - return soggetto; } - public Soggetto addSoggettoValidatedByFile(long userId, long dettPraticaId, long intPraticaId, - String nome, String cognome, String codiceFiscale, String codiceFiscaleDelegato, - Date dataNascita, String provinciaNascita, String comuneNascita, String comuneDomicilio, - String comuneDomicilioEstero, String provinciaDomicilio, String viaDomicilio, - String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, String comune, - String comuneEstero, String provincia, String via, String numeroCivico, String cap, - String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap, - String provinciaNascitaRap, String comuneNascitaRap, String viaRap, String numeroCivicoRap, - String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, String albo, - String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, + @Override + public Soggetto addSoggettoValidatedByFile(long userId, long dettPraticaId, long intPraticaId, String nome, + String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, + String provinciaNascita, String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, + String provinciaDomicilio, String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, + String domicilioExtra, String comune, String comuneEstero, String provincia, String via, + String numeroCivico, String cap, String denominazione, String sedeLegale, String legaleRap, + Date dataNascitaRap, String provinciaNascitaRap, String comuneNascitaRap, String viaRap, + String numeroCivicoRap, String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, + String albo, String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, - long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, long oldSoggettoId, - byte[] content, String sourceFileName, String jsonFirmatari, boolean tmp, - ServiceContext serviceContext) throws PortalException, SystemException { + long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, byte[] content, + String sourceFileName, String jsonFirmatari, boolean tmp, ServiceContext serviceContext) + throws PortalException, SystemException { Soggetto soggetto = addSoggetto(userId, dettPraticaId, intPraticaId, nome, cognome, codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, numeroCivicoDomicilio, capDomicilio, - domicilioExtra, comune, comuneEstero, provincia, via, numeroCivico, cap, denominazione, - sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap, comuneNascitaRap, viaRap, - numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, regAlbo, - provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, tipoAltroSoggetto, - aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, - dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, - serviceContext); - - soggetto = allegaFileModifica(soggetto.getSoggettoId(), userId, intPraticaId, content, - sourceFileName, jsonFirmatari, serviceContext); - + domicilioExtra, comune, comuneEstero, provincia, via, numeroCivico, cap, denominazione, sedeLegale, + legaleRap, dataNascitaRap, provinciaNascitaRap, comuneNascitaRap, viaRap, numeroCivicoRap, capRap, + provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, + fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, + ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, + soggettoSostituitoId, tmp, serviceContext); + soggetto = allegaFileModifica(soggetto.getSoggettoId(), userId, intPraticaId, content, sourceFileName, + jsonFirmatari, serviceContext); return soggetto; } + @Override public Soggetto addSoggettoForImport(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, String provinciaNascita, String comuneNascita, String comuneDomicilio, String provinciaDomicilio, String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, - String comune, String provincia, String via, String numeroCivico, String cap, - String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap, - String provinciaNascitaRap, String comuneNascitaRap, String viaRap, String numeroCivicoRap, - String capRap, String provinciaRap, String comuneRap, String albo, String alboDescr, - String regAlbo, String provAlbo, String numIscrAlbo, String telefono, String fax, String email, - String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, - String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, - long dettPraticaIdRimozione, Date dtDataRimozione, long oldSoggettoId, boolean tmp, + String comune, String provincia, String via, String numeroCivico, String cap, String denominazione, + String sedeLegale, String legaleRap, Date dataNascitaRap, String provinciaNascitaRap, + String comuneNascitaRap, String viaRap, String numeroCivicoRap, String capRap, String provinciaRap, + String comuneRap, String albo, String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, + String telefono, String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, + boolean aggiuntivo, boolean rimosso, String ambitoAttivita, String ambitoProfessione, + long intPraticaIdRimozione, long dettPraticaIdRimozione, Date dtDataRimozione, boolean tmp, ServiceContext serviceContext) throws PortalException, SystemException { Date now = new Date(); - - // validate(serviceContext.getScopeGroupId(), 0L, dettPraticaId, - // intPraticaId, nome, cognome, - // codiceFiscale, - // codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, - // comuneDomicilio, - // comuneDomicilioEstero, provinciaDomicilio, - // viaDomicilio, numeroCivicoDomicilio, capDomicilio, domicilioExtra, - // comune, provincia, via, - // numeroCivico, cap, - // denominazione, sedeLegale, legaleRap, dataNascitaRap, - // provinciaNascitaRap, comuneNascitaRap, - // viaRap, - // numeroCivicoRap, capRap, provinciaRap, comuneRap, albo, regAlbo, - // provAlbo, numIscrAlbo, - // telefono, fax, email, - // tipologiaSoggetto, aggiuntivo, rimosso, ambitoAttivita, - // ambitoProfessione, - // intPraticaIdRimozione, - // dettPraticaIdRimozione, dtDataRimozione, 0l, oldSoggettoId); - - Soggetto soggetto = soggettoPersistence - .create(counterLocalService.increment(Soggetto.class.getName())); - + Soggetto soggetto = soggettoPersistence.create(counterLocalService.increment(Soggetto.class.getName())); soggetto.setCompanyId(serviceContext.getCompanyId()); soggetto.setUserId(userId); if (userId > 0) { User user = userPersistence.findByPrimaryKey(userId); soggetto.setUserName(user.getFullName()); } - soggetto.setCreateDate(serviceContext.getCreateDate(now)); soggetto.setModifiedDate(serviceContext.getModifiedDate(now)); soggetto.setGroupId(serviceContext.getScopeGroupId()); - soggetto.setDettPraticaId(dettPraticaId); soggetto.setIntPraticaId(intPraticaId); soggetto.setNome(nome); @@ -294,34 +253,27 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { soggetto.setDettPraticaIdRimozione(dettPraticaIdRimozione); soggetto.setDtDataRimozione(dtDataRimozione); // TODO aggiornare - soggetto.setSoggettoSostituitoId(0l); - soggetto.setOldSoggettoId(oldSoggettoId); + soggetto.setSoggettoSostituitoId(0L); soggetto.setTmp(tmp); - soggetto = soggettoPersistence.update(soggetto); - return soggetto; } - public Soggetto cloneSoggetto(long userId, long dettPraticaId, long intPraticaId, - Soggetto soggettoToClone, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public Soggetto cloneSoggetto(long userId, long dettPraticaId, long intPraticaId, Soggetto soggettoToClone, + ServiceContext serviceContext) throws PortalException, SystemException { Date now = new Date(); - - Soggetto soggetto = soggettoPersistence - .create(counterLocalService.increment(Soggetto.class.getName())); - + Soggetto soggetto = soggettoPersistence.create(counterLocalService.increment(Soggetto.class.getName())); soggetto.setCompanyId(serviceContext.getCompanyId()); soggetto.setUserId(userId); if (userId > 0) { User user = userPersistence.findByPrimaryKey(userId); soggetto.setUserName(user.getFullName()); } - soggetto.setCreateDate(serviceContext.getCreateDate(now)); soggetto.setModifiedDate(serviceContext.getModifiedDate(now)); soggetto.setGroupId(serviceContext.getScopeGroupId()); - soggetto.setDettPraticaId(dettPraticaId); soggetto.setIntPraticaId(intPraticaId); soggetto.setNome(soggettoToClone.getNome()); @@ -368,15 +320,12 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { soggetto.setRimosso(soggettoToClone.getRimosso()); soggetto.setAmbitoAttivita(soggettoToClone.getAmbitoAttivita()); soggetto.setAmbitoProfessione(soggettoToClone.getAmbitoProfessione()); - soggetto.setIntPraticaIdRimozione(0l); - soggetto.setDettPraticaIdRimozione(0l); + soggetto.setIntPraticaIdRimozione(0L); + soggetto.setDettPraticaIdRimozione(0L); soggetto.setDtDataRimozione(null); - soggetto.setSoggettoSostituitoId(0l); - soggetto.setOldSoggettoId(0l); + soggetto.setSoggettoSostituitoId(0L); soggetto.setTmp(false); - soggetto = soggettoPersistence.update(soggetto); - return soggetto; } @@ -397,48 +346,37 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { public Soggetto deleteSoggetto(long soggettoId) throws PortalException, SystemException { Soggetto soggetto = soggettoPersistence.findByPrimaryKey(soggettoId); - // se la pratica è in compilazione e non sono ancora al pagamento - // IntPratica intPratica = - // intPraticaLocalService.getIntPratica(soggetto.getIntPraticaId()); - // if (intPratica.getStatus() != WorkflowConstants.STATUS_ANY) { - // return null; - // } DettPratica dettPratica = dettPraticaLocalService.getDettPratica(soggetto.getDettPraticaId()); if (dettPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) { return null; } - return deleteSoggetto(soggetto); } - public Soggetto updateSoggetto(long userId, long soggettoId, long dettPraticaId, long intPraticaId, - String nome, String cognome, String codiceFiscale, String codiceFiscaleDelegato, - Date dataNascita, String provinciaNascita, String comuneNascita, String comuneDomicilio, - String comuneDomicilioEstero, String provinciaDomicilio, String viaDomicilio, - String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, String comune, - String comuneEstero, String provincia, String via, String numeroCivico, String cap, - String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap, - String provinciaNascitaRap, String comuneNascitaRap, String viaRap, String numeroCivicoRap, - String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, String albo, - String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, + @Override + public Soggetto updateSoggetto(long userId, long soggettoId, long dettPraticaId, long intPraticaId, String nome, + String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, + String provinciaNascita, String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, + String provinciaDomicilio, String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, + String domicilioExtra, String comune, String comuneEstero, String provincia, String via, + String numeroCivico, String cap, String denominazione, String sedeLegale, String legaleRap, + Date dataNascitaRap, String provinciaNascitaRap, String comuneNascitaRap, String viaRap, + String numeroCivicoRap, String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, + String albo, String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, - long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, long oldSoggettoId, - boolean tmp, ServiceContext serviceContext) throws PortalException, SystemException { + long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, boolean tmp, + ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(userId); - Date now = new Date(); - Soggetto soggetto = soggettoPersistence.fetchByPrimaryKey(soggettoId); - soggetto.setCompanyId(serviceContext.getCompanyId()); soggetto.setUserId(user.getUserId()); soggetto.setUserName(user.getFullName()); soggetto.setCreateDate(serviceContext.getCreateDate(now)); soggetto.setModifiedDate(serviceContext.getModifiedDate(now)); soggetto.setGroupId(serviceContext.getScopeGroupId()); - soggetto.setDettPraticaId(dettPraticaId); soggetto.setIntPraticaId(intPraticaId); soggetto.setNome(nome); @@ -492,149 +430,148 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { soggetto.setDtDataRimozione(dtDataRimozione); soggetto.setSoggettoSostituitoId(soggettoSostituitoId); soggetto.setTmp(tmp); - soggetto = soggettoPersistence.update(soggetto); - return soggetto; } - public Soggetto updateSoggettoValidatedByFile(long userId, long soggettoId, long dettPraticaId, - long intPraticaId, String nome, String cognome, String codiceFiscale, - String codiceFiscaleDelegato, Date dataNascita, String provinciaNascita, String comuneNascita, - String comuneDomicilio, String comuneDomicilioEstero, String provinciaDomicilio, - String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, - String comune, String comuneEstero, String provincia, String via, String numeroCivico, - String cap, String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap, - String provinciaNascitaRap, String comuneNascitaRap, String viaRap, String numeroCivicoRap, - String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, String albo, - String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, + @Override + public Soggetto updateSoggettoValidatedByFile(long userId, long soggettoId, long dettPraticaId, long intPraticaId, + String nome, String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, + String provinciaNascita, String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, + String provinciaDomicilio, String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, + String domicilioExtra, String comune, String comuneEstero, String provincia, String via, + String numeroCivico, String cap, String denominazione, String sedeLegale, String legaleRap, + Date dataNascitaRap, String provinciaNascitaRap, String comuneNascitaRap, String viaRap, + String numeroCivicoRap, String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, + String albo, String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, - long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, long oldSoggettoId, - byte[] content, String sourceFileName, String jsonFirmatari, ServiceContext serviceContext) - throws PortalException, SystemException { + long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, byte[] content, + String sourceFileName, String jsonFirmatari, ServiceContext serviceContext) throws PortalException, + SystemException { Soggetto soggetto = updateSoggetto(userId, soggettoId, dettPraticaId, intPraticaId, nome, cognome, - codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, - comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, - numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, provincia, via, - numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap, - comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneRapEstero, - albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto, - tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, - intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, - oldSoggettoId, false, serviceContext); - - soggetto = allegaFileModifica(soggetto.getSoggettoId(), userId, intPraticaId, content, - sourceFileName, jsonFirmatari, serviceContext); - + codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, comuneDomicilio, + comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, numeroCivicoDomicilio, capDomicilio, + domicilioExtra, comune, comuneEstero, provincia, via, numeroCivico, cap, denominazione, sedeLegale, + legaleRap, dataNascitaRap, provinciaNascitaRap, comuneNascitaRap, viaRap, numeroCivicoRap, capRap, + provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, + fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, + ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, + soggettoSostituitoId, false, serviceContext); + soggetto = allegaFileModifica(soggetto.getSoggettoId(), userId, intPraticaId, content, sourceFileName, + jsonFirmatari, serviceContext); return soggetto; - - } - - public Soggetto fetchByOldSoggettId(long oldSoggettoId) throws SystemException { - - return soggettoPersistence.fetchByoldSoggettoId(oldSoggettoId); } + @Override public List findByIntPratica(long intPraticaId) throws SystemException { return soggettoPersistence.findByIntPratica(intPraticaId); } + @Override public int countByIntPratica(long intPraticaId) throws SystemException { return soggettoPersistence.countByIntPratica(intPraticaId); } + @Override public List findByDettPratica(long dettPraticaId) throws SystemException { return soggettoPersistence.findByDettPratica(dettPraticaId); } + @Override public int countByDettPratica(long dettPraticaId) throws SystemException { return soggettoPersistence.countByDettPratica(dettPraticaId); } + @Override public List findByDettPratica_CodiceFiscale(long dettPraticaId, String codiceFiscale) throws SystemException { return soggettoPersistence.findByDettPratica_CodiceFiscale(dettPraticaId, codiceFiscale); } + @Override public List findByDettPratica_CodiceFiscale_Rimosso(long dettPraticaId, String codiceFiscale, boolean rimosso) throws SystemException { - return soggettoPersistence.findByDettPratica_CodiceFiscale_Rimosso(dettPraticaId, codiceFiscale, - rimosso); + return soggettoPersistence.findByDettPratica_CodiceFiscale_Rimosso(dettPraticaId, codiceFiscale, rimosso); } - public int countByDettPratica_CodiceFiscale(long dettPraticaId, String codiceFiscale) - throws SystemException { + @Override + public int countByDettPratica_CodiceFiscale(long dettPraticaId, String codiceFiscale) throws SystemException { return soggettoPersistence.countByDettPratica_CodiceFiscale(dettPraticaId, codiceFiscale); } - public int countByDettPratica_CodiceFiscale_Rimosso(long dettPraticaId, String codiceFiscale, - boolean rimosso) throws SystemException { + @Override + public int countByDettPratica_CodiceFiscale_Rimosso(long dettPraticaId, String codiceFiscale, boolean rimosso) + throws SystemException { - return soggettoPersistence.countByDettPratica_CodiceFiscale_Rimosso(dettPraticaId, codiceFiscale, - rimosso); + return soggettoPersistence.countByDettPratica_CodiceFiscale_Rimosso(dettPraticaId, codiceFiscale, rimosso); } + @Override public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { return soggettoPersistence.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); } + @Override public List findByIntPratica_CodiceFiscale_Rimosso(long intPraticaId, String codiceFiscale, boolean rimosso) throws SystemException { - return soggettoPersistence.findByIntPratica_CodiceFiscale_Rimosso(intPraticaId, codiceFiscale, - rimosso); + return soggettoPersistence.findByIntPratica_CodiceFiscale_Rimosso(intPraticaId, codiceFiscale, rimosso); } - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) - throws SystemException { + @Override + public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { return soggettoPersistence.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); } - public int countByIntPratica_CodiceFiscale_Rimosso(long intPraticaId, String codiceFiscale, - boolean rimosso) throws SystemException { + @Override + public int countByIntPratica_CodiceFiscale_Rimosso(long intPraticaId, String codiceFiscale, boolean rimosso) + throws SystemException { - return soggettoPersistence.countByIntPratica_CodiceFiscale_Rimosso(intPraticaId, codiceFiscale, - rimosso); + return soggettoPersistence.countByIntPratica_CodiceFiscale_Rimosso(intPraticaId, codiceFiscale, rimosso); } + @Override public List findByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) throws SystemException { return soggettoPersistence.findByIntPratica_TipologiaSoggetto(intPraticaId, tipologiaSoggetto); } + @Override public List findByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto) throws SystemException { return soggettoPersistence.findByDettPratica_TipologiaSoggetto(dettPraticaId, tipologiaSoggetto); } + @Override public List findByDettPratica_TipologiaSoggetto_CodiceFiscale(long dettPraticaId, String tipologiaSoggetto, String codiceFiscale) throws SystemException { - return soggettoPersistence.findByDettPratica_TipologiaSoggetto_CodiceFiscale(dettPraticaId, - tipologiaSoggetto, codiceFiscale); + return soggettoPersistence.findByDettPratica_TipologiaSoggetto_CodiceFiscale(dettPraticaId, tipologiaSoggetto, + codiceFiscale); } - public List findByIntPratica_TipologiaSoggetto_Rimosso(long intPraticaId, - String tipologiaSoggetto, boolean rimosso) throws SystemException { + @Override + public List findByIntPratica_TipologiaSoggetto_Rimosso(long intPraticaId, String tipologiaSoggetto, + boolean rimosso) throws SystemException { - return soggettoPersistence.findByIntPratica_TipologiaSoggetto_Rimosso(intPraticaId, - tipologiaSoggetto, rimosso); + return soggettoPersistence.findByIntPratica_TipologiaSoggetto_Rimosso(intPraticaId, tipologiaSoggetto, rimosso); } + @Override public List findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(long intPraticaId, String tipologiaSoggetto, long dettPraticaIdRimozione) throws SystemException { @@ -642,6 +579,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { tipologiaSoggetto, dettPraticaIdRimozione); } + @SuppressWarnings("unchecked") + @Override public List getValidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = createQueryByIntPratica(intPraticaId); @@ -649,6 +588,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getValidByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -658,6 +599,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countValidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = createQueryByIntPratica(intPraticaId); @@ -669,16 +611,18 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); - return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getValidTmpByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica(intPraticaId); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countValidTmpByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica(intPraticaId); @@ -689,12 +633,13 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getTmpNotCompletedByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createTmpNotcompletedQueryByDettPratica(dettPraticaId); @@ -703,6 +648,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countTmpNotCompletedByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createTmpNotcompletedQueryByDettPratica(dettPraticaId); @@ -713,20 +659,24 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaId", dettPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", true)); return dynamicQuery; } - public List getSoggettiPrincipaliValidTmpByDettPratica(long dettPraticaId) - throws SystemException, PortalException { + @SuppressWarnings("unchecked") + @Override + public List getSoggettiPrincipaliValidTmpByDettPratica(long dettPraticaId) throws SystemException, + PortalException { DynamicQuery dynamicQuery = createPrincipaliValidQueryByDettPratica(dettPraticaId); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String[] tipologieSoggetto) throws SystemException, PortalException { @@ -736,6 +686,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String[] tipologieSoggetto) throws SystemException, PortalException { @@ -744,13 +695,14 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return (int) soggettoPersistence.countWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String[] tipologieSoggetto) throws SystemException, PortalException { DynamicQuery dynamicQuery = createPrincipaliValidQueryByDettPratica(dettPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.in("tipologiaSoggetto", tipologieSoggetto)); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceFiscale"))); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceFiscale"))); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } @@ -760,20 +712,18 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); String[] cfPrincipali = new String[] { dettPratica.getCodiceFiscalePrincipaleCollaudatore(), dettPratica.getCodiceFiscalePrincipaleCommittente(), - dettPratica.getCodiceFiscalePrincipaleDirettoreLavori(), - dettPratica.getCodiceFiscalePrincipaleDitta(), - dettPratica.getCodiceFiscalePrincipaleGeologo(), - dettPratica.getCodiceFiscalePrincipaleProgettista() }; - + dettPratica.getCodiceFiscalePrincipaleDirettoreLavori(), dettPratica.getCodiceFiscalePrincipaleDitta(), + dettPratica.getCodiceFiscalePrincipaleGeologo(), dettPratica.getCodiceFiscalePrincipaleProgettista() }; DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", dettPratica.getIntPraticaId())); dynamicQuery.add(RestrictionsFactoryUtil.in("codiceFiscale", cfPrincipali)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getValidTmpByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createValidTmpQueryByDettPratica(dettPraticaId); @@ -781,37 +731,41 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getCfValidTmpByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createValidTmpQueryByDettPratica(dettPraticaId); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceFiscale"))); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceFiscale"))); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public List getCfValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, - String tipologiaSoggetto) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getCfValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) + throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceFiscale"))); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceFiscale"))); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public List getCfValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, - String tipologiaSoggetto) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getCfValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto) + throws SystemException { DynamicQuery dynamicQuery = createValidTmpQueryByDettPratica(dettPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceFiscale"))); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceFiscale"))); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @Override public int countCfValidTmpByDettPratica(long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = createValidTmpQueryByDettPratica(dettPraticaId); @@ -822,91 +776,86 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaId", dettPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, long docDettPraticaId) throws SystemException { - DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, docDettPraticaId); + DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, + docDettPraticaId); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public int countValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, - long docDettPraticaId) throws SystemException { + @Override + public int countValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, long docDettPraticaId) + throws SystemException { - DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, docDettPraticaId); + DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, + docDettPraticaId); return (int) soggettoPersistence.countWithDynamicQuery(dynamicQuery); } - public Soggetto getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(long intPraticaId, - String codiceFiscale, String tipologiaSoggetto) throws SystemException { + @Override + public Soggetto getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(long intPraticaId, String codiceFiscale, + String tipologiaSoggetto) throws SystemException { - DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, 0l); + DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, 0L); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); + @SuppressWarnings("unchecked") List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); - if (soggetti.isEmpty()) { - return null; - } else { - return soggetti.get(0); - } + return soggetti.isEmpty() ? null : soggetti.get(0); } - public Soggetto getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(long intPraticaId, - String codiceFiscale, String tipologiaSoggetto, long docDettPraticaId) throws SystemException { + @Override + public Soggetto getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(long intPraticaId, String codiceFiscale, + String tipologiaSoggetto, long docDettPraticaId) throws SystemException { - DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, docDettPraticaId); + DynamicQuery dynamicQuery = createValidTmpQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, + docDettPraticaId); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); + @SuppressWarnings("unchecked") List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); - if (soggetti.isEmpty()) { - return null; - } else { - return soggetti.get(0); - } + return soggetti.isEmpty() ? null : soggetti.get(0); } - private DynamicQuery createValidTmpQueryByIntPratica_CodiceFiscale(long intPraticaId, - String codiceFiscale, long docDettPraticaId) { + private DynamicQuery createValidTmpQueryByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, + long docDettPraticaId) { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscale", codiceFiscale)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); dynamicQuery.add(disjunction); if (Validator.isNotNull(docDettPraticaId)) { - disjunction.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + disjunction.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); disjunction.add(RestrictionsFactoryUtil.le("dettPraticaIdRimozione", docDettPraticaId)); } - return dynamicQuery; } - public Soggetto getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(long intPraticaId, - String codiceFiscale, String tipologiaSoggetto) throws SystemException { + @Override + public Soggetto getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(long intPraticaId, String codiceFiscale, + String tipologiaSoggetto) throws SystemException { DynamicQuery dynamicQuery = createValidQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); + @SuppressWarnings("unchecked") List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); - if (soggetti.isEmpty()) { - return null; - } else { - return soggetti.get(0); - } + return soggetti.isEmpty() ? null : soggetti.get(0); } + @SuppressWarnings("unchecked") + @Override public List getValidByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { @@ -915,6 +864,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getValidByIntPratica_NoCodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { @@ -927,8 +878,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public int countValidByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) - throws SystemException { + @Override + public int countValidByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { DynamicQuery dynamicQuery = createValidQueryByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); return (int) soggettoPersistence.countWithDynamicQuery(dynamicQuery); @@ -944,6 +895,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getValidByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) throws SystemException { @@ -953,41 +906,43 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); - List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); - return soggetti; + return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public List getValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, - String tipologiaSoggetto) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) + throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); - List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); - return soggetti; + return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public List getValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, - String tipologiaSoggetto) throws SystemException { + @SuppressWarnings("unchecked") + @Override + public List getValidTmpByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto) + throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaId", dettPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tipologiaSoggetto", tipologiaSoggetto)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); - List soggetti = soggettoPersistence.findWithDynamicQuery(dynamicQuery); - return soggetti; + return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getCfValidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = createValidQueryByIntPratica(intPraticaId); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceFiscale"))); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceFiscale"))); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } @@ -997,10 +952,11 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getValidByIntPratica_CodiciFiscali(long intPraticaId, List codiciFiscali) throws SystemException { @@ -1009,6 +965,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getInvalidByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); @@ -1018,25 +976,31 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.ne("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.ne("dettPraticaIdRimozione", 0L)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getRivalidatedTmpByIntPratica(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0l)); + dynamicQuery.add(RestrictionsFactoryUtil.eq("dettPraticaIdRimozione", 0L)); dynamicQuery.add(RestrictionsFactoryUtil.eq("rimosso", true)); dynamicQuery.addOrder(OrderFactoryUtil.asc("soggettoId")); return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) throws SystemException { @@ -1045,6 +1009,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId, String tipologiaSoggetto) throws SystemException { @@ -1053,8 +1019,8 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public int countValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) - throws SystemException { + @Override + public int countValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) throws SystemException { DynamicQuery dynamicQuery = findValidUntilDettPraticaByIntPratica(intPraticaId, dettPraticaId, null); return (int) soggettoPersistence.countWithDynamicQuery(dynamicQuery); @@ -1071,17 +1037,18 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { } dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); dynamicQuery.add(RestrictionsFactoryUtil.eq("tmp", false)); - return dynamicQuery; } - public List findByDettPratica_TipologiaSoggetto_Aggiuntivo(long dettPraticaId, - String TipologiaSoggetto, boolean aggiuntivo) throws SystemException { + @Override + public List findByDettPratica_TipologiaSoggetto_Aggiuntivo(long dettPraticaId, String TipologiaSoggetto, + boolean aggiuntivo) throws SystemException { - return soggettoPersistence.findByDettPratica_TipologiaSoggetto_Aggiuntivo(dettPraticaId, - TipologiaSoggetto, aggiuntivo); + return soggettoPersistence.findByDettPratica_TipologiaSoggetto_Aggiuntivo(dettPraticaId, TipologiaSoggetto, + aggiuntivo); } + @Override public List findByDettPratica_TipologiaSoggetto_Aggiuntivo_Rimosso(long dettPraticaId, String TipologiaSoggetto, boolean aggiuntivo, boolean rimosso) throws SystemException { @@ -1089,6 +1056,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { TipologiaSoggetto, aggiuntivo, rimosso); } + @Override public List findByIntPratica_TipologiaSoggetto_Aggiuntivo_Rimosso(long intPraticaId, String TipologiaSoggetto, boolean aggiuntivo, boolean rimosso) throws SystemException { @@ -1096,6 +1064,7 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { TipologiaSoggetto, aggiuntivo, rimosso); } + @Override public Soggetto findByUserId(long userId) throws SystemException { List soggetti = soggettoPersistence.findByUserId(userId); @@ -1105,58 +1074,62 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { return soggetti.get(0); } + @Override public List findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException { return soggettoPersistence.findByUserId(userId, start, end, orderByComparator); } + @Override public List findByUserId_CodiceFiscale(long userId, String codiceFiscale, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return soggettoPersistence.findByUserId_CodiceFiscale(userId, codiceFiscale, start, end, - orderByComparator); + return soggettoPersistence.findByUserId_CodiceFiscale(userId, codiceFiscale, start, end, orderByComparator); } + @Override public int countByUserId_CodiceFiscale(long userId, String codiceFiscale) throws SystemException { return soggettoPersistence.countByUserId_CodiceFiscale(userId, codiceFiscale); } + @Override public List findByUserId_CodiceFiscale_TipologiaSoggetto(long userId, String codiceFiscale, - String tipologiaSoggetto, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + String tipologiaSoggetto, int start, int end, OrderByComparator orderByComparator) throws SystemException { return soggettoPersistence.findByUserId_CodiceFiscale_TipologiaSoggetto(userId, codiceFiscale, tipologiaSoggetto, start, end, orderByComparator); } - public int countByUserId_CodiceFiscale_TipologiaSoggetto(long userId, String codiceFiscale, - String tipologiaSoggetto) throws SystemException { + @Override + public int countByUserId_CodiceFiscale_TipologiaSoggetto(long userId, String codiceFiscale, String tipologiaSoggetto) + throws SystemException { return soggettoPersistence.countByUserId_CodiceFiscale_TipologiaSoggetto(userId, codiceFiscale, tipologiaSoggetto); } + @SuppressWarnings("unchecked") + @Override public List findIntPraticaBySoggettoId(long soggettoId) throws PortalException, SystemException { User user = userLocalService.getUser(soggettoId); - - DynamicQuery dynamicQuerySoggetti = soggettoLocalService.dynamicQuery(); + DynamicQuery dynamicQuerySoggetti = dynamicQuery(); dynamicQuerySoggetti.add(RestrictionsFactoryUtil.ilike("codiceFiscale", user.getScreenName())); dynamicQuerySoggetti.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil .property("intPraticaId"))); - List ids = soggettoPersistence.findWithDynamicQuery(dynamicQuerySoggetti); - - return ids; + return soggettoPersistence.findWithDynamicQuery(dynamicQuerySoggetti); } + @Override public void updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) throws PortalException, SystemException { dettPraticaLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); } + @Override public void completeInvalidation(long intPraticaId) throws SystemException { Date now = new Date(); @@ -1164,102 +1137,94 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl { for (Soggetto soggetto : soggettiDaInvalidare) { soggetto.setRimosso(true); soggetto.setDtDataRimozione(now); - soggetto = updateSoggetto(soggetto); } List soggettiDaRivalidare = getRivalidatedTmpByIntPratica(intPraticaId); for (Soggetto soggetto : soggettiDaRivalidare) { soggetto.setRimosso(false); soggetto.setDtDataRimozione(null); - soggetto = updateSoggetto(soggetto); } } + @SuppressWarnings("unchecked") + @Override public List getSoggettiSostituitiIds(long intPraticaId) throws SystemException { DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil .property("soggettoSostituitoId"))); - List ids = soggettoPersistence.findWithDynamicQuery(dynamicQuery); - return ids; + return soggettoPersistence.findWithDynamicQuery(dynamicQuery); } - public Soggetto validaSoggetto(long soggettoId, long dettPraticaId) throws SystemException, - PortalException { + @Override + public Soggetto validaSoggetto(long soggettoId, long dettPraticaId) throws SystemException, PortalException { Soggetto soggetto = soggettoPersistence.findByPrimaryKey(soggettoId); - soggetto.setDettPraticaIdRimozione(0l); - + soggetto.setDettPraticaIdRimozione(0L); if (!SoggettiUtil.hasSoggettoPrincipale(dettPraticaId, soggetto.getTipologiaSoggetto())) { updatePrincipale(dettPraticaId, soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); } - return soggettoLocalService.updateSoggetto(soggetto); + return updateSoggetto(soggetto); } + @Override public Soggetto invalidaSoggetto(long soggettoId, long dettPraticaIdRimozione) throws SystemException, PortalException { Soggetto soggetto = soggettoPersistence.findByPrimaryKey(soggettoId); - - // setto solo il dettPraticaRimozione. La rimozione diventa definitiva - // al completamento della variante + // setto solo il dettPraticaRimozione. La rimozione diventa definitiva al completamento della variante soggetto.setDettPraticaIdRimozione(dettPraticaIdRimozione); if (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPraticaIdRimozione)) { updatePrincipale(dettPraticaIdRimozione, StringPool.BLANK, soggetto.getTipologiaSoggetto()); } - return soggettoLocalService.updateSoggetto(soggetto); + return updateSoggetto(soggetto); } - public Soggetto invalidaESostituisciSoggetto(long soggettoId, long dettPraticaIdRimozione, - long sostituitoDa) throws SystemException, PortalException { + @Override + public Soggetto invalidaESostituisciSoggetto(long soggettoId, long dettPraticaIdRimozione, long sostituitoDa) + throws SystemException, PortalException { Soggetto soggetto = invalidaSoggetto(soggettoId, dettPraticaIdRimozione); soggetto.setSostituitoDa(sostituitoDa); - return soggettoLocalService.updateSoggetto(soggetto); + return updateSoggetto(soggetto); } + @Override public Soggetto allegaFileModifica(long soggettoId, long userId, long intPraticaId, byte[] content, - String sourceFileName, String jsonFirmatari, ServiceContext serviceContext) - throws SystemException, PortalException { + String sourceFileName, String jsonFirmatari, ServiceContext serviceContext) throws SystemException, + PortalException { Date now = new Date(); - Soggetto soggetto = soggettoPersistence.findByPrimaryKey(soggettoId); if (Validator.isNotNull(soggetto.getFileVariazioneId())) { docPraticaLocalService.deleteDocPratica(soggetto.getFileVariazioneId()); } - - DocPratica allegatoInserimento = docPraticaLocalService.addDocPratica(userId, - Soggetto.class.getName(), soggetto.getDettPraticaId(), intPraticaId, content, sourceFileName, + DocPratica allegatoInserimento = docPraticaLocalService.addDocPratica(userId, Soggetto.class.getName(), + soggetto.getDettPraticaId(), intPraticaId, content, sourceFileName, DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_VARIAZIONE_SOGGETTO, jsonFirmatari, serviceContext); soggetto.setModifiedDate(now); soggetto.setFileVariazioneId(allegatoInserimento.getDocPraticaId()); soggetto.setTmp(false); - if (Validator.isNotNull(soggetto.getSoggettoSostituitoId())) { invalidaESostituisciSoggetto(soggetto.getSoggettoSostituitoId(), soggetto.getDettPraticaId(), soggetto.getSoggettoId()); } - if (!SoggettiUtil.hasSoggettoPrincipale(soggetto.getDettPraticaId(), soggetto.getTipologiaSoggetto())) { - updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), - soggetto.getTipologiaSoggetto()); + updatePrincipale(soggetto.getDettPraticaId(), soggetto.getCodiceFiscale(), soggetto.getTipologiaSoggetto()); } - - soggetto = soggettoLocalService.updateSoggetto(soggetto); - + soggetto = updateSoggetto(soggetto); return soggetto; - } + @SuppressWarnings("unchecked") + @Override public List getSoggettiByIntPraticaId_DtRimozioneNull(long intPraticaId) throws SystemException { - DynamicQuery dynamicQuery = soggettoLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtDataRimozione")); - - return soggettoLocalService.dynamicQuery(dynamicQuery); + return dynamicQuery(dynamicQuery); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoServiceImpl.java index 7ddb6b39..6f68899f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -28,13 +28,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the soggetto remote 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.liferay.portos.bo.service.SoggettoService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.SoggettoService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -42,221 +41,248 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.SoggettoServiceUtil */ public class SoggettoServiceImpl extends SoggettoServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.SoggettoServiceUtil} to access the soggetto remote service. - */ - - public Soggetto getSoggetto(long soggettoId) throws PortalException, SystemException { - - Soggetto soggetto = soggettoLocalService.getSoggetto(soggettoId); - DettPraticaEntryPermission.check(getPermissionChecker(), soggetto.getDettPraticaId(), ActionKeys.VIEW); - return soggetto; - } - - - public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome, - String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, String provinciaNascita, - String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, String provinciaDomicilio, - String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, String comune, - String comuneEstero, String provincia, String via, String numeroCivico, String cap, String denominazione, - String sedeLegale, String legaleRap, Date dataNascitaRap, String provinciaNascitaRap, String comuneNascitaRap, - String viaRap, String numeroCivicoRap, String capRap, String provinciaRap, String comuneRap, - String comuneRapEstero, String albo, String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, - String telefono, String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, - String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, - Date dtDataRimozione, long soggettoSostituitoId, long oldSoggettoId, boolean tmp, ServiceContext serviceContext) - throws PortalException, SystemException { - - // TODO: permessi - return soggettoLocalService.addSoggetto(userId, dettPraticaId, intPraticaId, nome, cognome, codiceFiscale, - codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, comuneDomicilio, comuneDomicilioEstero, - provinciaDomicilio, viaDomicilio, numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, - provincia, via, numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap, - comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, - regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto,tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, - ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId, - oldSoggettoId, tmp, serviceContext); - } - - // public Soggetto cloneSoggetto(long userId, long dettPraticaId, long intPraticaId, Soggetto - // soggettoToClone, - // ServiceContext serviceContext) throws PortalException, SystemException { - // return soggettoLocalService.cloneSoggetto(userId, dettPraticaId, intPraticaId, soggettoToClone, - // serviceContext); - // } - - public Soggetto deleteSoggetto(Soggetto soggetto) throws PortalException, SystemException { - - // TODO: permessi - return soggettoLocalService.deleteSoggetto(soggetto); - } - - public Soggetto deleteSoggetto(long soggettoId) throws PortalException, SystemException { - - // TODO: permessi - return soggettoLocalService.deleteSoggetto(soggettoId); - } - - public Soggetto updateSoggetto(long userId, long soggettoId, long dettPraticaId, long intPraticaId, String nome, - String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, String provinciaNascita, - String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, String provinciaDomicilio, - String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, String comune, - String comuneEstero, String provincia, String via, String numeroCivico, String cap, String denominazione, - String sedeLegale, String legaleRap, Date dataNascitaRap, String provinciaNascitaRap, String comuneNascitaRap, - String viaRap, String numeroCivicoRap, String capRap, String provinciaRap, String comuneRap, - String comuneRapEstero, String albo, String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, - String telefono, String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, - String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, - Date dtDataRimozione, long soggettoSostituitoId, long oldSoggettoId, boolean tmp, ServiceContext serviceContext) - throws PortalException, SystemException { + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.SoggettoServiceUtil} to access the soggetto remote service. + */ + + @Override + public Soggetto getSoggetto(long soggettoId) throws PortalException, SystemException { + + Soggetto soggetto = soggettoLocalService.getSoggetto(soggettoId); + DettPraticaEntryPermission.check(getPermissionChecker(), soggetto.getDettPraticaId(), ActionKeys.VIEW); + return soggetto; + } + + @Override + public Soggetto addSoggetto(long userId, long dettPraticaId, long intPraticaId, String nome, String cognome, + String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, String provinciaNascita, + String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, String provinciaDomicilio, + String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, + String comune, String comuneEstero, String provincia, String via, String numeroCivico, String cap, + String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap, String provinciaNascitaRap, + String comuneNascitaRap, String viaRap, String numeroCivicoRap, String capRap, String provinciaRap, + String comuneRap, String comuneRapEstero, String albo, String alboDescr, String regAlbo, String provAlbo, + String numIscrAlbo, String telefono, String fax, String email, String tipologiaSoggetto, + String tipoAltroSoggetto, boolean aggiuntivo, boolean rimosso, String ambitoAttivita, + String ambitoProfessione, long intPraticaIdRimozione, long dettPraticaIdRimozione, Date dtDataRimozione, + long soggettoSostituitoId, boolean tmp, ServiceContext serviceContext) throws PortalException, + SystemException { + + // TODO: permessi + return soggettoLocalService.addSoggetto(userId, dettPraticaId, intPraticaId, nome, cognome, codiceFiscale, + codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, comuneDomicilio, + comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, numeroCivicoDomicilio, capDomicilio, + domicilioExtra, comune, comuneEstero, provincia, via, numeroCivico, cap, denominazione, sedeLegale, + legaleRap, dataNascitaRap, provinciaNascitaRap, comuneNascitaRap, viaRap, numeroCivicoRap, capRap, + provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, + fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, + ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, + soggettoSostituitoId, tmp, serviceContext); + } + + @Override + public Soggetto deleteSoggetto(Soggetto soggetto) throws PortalException, SystemException { + + // TODO: permessi + return soggettoLocalService.deleteSoggetto(soggetto); + } + + @Override + public Soggetto deleteSoggetto(long soggettoId) throws PortalException, SystemException { + + // TODO: permessi + return soggettoLocalService.deleteSoggetto(soggettoId); + } + + @Override + public Soggetto updateSoggetto(long userId, long soggettoId, long dettPraticaId, long intPraticaId, String nome, + String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita, + String provinciaNascita, String comuneNascita, String comuneDomicilio, String comuneDomicilioEstero, + String provinciaDomicilio, String viaDomicilio, String numeroCivicoDomicilio, String capDomicilio, + String domicilioExtra, String comune, String comuneEstero, String provincia, String via, + String numeroCivico, String cap, String denominazione, String sedeLegale, String legaleRap, + Date dataNascitaRap, String provinciaNascitaRap, String comuneNascitaRap, String viaRap, + String numeroCivicoRap, String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, + String albo, String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono, + String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo, + boolean rimosso, String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione, + long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, boolean tmp, + ServiceContext serviceContext) throws PortalException, SystemException { + + // TODO: permessi + return soggettoLocalService.updateSoggetto(userId, soggettoId, dettPraticaId, intPraticaId, nome, cognome, + codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, comuneDomicilio, + comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, numeroCivicoDomicilio, capDomicilio, + domicilioExtra, comune, comuneEstero, provincia, via, numeroCivico, cap, denominazione, sedeLegale, + legaleRap, dataNascitaRap, provinciaNascitaRap, comuneNascitaRap, viaRap, numeroCivicoRap, capRap, + provinciaRap, comuneRap, comuneRapEstero, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, + fax, email, tipologiaSoggetto, tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, + ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, + soggettoSostituitoId, tmp, serviceContext); + } + + @Override + public void updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) + throws PortalException, SystemException { + + soggettoLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); + } + + @Override + public List findByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) + throws SystemException { + + // TODO: permessi + return soggettoLocalService.findByIntPratica_TipologiaSoggetto(intPraticaId, tipologiaSoggetto); + } + + @Override + public List findByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto) + throws SystemException { + + // TODO: permessi + return soggettoLocalService.findByDettPratica_TipologiaSoggetto(dettPraticaId, tipologiaSoggetto); + } + + @Override + public List findByIntPratica_TipologiaSoggetto_Rimosso(long intPraticaId, String tipologiaSoggetto, + boolean rimosso) throws SystemException { + + // TODO: permessi + return soggettoLocalService + .findByIntPratica_TipologiaSoggetto_Rimosso(intPraticaId, tipologiaSoggetto, rimosso); + } + + @Override + public List findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(long intPraticaId, + String tipologiaSoggetto, long dettPraticaIdRimozione) throws SystemException { + + return soggettoLocalService.findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(intPraticaId, + tipologiaSoggetto, dettPraticaIdRimozione); + } + + @Override + public List getValidByIntPratica(long intPraticaId) throws SystemException { + + return soggettoLocalService.getValidByIntPratica(intPraticaId); + } + + @Override + public int countValidByIntPratica(long intPraticaId) throws SystemException { + + return soggettoLocalService.countValidByIntPratica(intPraticaId); + } + + @Override + public List getValidTmpByIntPratica(long intPraticaId) throws SystemException { + + return soggettoLocalService.getValidTmpByIntPratica(intPraticaId); + } - // TODO: permessi - return soggettoLocalService.updateSoggetto(userId, soggettoId, dettPraticaId, intPraticaId, nome, cognome, - codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita, comuneDomicilio, - comuneDomicilioEstero, provinciaDomicilio, viaDomicilio, numeroCivicoDomicilio, capDomicilio, domicilioExtra, - comune, comuneEstero, provincia, via, numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, - provinciaNascitaRap, comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, - comuneRapEstero, albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto,tipoAltroSoggetto, - aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione, intPraticaIdRimozione, dettPraticaIdRimozione, - dtDataRimozione, soggettoSostituitoId, oldSoggettoId, tmp, serviceContext); - } + @Override + public int countValidTmpByIntPratica(long intPraticaId) throws SystemException { - public void updatePrincipale(long dettPraticaId, String codiceFiscale, String tipologiaSoggetto) - throws PortalException, SystemException { + return soggettoLocalService.countValidTmpByIntPratica(intPraticaId); + } + + @Override + public List getValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, + long docDettPraticaId) throws SystemException { + + return soggettoLocalService + .getValidTmpByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, docDettPraticaId); + } + + @Override + public int countValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, long docDettPraticaId) + throws SystemException { + + return soggettoLocalService.countValidTmpByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, + docDettPraticaId); + } - soggettoLocalService.updatePrincipale(dettPraticaId, codiceFiscale, tipologiaSoggetto); - } + @Override + public List getValidByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) + throws SystemException { - public List findByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) - throws SystemException { + return soggettoLocalService.getValidByIntPratica_TipologiaSoggetto(intPraticaId, tipologiaSoggetto); + } - // TODO: permessi - return soggettoLocalService.findByIntPratica_TipologiaSoggetto(intPraticaId, tipologiaSoggetto); - } + @Override + public List getValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) + throws SystemException { - public List findByDettPratica_TipologiaSoggetto(long dettPraticaId, String tipologiaSoggetto) - throws SystemException { + return soggettoLocalService.getValidTmpByIntPratica_TipologiaSoggetto(intPraticaId, tipologiaSoggetto); + } - // TODO: permessi - return soggettoLocalService.findByDettPratica_TipologiaSoggetto(dettPraticaId, tipologiaSoggetto); - } + @Override + public List getInvalidByIntPratica(long intPraticaId) throws SystemException { - public List findByIntPratica_TipologiaSoggetto_Rimosso(long intPraticaId, String tipologiaSoggetto, - boolean rimosso) throws SystemException { + return soggettoLocalService.getInvalidByIntPratica(intPraticaId); + } - // TODO: permessi - return soggettoLocalService.findByIntPratica_TipologiaSoggetto_Rimosso(intPraticaId, tipologiaSoggetto, rimosso); - } + @Override + public List getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { - public List findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(long intPraticaId, - String tipologiaSoggetto, long dettPraticaIdRimozione) throws SystemException { + return soggettoLocalService.getInvalidTmpByIntPratica(intPraticaId); + } - return soggettoLocalService.findByIntPratica_TipologiaSoggetto_DettPraticaIdRimozione(intPraticaId, - tipologiaSoggetto, dettPraticaIdRimozione); - } + @Override + public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) + throws SystemException { - public List getValidByIntPratica(long intPraticaId) throws SystemException { + return soggettoLocalService.getValidUntilDettPraticaByIntPratica(intPraticaId, dettPraticaId); + } - return soggettoLocalService.getValidByIntPratica(intPraticaId); - } - - public int countValidByIntPratica(long intPraticaId) throws SystemException { - - return soggettoLocalService.countValidByIntPratica(intPraticaId); - } - - public List getValidTmpByIntPratica(long intPraticaId) throws SystemException { - - return soggettoLocalService.getValidTmpByIntPratica(intPraticaId); - } - - public int countValidTmpByIntPratica(long intPraticaId) throws SystemException { - - return soggettoLocalService.countValidTmpByIntPratica(intPraticaId); - } - - public List getValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, - long docDettPraticaId) throws SystemException { - - return soggettoLocalService.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, docDettPraticaId); - } - - public int countValidTmpByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, long docDettPraticaId) - throws SystemException { - - return soggettoLocalService.countValidTmpByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, docDettPraticaId); - } - - public List getValidByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) - throws SystemException { - - return soggettoLocalService.getValidByIntPratica_TipologiaSoggetto(intPraticaId, tipologiaSoggetto); - } - - public List getValidTmpByIntPratica_TipologiaSoggetto(long intPraticaId, String tipologiaSoggetto) - throws SystemException { - - return soggettoLocalService.getValidTmpByIntPratica_TipologiaSoggetto(intPraticaId, tipologiaSoggetto); - } - - public List getInvalidByIntPratica(long intPraticaId) throws SystemException { - - return soggettoLocalService.getInvalidByIntPratica(intPraticaId); - } - - public List getInvalidTmpByIntPratica(long intPraticaId) throws SystemException { - - return soggettoLocalService.getInvalidTmpByIntPratica(intPraticaId); - } - - public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) - throws SystemException { - - return soggettoLocalService.getValidUntilDettPraticaByIntPratica(intPraticaId, dettPraticaId); - } - - public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId, + @Override + public List getValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId, String tipologiaSoggetto) throws SystemException { - return soggettoLocalService.getValidUntilDettPraticaByIntPratica(intPraticaId, dettPraticaId, tipologiaSoggetto); - } - - public int countValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) throws SystemException { + return soggettoLocalService + .getValidUntilDettPraticaByIntPratica(intPraticaId, dettPraticaId, tipologiaSoggetto); + } - return soggettoLocalService.countValidUntilDettPraticaByIntPratica(intPraticaId, dettPraticaId); - } + @Override + public int countValidUntilDettPraticaByIntPratica(long intPraticaId, long dettPraticaId) throws SystemException { - public List findByIntPratica(long intPraticaId) throws SystemException { + return soggettoLocalService.countValidUntilDettPraticaByIntPratica(intPraticaId, dettPraticaId); + } - // TODO: permessi - return soggettoLocalService.findByIntPratica(intPraticaId); - } + @Override + public List findByIntPratica(long intPraticaId) throws SystemException { - public int countByIntPratica(long intPraticaId) throws SystemException { + // TODO: permessi + return soggettoLocalService.findByIntPratica(intPraticaId); + } - // TODO: permessi - return soggettoLocalService.countByIntPratica(intPraticaId); - } + @Override + public int countByIntPratica(long intPraticaId) throws SystemException { - public List findByDettPratica(long dettPraticaId) throws SystemException { + // TODO: permessi + return soggettoLocalService.countByIntPratica(intPraticaId); + } - // TODO: permessi - return soggettoLocalService.findByDettPratica(dettPraticaId); - } + @Override + public List findByDettPratica(long dettPraticaId) throws SystemException { - public int countByDettPratica(long dettPraticaId) throws SystemException { + // TODO: permessi + return soggettoLocalService.findByDettPratica(dettPraticaId); + } - return soggettoLocalService.countByDettPratica(dettPraticaId); - } + @Override + public int countByDettPratica(long dettPraticaId) throws SystemException { - public Soggetto allegaFileModifica(long soggettoId, long userId, long intPraticaId, byte[] content, - String sourceFileName, String jsonFirmatari, ServiceContext serviceContext) throws SystemException, - PortalException { + return soggettoLocalService.countByDettPratica(dettPraticaId); + } - // TODO permessi - return soggettoLocalService.allegaFileModifica(soggettoId, userId, intPraticaId, content, sourceFileName, - jsonFirmatari, serviceContext); - } + @Override + public Soggetto allegaFileModifica(long soggettoId, long userId, long intPraticaId, byte[] content, + String sourceFileName, String jsonFirmatari, ServiceContext serviceContext) throws SystemException, + PortalException { + // TODO permessi + return soggettoLocalService.allegaFileModifica(soggettoId, userId, intPraticaId, content, sourceFileName, + jsonFirmatari, serviceContext); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioLocalServiceImpl.java deleted file mode 100644 index 0a91ee76..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioLocalServiceImpl.java +++ /dev/null @@ -1,409 +0,0 @@ -/** - * 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.liferay.portos.bo.service.impl; - -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.service.base.SorteggioLocalServiceBaseImpl; - -import java.util.Date; -import java.util.List; - -import com.liferay.portal.kernel.dao.orm.DynamicQuery; -import com.liferay.portal.kernel.dao.orm.Junction; -import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; -import com.liferay.portal.kernel.dao.orm.ProjectionFactoryUtil; -import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; -import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.service.ServiceContext; -import com.liferay.util.dao.orm.CustomSQLUtil; - -/** - * The implementation of the sorteggio 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.liferay.portos.bo.service.SorteggioLocalService} 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. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.base.SorteggioLocalServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil - */ -public class SorteggioLocalServiceImpl extends SorteggioLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil} to - * access the sorteggio local service. - */ - - public Sorteggio addSorteggio(long intPraticaId, long dettPraticaId, String anno, String mese, - int settimana, Date dtSorteggio, String note, String stato, String dettagli, - long numeroEstrazione, String pratica, String committente, String comune, String provincia, - boolean esterna, long praticaEsternaId, boolean mesePrecedente, ServiceContext serviceContext) - throws SystemException { - - User user = userLocalService.fetchUser(serviceContext.getUserId()); - - Date now = new Date(); - - Sorteggio sorteggio = sorteggioLocalService.createSorteggio(counterLocalService - .increment(Sorteggio.class.getName())); - - sorteggio.setCompanyId(serviceContext.getCompanyId()); - sorteggio.setGroupId(serviceContext.getScopeGroupId()); - sorteggio.setUserId(serviceContext.getUserId()); - sorteggio.setUserName(user.getFullName()); - sorteggio.setCreateDate(serviceContext.getCreateDate(now)); - sorteggio.setModifiedDate(serviceContext.getModifiedDate(now)); - - sorteggio.setAnno(anno); - sorteggio.setMese(mese); - sorteggio.setSettimana(settimana); - sorteggio.setDtSorteggio(dtSorteggio); - sorteggio.setDettPraticaId(dettPraticaId); - sorteggio.setIntPraticaId(intPraticaId); - sorteggio.setNote(note); - sorteggio.setDettagli(dettagli); - sorteggio.setStato(stato); - - sorteggio.setNumeroEstrazione(numeroEstrazione); - sorteggio.setPratica(pratica); - sorteggio.setCommittente(committente); - sorteggio.setComune(comune); - sorteggio.setProvincia(provincia); - - sorteggio.setMesePrecedente(Boolean.toString(mesePrecedente)); - - // in avvio in draft -> pratiche sempre controllate nella loro vita - sorteggio.setStatus(WorkflowConstants.STATUS_DRAFT); - - sorteggio.setEsterna(esterna); - sorteggio.setPraticaEsternaId(praticaEsternaId); - - return sorteggioLocalService.addSorteggio(sorteggio); - } - - public Sorteggio addSorteggioForImport(long intPraticaId, long dettPraticaId, String anno, String mese, - int settimana, Date dtSorteggio, String note, String stato, String dettagli, - long numeroEstrazione, String pratica, String committente, String comune, String provincia, - boolean esterna, long praticaEsternaId, boolean mesePrecedente, int status, long oldSorteggioId, - ServiceContext serviceContext) throws SystemException { - - Date now = new Date(); - - Sorteggio sorteggio = sorteggioLocalService.createSorteggio(counterLocalService - .increment(Sorteggio.class.getName())); - - sorteggio.setCompanyId(serviceContext.getCompanyId()); - sorteggio.setGroupId(serviceContext.getScopeGroupId()); - sorteggio.setUserId(serviceContext.getUserId()); - if (serviceContext.getUserId() > 0) { - User user = userLocalService.fetchUser(serviceContext.getUserId()); - sorteggio.setUserName(user.getFullName()); - } - sorteggio.setCreateDate(serviceContext.getCreateDate(now)); - sorteggio.setModifiedDate(serviceContext.getModifiedDate(now)); - - sorteggio.setAnno(anno); - sorteggio.setMese(mese); - sorteggio.setSettimana(settimana); - sorteggio.setDtSorteggio(dtSorteggio); - sorteggio.setDettPraticaId(dettPraticaId); - sorteggio.setIntPraticaId(intPraticaId); - sorteggio.setNote(note); - sorteggio.setDettagli(dettagli); - sorteggio.setStato(stato); - - sorteggio.setNumeroEstrazione(numeroEstrazione); - sorteggio.setPratica(pratica); - sorteggio.setCommittente(committente); - sorteggio.setComune(comune); - sorteggio.setProvincia(provincia); - - sorteggio.setMesePrecedente(Boolean.toString(mesePrecedente)); - sorteggio.setStatus(status); - - sorteggio.setEsterna(esterna); - sorteggio.setPraticaEsternaId(praticaEsternaId); - sorteggio.setOldSorteggioId(oldSorteggioId); - - return sorteggioLocalService.addSorteggio(sorteggio); - } - - public List getYears(Long groupId, int lastResults) throws SystemException { - - DynamicQuery dynamicQuery = sorteggioLocalService.dynamicQuery(); - dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("anno")); - if (Validator.isNotNull(groupId)) { - dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(groupId)); - } - dynamicQuery.addOrder(OrderFactoryUtil.desc("anno")); - return sorteggioPersistence.findWithDynamicQuery(dynamicQuery, 0, lastResults); - } - - public int countDettPraticaWorkflowNonAvviato() throws SystemException { - - DynamicQuery dynamicQuery = dynamicQueryDettPraticaWorkflowNonAvviato(); - return (int) sorteggioPersistence.countWithDynamicQuery(dynamicQuery); - } - - public List getDettPraticaWorkflowNonAvviato(int start, int end) throws SystemException { - - DynamicQuery dynamicQuery = dynamicQueryDettPraticaWorkflowNonAvviato(); - dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("dettPraticaId")); - return sorteggioPersistence.findWithDynamicQuery(dynamicQuery); - } - - private DynamicQuery dynamicQueryDettPraticaWorkflowNonAvviato() { - - DynamicQuery dynamicQuery = sorteggioLocalService.dynamicQuery(); - dynamicQuery.add(PropertyFactoryUtil.forName("status").eq(WorkflowConstants.STATUS_DRAFT)); - dynamicQuery.add(PropertyFactoryUtil.forName("esterna").eq(false)); - return dynamicQuery; - } - - public List search(long groupId, String anno, String mese, int settimana, int start, int end) - throws SystemException { - - // Task 31433 - DynamicQuery dynamicQuery = searchDynamicQuery(groupId, anno, mese, settimana, null, null, null, - null, null, null); - dynamicQuery.addOrder(OrderFactoryUtil.desc("anno")); - dynamicQuery.addOrder(OrderFactoryUtil.desc("mese")); - return sorteggioPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - public int countSearch(long groupId, String anno, String mese, int settimana) throws SystemException { - - return (int) sorteggioPersistence.countWithDynamicQuery(searchDynamicQuery(groupId, anno, mese, - settimana, null, null, null, - // Task 31433 - null, null, null)); - } - - // Task 31433 - public List search(String anno, String mese, int settimana, String committente, - String tecnico, String comune, String pratica, Long numeroEstrazione, String provincia, - int start, int end) throws SystemException { - - // Task 31433 - DynamicQuery dynamicQuery = searchDynamicQuery(null, anno, mese, settimana, committente, tecnico, - comune, pratica, numeroEstrazione, provincia); - dynamicQuery.addOrder(OrderFactoryUtil.desc("anno")); - dynamicQuery.addOrder(OrderFactoryUtil.desc("mese")); - dynamicQuery.addOrder(OrderFactoryUtil.asc("provincia")); - dynamicQuery.addOrder(OrderFactoryUtil.asc("comune")); - dynamicQuery.addOrder(OrderFactoryUtil.asc("numeroEstrazione")); - return sorteggioPersistence.findWithDynamicQuery(dynamicQuery, start, end); - } - - // Task 31433 - public int countSearch(String anno, String mese, int settimana, String committente, String tecnico, - String comune, String pratica, Long numeroEstrazione, String provincia) throws SystemException { - - // Task 31433 - return (int) sorteggioPersistence.countWithDynamicQuery(searchDynamicQuery(null, anno, mese, - settimana, committente, tecnico, comune, pratica, numeroEstrazione, provincia)); - } - - private DynamicQuery searchDynamicQuery(Long groupId, String anno, String mese, int settimana, - String committente, String tecnico, String comune, String pratica, Long numeroEstrazione, - String provincia) { - - DynamicQuery dynamicQuery = sorteggioLocalService.dynamicQuery(); - - if (Validator.isNotNull(groupId)) { - dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(groupId)); - } - - if (Validator.isNotNull(anno)) { - dynamicQuery.add(PropertyFactoryUtil.forName("anno").eq(anno)); - } - if (Validator.isNotNull(mese)) { - dynamicQuery.add(PropertyFactoryUtil.forName("mese").eq(mese)); - } - if (settimana > 0) { - dynamicQuery.add(PropertyFactoryUtil.forName("settimana").eq(settimana)); - } - if (Validator.isNotNull(committente)) { - String[] keywords = CustomSQLUtil.keywords(committente); - Junction or = RestrictionsFactoryUtil.disjunction(); - for (String keyword : keywords) { - or.add(RestrictionsFactoryUtil.ilike("committente", keyword)); - } - dynamicQuery.add(or); - } - if (Validator.isNotNull(tecnico)) { - String[] keywords = CustomSQLUtil.keywords(tecnico); - Junction or = RestrictionsFactoryUtil.disjunction(); - for (String keyword : keywords) { - or.add(RestrictionsFactoryUtil.ilike("tecnico", keyword)); - } - dynamicQuery.add(or); - } - if (Validator.isNotNull(comune)) { - dynamicQuery.add(RestrictionsFactoryUtil.ilike("comune", comune)); - } - if (Validator.isNotNull(pratica)) { - dynamicQuery.add(PropertyFactoryUtil.forName("pratica").eq(pratica)); - } - if (Validator.isNotNull(numeroEstrazione)) { - dynamicQuery.add(PropertyFactoryUtil.forName("numeroEstrazione").eq(numeroEstrazione)); - } - - // Task 31433 - if (Validator.isNotNull(provincia)) { - dynamicQuery.add(RestrictionsFactoryUtil.ilike("provincia", provincia)); - } - - return dynamicQuery; - } - - public boolean isDettPraticaSorteggiata(long companyId, long dettPraticaId) throws SystemException { - - int count = sorteggioPersistence.countByC_DettPratica(companyId, dettPraticaId); - return count > 0; - } - - public Sorteggio fetchByOldSorteggioId(long oldSorteggioId) throws SystemException { - - return sorteggioPersistence.fetchByOldSorteggioId(oldSorteggioId); - } - - public Sorteggio findByC_DettPratica(long companyId, long dettPraticaId) throws SystemException { - - List dettPraticas = sorteggioPersistence.findByC_DettPratica(companyId, dettPraticaId, 0, - 1); - return dettPraticas != null && !dettPraticas.isEmpty() ? dettPraticas.get(0) : null; - } - - public Sorteggio findByIntPratica(long intPraticaId) throws SystemException { - - // XXX verificare se torna uno o più - List sorteggis = sorteggioPersistence.findByIntPraticaId(intPraticaId); - return sorteggis != null && !sorteggis.isEmpty() ? sorteggis.get(0) : null; - } - - /* - * FIXME public Sorteggio updateStatus(long userId, long resourcePk, - * ServiceContext serviceContext, int status) throws PortalException, - * SystemException { User user = userLocalService.getUser(userId); Sorteggio - * sorteggio = - * sorteggioLocalService.findByC_DettPratica(serviceContext.getCompanyId(), - * resourcePk); sorteggio.setStatus(status); - * sorteggio.setStatusByUserId(userId); - * sorteggio.setStatusByUserName(user.getFullName()); - * sorteggio.setStatusDate(serviceContext.getModifiedDate()); return - * sorteggioLocalService.updateSorteggio(sorteggio); } public Sorteggio - * updateSorteggioTecnico(long companyId, long dettPraticaId, String - * tecnico) throws PortalException, SystemException { Sorteggio sorteggio = - * sorteggioLocalService.findByC_DettPratica(companyId, dettPraticaId); - * sorteggio.setTecnico(tecnico); return - * sorteggioLocalService.updateSorteggio(sorteggio); } - */ - - public List findByGroupId_Anno_Mese_Settimana(long groupId, String anno, String mese, - int settimana) throws SystemException { - - return sorteggioPersistence.findByGroupId_Anno_Mese_Settimana(groupId, anno, mese, settimana); - } - - public List findByCompanyIdGroupId(long companyId, long groupId) throws SystemException { - return sorteggioPersistence.findByC_GroupId(companyId, groupId); - } - - public List findByAnno_Mese_Settimana(String anno, String mese, int settimana) - throws SystemException { - - return sorteggioPersistence.findByAnno_Mese_Settimana(anno, mese, settimana); - } - - /* - * Finder - */ - - public List findSorteggiGroupByAnnoMeseSettimana(int start, int end) throws SystemException { - - return sorteggioFinder.findSorteggiGroupByAnnoMeseSettimana(start, end); - } - - public int countSorteggiGroupByAnnoMeseSettimana() throws SystemException { - - return sorteggioFinder.countSorteggiGroupByAnnoMeseSettimana(); - } - - public int countSorteggioMese(Date dtMin, Date dtMax, List territorioIds, - List tipoPraticaIds) throws SystemException { - - return sorteggioFinder.countSorteggioMese(dtMin, dtMax, territorioIds, tipoPraticaIds); - } - - public List findSorteggioMese(Date dtMin, Date dtMax, List territorioIds, - List tipoPraticaIds, List statiPratica, int maxResults) throws SystemException { - - return sorteggioFinder.findSorteggioMese(dtMin, dtMax, territorioIds, tipoPraticaIds, statiPratica, - maxResults); - } - - public List findSorteggioAnno(Date dtMin, Date dtMax, List territorioIds, - List tipoPraticaIds, List statiPratica, int maxResults) throws SystemException { - - return sorteggioFinder.findSorteggioAnno(dtMin, dtMax, territorioIds, tipoPraticaIds, statiPratica, - maxResults); - } - - public void updateDataSorteggioPraticaEsterna(long praticaEsternaId, Date dataSorteggio) - throws SystemException { - - sorteggioFinder.updateDataSorteggioPraticaEsterna(praticaEsternaId, dataSorteggio); - } - - public String getTecnicoSorteggioPraticaEsterna(long praticaEsternaId) throws SystemException { - - return sorteggioFinder.findTecnicoSorteggioPraticaEsterna(praticaEsternaId); - } - - public long findTipoPraticaIdSorteggioPraticaEsterna(long praticaEsternaId) throws SystemException { - - return sorteggioFinder.findTipoPraticaIdSorteggioPraticaEsterna(praticaEsternaId); - - } - - // Bug 32653 - public List search(Long groupId, String anno, String mese, int settimana, String committente, - String tecnico, String comune, String pratica, Long numeroEstrazione, String provincia, - int start, int end) throws SystemException { - - return sorteggioFinder.search(groupId, anno, mese, settimana, committente, tecnico, comune, pratica, - numeroEstrazione, provincia, start, end); - } - - // Bug 32653 - public int count(Long groupId, String anno, String mese, int settimana, String committente, - String tecnico, String comune, String pratica, Long numeroEstrazione, String provincia) - throws SystemException { - - return sorteggioFinder.count(groupId, anno, mese, settimana, committente, tecnico, comune, pratica, - numeroEstrazione, provincia); - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioServiceImpl.java deleted file mode 100644 index ec90713d..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioServiceImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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.liferay.portos.bo.service.impl; - -import it.tref.liferay.portos.bo.service.base.SorteggioServiceBaseImpl; - -/** - * The implementation of the sorteggio remote 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.liferay.portos.bo.service.SorteggioService} interface. - * - *

- * This is a remote service. Methods of this service are expected to have security checks based on - * the propagated JAAS credentials because this service can be accessed remotely. - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see it.tref.liferay.portos.bo.service.base.SorteggioServiceBaseImpl - * @see it.tref.liferay.portos.bo.service.SorteggioServiceUtil - */ -public class SorteggioServiceImpl extends SorteggioServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.SorteggioServiceUtil} to access the sorteggio remote service. - */ - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaLocalServiceImpl.java index d4784d09..fb7858cd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -27,13 +27,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the storico soggetto pratica 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.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -41,82 +40,42 @@ import com.liferay.portal.service.ServiceContext; * @see it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil */ public class StoricoSoggettoPraticaLocalServiceImpl extends StoricoSoggettoPraticaLocalServiceBaseImpl { - /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil} to access the storico - * soggetto pratica local service. - */ - public StoricoSoggettoPratica addStoricoSoggettoPratica(long intPraticaId, String nome, String cognome, - String codiceFiscale, ServiceContext serviceContext) throws PortalException, SystemException { - - User user = userLocalService.getUser(serviceContext.getUserId()); - - Date now = new Date(); - - StoricoSoggettoPratica storicoSoggettoPratica = - storicoSoggettoPraticaLocalService.createStoricoSoggettoPratica(counterLocalService.increment(StoricoSoggettoPratica.class.getName())); - - storicoSoggettoPratica.setCompanyId(serviceContext.getCompanyId()); - storicoSoggettoPratica.setGroupId(serviceContext.getScopeGroupId()); - storicoSoggettoPratica.setUserId(serviceContext.getUserId()); - storicoSoggettoPratica.setUserName(user.getFullName()); - storicoSoggettoPratica.setCreateDate(serviceContext.getCreateDate(now)); - storicoSoggettoPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - - storicoSoggettoPratica.setIntPraticaId(intPraticaId); - - storicoSoggettoPratica.setNome(nome); - storicoSoggettoPratica.setCognome(cognome); - storicoSoggettoPratica.setCodiceFiscale(codiceFiscale); - - return addStoricoSoggettoPratica(storicoSoggettoPratica); - } - - public StoricoSoggettoPratica addStoricoSoggettoPraticaForImport(long intPraticaId, String nome, String cognome, - String codiceFiscale, long oldStoricoSoggettoPraticaId, ServiceContext serviceContext) throws PortalException, - SystemException { - - Date now = new Date(); - - StoricoSoggettoPratica storicoSoggettoPratica = - storicoSoggettoPraticaLocalService.createStoricoSoggettoPratica(counterLocalService.increment(StoricoSoggettoPratica.class.getName())); - - storicoSoggettoPratica.setCompanyId(serviceContext.getCompanyId()); - storicoSoggettoPratica.setGroupId(serviceContext.getScopeGroupId()); - storicoSoggettoPratica.setUserId(serviceContext.getUserId()); - - if (serviceContext.getUserId() > 0) { - User user = userLocalService.getUser(serviceContext.getUserId()); - storicoSoggettoPratica.setUserName(user.getFullName()); - } - - storicoSoggettoPratica.setCreateDate(serviceContext.getCreateDate(now)); - storicoSoggettoPratica.setModifiedDate(serviceContext.getModifiedDate(now)); - - storicoSoggettoPratica.setIntPraticaId(intPraticaId); - - storicoSoggettoPratica.setNome(nome); - storicoSoggettoPratica.setCognome(cognome); - storicoSoggettoPratica.setCodiceFiscale(codiceFiscale); - storicoSoggettoPratica.setOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - - return addStoricoSoggettoPratica(storicoSoggettoPratica); - } - - public StoricoSoggettoPratica fetchByOldStoricoSoggettoPraticaId(long oldStoricoSoggettoPraticaId) - throws SystemException { - - return storicoSoggettoPraticaPersistence.fetchByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - } - - public List findByIntPratica(long companyId, long intPraticaId, int start, int end) - throws SystemException { - - return storicoSoggettoPraticaPersistence.findByC_IntPratica(companyId, intPraticaId, start, end); - } - - public int countByIntPratica(long companyId, long intPraticaId) throws SystemException { - - return storicoSoggettoPraticaPersistence.countByC_IntPratica(companyId, intPraticaId); - } + /* + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil} to access the storico soggetto pratica + * local service. + */ + @Override + public StoricoSoggettoPratica addStoricoSoggettoPratica(long intPraticaId, String nome, String cognome, + String codiceFiscale, ServiceContext serviceContext) throws PortalException, SystemException { + + User user = userLocalService.getUser(serviceContext.getUserId()); + Date now = new Date(); + StoricoSoggettoPratica storicoSoggettoPratica = storicoSoggettoPraticaLocalService + .createStoricoSoggettoPratica(counterLocalService.increment(StoricoSoggettoPratica.class.getName())); + storicoSoggettoPratica.setCompanyId(serviceContext.getCompanyId()); + storicoSoggettoPratica.setGroupId(serviceContext.getScopeGroupId()); + storicoSoggettoPratica.setUserId(serviceContext.getUserId()); + storicoSoggettoPratica.setUserName(user.getFullName()); + storicoSoggettoPratica.setCreateDate(serviceContext.getCreateDate(now)); + storicoSoggettoPratica.setModifiedDate(serviceContext.getModifiedDate(now)); + storicoSoggettoPratica.setIntPraticaId(intPraticaId); + storicoSoggettoPratica.setNome(nome); + storicoSoggettoPratica.setCognome(cognome); + storicoSoggettoPratica.setCodiceFiscale(codiceFiscale); + return addStoricoSoggettoPratica(storicoSoggettoPratica); + } + + @Override + public List findByIntPratica(long companyId, long intPraticaId, int start, int end) + throws SystemException { + + return storicoSoggettoPraticaPersistence.findByC_IntPratica(companyId, intPraticaId, start, end); + } + + @Override + public int countByIntPratica(long companyId, long intPraticaId) throws SystemException { + + return storicoSoggettoPraticaPersistence.countByC_IntPratica(companyId, intPraticaId); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaServiceImpl.java index c13421d2..25d998ac 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaServiceImpl.java @@ -1,14 +1,12 @@ /** * 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) + * 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 + * 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. */ @@ -20,21 +18,22 @@ import it.tref.liferay.portos.bo.service.base.StoricoSoggettoPraticaServiceBaseI * The implementation of the storico soggetto pratica remote 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.liferay.portos.bo.service.StoricoSoggettoPraticaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting * @see it.tref.liferay.portos.bo.service.base.StoricoSoggettoPraticaServiceBaseImpl * @see it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaServiceUtil */ -public class StoricoSoggettoPraticaServiceImpl - extends StoricoSoggettoPraticaServiceBaseImpl { +public class StoricoSoggettoPraticaServiceImpl extends StoricoSoggettoPraticaServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaServiceUtil} to access the storico soggetto pratica remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaServiceUtil} to access the storico soggetto pratica + * remote service. */ -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaLocalServiceImpl.java index 80e3ff5f..71d3cc2e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -19,6 +19,7 @@ import it.tref.liferay.portos.bo.model.impl.TempisticaImpl; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.TempisticaLocalServiceBaseImpl; +import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import java.text.SimpleDateFormat; @@ -37,6 +38,7 @@ 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.OrderByComparatorFactoryUtil; +import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.model.User; import com.liferay.portal.service.ServiceContext; @@ -44,13 +46,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the tempistica 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.liferay.portos.bo.service.TempisticaLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.TempisticaLocalService} 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 Davide Barbagallo, 3F Consulting @@ -60,206 +61,199 @@ import com.liferay.portal.service.ServiceContext; public class TempisticaLocalServiceImpl extends TempisticaLocalServiceBaseImpl { /* * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link - * it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil} to access the tempistica local - * service. + * it.tref.liferay.portos.bo.service.TempisticaLocalServiceUtil} to access the tempistica local service. */ private static Log _log = LogFactoryUtil.getLog(TempisticaLocalServiceImpl.class); + @Override public Tempistica addTempistica(long intPraticaId, long dettPraticaId, String tipo, Date start, ServiceContext serviceContext) throws SystemException { User user = userLocalService.fetchUser(serviceContext.getUserId()); - Date now = new Date(); - - Tempistica tempistica = - tempisticaLocalService.createTempistica(counterLocalService.increment(Tempistica.class.getName())); - + Tempistica tempistica = createTempistica(counterLocalService.increment(Tempistica.class.getName())); tempistica.setCompanyId(serviceContext.getCompanyId()); tempistica.setGroupId(serviceContext.getScopeGroupId()); tempistica.setUserId(serviceContext.getUserId()); tempistica.setUserName(user.getFullName()); tempistica.setCreateDate(serviceContext.getCreateDate(now)); tempistica.setModifiedDate(serviceContext.getModifiedDate(now)); - tempistica.setIntPraticaId(intPraticaId); tempistica.setDettPraticaId(dettPraticaId); tempistica.setTipo(tipo); tempistica.setStart(DateUtils.truncate(start, Calendar.DATE).getTime()); - - return tempisticaLocalService.addTempistica(tempistica); + return addTempistica(tempistica); } + @Override public Tempistica stopTempistica(long tempisticaId, Date stop) throws SystemException { - Tempistica tempistica = tempisticaLocalService.fetchTempistica(tempisticaId); + Tempistica tempistica = fetchTempistica(tempisticaId); tempistica.setStop(DateUtils.truncate(stop, Calendar.DATE).getTime()); - return tempisticaLocalService.updateTempistica(tempistica); + return updateTempistica(tempistica); } + @Override public Tempistica ravvioTempistica(long tempisticaId, Date date) throws SystemException { - Tempistica tempistica = tempisticaLocalService.fetchTempistica(tempisticaId); + Tempistica tempistica = fetchTempistica(tempisticaId); tempistica.setWait(tempistica.getWait() + (DateUtils.truncate(date, Calendar.DATE).getTime()) - tempistica.getStop()); tempistica.setStop(0L); - return tempisticaLocalService.updateTempistica(tempistica); + return updateTempistica(tempistica); } + @Override public Tempistica concludiTempistica(long tempisticaId, Date stop) throws SystemException { - Tempistica tempistica = tempisticaLocalService.fetchTempistica(tempisticaId); + Tempistica tempistica = fetchTempistica(tempisticaId); tempistica.setStop(DateUtils.truncate(stop, Calendar.DATE).getTime()); tempistica.setCompleto(true); - return tempisticaLocalService.updateTempistica(tempistica); + return updateTempistica(tempistica); } + @Override public Tempistica getTempistica(long companyId, long intPraticaId, String tipo, boolean completo) throws SystemException { - List tempistiche = - tempisticaPersistence.findByC_IntPratica_Tipo_Completo(companyId, intPraticaId, tipo, completo, 0, 1, - OrderByComparatorFactoryUtil.create(TempisticaImpl.TABLE_NAME, "createDate", false)); - return !tempistiche.isEmpty() ? tempistiche.get(0) : null; + List tempistiche = tempisticaPersistence.findByC_IntPratica_Tipo_Completo(companyId, intPraticaId, + tipo, completo, 0, 1, + OrderByComparatorFactoryUtil.create(TempisticaImpl.TABLE_NAME, "createDate", false)); + return tempistiche.isEmpty() ? null : tempistiche.get(0); } + @Override public int countScadenzePraticheInScadenza(long companyId, long groupId) { return tempisticaFinder.countScadenzePraticheInScadenza(companyId, groupId); } + @Override public int countScadenzePraticheScadute(long companyId, long groupId) { return tempisticaFinder.countScadenzePraticheScadute(companyId, groupId); } + @Override public int countScadenzeIntegrazioniScadute(long companyId, long groupId) { return tempisticaFinder.countScadenzeIntegrazioniScadute(companyId, groupId); } + @Override public int countPraticheAttive(long companyId, long groupId) { return tempisticaFinder.countPraticheAttive(companyId, groupId); } - //ADT - BUG-14 - Scadenziario - //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - public List getScadenzePratiche(long companyId, long groupId, int start, int end, Integer statoPratica, String tipoPratica, String istruttore) throws SystemException { - _log.info("getScadenzePratiche statoPratica="+statoPratica); + // ADT - BUG-14 - Scadenziario + // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + @Override + public List getScadenzePratiche(long companyId, long groupId, int start, int end, Integer statoPratica, + String tipoPratica, String istruttore) throws SystemException { + + _log.info("getScadenzePratiche statoPratica=" + statoPratica); return tempisticaFinder.scadenzePratiche(companyId, groupId, start, end, statoPratica, tipoPratica, istruttore); } - //ADT - BUG-14 - Scadenziario - //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + // ADT - BUG-14 - Scadenziario + // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + @Override public List getScadenzeIntegrazioni(long companyId, long groupId, int start, int end, Integer statoPratica) throws SystemException { return tempisticaFinder.scadenzeIntegrazioni(companyId, groupId, start, end, statoPratica); } - - //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - public int countScadenzePratiche(long companyId, long groupId, Integer statoPratica, String tipoPratica, String istruttore) throws SystemException { + + // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + @Override + public int countScadenzePratiche(long companyId, long groupId, Integer statoPratica, String tipoPratica, + String istruttore) throws SystemException { return tempisticaFinder.countScadenzePratiche(companyId, groupId, statoPratica, tipoPratica, istruttore); } + @Override public int countScadenzeIntegrazioni(long companyId, long groupId) throws SystemException { return tempisticaFinder.countScadenzeIntegrazioni(companyId, groupId); } - public Tempistica fetchByOldTempisticaId(long oldTempisticaId) throws SystemException { - - return tempisticaPersistence.fetchByOldTempisticaId(oldTempisticaId); - } - + @Override public List findByIntPratica_Tipo(long intPraticaId, String tipo) throws SystemException { return tempisticaPersistence.findByIntPratica_Tipo(intPraticaId, tipo); } + @Override public int countPraticheScaduteAutorizzazione(long companyId, long groupId) throws SystemException { return tempisticaFinder.countPraticheScaduteAutorizzazione(companyId, groupId); } - public int countPraticheScaduteSorteggiate(long companyId, long groupId) throws SystemException { - - return tempisticaFinder.countPraticheScaduteSorteggiate(companyId, groupId); - } - + @Override public int countPraticheScaduteControlloObbligatorio(long companyId, long groupId) throws SystemException { return tempisticaFinder.countPraticheScaduteControlloObbligatorio(companyId, groupId); } - + + @Override public int countPraticheInScadenzaAutorizzazioni(long companyId, long groupId) throws SystemException { return tempisticaFinder.countPraticheInScadenzaAutorizzazioni(companyId, groupId); } - public int countPraticheInScadenzaSorteggiate(long companyId, long groupId) throws SystemException { - - return tempisticaFinder.countPraticheInScadenzaSorteggiate(companyId, groupId); - } - + @Override public int countPraticheInScadenzaControlloObbligatorio(long companyId, long groupId) throws SystemException { return tempisticaFinder.countPraticheInScadenzaControlloObbligatorio(companyId, groupId); } - + + @Override public List praticheAttiveAutorizzazioni(long companyId, long groupId) throws SystemException { return tempisticaFinder.praticheAttiveAutorizzazioni(companyId, groupId); } - public List praticheAttiveSorteggiate(long companyId, long groupId) throws SystemException { - - return tempisticaFinder.praticheAttiveSorteggiate(companyId, groupId); - } - + @Override public List praticheAttiveControlloObbligatorio(long companyId, long groupId) throws SystemException { return tempisticaFinder.praticheAttiveControlloObbligatorio(companyId, groupId); } - public String getDtSottopostaAParere(long intPraticaId) throws SystemException{ - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - - ////////////////////ADT: BUG SCADENZARIO - DettPratica dettPratica=DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); - if (dettPratica!=null&&dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){ - Date d=dettPratica.getDtProtocollo(); - if (d!=null) + private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + + @Override + public String getDtSottopostaAParere(long intPraticaId) throws SystemException { + + // ADT: BUG SCADENZARIO + DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); + if (dettPratica != null && dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { + Date d = dettPratica.getDtProtocollo(); + if (d != null) { return sdf.format(d); + } } - ////////////// - - - DynamicQuery queryAvv = DynamicQueryFactoryUtil.forClass(Avviso.class); - queryAvv.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); - queryAvv.add(RestrictionsFactoryUtil.eq("tipoDocumento", "SP")); - queryAvv.add(RestrictionsFactoryUtil.eq("className", DettPratica.class.getName())); - - Order defaultOrder = OrderFactoryUtil.desc("createDate"); - queryAvv.addOrder(defaultOrder); - - List listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv); - if(listaAvv != null && !listaAvv.isEmpty()){ - return sdf.format(listaAvv.get(0).getDtInvio()); - } else { - return ""; - } - + queryAvv.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); + queryAvv.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.SOTTOPOSTA_A_PARERE)); + queryAvv.add(RestrictionsFactoryUtil.eq("className", DettPratica.class.getName())); + Order defaultOrder = OrderFactoryUtil.desc("createDate"); + queryAvv.addOrder(defaultOrder); + @SuppressWarnings("unchecked") + List listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv); + return listaAvv.isEmpty() ? StringPool.BLANK : sdf.format(listaAvv.get(0).getDtInvio()); } - - public List countPraticheAttivePerDiscriminazione(long companyId, long groupId){ + + @Override + public List countPraticheAttivePerDiscriminazione(long companyId, long groupId) { + return tempisticaFinder.countPraticheAttivePerDiscriminazione(companyId, groupId); } - - public List scadenzePraticheForBackwardCompatibility(long companyId, long groupId, int start, int end){ + + @Override + public List scadenzePraticheForBackwardCompatibility(long companyId, long groupId, int start, int end) { + return tempisticaFinder.scadenzePraticheForBackwardCompatibility(companyId, groupId, start, end); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaServiceImpl.java index 7b6bc9c0..a3d63cc4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TempisticaServiceImpl.java @@ -1,14 +1,12 @@ /** * 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) + * 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 + * 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. */ @@ -20,10 +18,12 @@ import it.tref.liferay.portos.bo.service.base.TempisticaServiceBaseImpl; * The implementation of the tempistica remote 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.liferay.portos.bo.service.TempisticaService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.TempisticaService} interface. * *

- * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Davide Barbagallo, 3F Consulting @@ -32,8 +32,7 @@ import it.tref.liferay.portos.bo.service.base.TempisticaServiceBaseImpl; */ public class TempisticaServiceImpl extends TempisticaServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: - * - * Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.TempisticaServiceUtil} to access the tempistica remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.TempisticaServiceUtil} to access the tempistica remote service. */ -} \ No newline at end of file +} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java index ae86f83b..08ebe465 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java @@ -1,13 +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 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. + * 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.bo.service.impl; @@ -36,14 +36,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the territorio 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.liferay.portos.bo.service.TerritorioLocalService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.TerritorioLocalService} 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 Davide Barbagallo, 3F Consulting @@ -52,16 +50,14 @@ import com.liferay.portal.service.ServiceContext; */ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { - public Territorio addTerritorio(long comuneId, long groupId, String codiceProvincia, String zona, - String fascia, boolean articolo61, Date dtIni, Date dtFin, String agMax, String agMin, - long oldTerritorioId, ServiceContext serviceContext) throws PortalException, SystemException { + @Override + public Territorio addTerritorio(long comuneId, long groupId, String codiceProvincia, String zona, String fascia, + boolean articolo61, Date dtIni, Date dtFin, String agMax, String agMin, ServiceContext serviceContext) + throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(serviceContext.getUserId()); - Date now = new Date(); - Territorio territorio = createTerritorio(counterLocalService.increment(Territorio.class.getName())); - territorio.setCompanyId(serviceContext.getCompanyId()); territorio.setUserId(serviceContext.getUserId()); territorio.setUserName(user.getFullName()); @@ -75,18 +71,15 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { territorio.setZona(zona); territorio.setFascia(fascia); territorio.setArticolo61(articolo61); - territorio.setOldTerritorioId(oldTerritorioId); - territorio.setDtIni(dtIni); territorio.setDtFin(dtFin); - return addTerritorio(territorio); } - public Territorio updateTerritorio(long territorioId, long groupId, long comuneId, - String codiceProvincia, String zona, String fascia, boolean articolo61, Date dtIni, Date dtFin, - String agMax, String agMin, ServiceContext serviceContext) throws PortalException, - SystemException { + @Override + public Territorio updateTerritorio(long territorioId, long groupId, long comuneId, String codiceProvincia, + String zona, String fascia, boolean articolo61, Date dtIni, Date dtFin, String agMax, String agMin, + ServiceContext serviceContext) throws PortalException, SystemException { User user = userPersistence.findByPrimaryKey(serviceContext.getUserId()); Date now = new Date(); @@ -108,17 +101,17 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { return updateTerritorio(territorio); } - public List getTerritori(long companyId, long groupId, int start, int end) - throws SystemException { + @Override + public List getTerritori(long companyId, long groupId, int start, int end) throws SystemException { if (groupId > 0) { return territorioPersistence.findByC_Group(companyId, groupId, start, end); } else { return territorioPersistence.findByC(companyId, start, end); } - } + @Override public int countTerritori(long companyId, long groupId) throws SystemException { if (groupId > 0) { @@ -128,55 +121,23 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { } } + @Override public List findByComuneId(long comuneId, int start, int end) throws SystemException { return territorioPersistence.findByComuneId(comuneId, start, end); } + @Override public List findByCompanyIdGroupId(long companyId, long groupId) throws SystemException { return territorioPersistence.findByC_Group(companyId, groupId); } - /* - * public List getComuniIds(long companyId, long groupId, int start, - * int end) throws SystemException { DynamicQuery dynamicQuery = - * territorioLocalService.dynamicQuery(); - * dynamicQuery.add(PropertyFactoryUtil.forName("companyId").eq(companyId)); - * dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(groupId)); - * dynamicQuery.setProjection - * (ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - * .property("comuneId"))); return - * territorioPersistence.findWithDynamicQuery(dynamicQuery, start, end); } - * public List getAllTerritorioGroup() throws SystemException{ - * DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); - * dynamicQuery - * .setProjection(ProjectionFactoryUtil.groupProperty("groupId")); return - * territorioPersistence.findWithDynamicQuery(dynamicQuery); } public - * List getTerritoriByGroupAndZona(long groupId, long zonaId) throws - * SystemException{ DynamicQuery dynamicQuery = - * getDynamicQueryTerritori(groupId, zonaId, null, true); return - * territorioPersistence.findWithDynamicQuery(dynamicQuery); } public - * List getTerritoriByGroupAndZonaAndFascia(long groupId, long zonaId, - * long fasciaId) throws SystemException{ DynamicQuery dynamicQuery = - * getDynamicQueryTerritori(groupId, zonaId, fasciaId, true); return - * territorioPersistence.findWithDynamicQuery(dynamicQuery); } private - * DynamicQuery getDynamicQueryTerritori(long groupId, long zonaId, Long - * fasciaId, boolean onlyIds) { DynamicQuery dynamicQuery = - * territorioLocalService.dynamicQuery(); - * dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(groupId)); - * dynamicQuery.add(PropertyFactoryUtil.forName("zonaId").eq(zonaId)); if - * (fasciaId != null) { - * dynamicQuery.add(PropertyFactoryUtil.forName("fasciaId").eq(fasciaId)); } - * if (onlyIds) { - * dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty - * ("territorioId")); } return dynamicQuery; } - */ + @SuppressWarnings("unchecked") + @Override public List getActiveProvince() throws SystemException { - DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); - dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil - .property("codiceProvincia"))); - + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("codiceProvincia"))); Junction and = RestrictionsFactoryUtil.conjunction(); Date date = new Date(); and.add(PropertyFactoryUtil.forName("groupId").ne(0l)); @@ -186,15 +147,15 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { or.add(PropertyFactoryUtil.forName("dtFin").ge(date)); and.add(or); dynamicQuery.add(and); - return territorioLocalService.dynamicQuery(dynamicQuery); - + return dynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getActiveComuniByCodiceProvincia(String codiceProvincia) throws SystemException { - DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); - dynamicQuery - .setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("comuneId"))); + DynamicQuery dynamicQuery = dynamicQuery(); + dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("comuneId"))); dynamicQuery.add(RestrictionsFactoryUtil.eq("codiceProvincia", codiceProvincia)); Junction and = RestrictionsFactoryUtil.conjunction(); Date date = new Date(); @@ -205,15 +166,15 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { or.add(PropertyFactoryUtil.forName("dtFin").ge(date)); and.add(or); dynamicQuery.add(and); - return territorioLocalService.dynamicQuery(dynamicQuery); - + return dynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getActiveTerritoriByComune(long comuneId) throws SystemException { - DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("comuneId").eq(comuneId)); - Junction and = RestrictionsFactoryUtil.conjunction(); Date date = new Date(); and.add(PropertyFactoryUtil.forName("groupId").ne(0l)); @@ -223,8 +184,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { or.add(PropertyFactoryUtil.forName("dtFin").ge(date)); and.add(or); dynamicQuery.add(and); - return territorioLocalService.dynamicQuery(dynamicQuery); - + return dynamicQuery(dynamicQuery); } @Override @@ -251,29 +211,28 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { } } - public Territorio findTerritorioByComuneIdGZonaFasciaDtIni(long comuneId, long groupId, String zona, - String fascia, Date dtIni) throws NoSuchTerritorioException, SystemException { + @Override + public Territorio findTerritorioByComuneIdGZonaFasciaDtIni(long comuneId, long groupId, String zona, String fascia, + Date dtIni) throws NoSuchTerritorioException, SystemException { return territorioPersistence.findByC_G_Z_F_D(comuneId, groupId, zona, fascia, dtIni); } - public Territorio fetchByOldTerriotioId(long oldTerritorioId) throws NoSuchTerritorioException, - SystemException { - - return territorioPersistence.fetchByOldTerritorioId(oldTerritorioId); - } - List findByGroup(long groupId) throws SystemException { return territorioPersistence.findByGroup(groupId); } + @SuppressWarnings("unchecked") + @Override public List getTerritoriByGroupAndZona(long groupId, String zona) throws SystemException { DynamicQuery dynamicQuery = getDynamicQueryTerritori(groupId, zona, null, true); return territorioPersistence.findWithDynamicQuery(dynamicQuery); } + @SuppressWarnings("unchecked") + @Override public List getTerritoriByGroupAndZonaAndFascia(long groupId, String zona, String fascia) throws SystemException { @@ -283,7 +242,7 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { private DynamicQuery getDynamicQueryTerritori(long groupId, String zona, String fascia, boolean onlyIds) { - DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(PropertyFactoryUtil.forName("groupId").eq(groupId)); dynamicQuery.add(PropertyFactoryUtil.forName("zona").eq(zona)); if (Validator.isNotNull(fascia)) { @@ -295,31 +254,28 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl { return dynamicQuery; } + @SuppressWarnings("unchecked") + @Override public List getAllTerritorioGroup() throws SystemException { - DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("groupId")); return territorioPersistence.findWithDynamicQuery(dynamicQuery); } - public Long verifyTerritorioConstraintAlreadyExist(long comuneId, long groupId, String fascia, - String zona, Date dtIni) throws SystemException { + @Override + public Long verifyTerritorioConstraintAlreadyExist(long comuneId, long groupId, String fascia, String zona, + Date dtIni) throws SystemException { - DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery(); + DynamicQuery dynamicQuery = dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("comuneId", comuneId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", groupId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("fascia", fascia)); dynamicQuery.add(RestrictionsFactoryUtil.eq("zona", zona)); dynamicQuery.add(RestrictionsFactoryUtil.eq("dtIni", dtIni)); dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("territorioId")); - + @SuppressWarnings("unchecked") List lista = territorioPersistence.findWithDynamicQuery(dynamicQuery); - - if (Validator.isNotNull(lista) && !lista.isEmpty()) { - return lista.get(0); - } else { - return 0L; - } - + return lista.isEmpty() ? 0L : lista.get(0); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioServiceImpl.java index 5b0ee972..04bbed9a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioServiceImpl.java @@ -1,19 +1,18 @@ /** * 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 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. + * 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.bo.service.impl; import it.tref.liferay.portos.bo.model.Territorio; -import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.base.TerritorioServiceBaseImpl; import java.util.Date; @@ -27,14 +26,12 @@ import com.liferay.portal.service.ServiceContext; * The implementation of the territorio remote 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.liferay.portos.bo.service.TerritorioService} interface. + * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy + * their definitions into the {@link it.tref.liferay.portos.bo.service.TerritorioService} interface. * *

- * This is a remote service. Methods of this service are expected to have - * security checks based on the propagated JAAS credentials because this service - * can be accessed remotely. + * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS + * credentials because this service can be accessed remotely. *

* * @author Salvatore La Manna, Manifattura Web Group @@ -43,55 +40,49 @@ import com.liferay.portal.service.ServiceContext; */ public class TerritorioServiceImpl extends TerritorioServiceBaseImpl { /* - * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use - * {@link it.tref.liferay.portos.bo.service.TerritorioServiceUtil} to access - * the territorio remote service. + * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link + * it.tref.liferay.portos.bo.service.TerritorioServiceUtil} to access the territorio remote service. */ - public Territorio addTerritorio(long comuneId, long groupId, - String codiceProvincia, String zona, String fascia, - boolean articolo61, Date dtIni, Date dtFin, String agMax, - String agMin, long oldId, ServiceContext serviceContext) + @Override + public Territorio addTerritorio(long comuneId, long groupId, String codiceProvincia, String zona, String fascia, + boolean articolo61, Date dtIni, Date dtFin, String agMax, String agMin, ServiceContext serviceContext) throws PortalException, SystemException { - return TerritorioLocalServiceUtil.addTerritorio(comuneId, groupId, - codiceProvincia, zona, fascia, articolo61, dtIni, dtFin, agMax, - agMin, oldId, serviceContext); + return territorioLocalService.addTerritorio(comuneId, groupId, codiceProvincia, zona, fascia, articolo61, + dtIni, dtFin, agMax, agMin, serviceContext); } - public Territorio updateTerritorio(long territorioId, long comuneId, - long groupId, String codiceProvincia, String zona, String fascia, - boolean articolo61, Date dtIni, Date dtFin, String agMax, - String agMin, ServiceContext serviceContext) - throws PortalException, SystemException { - - return TerritorioLocalServiceUtil.updateTerritorio(territorioId, - groupId, comuneId, codiceProvincia, zona, fascia, articolo61, - dtIni, dtFin, agMax, agMin, serviceContext); + @Override + public Territorio updateTerritorio(long territorioId, long comuneId, long groupId, String codiceProvincia, + String zona, String fascia, boolean articolo61, Date dtIni, Date dtFin, String agMax, String agMin, + ServiceContext serviceContext) throws PortalException, SystemException { + return territorioLocalService.updateTerritorio(territorioId, groupId, comuneId, codiceProvincia, zona, fascia, + articolo61, dtIni, dtFin, agMax, agMin, serviceContext); } + @Override public Territorio fetchTerritorio(long territorioId) throws SystemException { - return TerritorioLocalServiceUtil.fetchTerritorio(territorioId); + return territorioLocalService.fetchTerritorio(territorioId); } + @Override public Territorio createTerritorio(long territorioId) { - return TerritorioLocalServiceUtil.createTerritorio(territorioId); + return territorioLocalService.createTerritorio(territorioId); } - public List getTerritori(long companyId, long groupId, - int start, int end) throws SystemException { - - return TerritorioLocalServiceUtil.getTerritori(companyId, groupId, - start, end); + @Override + public List getTerritori(long companyId, long groupId, int start, int end) throws SystemException { + return territorioLocalService.getTerritori(companyId, groupId, start, end); } - public int countTerritori(long companyId, long groupId) - throws SystemException { + @Override + public int countTerritori(long companyId, long groupId) throws SystemException { - return TerritorioLocalServiceUtil.countTerritori(companyId, groupId); + return territorioLocalService.countTerritori(companyId, groupId); } } 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 5c96356f..73a46094 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; @@ -2867,7 +2866,6 @@ public class AllegatoManualePersistenceImpl extends BasePersistenceImpl private static final String _FINDER_COLUMN_UUID_C_UUID_2 = "avviso.uuid = ? AND "; private static final String _FINDER_COLUMN_UUID_C_UUID_3 = "(avviso.uuid IS NULL OR avviso.uuid = '') AND "; private static final String _FINDER_COLUMN_UUID_C_COMPANYID_2 = "avviso.companyId = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDAVVISOID = new FinderPath(AvvisoModelImpl.ENTITY_CACHE_ENABLED, - AvvisoModelImpl.FINDER_CACHE_ENABLED, AvvisoImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByoldAvvisoId", - new String[] { Long.class.getName() }, - AvvisoModelImpl.OLDAVVISOID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDAVVISOID = new FinderPath(AvvisoModelImpl.ENTITY_CACHE_ENABLED, - AvvisoModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByoldAvvisoId", - new String[] { Long.class.getName() }); - - /** - * Returns the avviso where oldAvvisoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchAvvisoException} if it could not be found. - * - * @param oldAvvisoId the old avviso ID - * @return the matching avviso - * @throws it.tref.liferay.portos.bo.NoSuchAvvisoException if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Avviso findByoldAvvisoId(long oldAvvisoId) - throws NoSuchAvvisoException, SystemException { - Avviso avviso = fetchByoldAvvisoId(oldAvvisoId); - - if (avviso == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldAvvisoId="); - msg.append(oldAvvisoId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchAvvisoException(msg.toString()); - } - - return avviso; - } - - /** - * Returns the avviso where oldAvvisoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldAvvisoId the old avviso ID - * @return the matching avviso, or null if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Avviso fetchByoldAvvisoId(long oldAvvisoId) - throws SystemException { - return fetchByoldAvvisoId(oldAvvisoId, true); - } - - /** - * Returns the avviso where oldAvvisoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldAvvisoId the old avviso ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching avviso, or null if a matching avviso could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Avviso fetchByoldAvvisoId(long oldAvvisoId, boolean retrieveFromCache) - throws SystemException { - Object[] finderArgs = new Object[] { oldAvvisoId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, - finderArgs, this); - } - - if (result instanceof Avviso) { - Avviso avviso = (Avviso)result; - - if ((oldAvvisoId != avviso.getOldAvvisoId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_AVVISO_WHERE); - - query.append(_FINDER_COLUMN_OLDAVVISOID_OLDAVVISOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldAvvisoId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "AvvisoPersistenceImpl.fetchByoldAvvisoId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - Avviso avviso = list.get(0); - - result = avviso; - - cacheResult(avviso); - - if ((avviso.getOldAvvisoId() != oldAvvisoId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, - finderArgs, avviso); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Avviso)result; - } - } - - /** - * Removes the avviso where oldAvvisoId = ? from the database. - * - * @param oldAvvisoId the old avviso ID - * @return the avviso that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Avviso removeByoldAvvisoId(long oldAvvisoId) - throws NoSuchAvvisoException, SystemException { - Avviso avviso = findByoldAvvisoId(oldAvvisoId); - - return remove(avviso); - } - - /** - * Returns the number of avvisos where oldAvvisoId = ?. - * - * @param oldAvvisoId the old avviso ID - * @return the number of matching avvisos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByoldAvvisoId(long oldAvvisoId) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDAVVISOID; - - Object[] finderArgs = new Object[] { oldAvvisoId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_AVVISO_WHERE); - - query.append(_FINDER_COLUMN_OLDAVVISOID_OLDAVVISOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldAvvisoId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDAVVISOID_OLDAVVISOID_2 = "avviso.oldAvvisoId = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID_TIPODOCUMENTO = new FinderPath(AvvisoModelImpl.ENTITY_CACHE_ENABLED, AvvisoModelImpl.FINDER_CACHE_ENABLED, AvvisoImpl.class, @@ -8420,9 +8201,6 @@ public class AvvisoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, new Object[] { avviso.getUuid(), avviso.getGroupId() }, avviso); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, - new Object[] { avviso.getOldAvvisoId() }, avviso); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, new Object[] { avviso.getCompanyId(), avviso.getGroupId(), @@ -8513,13 +8291,6 @@ public class AvvisoPersistenceImpl extends BasePersistenceImpl Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, avviso); - args = new Object[] { avviso.getOldAvvisoId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDAVVISOID, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, args, - avviso); - args = new Object[] { avviso.getCompanyId(), avviso.getGroupId(), avviso.getProtocollo() @@ -8552,16 +8323,6 @@ public class AvvisoPersistenceImpl extends BasePersistenceImpl avviso); } - if ((avvisoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDAVVISOID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { avviso.getOldAvvisoId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDAVVISOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, - args, avviso); - } - if ((avvisoModelImpl.getColumnBitmask() & FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO.getColumnBitmask()) != 0) { Object[] args = new Object[] { @@ -8606,19 +8367,6 @@ public class AvvisoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); } - args = new Object[] { avviso.getOldAvvisoId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDAVVISOID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, args); - - if ((avvisoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDAVVISOID.getColumnBitmask()) != 0) { - args = new Object[] { avvisoModelImpl.getOriginalOldAvvisoId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDAVVISOID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDAVVISOID, args); - } - args = new Object[] { avviso.getCompanyId(), avviso.getGroupId(), avviso.getProtocollo() @@ -9088,8 +8836,6 @@ public class AvvisoPersistenceImpl extends BasePersistenceImpl avvisoImpl.setFileEntryIdBase(avviso.getFileEntryIdBase()); avvisoImpl.setFileEntryIdInvio(avviso.getFileEntryIdInvio()); avvisoImpl.setFileEntryIdProtocollo(avviso.getFileEntryIdProtocollo()); - avvisoImpl.setOldFileEntryIdBase(avviso.getOldFileEntryIdBase()); - avvisoImpl.setOldFileEntryIdInvio(avviso.getOldFileEntryIdInvio()); avvisoImpl.setDtCreateFileEntryInvio(avviso.getDtCreateFileEntryInvio()); avvisoImpl.setUserCodiceFiscalePrimaFirma(avviso.getUserCodiceFiscalePrimaFirma()); avvisoImpl.setFirmaInCorso(avviso.isFirmaInCorso()); @@ -9110,7 +8856,6 @@ public class AvvisoPersistenceImpl extends BasePersistenceImpl avvisoImpl.setRifiutato(avviso.isRifiutato()); avvisoImpl.setDtRifiuto(avviso.getDtRifiuto()); avvisoImpl.setCommentoRifiuto(avviso.getCommentoRifiuto()); - avvisoImpl.setOldAvvisoId(avviso.getOldAvvisoId()); avvisoImpl.setIntPraticaId(avviso.getIntPraticaId()); avvisoImpl.setControlloPraticaId(avviso.getControlloPraticaId()); avvisoImpl.setClassPk(avviso.getClassPk()); 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 4ce032ca..0b546e1a 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; @@ -4759,226 +4758,6 @@ public class CollaudoPersistenceImpl extends BasePersistenceImpl private static final String _FINDER_COLUMN_INTPRATICAID_PARZIALE_INTPRATICAID_2 = "collaudo.intPraticaId = ? AND "; private static final String _FINDER_COLUMN_INTPRATICAID_PARZIALE_PARZIALE_2 = "collaudo.parziale = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDDETTPRATICAID = new FinderPath(CollaudoModelImpl.ENTITY_CACHE_ENABLED, - CollaudoModelImpl.FINDER_CACHE_ENABLED, CollaudoImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldDettPraticaId", - new String[] { Long.class.getName() }, - CollaudoModelImpl.OLDDETTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDDETTPRATICAID = new FinderPath(CollaudoModelImpl.ENTITY_CACHE_ENABLED, - CollaudoModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByOldDettPraticaId", new String[] { Long.class.getName() }); - - /** - * Returns the collaudo where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchCollaudoException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching collaudo - * @throws it.tref.liferay.portos.bo.NoSuchCollaudoException if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Collaudo findByOldDettPraticaId(long oldDettPraticaId) - throws NoSuchCollaudoException, SystemException { - Collaudo collaudo = fetchByOldDettPraticaId(oldDettPraticaId); - - if (collaudo == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldDettPraticaId="); - msg.append(oldDettPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchCollaudoException(msg.toString()); - } - - return collaudo; - } - - /** - * Returns the collaudo where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching collaudo, or null if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Collaudo fetchByOldDettPraticaId(long oldDettPraticaId) - throws SystemException { - return fetchByOldDettPraticaId(oldDettPraticaId, true); - } - - /** - * Returns the collaudo where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching collaudo, or null if a matching collaudo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Collaudo fetchByOldDettPraticaId(long oldDettPraticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, this); - } - - if (result instanceof Collaudo) { - Collaudo collaudo = (Collaudo)result; - - if ((oldDettPraticaId != collaudo.getOldDettPraticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_COLLAUDO_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "CollaudoPersistenceImpl.fetchByOldDettPraticaId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - Collaudo collaudo = list.get(0); - - result = collaudo; - - cacheResult(collaudo); - - if ((collaudo.getOldDettPraticaId() != oldDettPraticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, collaudo); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Collaudo)result; - } - } - - /** - * Removes the collaudo where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the collaudo that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Collaudo removeByOldDettPraticaId(long oldDettPraticaId) - throws NoSuchCollaudoException, SystemException { - Collaudo collaudo = findByOldDettPraticaId(oldDettPraticaId); - - return remove(collaudo); - } - - /** - * Returns the number of collaudos where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching collaudos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldDettPraticaId(long oldDettPraticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDDETTPRATICAID; - - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_COLLAUDO_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2 = - "collaudo.oldDettPraticaId = ?"; public CollaudoPersistenceImpl() { setModelClass(Collaudo.class); @@ -5006,9 +4785,6 @@ public class CollaudoPersistenceImpl extends BasePersistenceImpl collaudo.getProtocollo() }, collaudo); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - new Object[] { collaudo.getOldDettPraticaId() }, collaudo); - collaudo.resetOriginalValues(); } @@ -5109,13 +4885,6 @@ public class CollaudoPersistenceImpl extends BasePersistenceImpl args, Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args, collaudo); - - args = new Object[] { collaudo.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args, collaudo); } else { CollaudoModelImpl collaudoModelImpl = (CollaudoModelImpl)collaudo; @@ -5154,16 +4923,6 @@ public class CollaudoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args, collaudo); } - - if ((collaudoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICAID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { collaudo.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args, collaudo); - } } } @@ -5220,21 +4979,6 @@ public class CollaudoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args); } - - args = new Object[] { collaudo.getOldDettPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, args); - - if ((collaudoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICAID.getColumnBitmask()) != 0) { - args = new Object[] { collaudoModelImpl.getOriginalOldDettPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args); - } } /** @@ -5580,7 +5324,6 @@ public class CollaudoPersistenceImpl extends BasePersistenceImpl collaudoImpl.setMezzoPagamento(collaudo.getMezzoPagamento()); collaudoImpl.setNormEsenteBollo(collaudo.isNormEsenteBollo()); collaudoImpl.setImportoBolli(collaudo.getImportoBolli()); - collaudoImpl.setOldDettPraticaId(collaudo.getOldDettPraticaId()); return collaudoImpl; } 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 4a23bffd..b0b64b21 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 f5b8166f..0b7f9ee2 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 32809343..66507dd0 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 a4fa6f91..48cf51eb 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 8c56fb32..402cecd0 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 7f53be18..cc3c5dbf 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; @@ -2496,226 +2495,6 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl private static final String _FINDER_COLUMN_C_G_PROTOCOLLO_PROTOCOLLO_1 = "dettPratica.protocollo IS NULL"; private static final String _FINDER_COLUMN_C_G_PROTOCOLLO_PROTOCOLLO_2 = "dettPratica.protocollo = ?"; private static final String _FINDER_COLUMN_C_G_PROTOCOLLO_PROTOCOLLO_3 = "(dettPratica.protocollo IS NULL OR dettPratica.protocollo = '')"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDDETTPRATICA = new FinderPath(DettPraticaModelImpl.ENTITY_CACHE_ENABLED, - DettPraticaModelImpl.FINDER_CACHE_ENABLED, DettPraticaImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldDettPratica", - new String[] { Long.class.getName() }, - DettPraticaModelImpl.OLDDETTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDDETTPRATICA = new FinderPath(DettPraticaModelImpl.ENTITY_CACHE_ENABLED, - DettPraticaModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByOldDettPratica", - new String[] { Long.class.getName() }); - - /** - * Returns the dett pratica where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDettPraticaException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica - * @throws it.tref.liferay.portos.bo.NoSuchDettPraticaException if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica findByOldDettPratica(long oldDettPraticaId) - throws NoSuchDettPraticaException, SystemException { - DettPratica dettPratica = fetchByOldDettPratica(oldDettPraticaId); - - if (dettPratica == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldDettPraticaId="); - msg.append(oldDettPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchDettPraticaException(msg.toString()); - } - - return dettPratica; - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica fetchByOldDettPratica(long oldDettPraticaId) - throws SystemException { - return fetchByOldDettPratica(oldDettPraticaId, true); - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica fetchByOldDettPratica(long oldDettPraticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - finderArgs, this); - } - - if (result instanceof DettPratica) { - DettPratica dettPratica = (DettPratica)result; - - if ((oldDettPraticaId != dettPratica.getOldDettPraticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_DETTPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICA_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "DettPraticaPersistenceImpl.fetchByOldDettPratica(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - DettPratica dettPratica = list.get(0); - - result = dettPratica; - - cacheResult(dettPratica); - - if ((dettPratica.getOldDettPraticaId() != oldDettPraticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - finderArgs, dettPratica); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (DettPratica)result; - } - } - - /** - * Removes the dett pratica where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the dett pratica that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica removeByOldDettPratica(long oldDettPraticaId) - throws NoSuchDettPraticaException, SystemException { - DettPratica dettPratica = findByOldDettPratica(oldDettPraticaId); - - return remove(dettPratica); - } - - /** - * Returns the number of dett praticas where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching dett praticas - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldDettPratica(long oldDettPraticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDDETTPRATICA; - - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_DETTPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICA_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDDETTPRATICA_OLDDETTPRATICAID_2 = - "dettPratica.oldDettPraticaId = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID_TIPOINTEGRAZIONE_COMPLETA = new FinderPath(DettPraticaModelImpl.ENTITY_CACHE_ENABLED, DettPraticaModelImpl.FINDER_CACHE_ENABLED, DettPraticaImpl.class, @@ -3952,226 +3731,6 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl "dettPratica.tipoIntegrazione = ?"; private static final String _FINDER_COLUMN_INTPRATICAID_TIPOINTEGRAZIONE_TIPOINTEGRAZIONE_3 = "(dettPratica.tipoIntegrazione IS NULL OR dettPratica.tipoIntegrazione = '')"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDDETTPRATICAID = new FinderPath(DettPraticaModelImpl.ENTITY_CACHE_ENABLED, - DettPraticaModelImpl.FINDER_CACHE_ENABLED, DettPraticaImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldDettPraticaId", - new String[] { Long.class.getName() }, - DettPraticaModelImpl.OLDDETTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDDETTPRATICAID = new FinderPath(DettPraticaModelImpl.ENTITY_CACHE_ENABLED, - DettPraticaModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByOldDettPraticaId", new String[] { Long.class.getName() }); - - /** - * Returns the dett pratica where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDettPraticaException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica - * @throws it.tref.liferay.portos.bo.NoSuchDettPraticaException if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica findByOldDettPraticaId(long oldDettPraticaId) - throws NoSuchDettPraticaException, SystemException { - DettPratica dettPratica = fetchByOldDettPraticaId(oldDettPraticaId); - - if (dettPratica == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldDettPraticaId="); - msg.append(oldDettPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchDettPraticaException(msg.toString()); - } - - return dettPratica; - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica fetchByOldDettPraticaId(long oldDettPraticaId) - throws SystemException { - return fetchByOldDettPraticaId(oldDettPraticaId, true); - } - - /** - * Returns the dett pratica where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching dett pratica, or null if a matching dett pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica fetchByOldDettPraticaId(long oldDettPraticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, this); - } - - if (result instanceof DettPratica) { - DettPratica dettPratica = (DettPratica)result; - - if ((oldDettPraticaId != dettPratica.getOldDettPraticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_DETTPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "DettPraticaPersistenceImpl.fetchByOldDettPraticaId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - DettPratica dettPratica = list.get(0); - - result = dettPratica; - - cacheResult(dettPratica); - - if ((dettPratica.getOldDettPraticaId() != oldDettPraticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, dettPratica); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (DettPratica)result; - } - } - - /** - * Removes the dett pratica where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the dett pratica that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public DettPratica removeByOldDettPraticaId(long oldDettPraticaId) - throws NoSuchDettPraticaException, SystemException { - DettPratica dettPratica = findByOldDettPraticaId(oldDettPraticaId); - - return remove(dettPratica); - } - - /** - * Returns the number of dett praticas where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching dett praticas - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldDettPraticaId(long oldDettPraticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDDETTPRATICAID; - - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_DETTPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2 = - "dettPratica.oldDettPraticaId = ?"; public DettPraticaPersistenceImpl() { setModelClass(DettPratica.class); @@ -4200,12 +3759,6 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl dettPratica.getProtocollo() }, dettPratica); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - new Object[] { dettPratica.getOldDettPraticaId() }, dettPratica); - - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - new Object[] { dettPratica.getOldDettPraticaId() }, dettPratica); - dettPratica.resetOriginalValues(); } @@ -4306,20 +3859,6 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl args, Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args, dettPratica); - - args = new Object[] { dettPratica.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICA, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - args, dettPratica); - - args = new Object[] { dettPratica.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args, dettPratica); } else { DettPraticaModelImpl dettPraticaModelImpl = (DettPraticaModelImpl)dettPratica; @@ -4358,26 +3897,6 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args, dettPratica); } - - if ((dettPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICA.getColumnBitmask()) != 0) { - Object[] args = new Object[] { dettPratica.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICA, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - args, dettPratica); - } - - if ((dettPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICAID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { dettPratica.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args, dettPratica); - } } } @@ -4436,40 +3955,6 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args); } - - args = new Object[] { dettPratica.getOldDettPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICA, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, args); - - if ((dettPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICA.getColumnBitmask()) != 0) { - args = new Object[] { - dettPraticaModelImpl.getOriginalOldDettPraticaId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICA, - args); - } - - args = new Object[] { dettPratica.getOldDettPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, args); - - if ((dettPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICAID.getColumnBitmask()) != 0) { - args = new Object[] { - dettPraticaModelImpl.getOriginalOldDettPraticaId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args); - } } /** @@ -4774,16 +4259,13 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl dettPraticaImpl.setMezzoPagamentoBolli(dettPratica.getMezzoPagamentoBolli()); dettPraticaImpl.setDataEffettuazione(dettPratica.getDataEffettuazione()); dettPraticaImpl.setVersion(dettPratica.getVersion()); - dettPraticaImpl.setVersionata(dettPratica.isVersionata()); dettPraticaImpl.setStatus(dettPratica.getStatus()); dettPraticaImpl.setStatusByUserId(dettPratica.getStatusByUserId()); dettPraticaImpl.setStatusByUserName(dettPratica.getStatusByUserName()); dettPraticaImpl.setStatusDate(dettPratica.getStatusDate()); dettPraticaImpl.setStatusTask(dettPratica.getStatusTask()); - dettPraticaImpl.setWorkflowForzato(dettPratica.isWorkflowForzato()); dettPraticaImpl.setSoggettoSostituitoId(dettPratica.getSoggettoSostituitoId()); dettPraticaImpl.setDtInvioSignal(dettPratica.getDtInvioSignal()); - dettPraticaImpl.setOldDettPraticaId(dettPratica.getOldDettPraticaId()); dettPraticaImpl.setDestinazione(dettPratica.getDestinazione()); dettPraticaImpl.setAg(dettPratica.getAg()); dettPraticaImpl.setDescLongIntervento(dettPratica.getDescLongIntervento()); @@ -4794,14 +4276,11 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl dettPraticaImpl.setLocalita(dettPratica.getLocalita()); dettPraticaImpl.setEstremiCatastali(dettPratica.getEstremiCatastali()); dettPraticaImpl.setEstremiPratCom(dettPratica.getEstremiPratCom()); - dettPraticaImpl.setVariataDa(dettPratica.getVariataDa()); dettPraticaImpl.setVarianteNumero(dettPratica.getVarianteNumero()); - dettPraticaImpl.setVarianteSostanziale(dettPratica.isVarianteSostanziale()); dettPraticaImpl.setOperaConforme(dettPratica.isOperaConforme()); dettPraticaImpl.setCollaudoStatico(dettPratica.isCollaudoStatico()); dettPraticaImpl.setNoCollaudo(dettPratica.isNoCollaudo()); dettPraticaImpl.setCodiceFiscaleDelegato(dettPratica.getCodiceFiscaleDelegato()); - dettPraticaImpl.setCodiceRuoloDelegato(dettPratica.getCodiceRuoloDelegato()); dettPraticaImpl.setCodiceFiscaleDelegatoCommittente(dettPratica.getCodiceFiscaleDelegatoCommittente()); dettPraticaImpl.setCodiceFiscaleDelegatoFineLavori(dettPratica.getCodiceFiscaleDelegatoFineLavori()); dettPraticaImpl.setCodiceFiscaleDelegatoCollaudo(dettPratica.getCodiceFiscaleDelegatoCollaudo()); @@ -4815,17 +4294,10 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl dettPraticaImpl.setSanatoriaEdilizia47(dettPratica.isSanatoriaEdilizia47()); dettPraticaImpl.setSanatoriaEdilizia724(dettPratica.isSanatoriaEdilizia724()); dettPraticaImpl.setSanatoriaEdilizia326(dettPratica.isSanatoriaEdilizia326()); - dettPraticaImpl.setLavoriInEconomiaCommittente(dettPratica.isLavoriInEconomiaCommittente()); - dettPraticaImpl.setInizioLavoriContestualeOpera(dettPratica.isInizioLavoriContestualeOpera()); - dettPraticaImpl.setDataInizioLavoriOpera(dettPratica.getDataInizioLavoriOpera()); - dettPraticaImpl.setDataInizioEsecuzioneOpera(dettPratica.getDataInizioEsecuzioneOpera()); - dettPraticaImpl.setDataFineEsecuzioneOpera(dettPratica.getDataFineEsecuzioneOpera()); - dettPraticaImpl.setMetratura(dettPratica.getMetratura()); dettPraticaImpl.setLavoriPubblici(dettPratica.isLavoriPubblici()); dettPraticaImpl.setPagamentoIdOneri(dettPratica.getPagamentoIdOneri()); dettPraticaImpl.setPagamentoIdBolli(dettPratica.getPagamentoIdBolli()); dettPraticaImpl.setLavoriPubbliciPercentuale(dettPratica.getLavoriPubbliciPercentuale()); - dettPraticaImpl.setNumeroCivico(dettPratica.getNumeroCivico()); dettPraticaImpl.setDcParticelle(dettPratica.getDcParticelle()); dettPraticaImpl.setDcFoglio(dettPratica.getDcFoglio()); dettPraticaImpl.setDcAllegato(dettPratica.getDcAllegato()); @@ -4987,6 +4459,7 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl dettPraticaImpl.setTcAltro(dettPratica.isTcAltro()); dettPraticaImpl.setTcAltroDescrizione(dettPratica.getTcAltroDescrizione()); dettPraticaImpl.setTcConDispositivi(dettPratica.isTcConDispositivi()); + dettPraticaImpl.setInterventoVoceP7(dettPratica.getInterventoVoceP7()); dettPraticaImpl.setNormLavoriInProprio(dettPratica.isNormLavoriInProprio()); dettPraticaImpl.setNormLavoriNoDirettore(dettPratica.isNormLavoriNoDirettore()); dettPraticaImpl.setNormEsenteBollo(dettPratica.isNormEsenteBollo()); @@ -4995,24 +4468,10 @@ public class DettPraticaPersistenceImpl extends BasePersistenceImpl dettPraticaImpl.setNormDpr02Dep(dettPratica.isNormDpr02Dep()); dettPraticaImpl.setNormDpr01Aut(dettPratica.isNormDpr01Aut()); dettPraticaImpl.setNormDpr02Aut(dettPratica.isNormDpr02Aut()); - dettPraticaImpl.setNormDpr03(dettPratica.isNormDpr03()); - dettPraticaImpl.setNormDpr04(dettPratica.isNormDpr04()); - dettPraticaImpl.setNormDpr05(dettPratica.isNormDpr05()); - dettPraticaImpl.setNormDm01(dettPratica.isNormDm01()); - dettPraticaImpl.setNormDm02(dettPratica.isNormDm02()); - dettPraticaImpl.setNormDm03(dettPratica.isNormDm03()); dettPraticaImpl.setNormDm2018(dettPratica.isNormDm2018()); - dettPraticaImpl.setNormDm04(dettPratica.isNormDm04()); - dettPraticaImpl.setNormDm05(dettPratica.isNormDm05()); - dettPraticaImpl.setNormDprg01(dettPratica.isNormDprg01()); - dettPraticaImpl.setNormDprg02(dettPratica.isNormDprg02()); dettPraticaImpl.setNormAnr(dettPratica.isNormAnr()); - dettPraticaImpl.setNormOrd01(dettPratica.isNormOrd01()); - dettPraticaImpl.setNormCI01(dettPratica.isNormCI01()); - dettPraticaImpl.setNormLTC01(dettPratica.isNormLTC01()); dettPraticaImpl.setNormArt3com3(dettPratica.isNormArt3com3()); dettPraticaImpl.setNormArt3com4(dettPratica.isNormArt3com4()); - dettPraticaImpl.setDpdc(dettPratica.isDpdc()); dettPraticaImpl.setNormSismaBonus(dettPratica.isNormSismaBonus()); dettPraticaImpl.setClRischioPreInt(dettPratica.getClRischioPreInt()); dettPraticaImpl.setClRischioPostInt(dettPratica.getClRischioPostInt()); 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 c25ae1dc..689264dd 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; @@ -2994,225 +2993,6 @@ public class DocAggiuntivaPersistenceImpl extends BasePersistenceImpl) { - return null; - } - else { - return (DocAggiuntiva)result; - } - } - - /** - * Removes the doc aggiuntiva where oldFileEntryId = ? from the database. - * - * @param oldFileEntryId the old file entry ID - * @return the doc aggiuntiva that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public DocAggiuntiva removeByoldFileEntryId(long oldFileEntryId) - throws NoSuchDocAggiuntivaException, SystemException { - DocAggiuntiva docAggiuntiva = findByoldFileEntryId(oldFileEntryId); - - return remove(docAggiuntiva); - } - - /** - * Returns the number of doc aggiuntivas where oldFileEntryId = ?. - * - * @param oldFileEntryId the old file entry ID - * @return the number of matching doc aggiuntivas - * @throws SystemException if a system exception occurred - */ - @Override - public int countByoldFileEntryId(long oldFileEntryId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDFILEENTRYID; - - Object[] finderArgs = new Object[] { oldFileEntryId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_DOCAGGIUNTIVA_WHERE); - - query.append(_FINDER_COLUMN_OLDFILEENTRYID_OLDFILEENTRYID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldFileEntryId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDFILEENTRYID_OLDFILEENTRYID_2 = "docAggiuntiva.oldFileEntryId = ?"; public DocAggiuntivaPersistenceImpl() { setModelClass(DocAggiuntiva.class); @@ -3233,9 +3013,6 @@ public class DocAggiuntivaPersistenceImpl extends BasePersistenceImpl } private static final String _FINDER_COLUMN_DLFILEENTRY_DLFILEENTRYID_2 = "docPratica.dlFileEntryId = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDDOCPRATICA = new FinderPath(DocPraticaModelImpl.ENTITY_CACHE_ENABLED, - DocPraticaModelImpl.FINDER_CACHE_ENABLED, DocPraticaImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldDocPratica", - new String[] { Long.class.getName() }, - DocPraticaModelImpl.OLDDOCPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDDOCPRATICA = new FinderPath(DocPraticaModelImpl.ENTITY_CACHE_ENABLED, - DocPraticaModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByOldDocPratica", - new String[] { Long.class.getName() }); - - /** - * Returns the doc pratica where oldDocPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchDocPraticaException} if it could not be found. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the matching doc pratica - * @throws it.tref.liferay.portos.bo.NoSuchDocPraticaException if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DocPratica findByOldDocPratica(long oldDocPraticaId) - throws NoSuchDocPraticaException, SystemException { - DocPratica docPratica = fetchByOldDocPratica(oldDocPraticaId); - - if (docPratica == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldDocPraticaId="); - msg.append(oldDocPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchDocPraticaException(msg.toString()); - } - - return docPratica; - } - - /** - * Returns the doc pratica where oldDocPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the matching doc pratica, or null if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DocPratica fetchByOldDocPratica(long oldDocPraticaId) - throws SystemException { - return fetchByOldDocPratica(oldDocPraticaId, true); - } - - /** - * Returns the doc pratica where oldDocPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDocPraticaId the old doc pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching doc pratica, or null if a matching doc pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public DocPratica fetchByOldDocPratica(long oldDocPraticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldDocPraticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, - finderArgs, this); - } - - if (result instanceof DocPratica) { - DocPratica docPratica = (DocPratica)result; - - if ((oldDocPraticaId != docPratica.getOldDocPraticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_DOCPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDDOCPRATICA_OLDDOCPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDocPraticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "DocPraticaPersistenceImpl.fetchByOldDocPratica(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - DocPratica docPratica = list.get(0); - - result = docPratica; - - cacheResult(docPratica); - - if ((docPratica.getOldDocPraticaId() != oldDocPraticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, - finderArgs, docPratica); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (DocPratica)result; - } - } - - /** - * Removes the doc pratica where oldDocPraticaId = ? from the database. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the doc pratica that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public DocPratica removeByOldDocPratica(long oldDocPraticaId) - throws NoSuchDocPraticaException, SystemException { - DocPratica docPratica = findByOldDocPratica(oldDocPraticaId); - - return remove(docPratica); - } - - /** - * Returns the number of doc praticas where oldDocPraticaId = ?. - * - * @param oldDocPraticaId the old doc pratica ID - * @return the number of matching doc praticas - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldDocPratica(long oldDocPraticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDDOCPRATICA; - - Object[] finderArgs = new Object[] { oldDocPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_DOCPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDDOCPRATICA_OLDDOCPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDocPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDDOCPRATICA_OLDDOCPRATICAID_2 = "docPratica.oldDocPraticaId = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA = new FinderPath(DocPraticaModelImpl.ENTITY_CACHE_ENABLED, DocPraticaModelImpl.FINDER_CACHE_ENABLED, DocPraticaImpl.class, @@ -7214,9 +6994,6 @@ public class DocPraticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_DLFILEENTRY, new Object[] { docPratica.getDlFileEntryId() }, docPratica); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, - new Object[] { docPratica.getOldDocPraticaId() }, docPratica); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_DLFILEENTRY_VERSION, new Object[] { docPratica.getDlFileEntryId(), docPratica.getVersion() }, docPratica); @@ -7312,13 +7089,6 @@ public class DocPraticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_DLFILEENTRY, args, docPratica); - args = new Object[] { docPratica.getOldDocPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDOCPRATICA, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, args, - docPratica); - args = new Object[] { docPratica.getDlFileEntryId(), docPratica.getVersion() }; @@ -7353,16 +7123,6 @@ public class DocPraticaPersistenceImpl extends BasePersistenceImpl args, docPratica); } - if ((docPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDOCPRATICA.getColumnBitmask()) != 0) { - Object[] args = new Object[] { docPratica.getOldDocPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDOCPRATICA, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, - args, docPratica); - } - if ((docPraticaModelImpl.getColumnBitmask() & FINDER_PATH_FETCH_BY_DLFILEENTRY_VERSION.getColumnBitmask()) != 0) { Object[] args = new Object[] { @@ -7411,21 +7171,6 @@ public class DocPraticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_DLFILEENTRY, args); } - args = new Object[] { docPratica.getOldDocPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDOCPRATICA, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, args); - - if ((docPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDOCPRATICA.getColumnBitmask()) != 0) { - args = new Object[] { docPraticaModelImpl.getOriginalOldDocPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDOCPRATICA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDOCPRATICA, - args); - } - args = new Object[] { docPratica.getDlFileEntryId(), docPratica.getVersion() }; @@ -7841,18 +7586,15 @@ public class DocPraticaPersistenceImpl extends BasePersistenceImpl docPraticaImpl.setClassName(docPratica.getClassName()); docPraticaImpl.setIntPraticaId(docPratica.getIntPraticaId()); docPraticaImpl.setDlFileEntryId(docPratica.getDlFileEntryId()); - docPraticaImpl.setOldDlFileEntryId(docPratica.getOldDlFileEntryId()); docPraticaImpl.setVersion(docPratica.getVersion()); docPraticaImpl.setPraticaValidata(docPratica.isPraticaValidata()); docPraticaImpl.setDescLong(docPratica.getDescLong()); docPraticaImpl.setTipologia(docPratica.getTipologia()); docPraticaImpl.setSha256(docPratica.getSha256()); - docPraticaImpl.setMd5(docPratica.getMd5()); docPraticaImpl.setAggiornato(docPratica.isAggiornato()); docPraticaImpl.setJsonFirmatari(docPratica.getJsonFirmatari()); docPraticaImpl.setStatus(docPratica.getStatus()); docPraticaImpl.setErrorCode(docPratica.getErrorCode()); - docPraticaImpl.setOldDocPraticaId(docPratica.getOldDocPraticaId()); docPraticaImpl.setRimosso(docPratica.isRimosso()); docPraticaImpl.setDettPraticaIdRimozione(docPratica.getDettPraticaIdRimozione()); docPraticaImpl.setDtDataRimozione(docPratica.getDtDataRimozione()); 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 7ba24480..41c1b2be 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; @@ -5356,226 +5355,6 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl "fineLavori.parziale = ? AND "; private static final String _FINDER_COLUMN_INTPRATICAID_PARZIALE_COMPLETATA_COMPLETATA_2 = "fineLavori.completata = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDDETTPRATICAID = new FinderPath(FineLavoriModelImpl.ENTITY_CACHE_ENABLED, - FineLavoriModelImpl.FINDER_CACHE_ENABLED, FineLavoriImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldDettPraticaId", - new String[] { Long.class.getName() }, - FineLavoriModelImpl.OLDDETTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDDETTPRATICAID = new FinderPath(FineLavoriModelImpl.ENTITY_CACHE_ENABLED, - FineLavoriModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByOldDettPraticaId", new String[] { Long.class.getName() }); - - /** - * Returns the fine lavori where oldDettPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchFineLavoriException} if it could not be found. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching fine lavori - * @throws it.tref.liferay.portos.bo.NoSuchFineLavoriException if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public FineLavori findByOldDettPraticaId(long oldDettPraticaId) - throws NoSuchFineLavoriException, SystemException { - FineLavori fineLavori = fetchByOldDettPraticaId(oldDettPraticaId); - - if (fineLavori == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldDettPraticaId="); - msg.append(oldDettPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchFineLavoriException(msg.toString()); - } - - return fineLavori; - } - - /** - * Returns the fine lavori where oldDettPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the matching fine lavori, or null if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public FineLavori fetchByOldDettPraticaId(long oldDettPraticaId) - throws SystemException { - return fetchByOldDettPraticaId(oldDettPraticaId, true); - } - - /** - * Returns the fine lavori where oldDettPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldDettPraticaId the old dett pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching fine lavori, or null if a matching fine lavori could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public FineLavori fetchByOldDettPraticaId(long oldDettPraticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, this); - } - - if (result instanceof FineLavori) { - FineLavori fineLavori = (FineLavori)result; - - if ((oldDettPraticaId != fineLavori.getOldDettPraticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_FINELAVORI_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "FineLavoriPersistenceImpl.fetchByOldDettPraticaId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - FineLavori fineLavori = list.get(0); - - result = fineLavori; - - cacheResult(fineLavori); - - if ((fineLavori.getOldDettPraticaId() != oldDettPraticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs, fineLavori); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (FineLavori)result; - } - } - - /** - * Removes the fine lavori where oldDettPraticaId = ? from the database. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the fine lavori that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public FineLavori removeByOldDettPraticaId(long oldDettPraticaId) - throws NoSuchFineLavoriException, SystemException { - FineLavori fineLavori = findByOldDettPraticaId(oldDettPraticaId); - - return remove(fineLavori); - } - - /** - * Returns the number of fine lavoris where oldDettPraticaId = ?. - * - * @param oldDettPraticaId the old dett pratica ID - * @return the number of matching fine lavoris - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldDettPraticaId(long oldDettPraticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDDETTPRATICAID; - - Object[] finderArgs = new Object[] { oldDettPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_FINELAVORI_WHERE); - - query.append(_FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldDettPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDDETTPRATICAID_OLDDETTPRATICAID_2 = - "fineLavori.oldDettPraticaId = ?"; public FineLavoriPersistenceImpl() { setModelClass(FineLavori.class); @@ -5604,9 +5383,6 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl fineLavori.getProtocollo() }, fineLavori); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - new Object[] { fineLavori.getOldDettPraticaId() }, fineLavori); - fineLavori.resetOriginalValues(); } @@ -5707,13 +5483,6 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl args, Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args, fineLavori); - - args = new Object[] { fineLavori.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args, fineLavori); } else { FineLavoriModelImpl fineLavoriModelImpl = (FineLavoriModelImpl)fineLavori; @@ -5752,16 +5521,6 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args, fineLavori); } - - if ((fineLavoriModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICAID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { fineLavori.getOldDettPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args, fineLavori); - } } } @@ -5820,23 +5579,6 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_G_PROTOCOLLO, args); } - - args = new Object[] { fineLavori.getOldDettPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, args); - - if ((fineLavoriModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDDETTPRATICAID.getColumnBitmask()) != 0) { - args = new Object[] { - fineLavoriModelImpl.getOriginalOldDettPraticaId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDDETTPRATICAID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDDETTPRATICAID, - args); - } } /** @@ -6211,7 +5953,6 @@ public class FineLavoriPersistenceImpl extends BasePersistenceImpl fineLavoriImpl.setCausalePagamento(fineLavori.getCausalePagamento()); fineLavoriImpl.setMezzoPagamento(fineLavori.getMezzoPagamento()); fineLavoriImpl.setImportoBolli(fineLavori.getImportoBolli()); - fineLavoriImpl.setOldDettPraticaId(fineLavori.getOldDettPraticaId()); return fineLavoriImpl; } 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 f80406ab..ad50d7ea 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/IUVPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IUVPersistenceImpl.java deleted file mode 100644 index 6f469f0e..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IUVPersistenceImpl.java +++ /dev/null @@ -1,3800 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.cache.CacheRegistryUtil; -import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; -import com.liferay.portal.kernel.dao.orm.FinderCacheUtil; -import com.liferay.portal.kernel.dao.orm.FinderPath; -import com.liferay.portal.kernel.dao.orm.Query; -import com.liferay.portal.kernel.dao.orm.QueryPos; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.dao.orm.Session; -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.CalendarUtil; -import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.InstanceFactory; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.PropsKeys; -import com.liferay.portal.kernel.util.PropsUtil; -import com.liferay.portal.kernel.util.SetUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.UnmodifiableList; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.uuid.PortalUUIDUtil; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.ModelListener; -import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; - -import it.tref.liferay.portos.bo.NoSuchIUVException; -import it.tref.liferay.portos.bo.model.IUV; -import it.tref.liferay.portos.bo.model.impl.IUVImpl; -import it.tref.liferay.portos.bo.model.impl.IUVModelImpl; -import it.tref.liferay.portos.bo.service.persistence.IUVPersistence; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Date; -import java.util.List; -import java.util.Set; - -/** - * The persistence implementation for the i u v service. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see IUVPersistence - * @see IUVUtil - * @generated - */ -public class IUVPersistenceImpl extends BasePersistenceImpl - implements IUVPersistence { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link IUVUtil} to access the i u v persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class. - */ - public static final String FINDER_CLASS_NAME_ENTITY = IUVImpl.class.getName(); - public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION = FINDER_CLASS_NAME_ENTITY + - ".List1"; - public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION = FINDER_CLASS_NAME_ENTITY + - ".List2"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findAll", new String[0]); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findAll", new String[0]); - public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByUuid", - new String[] { - String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByUuid", - new String[] { String.class.getName() }, - IUVModelImpl.UUID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid", - new String[] { String.class.getName() }); - - /** - * Returns all the i u vs where uuid = ?. - * - * @param uuid the uuid - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid) throws SystemException { - return findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the i u vs where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid, int start, int end) - throws SystemException { - return findByUuid(uuid, start, end, null); - } - - /** - * Returns an ordered range of all the i u vs where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID; - finderArgs = new Object[] { uuid }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID; - finderArgs = new Object[] { uuid, start, end, orderByComparator }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (IUV iuv : list) { - if (!Validator.equals(uuid, iuv.getUuid())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(3 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), start, - end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByUuid_First(String uuid, OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByUuid_First(uuid, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the first i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByUuid_First(String uuid, - OrderByComparator orderByComparator) throws SystemException { - List list = findByUuid(uuid, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByUuid_Last(String uuid, OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByUuid_Last(uuid, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the last i u v in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) - throws SystemException { - int count = countByUuid(uuid); - - if (count == 0) { - return null; - } - - List list = findByUuid(uuid, count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where uuid = ?. - * - * @param iuvId the primary key of the current i u v - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV[] findByUuid_PrevAndNext(long iuvId, String uuid, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = findByPrimaryKey(iuvId); - - Session session = null; - - try { - session = openSession(); - - IUV[] array = new IUVImpl[3]; - - array[0] = getByUuid_PrevAndNext(session, iuv, uuid, - orderByComparator, true); - - array[1] = iuv; - - array[2] = getByUuid_PrevAndNext(session, iuv, uuid, - orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected IUV getByUuid_PrevAndNext(Session session, IUV iuv, String uuid, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(iuv); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the i u vs where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByUuid(String uuid) throws SystemException { - for (IUV iuv : findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - null)) { - remove(iuv); - } - } - - /** - * Returns the number of i u vs where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUuid(String uuid) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID; - - Object[] finderArgs = new Object[] { uuid }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_UUID_1 = "iuv.uuid IS NULL"; - private static final String _FINDER_COLUMN_UUID_UUID_2 = "iuv.uuid = ?"; - private static final String _FINDER_COLUMN_UUID_UUID_3 = "(iuv.uuid IS NULL OR iuv.uuid = '')"; - public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByUUID_G", - new String[] { String.class.getName(), Long.class.getName() }, - IUVModelImpl.UUID_COLUMN_BITMASK | - IUVModelImpl.GROUPID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUUID_G", - new String[] { String.class.getName(), Long.class.getName() }); - - /** - * Returns the i u v where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchIUVException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByUUID_G(String uuid, long groupId) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByUUID_G(uuid, groupId); - - if (iuv == null) { - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", groupId="); - msg.append(groupId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchIUVException(msg.toString()); - } - - return iuv; - } - - /** - * Returns the i u v where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByUUID_G(String uuid, long groupId) - throws SystemException { - return fetchByUUID_G(uuid, groupId, true); - } - - /** - * Returns the i u v where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByUUID_G(String uuid, long groupId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { uuid, groupId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, this); - } - - if (result instanceof IUV) { - IUV iuv = (IUV)result; - - if (!Validator.equals(uuid, iuv.getUuid()) || - (groupId != iuv.getGroupId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(4); - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_G_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_G_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_G_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(groupId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, list); - } - else { - IUV iuv = list.get(0); - - result = iuv; - - cacheResult(iuv); - - if ((iuv.getUuid() == null) || !iuv.getUuid().equals(uuid) || - (iuv.getGroupId() != groupId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, iuv); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (IUV)result; - } - } - - /** - * Removes the i u v where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the i u v that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public IUV removeByUUID_G(String uuid, long groupId) - throws NoSuchIUVException, SystemException { - IUV iuv = findByUUID_G(uuid, groupId); - - return remove(iuv); - } - - /** - * Returns the number of i u vs where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUUID_G(String uuid, long groupId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G; - - Object[] finderArgs = new Object[] { uuid, groupId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_G_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_G_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_G_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(groupId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_G_UUID_1 = "iuv.uuid IS NULL AND "; - private static final String _FINDER_COLUMN_UUID_G_UUID_2 = "iuv.uuid = ? AND "; - private static final String _FINDER_COLUMN_UUID_G_UUID_3 = "(iuv.uuid IS NULL OR iuv.uuid = '') AND "; - private static final String _FINDER_COLUMN_UUID_G_GROUPID_2 = "iuv.groupId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByUuid_C", - new String[] { - String.class.getName(), Long.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C = - new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByUuid_C", - new String[] { String.class.getName(), Long.class.getName() }, - IUVModelImpl.UUID_COLUMN_BITMASK | - IUVModelImpl.COMPANYID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid_C", - new String[] { String.class.getName(), Long.class.getName() }); - - /** - * Returns all the i u vs where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId) - throws SystemException { - return findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the i u vs where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId, int start, - int end) throws SystemException { - return findByUuid_C(uuid, companyId, start, end, null); - } - - /** - * Returns an ordered range of all the i u vs where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C; - finderArgs = new Object[] { uuid, companyId }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C; - finderArgs = new Object[] { - uuid, companyId, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (IUV iuv : list) { - if (!Validator.equals(uuid, iuv.getUuid()) || - (companyId != iuv.getCompanyId())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), start, - end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByUuid_C_First(String uuid, long companyId, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByUuid_C_First(uuid, companyId, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", companyId="); - msg.append(companyId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the first i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByUuid_C_First(String uuid, long companyId, - OrderByComparator orderByComparator) throws SystemException { - List list = findByUuid_C(uuid, companyId, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByUuid_C_Last(String uuid, long companyId, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByUuid_C_Last(uuid, companyId, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", companyId="); - msg.append(companyId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the last i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByUuid_C_Last(String uuid, long companyId, - OrderByComparator orderByComparator) throws SystemException { - int count = countByUuid_C(uuid, companyId); - - if (count == 0) { - return null; - } - - List list = findByUuid_C(uuid, companyId, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where uuid = ? and companyId = ?. - * - * @param iuvId the primary key of the current i u v - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV[] findByUuid_C_PrevAndNext(long iuvId, String uuid, - long companyId, OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = findByPrimaryKey(iuvId); - - Session session = null; - - try { - session = openSession(); - - IUV[] array = new IUVImpl[3]; - - array[0] = getByUuid_C_PrevAndNext(session, iuv, uuid, companyId, - orderByComparator, true); - - array[1] = iuv; - - array[2] = getByUuid_C_PrevAndNext(session, iuv, uuid, companyId, - orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected IUV getByUuid_C_PrevAndNext(Session session, IUV iuv, - String uuid, long companyId, OrderByComparator orderByComparator, - boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(iuv); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the i u vs where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByUuid_C(String uuid, long companyId) - throws SystemException { - for (IUV iuv : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null)) { - remove(iuv); - } - } - - /** - * Returns the number of i u vs where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUuid_C(String uuid, long companyId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C; - - Object[] finderArgs = new Object[] { uuid, companyId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_IUV_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_C_UUID_1 = "iuv.uuid IS NULL AND "; - private static final String _FINDER_COLUMN_UUID_C_UUID_2 = "iuv.uuid = ? AND "; - private static final String _FINDER_COLUMN_UUID_C_UUID_3 = "(iuv.uuid IS NULL OR iuv.uuid = '') AND "; - private static final String _FINDER_COLUMN_UUID_C_COMPANYID_2 = "iuv.companyId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PAGAMENTO = - new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByPagamento", - new String[] { - Long.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PAGAMENTO = - new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByPagamento", - new String[] { Long.class.getName() }, - IUVModelImpl.PAGAMENTOID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_PAGAMENTO = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByPagamento", - new String[] { Long.class.getName() }); - - /** - * Returns all the i u vs where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByPagamento(long pagamentoId) - throws SystemException { - return findByPagamento(pagamentoId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the i u vs where pagamentoId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param pagamentoId the pagamento ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByPagamento(long pagamentoId, int start, int end) - throws SystemException { - return findByPagamento(pagamentoId, start, end, null); - } - - /** - * Returns an ordered range of all the i u vs where pagamentoId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param pagamentoId the pagamento ID - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByPagamento(long pagamentoId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PAGAMENTO; - finderArgs = new Object[] { pagamentoId }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_PAGAMENTO; - finderArgs = new Object[] { pagamentoId, start, end, orderByComparator }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (IUV iuv : list) { - if ((pagamentoId != iuv.getPagamentoId())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(3 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - query.append(_FINDER_COLUMN_PAGAMENTO_PAGAMENTOID_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(pagamentoId); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), start, - end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByPagamento_First(long pagamentoId, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByPagamento_First(pagamentoId, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("pagamentoId="); - msg.append(pagamentoId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the first i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByPagamento_First(long pagamentoId, - OrderByComparator orderByComparator) throws SystemException { - List list = findByPagamento(pagamentoId, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByPagamento_Last(long pagamentoId, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByPagamento_Last(pagamentoId, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("pagamentoId="); - msg.append(pagamentoId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the last i u v in the ordered set where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByPagamento_Last(long pagamentoId, - OrderByComparator orderByComparator) throws SystemException { - int count = countByPagamento(pagamentoId); - - if (count == 0) { - return null; - } - - List list = findByPagamento(pagamentoId, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where pagamentoId = ?. - * - * @param iuvId the primary key of the current i u v - * @param pagamentoId the pagamento ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV[] findByPagamento_PrevAndNext(long iuvId, long pagamentoId, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = findByPrimaryKey(iuvId); - - Session session = null; - - try { - session = openSession(); - - IUV[] array = new IUVImpl[3]; - - array[0] = getByPagamento_PrevAndNext(session, iuv, pagamentoId, - orderByComparator, true); - - array[1] = iuv; - - array[2] = getByPagamento_PrevAndNext(session, iuv, pagamentoId, - orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected IUV getByPagamento_PrevAndNext(Session session, IUV iuv, - long pagamentoId, OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - query.append(_FINDER_COLUMN_PAGAMENTO_PAGAMENTOID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(pagamentoId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(iuv); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the i u vs where pagamentoId = ? from the database. - * - * @param pagamentoId the pagamento ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByPagamento(long pagamentoId) throws SystemException { - for (IUV iuv : findByPagamento(pagamentoId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null)) { - remove(iuv); - } - } - - /** - * Returns the number of i u vs where pagamentoId = ?. - * - * @param pagamentoId the pagamento ID - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int countByPagamento(long pagamentoId) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_PAGAMENTO; - - Object[] finderArgs = new Object[] { pagamentoId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_IUV_WHERE); - - query.append(_FINDER_COLUMN_PAGAMENTO_PAGAMENTOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(pagamentoId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_PAGAMENTO_PAGAMENTOID_2 = "iuv.pagamentoId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TIPOPAGAMENTO = - new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByTipoPagamento", - new String[] { - String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TIPOPAGAMENTO = - new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByTipoPagamento", - new String[] { String.class.getName() }, - IUVModelImpl.TIPOPAGAMENTO_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_TIPOPAGAMENTO = new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByTipoPagamento", - new String[] { String.class.getName() }); - - /** - * Returns all the i u vs where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByTipoPagamento(String tipoPagamento) - throws SystemException { - return findByTipoPagamento(tipoPagamento, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the i u vs where tipoPagamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByTipoPagamento(String tipoPagamento, int start, - int end) throws SystemException { - return findByTipoPagamento(tipoPagamento, start, end, null); - } - - /** - * Returns an ordered range of all the i u vs where tipoPagamento = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByTipoPagamento(String tipoPagamento, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TIPOPAGAMENTO; - finderArgs = new Object[] { tipoPagamento }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_TIPOPAGAMENTO; - finderArgs = new Object[] { - tipoPagamento, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (IUV iuv : list) { - if (!Validator.equals(tipoPagamento, iuv.getTipoPagamento())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(3 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindTipoPagamento = false; - - if (tipoPagamento == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_1); - } - else if (tipoPagamento.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_3); - } - else { - bindTipoPagamento = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindTipoPagamento) { - qPos.add(tipoPagamento); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), start, - end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByTipoPagamento_First(String tipoPagamento, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByTipoPagamento_First(tipoPagamento, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("tipoPagamento="); - msg.append(tipoPagamento); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByTipoPagamento_First(String tipoPagamento, - OrderByComparator orderByComparator) throws SystemException { - List list = findByTipoPagamento(tipoPagamento, 0, 1, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByTipoPagamento_Last(String tipoPagamento, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByTipoPagamento_Last(tipoPagamento, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("tipoPagamento="); - msg.append(tipoPagamento); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByTipoPagamento_Last(String tipoPagamento, - OrderByComparator orderByComparator) throws SystemException { - int count = countByTipoPagamento(tipoPagamento); - - if (count == 0) { - return null; - } - - List list = findByTipoPagamento(tipoPagamento, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where tipoPagamento = ?. - * - * @param iuvId the primary key of the current i u v - * @param tipoPagamento the tipo pagamento - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV[] findByTipoPagamento_PrevAndNext(long iuvId, - String tipoPagamento, OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = findByPrimaryKey(iuvId); - - Session session = null; - - try { - session = openSession(); - - IUV[] array = new IUVImpl[3]; - - array[0] = getByTipoPagamento_PrevAndNext(session, iuv, - tipoPagamento, orderByComparator, true); - - array[1] = iuv; - - array[2] = getByTipoPagamento_PrevAndNext(session, iuv, - tipoPagamento, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected IUV getByTipoPagamento_PrevAndNext(Session session, IUV iuv, - String tipoPagamento, OrderByComparator orderByComparator, - boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindTipoPagamento = false; - - if (tipoPagamento == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_1); - } - else if (tipoPagamento.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_3); - } - else { - bindTipoPagamento = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindTipoPagamento) { - qPos.add(tipoPagamento); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(iuv); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the i u vs where tipoPagamento = ? from the database. - * - * @param tipoPagamento the tipo pagamento - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByTipoPagamento(String tipoPagamento) - throws SystemException { - for (IUV iuv : findByTipoPagamento(tipoPagamento, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null)) { - remove(iuv); - } - } - - /** - * Returns the number of i u vs where tipoPagamento = ?. - * - * @param tipoPagamento the tipo pagamento - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int countByTipoPagamento(String tipoPagamento) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_TIPOPAGAMENTO; - - Object[] finderArgs = new Object[] { tipoPagamento }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_IUV_WHERE); - - boolean bindTipoPagamento = false; - - if (tipoPagamento == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_1); - } - else if (tipoPagamento.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_3); - } - else { - bindTipoPagamento = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindTipoPagamento) { - qPos.add(tipoPagamento); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_1 = "iuv.tipoPagamento IS NULL"; - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_2 = "iuv.tipoPagamento = ?"; - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_TIPOPAGAMENTO_3 = "(iuv.tipoPagamento IS NULL OR iuv.tipoPagamento = '')"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TIPOPAGAMENTO_CREATEDATE = - new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, IUVImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByTipoPagamento_CreateDate", - new String[] { - String.class.getName(), Date.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_TIPOPAGAMENTO_CREATEDATE = - new FinderPath(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "countByTipoPagamento_CreateDate", - new String[] { String.class.getName(), Date.class.getName() }); - - /** - * Returns all the i u vs where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @return the matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByTipoPagamento_CreateDate(String tipoPagamento, - Date createDate) throws SystemException { - return findByTipoPagamento_CreateDate(tipoPagamento, createDate, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the i u vs where tipoPagamento = ? and createDate < ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByTipoPagamento_CreateDate(String tipoPagamento, - Date createDate, int start, int end) throws SystemException { - return findByTipoPagamento_CreateDate(tipoPagamento, createDate, start, - end, null); - } - - /** - * Returns an ordered range of all the i u vs where tipoPagamento = ? and createDate < ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findByTipoPagamento_CreateDate(String tipoPagamento, - Date createDate, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_TIPOPAGAMENTO_CREATEDATE; - finderArgs = new Object[] { - tipoPagamento, createDate, - - start, end, orderByComparator - }; - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (IUV iuv : list) { - if (!Validator.equals(tipoPagamento, iuv.getTipoPagamento()) || - (createDate.getTime() <= iuv.getCreateDate().getTime())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindTipoPagamento = false; - - if (tipoPagamento == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_1); - } - else if (tipoPagamento.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_3); - } - else { - bindTipoPagamento = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_2); - } - - boolean bindCreateDate = false; - - if (createDate == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_1); - } - else { - bindCreateDate = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindTipoPagamento) { - qPos.add(tipoPagamento); - } - - if (bindCreateDate) { - qPos.add(CalendarUtil.getTimestamp(createDate)); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), start, - end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByTipoPagamento_CreateDate_First(String tipoPagamento, - Date createDate, OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByTipoPagamento_CreateDate_First(tipoPagamento, - createDate, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("tipoPagamento="); - msg.append(tipoPagamento); - - msg.append(", createDate="); - msg.append(createDate); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the first i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByTipoPagamento_CreateDate_First(String tipoPagamento, - Date createDate, OrderByComparator orderByComparator) - throws SystemException { - List list = findByTipoPagamento_CreateDate(tipoPagamento, - createDate, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByTipoPagamento_CreateDate_Last(String tipoPagamento, - Date createDate, OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByTipoPagamento_CreateDate_Last(tipoPagamento, - createDate, orderByComparator); - - if (iuv != null) { - return iuv; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("tipoPagamento="); - msg.append(tipoPagamento); - - msg.append(", createDate="); - msg.append(createDate); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchIUVException(msg.toString()); - } - - /** - * Returns the last i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching i u v, or null if a matching i u v could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByTipoPagamento_CreateDate_Last(String tipoPagamento, - Date createDate, OrderByComparator orderByComparator) - throws SystemException { - int count = countByTipoPagamento_CreateDate(tipoPagamento, createDate); - - if (count == 0) { - return null; - } - - List list = findByTipoPagamento_CreateDate(tipoPagamento, - createDate, count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the i u vs before and after the current i u v in the ordered set where tipoPagamento = ? and createDate < ?. - * - * @param iuvId the primary key of the current i u v - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV[] findByTipoPagamento_CreateDate_PrevAndNext(long iuvId, - String tipoPagamento, Date createDate, - OrderByComparator orderByComparator) - throws NoSuchIUVException, SystemException { - IUV iuv = findByPrimaryKey(iuvId); - - Session session = null; - - try { - session = openSession(); - - IUV[] array = new IUVImpl[3]; - - array[0] = getByTipoPagamento_CreateDate_PrevAndNext(session, iuv, - tipoPagamento, createDate, orderByComparator, true); - - array[1] = iuv; - - array[2] = getByTipoPagamento_CreateDate_PrevAndNext(session, iuv, - tipoPagamento, createDate, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected IUV getByTipoPagamento_CreateDate_PrevAndNext(Session session, - IUV iuv, String tipoPagamento, Date createDate, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_IUV_WHERE); - - boolean bindTipoPagamento = false; - - if (tipoPagamento == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_1); - } - else if (tipoPagamento.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_3); - } - else { - bindTipoPagamento = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_2); - } - - boolean bindCreateDate = false; - - if (createDate == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_1); - } - else { - bindCreateDate = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(IUVModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindTipoPagamento) { - qPos.add(tipoPagamento); - } - - if (bindCreateDate) { - qPos.add(CalendarUtil.getTimestamp(createDate)); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(iuv); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the i u vs where tipoPagamento = ? and createDate < ? from the database. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByTipoPagamento_CreateDate(String tipoPagamento, - Date createDate) throws SystemException { - for (IUV iuv : findByTipoPagamento_CreateDate(tipoPagamento, - createDate, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(iuv); - } - } - - /** - * Returns the number of i u vs where tipoPagamento = ? and createDate < ?. - * - * @param tipoPagamento the tipo pagamento - * @param createDate the create date - * @return the number of matching i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int countByTipoPagamento_CreateDate(String tipoPagamento, - Date createDate) throws SystemException { - FinderPath finderPath = FINDER_PATH_WITH_PAGINATION_COUNT_BY_TIPOPAGAMENTO_CREATEDATE; - - Object[] finderArgs = new Object[] { tipoPagamento, createDate }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_IUV_WHERE); - - boolean bindTipoPagamento = false; - - if (tipoPagamento == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_1); - } - else if (tipoPagamento.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_3); - } - else { - bindTipoPagamento = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_2); - } - - boolean bindCreateDate = false; - - if (createDate == null) { - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_1); - } - else { - bindCreateDate = true; - - query.append(_FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindTipoPagamento) { - qPos.add(tipoPagamento); - } - - if (bindCreateDate) { - qPos.add(CalendarUtil.getTimestamp(createDate)); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_1 = - "iuv.tipoPagamento IS NULL AND "; - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_2 = - "iuv.tipoPagamento = ? AND "; - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_TIPOPAGAMENTO_3 = - "(iuv.tipoPagamento IS NULL OR iuv.tipoPagamento = '') AND "; - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_1 = - "iuv.createDate < NULL"; - private static final String _FINDER_COLUMN_TIPOPAGAMENTO_CREATEDATE_CREATEDATE_2 = - "iuv.createDate < ?"; - - public IUVPersistenceImpl() { - setModelClass(IUV.class); - } - - /** - * Caches the i u v in the entity cache if it is enabled. - * - * @param iuv the i u v - */ - @Override - public void cacheResult(IUV iuv) { - EntityCacheUtil.putResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, iuv.getPrimaryKey(), iuv); - - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - new Object[] { iuv.getUuid(), iuv.getGroupId() }, iuv); - - iuv.resetOriginalValues(); - } - - /** - * Caches the i u vs in the entity cache if it is enabled. - * - * @param iuvs the i u vs - */ - @Override - public void cacheResult(List iuvs) { - for (IUV iuv : iuvs) { - if (EntityCacheUtil.getResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, iuv.getPrimaryKey()) == null) { - cacheResult(iuv); - } - else { - iuv.resetOriginalValues(); - } - } - } - - /** - * Clears the cache for all i u vs. - * - *

- * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. - *

- */ - @Override - public void clearCache() { - if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { - CacheRegistryUtil.clear(IUVImpl.class.getName()); - } - - EntityCacheUtil.clearCache(IUVImpl.class.getName()); - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - /** - * Clears the cache for the i u v. - * - *

- * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. - *

- */ - @Override - public void clearCache(IUV iuv) { - EntityCacheUtil.removeResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, iuv.getPrimaryKey()); - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - - clearUniqueFindersCache(iuv); - } - - @Override - public void clearCache(List iuvs) { - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - - for (IUV iuv : iuvs) { - EntityCacheUtil.removeResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, iuv.getPrimaryKey()); - - clearUniqueFindersCache(iuv); - } - } - - protected void cacheUniqueFindersCache(IUV iuv) { - if (iuv.isNew()) { - Object[] args = new Object[] { iuv.getUuid(), iuv.getGroupId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, iuv); - } - else { - IUVModelImpl iuvModelImpl = (IUVModelImpl)iuv; - - if ((iuvModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { - Object[] args = new Object[] { iuv.getUuid(), iuv.getGroupId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, iuv); - } - } - } - - protected void clearUniqueFindersCache(IUV iuv) { - IUVModelImpl iuvModelImpl = (IUVModelImpl)iuv; - - Object[] args = new Object[] { iuv.getUuid(), iuv.getGroupId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); - - if ((iuvModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { - args = new Object[] { - iuvModelImpl.getOriginalUuid(), - iuvModelImpl.getOriginalGroupId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); - } - } - - /** - * Creates a new i u v with the primary key. Does not add the i u v to the database. - * - * @param iuvId the primary key for the new i u v - * @return the new i u v - */ - @Override - public IUV create(long iuvId) { - IUV iuv = new IUVImpl(); - - iuv.setNew(true); - iuv.setPrimaryKey(iuvId); - - String uuid = PortalUUIDUtil.generate(); - - iuv.setUuid(uuid); - - return iuv; - } - - /** - * Removes the i u v with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param iuvId the primary key of the i u v - * @return the i u v that was removed - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV remove(long iuvId) throws NoSuchIUVException, SystemException { - return remove((Serializable)iuvId); - } - - /** - * Removes the i u v with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param primaryKey the primary key of the i u v - * @return the i u v that was removed - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV remove(Serializable primaryKey) - throws NoSuchIUVException, SystemException { - Session session = null; - - try { - session = openSession(); - - IUV iuv = (IUV)session.get(IUVImpl.class, primaryKey); - - if (iuv == null) { - if (_log.isWarnEnabled()) { - _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); - } - - throw new NoSuchIUVException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + - primaryKey); - } - - return remove(iuv); - } - catch (NoSuchIUVException nsee) { - throw nsee; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - @Override - protected IUV removeImpl(IUV iuv) throws SystemException { - iuv = toUnwrappedModel(iuv); - - Session session = null; - - try { - session = openSession(); - - if (!session.contains(iuv)) { - iuv = (IUV)session.get(IUVImpl.class, iuv.getPrimaryKeyObj()); - } - - if (iuv != null) { - session.delete(iuv); - } - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - - if (iuv != null) { - clearCache(iuv); - } - - return iuv; - } - - @Override - public IUV updateImpl(it.tref.liferay.portos.bo.model.IUV iuv) - throws SystemException { - iuv = toUnwrappedModel(iuv); - - boolean isNew = iuv.isNew(); - - IUVModelImpl iuvModelImpl = (IUVModelImpl)iuv; - - if (Validator.isNull(iuv.getUuid())) { - String uuid = PortalUUIDUtil.generate(); - - iuv.setUuid(uuid); - } - - Session session = null; - - try { - session = openSession(); - - if (iuv.isNew()) { - session.save(iuv); - - iuv.setNew(false); - } - else { - session.merge(iuv); - } - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - - if (isNew || !IUVModelImpl.COLUMN_BITMASK_ENABLED) { - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - else { - if ((iuvModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { iuvModelImpl.getOriginalUuid() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, - args); - - args = new Object[] { iuvModelImpl.getUuid() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, - args); - } - - if ((iuvModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - iuvModelImpl.getOriginalUuid(), - iuvModelImpl.getOriginalCompanyId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, - args); - - args = new Object[] { - iuvModelImpl.getUuid(), iuvModelImpl.getCompanyId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, - args); - } - - if ((iuvModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PAGAMENTO.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - iuvModelImpl.getOriginalPagamentoId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PAGAMENTO, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PAGAMENTO, - args); - - args = new Object[] { iuvModelImpl.getPagamentoId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PAGAMENTO, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PAGAMENTO, - args); - } - - if ((iuvModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TIPOPAGAMENTO.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - iuvModelImpl.getOriginalTipoPagamento() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TIPOPAGAMENTO, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TIPOPAGAMENTO, - args); - - args = new Object[] { iuvModelImpl.getTipoPagamento() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TIPOPAGAMENTO, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TIPOPAGAMENTO, - args); - } - } - - EntityCacheUtil.putResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, iuv.getPrimaryKey(), iuv); - - clearUniqueFindersCache(iuv); - cacheUniqueFindersCache(iuv); - - return iuv; - } - - protected IUV toUnwrappedModel(IUV iuv) { - if (iuv instanceof IUVImpl) { - return iuv; - } - - IUVImpl iuvImpl = new IUVImpl(); - - iuvImpl.setNew(iuv.isNew()); - iuvImpl.setPrimaryKey(iuv.getPrimaryKey()); - - iuvImpl.setUuid(iuv.getUuid()); - iuvImpl.setIuvId(iuv.getIuvId()); - iuvImpl.setCompanyId(iuv.getCompanyId()); - iuvImpl.setUserId(iuv.getUserId()); - iuvImpl.setUserName(iuv.getUserName()); - iuvImpl.setCreateDate(iuv.getCreateDate()); - iuvImpl.setModifiedDate(iuv.getModifiedDate()); - iuvImpl.setGroupId(iuv.getGroupId()); - iuvImpl.setPagamentoId(iuv.getPagamentoId()); - iuvImpl.setCodice(iuv.getCodice()); - iuvImpl.setTipoPagamento(iuv.getTipoPagamento()); - - return iuvImpl; - } - - /** - * Returns the i u v with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found. - * - * @param primaryKey the primary key of the i u v - * @return the i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByPrimaryKey(Serializable primaryKey) - throws NoSuchIUVException, SystemException { - IUV iuv = fetchByPrimaryKey(primaryKey); - - if (iuv == null) { - if (_log.isWarnEnabled()) { - _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); - } - - throw new NoSuchIUVException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + - primaryKey); - } - - return iuv; - } - - /** - * Returns the i u v with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchIUVException} if it could not be found. - * - * @param iuvId the primary key of the i u v - * @return the i u v - * @throws it.tref.liferay.portos.bo.NoSuchIUVException if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV findByPrimaryKey(long iuvId) - throws NoSuchIUVException, SystemException { - return findByPrimaryKey((Serializable)iuvId); - } - - /** - * Returns the i u v with the primary key or returns null if it could not be found. - * - * @param primaryKey the primary key of the i u v - * @return the i u v, or null if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByPrimaryKey(Serializable primaryKey) - throws SystemException { - IUV iuv = (IUV)EntityCacheUtil.getResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, primaryKey); - - if (iuv == _nullIUV) { - return null; - } - - if (iuv == null) { - Session session = null; - - try { - session = openSession(); - - iuv = (IUV)session.get(IUVImpl.class, primaryKey); - - if (iuv != null) { - cacheResult(iuv); - } - else { - EntityCacheUtil.putResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, primaryKey, _nullIUV); - } - } - catch (Exception e) { - EntityCacheUtil.removeResult(IUVModelImpl.ENTITY_CACHE_ENABLED, - IUVImpl.class, primaryKey); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return iuv; - } - - /** - * Returns the i u v with the primary key or returns null if it could not be found. - * - * @param iuvId the primary key of the i u v - * @return the i u v, or null if a i u v with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IUV fetchByPrimaryKey(long iuvId) throws SystemException { - return fetchByPrimaryKey((Serializable)iuvId); - } - - /** - * Returns all the i u vs. - * - * @return the i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll() throws SystemException { - return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the i u vs. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @return the range of i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll(int start, int end) throws SystemException { - return findAll(start, end, null); - } - - /** - * Returns an ordered range of all the i u vs. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.IUVModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of i u vs - * @param end the upper bound of the range of i u vs (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll(int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL; - finderArgs = FINDER_ARGS_EMPTY; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_ALL; - finderArgs = new Object[] { start, end, orderByComparator }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if (list == null) { - StringBundler query = null; - String sql = null; - - if (orderByComparator != null) { - query = new StringBundler(2 + - (orderByComparator.getOrderByFields().length * 3)); - - query.append(_SQL_SELECT_IUV); - - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - - sql = query.toString(); - } - else { - sql = _SQL_SELECT_IUV; - - if (pagination) { - sql = sql.concat(IUVModelImpl.ORDER_BY_JPQL); - } - } - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), start, - end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Removes all the i u vs from the database. - * - * @throws SystemException if a system exception occurred - */ - @Override - public void removeAll() throws SystemException { - for (IUV iuv : findAll()) { - remove(iuv); - } - } - - /** - * Returns the number of i u vs. - * - * @return the number of i u vs - * @throws SystemException if a system exception occurred - */ - @Override - public int countAll() throws SystemException { - Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY, this); - - if (count == null) { - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(_SQL_COUNT_IUV); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - @Override - protected Set getBadColumnNames() { - return _badColumnNames; - } - - /** - * Initializes the i u v persistence. - */ - public void afterPropertiesSet() { - String[] listenerClassNames = StringUtil.split(GetterUtil.getString( - com.liferay.util.service.ServiceProps.get( - "value.object.listener.it.tref.liferay.portos.bo.model.IUV"))); - - if (listenerClassNames.length > 0) { - try { - List> listenersList = new ArrayList>(); - - for (String listenerClassName : listenerClassNames) { - listenersList.add((ModelListener)InstanceFactory.newInstance( - getClassLoader(), listenerClassName)); - } - - listeners = listenersList.toArray(new ModelListener[listenersList.size()]); - } - catch (Exception e) { - _log.error(e); - } - } - } - - public void destroy() { - EntityCacheUtil.removeCache(IUVImpl.class.getName()); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_ENTITY); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - private static final String _SQL_SELECT_IUV = "SELECT iuv FROM IUV iuv"; - private static final String _SQL_SELECT_IUV_WHERE = "SELECT iuv FROM IUV iuv WHERE "; - private static final String _SQL_COUNT_IUV = "SELECT COUNT(iuv) FROM IUV iuv"; - private static final String _SQL_COUNT_IUV_WHERE = "SELECT COUNT(iuv) FROM IUV iuv WHERE "; - private static final String _ORDER_BY_ENTITY_ALIAS = "iuv."; - private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No IUV exists with the primary key "; - private static final String _NO_SUCH_ENTITY_WITH_KEY = "No IUV exists with the key {"; - private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get( - PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE)); - private static Log _log = LogFactoryUtil.getLog(IUVPersistenceImpl.class); - private static Set _badColumnNames = SetUtil.fromArray(new String[] { - "uuid" - }); - private static IUV _nullIUV = new IUVImpl() { - @Override - public Object clone() { - return this; - } - - @Override - public CacheModel toCacheModel() { - return _nullIUVCacheModel; - } - }; - - private static CacheModel _nullIUVCacheModel = new CacheModel() { - @Override - public IUV toEntityModel() { - return _nullIUV; - } - }; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistenceImpl.java deleted file mode 100644 index b85535de..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/InfoFascicoloPersistenceImpl.java +++ /dev/null @@ -1,2422 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.cache.CacheRegistryUtil; -import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; -import com.liferay.portal.kernel.dao.orm.FinderCacheUtil; -import com.liferay.portal.kernel.dao.orm.FinderPath; -import com.liferay.portal.kernel.dao.orm.Query; -import com.liferay.portal.kernel.dao.orm.QueryPos; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.dao.orm.Session; -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.GetterUtil; -import com.liferay.portal.kernel.util.InstanceFactory; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.PropsKeys; -import com.liferay.portal.kernel.util.PropsUtil; -import com.liferay.portal.kernel.util.SetUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.UnmodifiableList; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.uuid.PortalUUIDUtil; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.ModelListener; -import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; - -import it.tref.liferay.portos.bo.NoSuchInfoFascicoloException; -import it.tref.liferay.portos.bo.model.InfoFascicolo; -import it.tref.liferay.portos.bo.model.impl.InfoFascicoloImpl; -import it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl; -import it.tref.liferay.portos.bo.service.persistence.InfoFascicoloPersistence; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Set; - -/** - * The persistence implementation for the info fascicolo service. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see InfoFascicoloPersistence - * @see InfoFascicoloUtil - * @generated - */ -public class InfoFascicoloPersistenceImpl extends BasePersistenceImpl - implements InfoFascicoloPersistence { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link InfoFascicoloUtil} to access the info fascicolo persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class. - */ - public static final String FINDER_CLASS_NAME_ENTITY = InfoFascicoloImpl.class.getName(); - public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION = FINDER_CLASS_NAME_ENTITY + - ".List1"; - public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION = FINDER_CLASS_NAME_ENTITY + - ".List2"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findAll", new String[0]); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findAll", new String[0]); - public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByUuid", - new String[] { - String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByUuid", new String[] { String.class.getName() }, - InfoFascicoloModelImpl.UUID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid", - new String[] { String.class.getName() }); - - /** - * Returns all the info fascicolos where uuid = ?. - * - * @param uuid the uuid - * @return the matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid) - throws SystemException { - return findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the info fascicolos where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid, int start, int end) - throws SystemException { - return findByUuid(uuid, start, end, null); - } - - /** - * Returns an ordered range of all the info fascicolos where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID; - finderArgs = new Object[] { uuid }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID; - finderArgs = new Object[] { uuid, start, end, orderByComparator }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (InfoFascicolo infoFascicolo : list) { - if (!Validator.equals(uuid, infoFascicolo.getUuid())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(3 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(InfoFascicoloModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByUuid_First(String uuid, - OrderByComparator orderByComparator) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = fetchByUuid_First(uuid, orderByComparator); - - if (infoFascicolo != null) { - return infoFascicolo; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchInfoFascicoloException(msg.toString()); - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByUuid_First(String uuid, - OrderByComparator orderByComparator) throws SystemException { - List list = findByUuid(uuid, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByUuid_Last(String uuid, - OrderByComparator orderByComparator) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = fetchByUuid_Last(uuid, orderByComparator); - - if (infoFascicolo != null) { - return infoFascicolo; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchInfoFascicoloException(msg.toString()); - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByUuid_Last(String uuid, - OrderByComparator orderByComparator) throws SystemException { - int count = countByUuid(uuid); - - if (count == 0) { - return null; - } - - List list = findByUuid(uuid, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the info fascicolos before and after the current info fascicolo in the ordered set where uuid = ?. - * - * @param infoFascicoloId the primary key of the current info fascicolo - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo[] findByUuid_PrevAndNext(long infoFascicoloId, - String uuid, OrderByComparator orderByComparator) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = findByPrimaryKey(infoFascicoloId); - - Session session = null; - - try { - session = openSession(); - - InfoFascicolo[] array = new InfoFascicoloImpl[3]; - - array[0] = getByUuid_PrevAndNext(session, infoFascicolo, uuid, - orderByComparator, true); - - array[1] = infoFascicolo; - - array[2] = getByUuid_PrevAndNext(session, infoFascicolo, uuid, - orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected InfoFascicolo getByUuid_PrevAndNext(Session session, - InfoFascicolo infoFascicolo, String uuid, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(InfoFascicoloModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(infoFascicolo); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the info fascicolos where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByUuid(String uuid) throws SystemException { - for (InfoFascicolo infoFascicolo : findByUuid(uuid, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null)) { - remove(infoFascicolo); - } - } - - /** - * Returns the number of info fascicolos where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUuid(String uuid) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID; - - Object[] finderArgs = new Object[] { uuid }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_UUID_1 = "infoFascicolo.uuid IS NULL"; - private static final String _FINDER_COLUMN_UUID_UUID_2 = "infoFascicolo.uuid = ?"; - private static final String _FINDER_COLUMN_UUID_UUID_3 = "(infoFascicolo.uuid IS NULL OR infoFascicolo.uuid = '')"; - public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_ENTITY, "fetchByUUID_G", - new String[] { String.class.getName(), Long.class.getName() }, - InfoFascicoloModelImpl.UUID_COLUMN_BITMASK | - InfoFascicoloModelImpl.GROUPID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUUID_G", - new String[] { String.class.getName(), Long.class.getName() }); - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByUUID_G(String uuid, long groupId) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = fetchByUUID_G(uuid, groupId); - - if (infoFascicolo == null) { - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", groupId="); - msg.append(groupId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchInfoFascicoloException(msg.toString()); - } - - return infoFascicolo; - } - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByUUID_G(String uuid, long groupId) - throws SystemException { - return fetchByUUID_G(uuid, groupId, true); - } - - /** - * Returns the info fascicolo where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByUUID_G(String uuid, long groupId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { uuid, groupId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, this); - } - - if (result instanceof InfoFascicolo) { - InfoFascicolo infoFascicolo = (InfoFascicolo)result; - - if (!Validator.equals(uuid, infoFascicolo.getUuid()) || - (groupId != infoFascicolo.getGroupId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(4); - - query.append(_SQL_SELECT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_G_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_G_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_G_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(groupId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, list); - } - else { - InfoFascicolo infoFascicolo = list.get(0); - - result = infoFascicolo; - - cacheResult(infoFascicolo); - - if ((infoFascicolo.getUuid() == null) || - !infoFascicolo.getUuid().equals(uuid) || - (infoFascicolo.getGroupId() != groupId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, infoFascicolo); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (InfoFascicolo)result; - } - } - - /** - * Removes the info fascicolo where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo removeByUUID_G(String uuid, long groupId) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = findByUUID_G(uuid, groupId); - - return remove(infoFascicolo); - } - - /** - * Returns the number of info fascicolos where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUUID_G(String uuid, long groupId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G; - - Object[] finderArgs = new Object[] { uuid, groupId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_G_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_G_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_G_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(groupId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_G_UUID_1 = "infoFascicolo.uuid IS NULL AND "; - private static final String _FINDER_COLUMN_UUID_G_UUID_2 = "infoFascicolo.uuid = ? AND "; - private static final String _FINDER_COLUMN_UUID_G_UUID_3 = "(infoFascicolo.uuid IS NULL OR infoFascicolo.uuid = '') AND "; - private static final String _FINDER_COLUMN_UUID_G_GROUPID_2 = "infoFascicolo.groupId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByUuid_C", - new String[] { - String.class.getName(), Long.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C = - new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByUuid_C", - new String[] { String.class.getName(), Long.class.getName() }, - InfoFascicoloModelImpl.UUID_COLUMN_BITMASK | - InfoFascicoloModelImpl.COMPANYID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid_C", - new String[] { String.class.getName(), Long.class.getName() }); - - /** - * Returns all the info fascicolos where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId) - throws SystemException { - return findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the info fascicolos where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId, - int start, int end) throws SystemException { - return findByUuid_C(uuid, companyId, start, end, null); - } - - /** - * Returns an ordered range of all the info fascicolos where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId, - int start, int end, OrderByComparator orderByComparator) - throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C; - finderArgs = new Object[] { uuid, companyId }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C; - finderArgs = new Object[] { - uuid, companyId, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (InfoFascicolo infoFascicolo : list) { - if (!Validator.equals(uuid, infoFascicolo.getUuid()) || - (companyId != infoFascicolo.getCompanyId())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(InfoFascicoloModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByUuid_C_First(String uuid, long companyId, - OrderByComparator orderByComparator) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = fetchByUuid_C_First(uuid, companyId, - orderByComparator); - - if (infoFascicolo != null) { - return infoFascicolo; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", companyId="); - msg.append(companyId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchInfoFascicoloException(msg.toString()); - } - - /** - * Returns the first info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByUuid_C_First(String uuid, long companyId, - OrderByComparator orderByComparator) throws SystemException { - List list = findByUuid_C(uuid, companyId, 0, 1, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByUuid_C_Last(String uuid, long companyId, - OrderByComparator orderByComparator) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = fetchByUuid_C_Last(uuid, companyId, - orderByComparator); - - if (infoFascicolo != null) { - return infoFascicolo; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", companyId="); - msg.append(companyId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchInfoFascicoloException(msg.toString()); - } - - /** - * Returns the last info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByUuid_C_Last(String uuid, long companyId, - OrderByComparator orderByComparator) throws SystemException { - int count = countByUuid_C(uuid, companyId); - - if (count == 0) { - return null; - } - - List list = findByUuid_C(uuid, companyId, count - 1, - count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the info fascicolos before and after the current info fascicolo in the ordered set where uuid = ? and companyId = ?. - * - * @param infoFascicoloId the primary key of the current info fascicolo - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo[] findByUuid_C_PrevAndNext(long infoFascicoloId, - String uuid, long companyId, OrderByComparator orderByComparator) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = findByPrimaryKey(infoFascicoloId); - - Session session = null; - - try { - session = openSession(); - - InfoFascicolo[] array = new InfoFascicoloImpl[3]; - - array[0] = getByUuid_C_PrevAndNext(session, infoFascicolo, uuid, - companyId, orderByComparator, true); - - array[1] = infoFascicolo; - - array[2] = getByUuid_C_PrevAndNext(session, infoFascicolo, uuid, - companyId, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected InfoFascicolo getByUuid_C_PrevAndNext(Session session, - InfoFascicolo infoFascicolo, String uuid, long companyId, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(InfoFascicoloModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(infoFascicolo); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the info fascicolos where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByUuid_C(String uuid, long companyId) - throws SystemException { - for (InfoFascicolo infoFascicolo : findByUuid_C(uuid, companyId, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(infoFascicolo); - } - } - - /** - * Returns the number of info fascicolos where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUuid_C(String uuid, long companyId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C; - - Object[] finderArgs = new Object[] { uuid, companyId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_INFOFASCICOLO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_C_UUID_1 = "infoFascicolo.uuid IS NULL AND "; - private static final String _FINDER_COLUMN_UUID_C_UUID_2 = "infoFascicolo.uuid = ? AND "; - private static final String _FINDER_COLUMN_UUID_C_UUID_3 = "(infoFascicolo.uuid IS NULL OR infoFascicolo.uuid = '') AND "; - private static final String _FINDER_COLUMN_UUID_C_COMPANYID_2 = "infoFascicolo.companyId = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_INTPRATICA = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, - InfoFascicoloImpl.class, FINDER_CLASS_NAME_ENTITY, - "fetchByIntPratica", new String[] { Long.class.getName() }, - InfoFascicoloModelImpl.INTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_INTPRATICA = new FinderPath(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByIntPratica", - new String[] { Long.class.getName() }); - - /** - * Returns the info fascicolo where intPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param intPraticaId the int pratica ID - * @return the matching info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByIntPratica(long intPraticaId) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = fetchByIntPratica(intPraticaId); - - if (infoFascicolo == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchInfoFascicoloException(msg.toString()); - } - - return infoFascicolo; - } - - /** - * Returns the info fascicolo where intPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param intPraticaId the int pratica ID - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByIntPratica(long intPraticaId) - throws SystemException { - return fetchByIntPratica(intPraticaId, true); - } - - /** - * Returns the info fascicolo where intPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param intPraticaId the int pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching info fascicolo, or null if a matching info fascicolo could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByIntPratica(long intPraticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { intPraticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_INTPRATICA, - finderArgs, this); - } - - if (result instanceof InfoFascicolo) { - InfoFascicolo infoFascicolo = (InfoFascicolo)result; - - if ((intPraticaId != infoFascicolo.getIntPraticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_INFOFASCICOLO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_INTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICA, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "InfoFascicoloPersistenceImpl.fetchByIntPratica(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - InfoFascicolo infoFascicolo = list.get(0); - - result = infoFascicolo; - - cacheResult(infoFascicolo); - - if ((infoFascicolo.getIntPraticaId() != intPraticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICA, - finderArgs, infoFascicolo); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_INTPRATICA, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (InfoFascicolo)result; - } - } - - /** - * Removes the info fascicolo where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @return the info fascicolo that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo removeByIntPratica(long intPraticaId) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = findByIntPratica(intPraticaId); - - return remove(infoFascicolo); - } - - /** - * Returns the number of info fascicolos where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByIntPratica(long intPraticaId) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICA; - - Object[] finderArgs = new Object[] { intPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_INFOFASCICOLO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_INTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_INTPRATICA_INTPRATICAID_2 = "infoFascicolo.intPraticaId = ?"; - - public InfoFascicoloPersistenceImpl() { - setModelClass(InfoFascicolo.class); - } - - /** - * Caches the info fascicolo in the entity cache if it is enabled. - * - * @param infoFascicolo the info fascicolo - */ - @Override - public void cacheResult(InfoFascicolo infoFascicolo) { - EntityCacheUtil.putResult(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, infoFascicolo.getPrimaryKey(), - infoFascicolo); - - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - new Object[] { infoFascicolo.getUuid(), infoFascicolo.getGroupId() }, - infoFascicolo); - - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICA, - new Object[] { infoFascicolo.getIntPraticaId() }, infoFascicolo); - - infoFascicolo.resetOriginalValues(); - } - - /** - * Caches the info fascicolos in the entity cache if it is enabled. - * - * @param infoFascicolos the info fascicolos - */ - @Override - public void cacheResult(List infoFascicolos) { - for (InfoFascicolo infoFascicolo : infoFascicolos) { - if (EntityCacheUtil.getResult( - InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, infoFascicolo.getPrimaryKey()) == null) { - cacheResult(infoFascicolo); - } - else { - infoFascicolo.resetOriginalValues(); - } - } - } - - /** - * Clears the cache for all info fascicolos. - * - *

- * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. - *

- */ - @Override - public void clearCache() { - if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { - CacheRegistryUtil.clear(InfoFascicoloImpl.class.getName()); - } - - EntityCacheUtil.clearCache(InfoFascicoloImpl.class.getName()); - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - /** - * Clears the cache for the info fascicolo. - * - *

- * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. - *

- */ - @Override - public void clearCache(InfoFascicolo infoFascicolo) { - EntityCacheUtil.removeResult(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, infoFascicolo.getPrimaryKey()); - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - - clearUniqueFindersCache(infoFascicolo); - } - - @Override - public void clearCache(List infoFascicolos) { - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - - for (InfoFascicolo infoFascicolo : infoFascicolos) { - EntityCacheUtil.removeResult(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, infoFascicolo.getPrimaryKey()); - - clearUniqueFindersCache(infoFascicolo); - } - } - - protected void cacheUniqueFindersCache(InfoFascicolo infoFascicolo) { - if (infoFascicolo.isNew()) { - Object[] args = new Object[] { - infoFascicolo.getUuid(), infoFascicolo.getGroupId() - }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, - infoFascicolo); - - args = new Object[] { infoFascicolo.getIntPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_INTPRATICA, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICA, args, - infoFascicolo); - } - else { - InfoFascicoloModelImpl infoFascicoloModelImpl = (InfoFascicoloModelImpl)infoFascicolo; - - if ((infoFascicoloModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - infoFascicolo.getUuid(), infoFascicolo.getGroupId() - }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, - infoFascicolo); - } - - if ((infoFascicoloModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_INTPRATICA.getColumnBitmask()) != 0) { - Object[] args = new Object[] { infoFascicolo.getIntPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_INTPRATICA, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_INTPRATICA, - args, infoFascicolo); - } - } - } - - protected void clearUniqueFindersCache(InfoFascicolo infoFascicolo) { - InfoFascicoloModelImpl infoFascicoloModelImpl = (InfoFascicoloModelImpl)infoFascicolo; - - Object[] args = new Object[] { - infoFascicolo.getUuid(), infoFascicolo.getGroupId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); - - if ((infoFascicoloModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { - args = new Object[] { - infoFascicoloModelImpl.getOriginalUuid(), - infoFascicoloModelImpl.getOriginalGroupId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); - } - - args = new Object[] { infoFascicolo.getIntPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICA, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_INTPRATICA, args); - - if ((infoFascicoloModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_INTPRATICA.getColumnBitmask()) != 0) { - args = new Object[] { infoFascicoloModelImpl.getOriginalIntPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICA, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_INTPRATICA, args); - } - } - - /** - * Creates a new info fascicolo with the primary key. Does not add the info fascicolo to the database. - * - * @param infoFascicoloId the primary key for the new info fascicolo - * @return the new info fascicolo - */ - @Override - public InfoFascicolo create(long infoFascicoloId) { - InfoFascicolo infoFascicolo = new InfoFascicoloImpl(); - - infoFascicolo.setNew(true); - infoFascicolo.setPrimaryKey(infoFascicoloId); - - String uuid = PortalUUIDUtil.generate(); - - infoFascicolo.setUuid(uuid); - - return infoFascicolo; - } - - /** - * Removes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo remove(long infoFascicoloId) - throws NoSuchInfoFascicoloException, SystemException { - return remove((Serializable)infoFascicoloId); - } - - /** - * Removes the info fascicolo with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param primaryKey the primary key of the info fascicolo - * @return the info fascicolo that was removed - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo remove(Serializable primaryKey) - throws NoSuchInfoFascicoloException, SystemException { - Session session = null; - - try { - session = openSession(); - - InfoFascicolo infoFascicolo = (InfoFascicolo)session.get(InfoFascicoloImpl.class, - primaryKey); - - if (infoFascicolo == null) { - if (_log.isWarnEnabled()) { - _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); - } - - throw new NoSuchInfoFascicoloException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + - primaryKey); - } - - return remove(infoFascicolo); - } - catch (NoSuchInfoFascicoloException nsee) { - throw nsee; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - @Override - protected InfoFascicolo removeImpl(InfoFascicolo infoFascicolo) - throws SystemException { - infoFascicolo = toUnwrappedModel(infoFascicolo); - - Session session = null; - - try { - session = openSession(); - - if (!session.contains(infoFascicolo)) { - infoFascicolo = (InfoFascicolo)session.get(InfoFascicoloImpl.class, - infoFascicolo.getPrimaryKeyObj()); - } - - if (infoFascicolo != null) { - session.delete(infoFascicolo); - } - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - - if (infoFascicolo != null) { - clearCache(infoFascicolo); - } - - return infoFascicolo; - } - - @Override - public InfoFascicolo updateImpl( - it.tref.liferay.portos.bo.model.InfoFascicolo infoFascicolo) - throws SystemException { - infoFascicolo = toUnwrappedModel(infoFascicolo); - - boolean isNew = infoFascicolo.isNew(); - - InfoFascicoloModelImpl infoFascicoloModelImpl = (InfoFascicoloModelImpl)infoFascicolo; - - if (Validator.isNull(infoFascicolo.getUuid())) { - String uuid = PortalUUIDUtil.generate(); - - infoFascicolo.setUuid(uuid); - } - - Session session = null; - - try { - session = openSession(); - - if (infoFascicolo.isNew()) { - session.save(infoFascicolo); - - infoFascicolo.setNew(false); - } - else { - session.merge(infoFascicolo); - } - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - - if (isNew || !InfoFascicoloModelImpl.COLUMN_BITMASK_ENABLED) { - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - else { - if ((infoFascicoloModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - infoFascicoloModelImpl.getOriginalUuid() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, - args); - - args = new Object[] { infoFascicoloModelImpl.getUuid() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, - args); - } - - if ((infoFascicoloModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - infoFascicoloModelImpl.getOriginalUuid(), - infoFascicoloModelImpl.getOriginalCompanyId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, - args); - - args = new Object[] { - infoFascicoloModelImpl.getUuid(), - infoFascicoloModelImpl.getCompanyId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, - args); - } - } - - EntityCacheUtil.putResult(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, infoFascicolo.getPrimaryKey(), - infoFascicolo); - - clearUniqueFindersCache(infoFascicolo); - cacheUniqueFindersCache(infoFascicolo); - - return infoFascicolo; - } - - protected InfoFascicolo toUnwrappedModel(InfoFascicolo infoFascicolo) { - if (infoFascicolo instanceof InfoFascicoloImpl) { - return infoFascicolo; - } - - InfoFascicoloImpl infoFascicoloImpl = new InfoFascicoloImpl(); - - infoFascicoloImpl.setNew(infoFascicolo.isNew()); - infoFascicoloImpl.setPrimaryKey(infoFascicolo.getPrimaryKey()); - - infoFascicoloImpl.setUuid(infoFascicolo.getUuid()); - infoFascicoloImpl.setInfoFascicoloId(infoFascicolo.getInfoFascicoloId()); - infoFascicoloImpl.setCompanyId(infoFascicolo.getCompanyId()); - infoFascicoloImpl.setUserId(infoFascicolo.getUserId()); - infoFascicoloImpl.setUserName(infoFascicolo.getUserName()); - infoFascicoloImpl.setCreateDate(infoFascicolo.getCreateDate()); - infoFascicoloImpl.setModifiedDate(infoFascicolo.getModifiedDate()); - infoFascicoloImpl.setGroupId(infoFascicolo.getGroupId()); - infoFascicoloImpl.setIntPraticaId(infoFascicolo.getIntPraticaId()); - infoFascicoloImpl.setNumeroProgetto(infoFascicolo.getNumeroProgetto()); - infoFascicoloImpl.setAlreadyImported(infoFascicolo.isAlreadyImported()); - - return infoFascicoloImpl; - } - - /** - * Returns the info fascicolo with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found. - * - * @param primaryKey the primary key of the info fascicolo - * @return the info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByPrimaryKey(Serializable primaryKey) - throws NoSuchInfoFascicoloException, SystemException { - InfoFascicolo infoFascicolo = fetchByPrimaryKey(primaryKey); - - if (infoFascicolo == null) { - if (_log.isWarnEnabled()) { - _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); - } - - throw new NoSuchInfoFascicoloException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + - primaryKey); - } - - return infoFascicolo; - } - - /** - * Returns the info fascicolo with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchInfoFascicoloException} if it could not be found. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo - * @throws it.tref.liferay.portos.bo.NoSuchInfoFascicoloException if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo findByPrimaryKey(long infoFascicoloId) - throws NoSuchInfoFascicoloException, SystemException { - return findByPrimaryKey((Serializable)infoFascicoloId); - } - - /** - * Returns the info fascicolo with the primary key or returns null if it could not be found. - * - * @param primaryKey the primary key of the info fascicolo - * @return the info fascicolo, or null if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByPrimaryKey(Serializable primaryKey) - throws SystemException { - InfoFascicolo infoFascicolo = (InfoFascicolo)EntityCacheUtil.getResult(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, primaryKey); - - if (infoFascicolo == _nullInfoFascicolo) { - return null; - } - - if (infoFascicolo == null) { - Session session = null; - - try { - session = openSession(); - - infoFascicolo = (InfoFascicolo)session.get(InfoFascicoloImpl.class, - primaryKey); - - if (infoFascicolo != null) { - cacheResult(infoFascicolo); - } - else { - EntityCacheUtil.putResult(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, primaryKey, _nullInfoFascicolo); - } - } - catch (Exception e) { - EntityCacheUtil.removeResult(InfoFascicoloModelImpl.ENTITY_CACHE_ENABLED, - InfoFascicoloImpl.class, primaryKey); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return infoFascicolo; - } - - /** - * Returns the info fascicolo with the primary key or returns null if it could not be found. - * - * @param infoFascicoloId the primary key of the info fascicolo - * @return the info fascicolo, or null if a info fascicolo with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public InfoFascicolo fetchByPrimaryKey(long infoFascicoloId) - throws SystemException { - return fetchByPrimaryKey((Serializable)infoFascicoloId); - } - - /** - * Returns all the info fascicolos. - * - * @return the info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll() throws SystemException { - return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @return the range of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll(int start, int end) - throws SystemException { - return findAll(start, end, null); - } - - /** - * Returns an ordered range of all the info fascicolos. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.InfoFascicoloModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of info fascicolos - * @param end the upper bound of the range of info fascicolos (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll(int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL; - finderArgs = FINDER_ARGS_EMPTY; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_ALL; - finderArgs = new Object[] { start, end, orderByComparator }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if (list == null) { - StringBundler query = null; - String sql = null; - - if (orderByComparator != null) { - query = new StringBundler(2 + - (orderByComparator.getOrderByFields().length * 3)); - - query.append(_SQL_SELECT_INFOFASCICOLO); - - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - - sql = query.toString(); - } - else { - sql = _SQL_SELECT_INFOFASCICOLO; - - if (pagination) { - sql = sql.concat(InfoFascicoloModelImpl.ORDER_BY_JPQL); - } - } - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Removes all the info fascicolos from the database. - * - * @throws SystemException if a system exception occurred - */ - @Override - public void removeAll() throws SystemException { - for (InfoFascicolo infoFascicolo : findAll()) { - remove(infoFascicolo); - } - } - - /** - * Returns the number of info fascicolos. - * - * @return the number of info fascicolos - * @throws SystemException if a system exception occurred - */ - @Override - public int countAll() throws SystemException { - Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY, this); - - if (count == null) { - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(_SQL_COUNT_INFOFASCICOLO); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - @Override - protected Set getBadColumnNames() { - return _badColumnNames; - } - - /** - * Initializes the info fascicolo persistence. - */ - public void afterPropertiesSet() { - String[] listenerClassNames = StringUtil.split(GetterUtil.getString( - com.liferay.util.service.ServiceProps.get( - "value.object.listener.it.tref.liferay.portos.bo.model.InfoFascicolo"))); - - if (listenerClassNames.length > 0) { - try { - List> listenersList = new ArrayList>(); - - for (String listenerClassName : listenerClassNames) { - listenersList.add((ModelListener)InstanceFactory.newInstance( - getClassLoader(), listenerClassName)); - } - - listeners = listenersList.toArray(new ModelListener[listenersList.size()]); - } - catch (Exception e) { - _log.error(e); - } - } - } - - public void destroy() { - EntityCacheUtil.removeCache(InfoFascicoloImpl.class.getName()); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_ENTITY); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - private static final String _SQL_SELECT_INFOFASCICOLO = "SELECT infoFascicolo FROM InfoFascicolo infoFascicolo"; - private static final String _SQL_SELECT_INFOFASCICOLO_WHERE = "SELECT infoFascicolo FROM InfoFascicolo infoFascicolo WHERE "; - private static final String _SQL_COUNT_INFOFASCICOLO = "SELECT COUNT(infoFascicolo) FROM InfoFascicolo infoFascicolo"; - private static final String _SQL_COUNT_INFOFASCICOLO_WHERE = "SELECT COUNT(infoFascicolo) FROM InfoFascicolo infoFascicolo WHERE "; - private static final String _ORDER_BY_ENTITY_ALIAS = "infoFascicolo."; - private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No InfoFascicolo exists with the primary key "; - private static final String _NO_SUCH_ENTITY_WITH_KEY = "No InfoFascicolo exists with the key {"; - private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get( - PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE)); - private static Log _log = LogFactoryUtil.getLog(InfoFascicoloPersistenceImpl.class); - private static Set _badColumnNames = SetUtil.fromArray(new String[] { - "uuid" - }); - private static InfoFascicolo _nullInfoFascicolo = new InfoFascicoloImpl() { - @Override - public Object clone() { - return this; - } - - @Override - public CacheModel toCacheModel() { - return _nullInfoFascicoloCacheModel; - } - }; - - private static CacheModel _nullInfoFascicoloCacheModel = new CacheModel() { - @Override - public InfoFascicolo toEntityModel() { - return _nullInfoFascicolo; - } - }; -} \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java index 707c9646..42e4dd68 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaFinderImpl.java @@ -1,16 +1,12 @@ package it.tref.liferay.portos.bo.service.persistence; -import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl; import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl; import java.util.ArrayList; import java.util.Collections; import java.util.Date; -import java.util.HashMap; import java.util.List; -import java.util.Map; import com.liferay.portal.kernel.dao.orm.ORMException; import com.liferay.portal.kernel.dao.orm.QueryPos; @@ -20,817 +16,480 @@ import com.liferay.portal.kernel.dao.orm.Type; 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.kernel.util.Validator; import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; import com.liferay.util.dao.orm.CustomSQLUtil; public class IntPraticaFinderImpl extends BasePersistenceImpl implements IntPraticaFinder { - private final static Log _log = LogFactoryUtil.getLog(IntPraticaFinderImpl.class); - - private final String COUNT_AUTORIZZAZIONE = "Report.countAutorizzazione"; - private final String COUNT_DEPOSITO = "Report.countDeposito"; - private final String COUNT_VIDIMATE = "Report.countVidimate"; - private final String COUNT_CONTROLLO = "Report.countControllo1"; - private final String SELECT_FILES_NOT_IMPORTED = "IntPratica.selectFilesFascicoloNotImported"; - private final String SELECT_INTPRATICA_NOT_EXIST = "IntPratica.selectIntPraticaNotExist"; - private final String RIPARA_WORKFLOW = "Workflow.riparaWorkflow"; - private final String TROVA_DOPPIONI = "IntPratica.trovaDoppioni"; - private final String CAN_ADD_COLLAUDO = "IntPratica.canAddCollaudo"; - private final String CAN_ADD_COLLAUDOCOUNT = "IntPratica.canAddCollaudoCount"; - -//Bug 33462 - private final String COUNT_SANATORIE = "Report.countSanatoria"; - private final String COUNT_OPERE_MINORE_IMPORTANZA = "Report.countOperaMinoreImportanza"; - - private final String TROVA_INESISTENTI = "User.trovaInesistenti"; - - - //ADT: REPORT TEMPISTICHE ISTRUTTORIE - private final String REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_AUTORIZZAZIONI = "Report.reportTempisticheIstruttorieAvvisiAutorizzazioni"; - private final String REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_SORTEGGI = "Report.reportTempisticheIstruttorieAvvisiSORTEGGI"; - private final String REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_CO = "Report.reportTempisticheIstruttorieAvvisiCO"; - private final String REPORT_TEMPISTICHE_ISTRUTTORIE_DATE_SORTEGGI = "Report.reportTempisticheIstruttorieDateSorteggi"; - - - private final String REPORT_PRATICHE_VIDIMATE_SORTEGGI="Report.reportPraticheVidimateSorteggi"; - private final String REPORT_PRATICHE_VIDIMATE_AUTORIZZAZIONI="Report.reportPraticheVidimateAutorizzazioni"; - private final String REPORT_PRATICHE_VIDIMATE_CO="Report.reportPraticheVidimateCO"; - private final String REPORT_PRATICHE_VIDIMATE_DATE_SORTEGGI="Report.reportPraticheVidimateDateSorteggi"; - - - - private final String REPORT_INGRESSI_AUTORIZZAZIONI="Report.reportIngressiAUTORIZZAZIONI"; - private final String REPORT_INGRESSI_DEPOSITI="Report.reportIngressiDEPOSITI"; - private final String REPORT_INGRESSI_CO="Report.reportIngressiCO"; - - public int countAutorizzazione(Date dtMin, Date dtMax, long groupId) throws SystemException { - - int countIntPraticaIds = 0; - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_AUTORIZZAZIONE); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("COUNT_INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - - List list = query.list(); - countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return countIntPraticaIds; - } - -//Bug 33463 - public int countVidimate(Date dtMin, Date dtMax, long groupId, String type, boolean isControlloObbligatorio) throws SystemException { - - int countIntPraticaIds = 0; - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_VIDIMATE); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("COUNT_INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); -//Bug 33463 - qPos.add(Validator.isNotNull(type) ? type : "%"); - qPos.add(isControlloObbligatorio); - - List list = query.list(); - countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return countIntPraticaIds; - } - -//Bug 33463 - public List countControllo(Date dtMin, Date dtMax, long groupId, String type, boolean isControlloObbligatorio) throws SystemException { - - List list; - int countIntPraticaIds = 0; - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_CONTROLLO); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addEntity("intp", IntPraticaImpl.class); - // query.addScalar("COUNT_INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); -//Bug 33463 - qPos.add(Validator.isNotNull(type) ? type : "%"); - qPos.add(isControlloObbligatorio); - qPos.add(groupId); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - - list = query.list(); - // countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return list; - } - - // public List countControllo(Date dtMin, Date dtMax, long groupId, String type) - // throws SystemException { - // - // List list; - // int countIntPraticaIds = 0; - // - // Session session = null; - // - // try { - // - // session = openSession(); - // - // String sql = CustomSQLUtil.get(COUNT_CONTROLLO); - // // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - // - // SQLQuery query = session.createSQLQuery(sql); - // query.setCacheable(false); - // query.addEntity("intp", IntPraticaImpl.class); - // // query.addScalar("COUNT_INTPRATICAID", Type.LONG); - // - // QueryPos qPos = QueryPos.getInstance(query); - // qPos.add(dtMin); - // qPos.add(dtMax); - // qPos.add(groupId); - // qPos.add(type); - // - // list = query.list(); - // // countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - // - // } catch (ORMException e) { - // _log.error("Errore", e); - // throw new SystemException(e); - // } finally { - // if (session != null) { - // closeSession(session); - // } - // } - // return list; - // } - - public int countDeposito(Date dtMin, Date dtMax, long groupId, boolean controlloOblligatorio) throws SystemException { - - int countIntPraticaIds = 0; - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_DEPOSITO); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$CONTROLLOOBBLIGATORIO$]", "" + controlloOblligatorio); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("COUNT_INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - qPos.add(controlloOblligatorio); - - List list = query.list(); - countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return countIntPraticaIds; - } - - public List importaVecchiFilesFascicolo(long companyId, int start, int end) throws SystemException { - - Session session = null; - List lista = new ArrayList(); - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(SELECT_FILES_NOT_IMPORTED); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(end); - query.addEntity("inte", IntPraticaImpl.class); - - lista = (List) query.list(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - - return lista; - } - - public List findIntPraticaNotExist() throws SystemException{ - - Session session = null; - List lista = new ArrayList(); - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(SELECT_INTPRATICA_NOT_EXIST); - SQLQuery query = session.createSQLQuery(sql); - query.addEntity("det", DettPraticaImpl.class); - query.setCacheable(false); - - QueryPos qPos = QueryPos.getInstance(query); - -// query.addEntity("inte", Long.class); - - lista = (List) query.list(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - - - return lista; - } - - public List riparaWorkflow() throws SystemException { - - List pratiche = Collections.emptyList(); - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(RIPARA_WORKFLOW); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("kaleotaskinstancetokenid", Type.LONG); - query.addScalar("kaleoinstancetokenid", Type.LONG); - query.addScalar("controllopraticaid", Type.LONG); - query.addScalar("statusbyuserid", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - - pratiche = query.list(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return pratiche; - } - - public List trovaDoppioni() throws SystemException{ - - List lista = Collections.emptyList(); - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(TROVA_DOPPIONI); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("numeroprogetto", Type.STRING); - - QueryPos qPos = QueryPos.getInstance(query); - - lista = query.list(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - - return lista; - } - - public List canAddCollaudo(String codiceFiscaleDelegatoCollaudo, int start, int end) throws SystemException { - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(CAN_ADD_COLLAUDO); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.addEntity("int", IntPraticaImpl.class); - query.setCacheable(false); -// query.addScalar("INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(codiceFiscaleDelegatoCollaudo); - - qPos.add(start); - qPos.add((end - start)); - - List list = (List)query.list(); - return list; -// countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - } - - public int canAddCollaudoCount(String codiceFiscaleDelegatoCollaudo) throws SystemException { - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(CAN_ADD_COLLAUDOCOUNT); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.addEntity("int", IntPraticaImpl.class); - query.setCacheable(false); -// query.addScalar("INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(codiceFiscaleDelegatoCollaudo); - - List list = (List)query.list(); - return list.size(); -// countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - } - - public int countSanatorie(Date dtMin, Date dtMax, long groupId) throws SystemException { - - int countIntPraticaIds = 0; - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_SANATORIE); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("COUNT_INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - - List list = query.list(); - countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return countIntPraticaIds; - } - - public int countOpereMinoreImportanza(Date dtMin, Date dtMax, long groupId) throws SystemException { - - int countIntPraticaIds = 0; - - Session session = null; - - try { - - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_OPERE_MINORE_IMPORTANZA); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", "" + groupId); - // sql = StringUtil.replace(sql, "[$GROUP_ID$]", StringUtil.merge(territorioIds)); - // sql = StringUtil.replace(sql, "[$TIPOPRATICA$]", "02"); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("COUNT_INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - - List list = query.list(); - countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return countIntPraticaIds; - } - - - /** - * ADT: vale per aut/CO/sorteggi - * - */ - public List reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId,String type) throws SystemException { - - List returnedList=new ArrayList(); - Session session = null; - - try { - String sql=null; - if (type.equalsIgnoreCase("Autorizzazioni")){ - sql=CustomSQLUtil.get(REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_AUTORIZZAZIONI); - }else if (type.equalsIgnoreCase("Depositi a controllo obbligatorio")){ - sql=CustomSQLUtil.get(REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_CO); - }else if (type.equalsIgnoreCase("Depositi a sorteggio")){ - sql=CustomSQLUtil.get(REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_SORTEGGI); - }else{ - - } - - if (sql!=null){ - session = openSession(); - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("avvisoid", Type.LONG); - query.addScalar("intpraticaid", Type.LONG); - query.addScalar("tipodocumento", Type.STRING); - query.addScalar("classpk", Type.LONG); - query.addScalar("dtinviosignal", Type.TIMESTAMP); - query.addScalar("dtinvio", Type.TIMESTAMP); - query.addScalar("dtavviso", Type.TIMESTAMP); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - returnedList = query.list(); - } - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return returnedList; - } - - - /** - * ADT: report tempistiche istruttorie - * - */ - public Map reportTempisticheIstruttorieCalcolaDataSorteggio(Date dtMin, Date dtMax, long groupId) throws SystemException { - Map resultMap=new HashMap(); - - Session session = null; - - try { - - String sql=CustomSQLUtil.get(REPORT_TEMPISTICHE_ISTRUTTORIE_DATE_SORTEGGI); - - - session = openSession(); + private final static Log _log = LogFactoryUtil.getLog(IntPraticaFinderImpl.class); + + private final String COUNT_AUTORIZZAZIONE = "Report.countAutorizzazione"; + private final String COUNT_DEPOSITO = "Report.countDeposito"; + private final String COUNT_VIDIMATE = "Report.countVidimate"; + private final String COUNT_CONTROLLO = "Report.countControllo1"; + private final String RIPARA_WORKFLOW = "Workflow.riparaWorkflow"; + private final String CAN_ADD_COLLAUDO = "IntPratica.canAddCollaudo"; + private final String CAN_ADD_COLLAUDOCOUNT = "IntPratica.canAddCollaudoCount"; + + private final String COUNT_SANATORIE = "Report.countSanatoria"; + private final String COUNT_OPERE_MINORE_IMPORTANZA = "Report.countOperaMinoreImportanza"; + + // ADT: REPORT TEMPISTICHE ISTRUTTORIE + private final String REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_AUTORIZZAZIONI = "Report.reportTempisticheIstruttorieAvvisiAutorizzazioni"; + private final String REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_CO = "Report.reportTempisticheIstruttorieAvvisiCO"; + + private final String REPORT_PRATICHE_VIDIMATE_AUTORIZZAZIONI = "Report.reportPraticheVidimateAutorizzazioni"; + private final String REPORT_PRATICHE_VIDIMATE_CO = "Report.reportPraticheVidimateCO"; + + private final String REPORT_INGRESSI_AUTORIZZAZIONI = "Report.reportIngressiAUTORIZZAZIONI"; + private final String REPORT_INGRESSI_DEPOSITI = "Report.reportIngressiDEPOSITI"; + private final String REPORT_INGRESSI_CO = "Report.reportIngressiCO"; + + @Override + public int countAutorizzazione(Date dtMin, Date dtMax, long groupId) throws SystemException { + + int countIntPraticaIds = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(COUNT_AUTORIZZAZIONE); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("COUNT_INTPRATICAID", Type.LONG); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + @SuppressWarnings("unchecked") + List list = query.list(); + countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return countIntPraticaIds; + } + + @Override + public int countVidimate(Date dtMin, Date dtMax, long groupId, String type, boolean isControlloObbligatorio) + throws SystemException { + + int countIntPraticaIds = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(COUNT_VIDIMATE); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("COUNT_INTPRATICAID", Type.LONG); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + qPos.add(Validator.isNotNull(type) ? type : StringPool.PERCENT); + qPos.add(isControlloObbligatorio); + @SuppressWarnings("unchecked") + List list = query.list(); + countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return countIntPraticaIds; + } + + @SuppressWarnings("unchecked") + @Override + public List countControllo(Date dtMin, Date dtMax, long groupId, String type, + boolean isControlloObbligatorio) throws SystemException { + + List list; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(COUNT_CONTROLLO); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addEntity("intp", IntPraticaImpl.class); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(Validator.isNotNull(type) ? type : StringPool.PERCENT); + qPos.add(isControlloObbligatorio); + qPos.add(groupId); + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + list = query.list(); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return list; + } + + @Override + public int countDeposito(Date dtMin, Date dtMax, long groupId, boolean controlloOblligatorio) + throws SystemException { + + int countIntPraticaIds = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(COUNT_DEPOSITO); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("COUNT_INTPRATICAID", Type.LONG); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + qPos.add(controlloOblligatorio); + @SuppressWarnings("unchecked") + List list = query.list(); + countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return countIntPraticaIds; + } + + @SuppressWarnings("unchecked") + @Override + public List riparaWorkflow() throws SystemException { + + List pratiche = Collections. emptyList(); + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(RIPARA_WORKFLOW); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("kaleotaskinstancetokenid", Type.LONG); + query.addScalar("kaleoinstancetokenid", Type.LONG); + query.addScalar("controllopraticaid", Type.LONG); + query.addScalar("statusbyuserid", Type.LONG); + pratiche = query.list(); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return pratiche; + } + + @Override + public List canAddCollaudo(String codiceFiscaleDelegatoCollaudo, int start, int end) + throws SystemException { + + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(CAN_ADD_COLLAUDO); + SQLQuery query = session.createSQLQuery(sql); + query.addEntity("int", IntPraticaImpl.class); + query.setCacheable(false); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(codiceFiscaleDelegatoCollaudo); + qPos.add(start); + qPos.add((end - start)); + @SuppressWarnings("unchecked") + List list = query.list(); + return list; + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + } + + @Override + public int canAddCollaudoCount(String codiceFiscaleDelegatoCollaudo) throws SystemException { + + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(CAN_ADD_COLLAUDOCOUNT); + SQLQuery query = session.createSQLQuery(sql); + query.addEntity("int", IntPraticaImpl.class); + query.setCacheable(false); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(codiceFiscaleDelegatoCollaudo); + @SuppressWarnings("unchecked") + List list = query.list(); + return list.size(); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + } + + @Override + public int countSanatorie(Date dtMin, Date dtMax, long groupId) throws SystemException { + + int countIntPraticaIds = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(COUNT_SANATORIE); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("COUNT_INTPRATICAID", Type.LONG); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + @SuppressWarnings("unchecked") + List list = query.list(); + countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return countIntPraticaIds; + } + + @Override + public int countOpereMinoreImportanza(Date dtMin, Date dtMax, long groupId) throws SystemException { + + int countIntPraticaIds = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(COUNT_OPERE_MINORE_IMPORTANZA); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); - query.addScalar("intpraticaid", Type.LONG); - query.addScalar("data_sorteggio", Type.TIMESTAMP); + query.addScalar("COUNT_INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(dtMin); qPos.add(dtMax); - qPos.add(groupId); - List returnedList = query.list(); - for (Object[] tmp:returnedList){ - resultMap.put((Long)tmp[0],(Date) tmp[1]); - } - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return resultMap; - - } - - /** - * - * ADT: REPORT PRATICHE VIDIMATE - * - * @param dtMin - * @param dtMax - * @param groupId - * @param type - * @return - * @throws SystemException - */ - public List reportPraticheVidimate(Date dtMin, Date dtMax, long groupId,String type) throws SystemException { - - List returnedList=new ArrayList(); - Session session = null; - - try { - - String sql=null; - if (type.equalsIgnoreCase("Autorizzazioni")){ - sql=CustomSQLUtil.get(REPORT_PRATICHE_VIDIMATE_AUTORIZZAZIONI); - }else if (type.equalsIgnoreCase("Depositi a controllo obbligatorio")){ - sql=CustomSQLUtil.get(REPORT_PRATICHE_VIDIMATE_CO); - }else if (type.equalsIgnoreCase("Depositi a sorteggio")){ - sql=CustomSQLUtil.get(REPORT_PRATICHE_VIDIMATE_SORTEGGI); - }else{ - - } - - if (sql!=null){ - session = openSession(); - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("avvisoid", Type.LONG); - query.addScalar("intpraticaid", Type.LONG); - query.addScalar("tipodocumento", Type.STRING); - query.addScalar("classpk", Type.LONG); - query.addScalar("dtinviosignal", Type.TIMESTAMP); - query.addScalar("dtinvio", Type.TIMESTAMP); - query.addScalar("dtavviso", Type.TIMESTAMP); - query.addScalar("statopratica", Type.STRING); - QueryPos qPos = QueryPos.getInstance(query); - if (type.equalsIgnoreCase("Autorizzazioni")){ - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - - }else if (type.equalsIgnoreCase("Depositi a controllo obbligatorio")){ - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - - }else if (type.equalsIgnoreCase("Depositi a sorteggio")){ - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - }else{ - - } - - returnedList = query.list(); - } - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return returnedList; - } - - /** - * ADT: report tempistiche istruttorie - * - */ - public Map reportPraticheVidimateCalcolaDataSorteggio(Date dtMin, Date dtMax, long groupId) throws SystemException { - Map resultMap=new HashMap(); - - Session session = null; - - try { - - String sql=CustomSQLUtil.get(REPORT_PRATICHE_VIDIMATE_DATE_SORTEGGI); - session = openSession(); + qPos.add(groupId); + @SuppressWarnings("unchecked") + List list = query.list(); + countIntPraticaIds = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return countIntPraticaIds; + } + + /** + * ADT: vale per aut/CO + */ + @SuppressWarnings("unchecked") + @Override + public List reportTempisticheIstruttorieAvvisiAutorizzazioni(Date dtMin, Date dtMax, long groupId, + String type) throws SystemException { + + List returnedList = new ArrayList(); + Session session = null; + try { + String sql = null; + if (type.equalsIgnoreCase("Autorizzazioni")) { + sql = CustomSQLUtil.get(REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_AUTORIZZAZIONI); + } else if (type.equalsIgnoreCase("Depositi a controllo obbligatorio")) { + sql = CustomSQLUtil.get(REPORT_TEMPISTICHE_ISTRUTTORIE_AVVISI_CO); + } + if (sql != null) { + session = openSession(); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("avvisoid", Type.LONG); + query.addScalar("intpraticaid", Type.LONG); + query.addScalar("tipodocumento", Type.STRING); + query.addScalar("classpk", Type.LONG); + query.addScalar("dtinviosignal", Type.TIMESTAMP); + query.addScalar("dtinvio", Type.TIMESTAMP); + query.addScalar("dtavviso", Type.TIMESTAMP); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + returnedList = query.list(); + } + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return returnedList; + } + + /** + * ADT: REPORT PRATICHE VIDIMATE + */ + @SuppressWarnings("unchecked") + @Override + public List reportPraticheVidimate(Date dtMin, Date dtMax, long groupId, String type) + throws SystemException { + + List returnedList = new ArrayList(); + Session session = null; + try { + String sql = null; + if (type.equalsIgnoreCase("Autorizzazioni")) { + sql = CustomSQLUtil.get(REPORT_PRATICHE_VIDIMATE_AUTORIZZAZIONI); + } else if (type.equalsIgnoreCase("Depositi a controllo obbligatorio")) { + sql = CustomSQLUtil.get(REPORT_PRATICHE_VIDIMATE_CO); + } + if (sql != null) { + session = openSession(); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("avvisoid", Type.LONG); + query.addScalar("intpraticaid", Type.LONG); + query.addScalar("tipodocumento", Type.STRING); + query.addScalar("classpk", Type.LONG); + query.addScalar("dtinviosignal", Type.TIMESTAMP); + query.addScalar("dtinvio", Type.TIMESTAMP); + query.addScalar("dtavviso", Type.TIMESTAMP); + query.addScalar("statopratica", Type.STRING); + QueryPos qPos = QueryPos.getInstance(query); + if (type.equalsIgnoreCase("Autorizzazioni")) { + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + } else if (type.equalsIgnoreCase("Depositi a controllo obbligatorio")) { + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + } + returnedList = query.list(); + } + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return returnedList; + } + + @Override + public int countIngressiAutorizzazioni(Date dtMin, Date dtMax, long groupId) throws SystemException { + + int count = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(REPORT_INGRESSI_AUTORIZZAZIONI); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); - query.addScalar("intpraticaid", Type.LONG); - query.addScalar("data_sorteggio", Type.TIMESTAMP); + query.addScalar("conteggio", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); + qPos.add(dtMax); qPos.add(groupId); - qPos.add(dtMin); + @SuppressWarnings("unchecked") + List list = query.list(); + count = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return count; + } + + @Override + public int countIngressiDepositi(Date dtMin, Date dtMax, long groupId) throws SystemException { + + int count = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(REPORT_INGRESSI_DEPOSITI); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("conteggio", Type.LONG); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); qPos.add(dtMax); - List returnedList = query.list(); - for (Object[] tmp:returnedList){ - resultMap.put((Long)tmp[0],(Date) tmp[1]); - } - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return resultMap; - - } - - public int countIngressiAutorizzazioni(Date dtMin, Date dtMax, long groupId) throws SystemException { - int count = 0; - - Session session = null; - try { - session = openSession(); - String sql = CustomSQLUtil.get(REPORT_INGRESSI_AUTORIZZAZIONI); - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("conteggio", Type.LONG); - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - List list = query.list(); - count= (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return count; - - } - public int countIngressiDepositi(Date dtMin, Date dtMax, long groupId) throws SystemException { - int count = 0; - - Session session = null; - try { - session = openSession(); - String sql = CustomSQLUtil.get(REPORT_INGRESSI_DEPOSITI); - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("conteggio", Type.LONG); - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - List list = query.list(); - count= (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return count; - - } - public int countIngressiCO(Date dtMin, Date dtMax, long groupId) throws SystemException { - int count = 0; - - Session session = null; - try { - session = openSession(); - String sql = CustomSQLUtil.get(REPORT_INGRESSI_CO); - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("conteggio", Type.LONG); - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - qPos.add(groupId); - List list = query.list(); - count= (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return count; - } -} + qPos.add(groupId); + @SuppressWarnings("unchecked") + List list = query.list(); + count = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return count; + } + + @Override + public int countIngressiCO(Date dtMin, Date dtMax, long groupId) throws SystemException { + + int count = 0; + Session session = null; + try { + session = openSession(); + String sql = CustomSQLUtil.get(REPORT_INGRESSI_CO); + SQLQuery query = session.createSQLQuery(sql); + query.setCacheable(false); + query.addScalar("conteggio", Type.LONG); + QueryPos qPos = QueryPos.getInstance(query); + qPos.add(dtMin); + qPos.add(dtMax); + qPos.add(groupId); + @SuppressWarnings("unchecked") + List list = query.list(); + count = (int) (list == null || list.isEmpty() ? 0 : list.get(0)); + } catch (ORMException e) { + _log.error("Errore", e); + throw new SystemException(e); + } finally { + if (session != null) { + closeSession(session); + } + } + return count; + } +} \ No newline at end of file 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 3da7d3e6..989d4df9 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; @@ -3394,226 +3393,6 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl private static final String _FINDER_COLUMN_C_GROUP_COMPANYID_2 = "intPratica.companyId = ? AND "; private static final String _FINDER_COLUMN_C_GROUP_GROUPID_2 = "intPratica.groupId = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDINTPRATICAID = new FinderPath(IntPraticaModelImpl.ENTITY_CACHE_ENABLED, - IntPraticaModelImpl.FINDER_CACHE_ENABLED, IntPraticaImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldIntPraticaId", - new String[] { Long.class.getName() }, - IntPraticaModelImpl.OLDINTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDINTPRATICAID = new FinderPath(IntPraticaModelImpl.ENTITY_CACHE_ENABLED, - IntPraticaModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByOldIntPraticaId", new String[] { Long.class.getName() }); - - /** - * Returns the int pratica where oldIntPraticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchIntPraticaException} if it could not be found. - * - * @param oldIntPraticaId the old int pratica ID - * @return the matching int pratica - * @throws it.tref.liferay.portos.bo.NoSuchIntPraticaException if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IntPratica findByOldIntPraticaId(long oldIntPraticaId) - throws NoSuchIntPraticaException, SystemException { - IntPratica intPratica = fetchByOldIntPraticaId(oldIntPraticaId); - - if (intPratica == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldIntPraticaId="); - msg.append(oldIntPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchIntPraticaException(msg.toString()); - } - - return intPratica; - } - - /** - * Returns the int pratica where oldIntPraticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldIntPraticaId the old int pratica ID - * @return the matching int pratica, or null if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IntPratica fetchByOldIntPraticaId(long oldIntPraticaId) - throws SystemException { - return fetchByOldIntPraticaId(oldIntPraticaId, true); - } - - /** - * Returns the int pratica where oldIntPraticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldIntPraticaId the old int pratica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching int pratica, or null if a matching int pratica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public IntPratica fetchByOldIntPraticaId(long oldIntPraticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldIntPraticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - finderArgs, this); - } - - if (result instanceof IntPratica) { - IntPratica intPratica = (IntPratica)result; - - if ((oldIntPraticaId != intPratica.getOldIntPraticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_INTPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDINTPRATICAID_OLDINTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldIntPraticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "IntPraticaPersistenceImpl.fetchByOldIntPraticaId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - IntPratica intPratica = list.get(0); - - result = intPratica; - - cacheResult(intPratica); - - if ((intPratica.getOldIntPraticaId() != oldIntPraticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - finderArgs, intPratica); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (IntPratica)result; - } - } - - /** - * Removes the int pratica where oldIntPraticaId = ? from the database. - * - * @param oldIntPraticaId the old int pratica ID - * @return the int pratica that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public IntPratica removeByOldIntPraticaId(long oldIntPraticaId) - throws NoSuchIntPraticaException, SystemException { - IntPratica intPratica = findByOldIntPraticaId(oldIntPraticaId); - - return remove(intPratica); - } - - /** - * Returns the number of int praticas where oldIntPraticaId = ?. - * - * @param oldIntPraticaId the old int pratica ID - * @return the number of matching int praticas - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldIntPraticaId(long oldIntPraticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDINTPRATICAID; - - Object[] finderArgs = new Object[] { oldIntPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_INTPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDINTPRATICAID_OLDINTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldIntPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDINTPRATICAID_OLDINTPRATICAID_2 = - "intPratica.oldIntPraticaId = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_P = new FinderPath(IntPraticaModelImpl.ENTITY_CACHE_ENABLED, IntPraticaModelImpl.FINDER_CACHE_ENABLED, IntPraticaImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByP", @@ -4192,9 +3971,6 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl new Object[] { intPratica.getUuid(), intPratica.getGroupId() }, intPratica); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - new Object[] { intPratica.getOldIntPraticaId() }, intPratica); - intPratica.resetOriginalValues(); } @@ -4278,13 +4054,6 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, intPratica); - - args = new Object[] { intPratica.getOldIntPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDINTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - args, intPratica); } else { IntPraticaModelImpl intPraticaModelImpl = (IntPraticaModelImpl)intPratica; @@ -4300,16 +4069,6 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, intPratica); } - - if ((intPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDINTPRATICAID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { intPratica.getOldIntPraticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDINTPRATICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - args, intPratica); - } } } @@ -4333,21 +4092,6 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); } - - args = new Object[] { intPratica.getOldIntPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDINTPRATICAID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, args); - - if ((intPraticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDINTPRATICAID.getColumnBitmask()) != 0) { - args = new Object[] { intPraticaModelImpl.getOriginalOldIntPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDINTPRATICAID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDINTPRATICAID, - args); - } } /** @@ -4658,7 +4402,6 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl intPraticaImpl.setDtAnnullamento(intPratica.getDtAnnullamento()); intPraticaImpl.setDocPraticaAnnullamentoId(intPratica.getDocPraticaAnnullamentoId()); intPraticaImpl.setUnitaOperativa(intPratica.getUnitaOperativa()); - intPraticaImpl.setDtSorteggio(intPratica.getDtSorteggio()); intPraticaImpl.setStatoPratica(intPratica.getStatoPratica()); intPraticaImpl.setNumeroProgetto(intPratica.getNumeroProgetto()); intPraticaImpl.setValidata(intPratica.isValidata()); @@ -4667,7 +4410,6 @@ public class IntPraticaPersistenceImpl extends BasePersistenceImpl intPraticaImpl.setStatusDate(intPratica.getStatusDate()); intPraticaImpl.setEsitoControllo(intPratica.getEsitoControllo()); intPraticaImpl.setDtPratica(intPratica.getDtPratica()); - intPraticaImpl.setOldIntPraticaId(intPratica.getOldIntPraticaId()); intPraticaImpl.setSospesa(intPratica.isSospesa()); intPraticaImpl.setDtSospensione(intPratica.getDtSospensione()); intPraticaImpl.setCodiceFiscaleDelegatoFineLavori(intPratica.getCodiceFiscaleDelegatoFineLavori()); 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 6fe6e3c8..12fb36d2 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; @@ -5059,225 +5058,6 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl } private static final String _FINDER_COLUMN_CLASSPK_CLASSPK_2 = "pagamento.classPk = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDPAGAMENTOID = new FinderPath(PagamentoModelImpl.ENTITY_CACHE_ENABLED, - PagamentoModelImpl.FINDER_CACHE_ENABLED, PagamentoImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldPagamentoId", - new String[] { Long.class.getName() }, - PagamentoModelImpl.OLDPAGAMENTOID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDPAGAMENTOID = new FinderPath(PagamentoModelImpl.ENTITY_CACHE_ENABLED, - PagamentoModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByOldPagamentoId", - new String[] { Long.class.getName() }); - - /** - * Returns the pagamento where oldPagamentoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPagamentoException} if it could not be found. - * - * @param oldPagamentoId the old pagamento ID - * @return the matching pagamento - * @throws it.tref.liferay.portos.bo.NoSuchPagamentoException if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Pagamento findByOldPagamentoId(long oldPagamentoId) - throws NoSuchPagamentoException, SystemException { - Pagamento pagamento = fetchByOldPagamentoId(oldPagamentoId); - - if (pagamento == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldPagamentoId="); - msg.append(oldPagamentoId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchPagamentoException(msg.toString()); - } - - return pagamento; - } - - /** - * Returns the pagamento where oldPagamentoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldPagamentoId the old pagamento ID - * @return the matching pagamento, or null if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Pagamento fetchByOldPagamentoId(long oldPagamentoId) - throws SystemException { - return fetchByOldPagamentoId(oldPagamentoId, true); - } - - /** - * Returns the pagamento where oldPagamentoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldPagamentoId the old pagamento ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching pagamento, or null if a matching pagamento could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Pagamento fetchByOldPagamentoId(long oldPagamentoId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldPagamentoId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - finderArgs, this); - } - - if (result instanceof Pagamento) { - Pagamento pagamento = (Pagamento)result; - - if ((oldPagamentoId != pagamento.getOldPagamentoId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_PAGAMENTO_WHERE); - - query.append(_FINDER_COLUMN_OLDPAGAMENTOID_OLDPAGAMENTOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldPagamentoId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "PagamentoPersistenceImpl.fetchByOldPagamentoId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - Pagamento pagamento = list.get(0); - - result = pagamento; - - cacheResult(pagamento); - - if ((pagamento.getOldPagamentoId() != oldPagamentoId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - finderArgs, pagamento); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Pagamento)result; - } - } - - /** - * Removes the pagamento where oldPagamentoId = ? from the database. - * - * @param oldPagamentoId the old pagamento ID - * @return the pagamento that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Pagamento removeByOldPagamentoId(long oldPagamentoId) - throws NoSuchPagamentoException, SystemException { - Pagamento pagamento = findByOldPagamentoId(oldPagamentoId); - - return remove(pagamento); - } - - /** - * Returns the number of pagamentos where oldPagamentoId = ?. - * - * @param oldPagamentoId the old pagamento ID - * @return the number of matching pagamentos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldPagamentoId(long oldPagamentoId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDPAGAMENTOID; - - Object[] finderArgs = new Object[] { oldPagamentoId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_PAGAMENTO_WHERE); - - query.append(_FINDER_COLUMN_OLDPAGAMENTOID_OLDPAGAMENTOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldPagamentoId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDPAGAMENTOID_OLDPAGAMENTOID_2 = "pagamento.oldPagamentoId = ?"; public PagamentoPersistenceImpl() { setModelClass(Pagamento.class); @@ -5297,9 +5077,6 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl new Object[] { pagamento.getUuid(), pagamento.getGroupId() }, pagamento); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - new Object[] { pagamento.getOldPagamentoId() }, pagamento); - pagamento.resetOriginalValues(); } @@ -5383,13 +5160,6 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, pagamento); - - args = new Object[] { pagamento.getOldPagamentoId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDPAGAMENTOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - args, pagamento); } else { PagamentoModelImpl pagamentoModelImpl = (PagamentoModelImpl)pagamento; @@ -5405,16 +5175,6 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, pagamento); } - - if ((pagamentoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDPAGAMENTOID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { pagamento.getOldPagamentoId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDPAGAMENTOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - args, pagamento); - } } } @@ -5436,21 +5196,6 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); } - - args = new Object[] { pagamento.getOldPagamentoId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDPAGAMENTOID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, args); - - if ((pagamentoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDPAGAMENTOID.getColumnBitmask()) != 0) { - args = new Object[] { pagamentoModelImpl.getOriginalOldPagamentoId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDPAGAMENTOID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDPAGAMENTOID, - args); - } } /** @@ -5757,7 +5502,6 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl pagamentoImpl.setClassPk(pagamento.getClassPk()); pagamentoImpl.setClassName(pagamento.getClassName()); pagamentoImpl.setFileEntryId(pagamento.getFileEntryId()); - pagamentoImpl.setOldFileEntryId(pagamento.getOldFileEntryId()); pagamentoImpl.setTipoPagamento(pagamento.getTipoPagamento()); pagamentoImpl.setUrl(pagamento.getUrl()); pagamentoImpl.setCodice(pagamento.getCodice()); @@ -5771,7 +5515,6 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl pagamentoImpl.setOtfCreateDate(pagamento.getOtfCreateDate()); pagamentoImpl.setEmailPending(pagamento.isEmailPending()); pagamentoImpl.setNumeroBollettino(pagamento.getNumeroBollettino()); - pagamentoImpl.setOldPagamentoId(pagamento.getOldPagamentoId()); return pagamentoImpl; } 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 e4133c60..c6ce3907 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 @@ -45,7 +45,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 2c7a846f..daa33e1b 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 @@ -43,7 +43,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.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 c8c09bbf..35a48fdf 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; @@ -3633,225 +3632,6 @@ public class SoggettoPersistenceImpl extends BasePersistenceImpl "soggetto.tipologiaSoggetto = ?"; private static final String _FINDER_COLUMN_DETTPRATICA_TIPOLOGIASOGGETTO_TIPOLOGIASOGGETTO_3 = "(soggetto.tipologiaSoggetto IS NULL OR soggetto.tipologiaSoggetto = '')"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDSOGGETTOID = new FinderPath(SoggettoModelImpl.ENTITY_CACHE_ENABLED, - SoggettoModelImpl.FINDER_CACHE_ENABLED, SoggettoImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByoldSoggettoId", - new String[] { Long.class.getName() }, - SoggettoModelImpl.OLDSOGGETTOID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDSOGGETTOID = new FinderPath(SoggettoModelImpl.ENTITY_CACHE_ENABLED, - SoggettoModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByoldSoggettoId", - new String[] { Long.class.getName() }); - - /** - * Returns the soggetto where oldSoggettoId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSoggettoException} if it could not be found. - * - * @param oldSoggettoId the old soggetto ID - * @return the matching soggetto - * @throws it.tref.liferay.portos.bo.NoSuchSoggettoException if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Soggetto findByoldSoggettoId(long oldSoggettoId) - throws NoSuchSoggettoException, SystemException { - Soggetto soggetto = fetchByoldSoggettoId(oldSoggettoId); - - if (soggetto == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldSoggettoId="); - msg.append(oldSoggettoId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchSoggettoException(msg.toString()); - } - - return soggetto; - } - - /** - * Returns the soggetto where oldSoggettoId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldSoggettoId the old soggetto ID - * @return the matching soggetto, or null if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Soggetto fetchByoldSoggettoId(long oldSoggettoId) - throws SystemException { - return fetchByoldSoggettoId(oldSoggettoId, true); - } - - /** - * Returns the soggetto where oldSoggettoId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldSoggettoId the old soggetto ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching soggetto, or null if a matching soggetto could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Soggetto fetchByoldSoggettoId(long oldSoggettoId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldSoggettoId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, - finderArgs, this); - } - - if (result instanceof Soggetto) { - Soggetto soggetto = (Soggetto)result; - - if ((oldSoggettoId != soggetto.getOldSoggettoId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_SOGGETTO_WHERE); - - query.append(_FINDER_COLUMN_OLDSOGGETTOID_OLDSOGGETTOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldSoggettoId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "SoggettoPersistenceImpl.fetchByoldSoggettoId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - Soggetto soggetto = list.get(0); - - result = soggetto; - - cacheResult(soggetto); - - if ((soggetto.getOldSoggettoId() != oldSoggettoId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, - finderArgs, soggetto); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Soggetto)result; - } - } - - /** - * Removes the soggetto where oldSoggettoId = ? from the database. - * - * @param oldSoggettoId the old soggetto ID - * @return the soggetto that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Soggetto removeByoldSoggettoId(long oldSoggettoId) - throws NoSuchSoggettoException, SystemException { - Soggetto soggetto = findByoldSoggettoId(oldSoggettoId); - - return remove(soggetto); - } - - /** - * Returns the number of soggettos where oldSoggettoId = ?. - * - * @param oldSoggettoId the old soggetto ID - * @return the number of matching soggettos - * @throws SystemException if a system exception occurred - */ - @Override - public int countByoldSoggettoId(long oldSoggettoId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDSOGGETTOID; - - Object[] finderArgs = new Object[] { oldSoggettoId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_SOGGETTO_WHERE); - - query.append(_FINDER_COLUMN_OLDSOGGETTOID_OLDSOGGETTOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldSoggettoId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDSOGGETTOID_OLDSOGGETTOID_2 = "soggetto.oldSoggettoId = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_DETTPRATICA_TIPOLOGIASOGGETTO_AGGIUNTIVO = new FinderPath(SoggettoModelImpl.ENTITY_CACHE_ENABLED, SoggettoModelImpl.FINDER_CACHE_ENABLED, SoggettoImpl.class, @@ -12059,9 +11839,6 @@ public class SoggettoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, new Object[] { soggetto.getUuid(), soggetto.getGroupId() }, soggetto); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, - new Object[] { soggetto.getOldSoggettoId() }, soggetto); - soggetto.resetOriginalValues(); } @@ -12145,13 +11922,6 @@ public class SoggettoPersistenceImpl extends BasePersistenceImpl Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, soggetto); - - args = new Object[] { soggetto.getOldSoggettoId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDSOGGETTOID, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, args, - soggetto); } else { SoggettoModelImpl soggettoModelImpl = (SoggettoModelImpl)soggetto; @@ -12167,16 +11937,6 @@ public class SoggettoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, soggetto); } - - if ((soggettoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDSOGGETTOID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { soggetto.getOldSoggettoId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDSOGGETTOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, - args, soggetto); - } } } @@ -12198,21 +11958,6 @@ public class SoggettoPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); } - - args = new Object[] { soggetto.getOldSoggettoId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDSOGGETTOID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, args); - - if ((soggettoModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDSOGGETTOID.getColumnBitmask()) != 0) { - args = new Object[] { soggettoModelImpl.getOriginalOldSoggettoId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDSOGGETTOID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDSOGGETTOID, - args); - } } /** @@ -12883,7 +12628,6 @@ public class SoggettoPersistenceImpl extends BasePersistenceImpl soggettoImpl.setDtDataRimozione(soggetto.getDtDataRimozione()); soggettoImpl.setSostituitoDa(soggetto.getSostituitoDa()); soggettoImpl.setSoggettoSostituitoId(soggetto.getSoggettoSostituitoId()); - soggettoImpl.setOldSoggettoId(soggetto.getOldSoggettoId()); soggettoImpl.setFileVariazioneId(soggetto.getFileVariazioneId()); return soggettoImpl; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioFinderImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioFinderImpl.java deleted file mode 100644 index 04dce601..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioFinderImpl.java +++ /dev/null @@ -1,479 +0,0 @@ -package it.tref.liferay.portos.bo.service.persistence; - -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.model.impl.SorteggioImpl; -import it.tref.liferay.portos.bo.service.SorteggioService; -import it.tref.liferay.portos.bo.service.impl.SorteggioServiceImpl; -import it.tref.liferay.portos.bo.util.TempisticaConstants; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.Date; -import java.util.Iterator; -import java.util.List; - -import com.liferay.portal.kernel.dao.orm.ORMException; -import com.liferay.portal.kernel.dao.orm.QueryPos; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.dao.orm.SQLQuery; -import com.liferay.portal.kernel.dao.orm.Session; -import com.liferay.portal.kernel.dao.orm.Type; -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.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; -import com.liferay.util.dao.orm.CustomSQLUtil; - -public class SorteggioFinderImpl extends BasePersistenceImpl implements SorteggioFinder { - - private final static Log _log = LogFactoryUtil.getLog(SorteggioFinderImpl.class); - - private final String COUNT_SORTEGGIO_MESE = "Sorteggio.countSorteggioMese"; - private final String FIND_SORTEGGIO_MESE = "Sorteggio.findSorteggioMese"; - private final String FIND_SORTEGGIO_ANNO = "Sorteggio.findSorteggioAnno"; - - private final String COUNT_SORTEGGI_GROUP_BY_ANNO_MESE_SETTIMANA = "Sorteggio.countSorteggiGroupByAnnoMeseSettimana"; - private final String FIND_SORTEGGI_GROUP_BY_ANNO_MESE_SETTIMANA = "Sorteggio.findSorteggiGroupByAnnoMeseSettimana"; - - private final String UPDATE_DATA_SORTEGGIO_PRATICA_ESTERNA = "Sorteggio.updateDataSorteggioPraticaEsterna"; - private final String FIND_TECNICO_SORTEGGIO_PRATICA_ESTERNA = "Sorteggio.findTecnicoSorteggioPraticaEsterna"; - private final String FIND_TIPOPRATICA_ID_SORTEGGIO_PRATICA_ESTERNA = "Sorteggio.findTipoPraticaIdSorteggioPraticaEsterna"; - - // Bug 32653 - private final String SEARCH_SORTEGGIO = "Sorteggio.search"; - private final String COUNT_SORTEGGIO = "Sorteggio.count"; - - public int countSorteggioMese(Date dtMin, Date dtMax, List territorioIds, - List tipoPraticaIds) throws SystemException { - - int countIntPraticaIds = 0; - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_SORTEGGIO_MESE); - sql = StringUtil.replace(sql, "[$TERRITORIO_IDS$]", StringUtil.merge(territorioIds)); - sql = StringUtil.replace(sql, "[$TIPOPRATICA_IDS$]", - "'" + StringUtil.merge(tipoPraticaIds, "','") + "'"); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("COUNT_INTPRATICAID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - - List list = query.list(); - countIntPraticaIds = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return countIntPraticaIds; - } - - public List findSorteggioMese(Date dtMin, Date dtMax, List territorioIds, - List tipoPraticaIds, List statiPratica, int maxResults) throws SystemException { - - List pratiche = Collections. emptyList(); - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(FIND_SORTEGGIO_MESE); - sql = StringUtil.replace(sql, "[$TERRITORIO_IDS$]", StringUtil.merge(territorioIds)); - sql = StringUtil.replace(sql, "[$TIPOPRATICA_IDS$]", - "'" + StringUtil.merge(tipoPraticaIds, "','") + "'"); - sql = StringUtil.replace(sql, "[$STATIPRATICA$]", StringUtil.merge(quote(statiPratica))); - sql = StringUtil.replace(sql, "[$N_PRATICHE$]", String.valueOf(maxResults)); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("INTPRATICAID", Type.LONG); - query.addScalar("ESTERNA", Type.BOOLEAN); - query.addScalar("TERRITORIOID", Type.LONG); - query.addScalar("NUMEROPROGETTO", Type.STRING); - query.addScalar("COMMITTENTE", Type.STRING); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - - pratiche = query.list(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return pratiche; - } - - public List findSorteggioAnno(Date dtMin, Date dtMax, List territorioIds, - List tipoPraticaIds, List statiPratica, int maxResults) throws SystemException { - - List pratiche = Collections. emptyList(); - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(FIND_SORTEGGIO_ANNO); - sql = StringUtil.replace(sql, "[$TERRITORIO_IDS$]", StringUtil.merge(territorioIds)); - sql = StringUtil.replace(sql, "[$TIPOPRATICA_IDS$]", - "'" + StringUtil.merge(tipoPraticaIds, "','") + "'"); - sql = StringUtil.replace(sql, "[$STATIPRATICA$]", StringUtil.merge(quote(statiPratica))); - sql = StringUtil.replace(sql, "[$N_PRATICHE$]", String.valueOf(maxResults)); - - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - query.addScalar("INTPRATICAID", Type.LONG); - query.addScalar("ESTERNA", Type.BOOLEAN); - query.addScalar("TERRITORIOID", Type.LONG); - query.addScalar("NUMEROPROGETTO", Type.STRING); - query.addScalar("COMMITTENTE", Type.STRING); - - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(dtMin); - qPos.add(dtMax); - - pratiche = query.list(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return pratiche; - } - - public List findSorteggiGroupByAnnoMeseSettimana(int start, int end) throws SystemException { - - List sorteggi = Collections. emptyList(); - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(FIND_SORTEGGI_GROUP_BY_ANNO_MESE_SETTIMANA); - - SQLQuery sqlQuery = session.createSQLQuery(sql); - sqlQuery.setCacheable(false); - sqlQuery.addScalar("COUNT_SORTEGGIO", Type.LONG); - sqlQuery.addScalar("ANNO", Type.STRING); - sqlQuery.addScalar("MESE", Type.STRING); - sqlQuery.addScalar("SETTIMANA", Type.INTEGER); - - sorteggi = sqlQuery.list(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - - return sorteggi; - } - - public int countSorteggiGroupByAnnoMeseSettimana() throws SystemException { - - long count = 0L; - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_SORTEGGI_GROUP_BY_ANNO_MESE_SETTIMANA); - - SQLQuery sqlQuery = session.createSQLQuery(sql); - sqlQuery.setCacheable(false); - sqlQuery.addScalar("COUNT_SORTEGGIO", Type.LONG); - - List list = sqlQuery.list(); - if (!list.isEmpty()) { - count = list.get(0); - } - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return (int) count; - } - - public void updateDataSorteggioPraticaEsterna(long id, Date dataSorteggio) throws SystemException { - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(UPDATE_DATA_SORTEGGIO_PRATICA_ESTERNA); - - SQLQuery sqlQuery = session.createSQLQuery(sql); - sqlQuery.setCacheable(false); - - QueryPos qPos = QueryPos.getInstance(sqlQuery); - qPos.add(dataSorteggio); - qPos.add(id); - - sqlQuery.executeUpdate(); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - } - - public String findTecnicoSorteggioPraticaEsterna(long id) throws SystemException { - - String tecnico = StringPool.BLANK; - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(FIND_TECNICO_SORTEGGIO_PRATICA_ESTERNA); - - SQLQuery sqlQuery = session.createSQLQuery(sql); - sqlQuery.setCacheable(false); - sqlQuery.addScalar("TECNICO", Type.STRING); - - QueryPos qPos = QueryPos.getInstance(sqlQuery); - qPos.add(id); - - List list = sqlQuery.list(); - if (!list.isEmpty()) { - tecnico = list.get(0); - } - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return tecnico; - } - - public long findTipoPraticaIdSorteggioPraticaEsterna(long id) throws SystemException { - - long tipoPraticaId = 0L; - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(FIND_TIPOPRATICA_ID_SORTEGGIO_PRATICA_ESTERNA); - - SQLQuery sqlQuery = session.createSQLQuery(sql); - sqlQuery.setCacheable(false); - sqlQuery.addScalar("TIPOPRATICA_ID", Type.LONG); - - QueryPos qPos = QueryPos.getInstance(sqlQuery); - qPos.add(id); - - List list = sqlQuery.list(); - if (!list.isEmpty()) { - tipoPraticaId = list.get(0); - } - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - return tipoPraticaId; - } - - private List quote(List list) { - if (list == null) { - return null; - } - List newList = new ArrayList(list.size()); - for (String l : list) { - newList.add(StringUtil.quote(l.trim())); - } - return newList; - } - - // Bug 32653 - private List convertToModel(List objects) { - List sorteggios = null; - - if (objects != null) { - sorteggios = new ArrayList(); - for (Iterator iterator = objects.iterator(); iterator.hasNext();) { - Object[] object = (Object[]) iterator.next(); - - Sorteggio sorteggio = new SorteggioImpl(); - sorteggio.setAnno((String) object[0]); - sorteggio.setCommittente((String) object[1]); - sorteggio.setComune((String) object[2]); - sorteggio.setMese((String) object[3]); - sorteggio.setSettimana((Integer) object[4]); - sorteggio.setMesePrecedente((String) object[5]); - sorteggio.setNumeroEstrazione((Long) object[6]); - sorteggio.setPratica((String) object[7]); - sorteggio.setProvincia((String) object[8]); - sorteggio.setTecnico((String) object[9]); - sorteggio.setGroupId((Long) object[10]); - sorteggio.setDtSorteggio((Date) object[11]); - - sorteggios.add(sorteggio); - } - } - - return sorteggios; - } - - // Bug 32653 - public List search(Long groupId, String anno, String mese, int settimana, String committente, - String tecnico, String comune, String pratica, Long numeroEstrazione, String provincia, - int start, int end) throws SystemException { - - List sorteggi = Collections. emptyList(); - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(SEARCH_SORTEGGIO); - - sql = StringUtil.replace(sql, "[$DT_ANNO$]", - Validator.isNull(anno) ? "%" : anno.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_MESE$]", - Validator.isNull(mese) ? "%" : mese.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_SETTIMANA]", - settimana > 0 ? String.valueOf(settimana) : "s.settimana"); - sql = StringUtil.replace(sql, "[$DT_COMMITTENTE$]", Validator.isNull(committente) ? "%" - : committente.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_TECNICO$]", - Validator.isNull(tecnico) ? "%" : tecnico.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_COMUNE$]", - Validator.isNull(comune) ? "%" : comune.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_PRATICA$]", - Validator.isNull(pratica) ? "%" : pratica.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_NUMERO_ESTRAZIONE$]", - Validator.isNull(numeroEstrazione) ? "1 OR 1=1" : String.valueOf(numeroEstrazione)); - sql = StringUtil.replace(sql, "[$DT_PROVINCIA$]", - Validator.isNull(provincia) ? "%" : provincia.replace("'", "''")); - - SQLQuery sqlQuery = session.createSQLQuery(sql); - sqlQuery.setCacheable(false); - sqlQuery.addScalar("anno", Type.STRING); - sqlQuery.addScalar("committente", Type.STRING); - sqlQuery.addScalar("comune", Type.STRING); - sqlQuery.addScalar("mese", Type.STRING); - sqlQuery.addScalar("settimana", Type.INTEGER); - sqlQuery.addScalar("meseprecedente", Type.STRING); - sqlQuery.addScalar("numeroestrazione", Type.LONG); - sqlQuery.addScalar("pratica", Type.STRING); - sqlQuery.addScalar("provincia", Type.STRING); - sqlQuery.addScalar("tecnico", Type.STRING); - sqlQuery.addScalar("groupid", Type.LONG); - sqlQuery.addScalar("dtsorteggio", Type.TIMESTAMP); - - // QueryPos qPos = QueryPos.getInstance(sqlQuery); - // qPos.add(groupId); - - sorteggi = (List) QueryUtil.list(sqlQuery, getDialect(), start, end); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - - return convertToModel(sorteggi); - } - - // Bug 32653 - public int count(Long groupId, String anno, String mese, int settimana, String committente, - String tecnico, String comune, String pratica, Long numeroEstrazione, String provincia) - throws SystemException { - - int count = 0; - - Session session = null; - try { - session = openSession(); - - String sql = CustomSQLUtil.get(COUNT_SORTEGGIO); - - sql = StringUtil.replace(sql, "[$DT_ANNO$]", - Validator.isNull(anno) ? "%" : anno.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_MESE$]", - Validator.isNull(mese) ? "%" : mese.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_SETTIMANA]", - settimana > 0 ? String.valueOf(settimana) : "s.settimana"); - sql = StringUtil.replace(sql, "[$DT_COMMITTENTE$]", Validator.isNull(committente) ? "%" - : committente.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_TECNICO$]", - Validator.isNull(tecnico) ? "%" : tecnico.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_COMUNE$]", - Validator.isNull(comune) ? "%" : comune.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_PRATICA$]", - Validator.isNull(pratica) ? "%" : pratica.replace("'", "''")); - sql = StringUtil.replace(sql, "[$DT_NUMERO_ESTRAZIONE$]", - Validator.isNull(numeroEstrazione) ? "1 OR 1=1" : String.valueOf(numeroEstrazione)); - sql = StringUtil.replace(sql, "[$DT_PROVINCIA$]", - Validator.isNull(provincia) ? "%" : provincia.replace("'", "''")); - - SQLQuery sqlQuery = session.createSQLQuery(sql); - sqlQuery.setCacheable(false); - sqlQuery.addScalar("conteggio", Type.LONG); - - // QueryPos qPos = QueryPos.getInstance(sqlQuery); - // qPos.add(groupId); - - List list = sqlQuery.list(); - count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - - } catch (ORMException e) { - _log.error("Errore", e); - throw new SystemException(e); - } finally { - if (session != null) { - closeSession(session); - } - } - - return count; - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java deleted file mode 100644 index fc566b28..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SorteggioPersistenceImpl.java +++ /dev/null @@ -1,5483 +0,0 @@ -/** - * 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.liferay.portos.bo.service.persistence; - -import com.liferay.portal.kernel.cache.CacheRegistryUtil; -import com.liferay.portal.kernel.dao.orm.EntityCacheUtil; -import com.liferay.portal.kernel.dao.orm.FinderCacheUtil; -import com.liferay.portal.kernel.dao.orm.FinderPath; -import com.liferay.portal.kernel.dao.orm.Query; -import com.liferay.portal.kernel.dao.orm.QueryPos; -import com.liferay.portal.kernel.dao.orm.QueryUtil; -import com.liferay.portal.kernel.dao.orm.Session; -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.GetterUtil; -import com.liferay.portal.kernel.util.InstanceFactory; -import com.liferay.portal.kernel.util.OrderByComparator; -import com.liferay.portal.kernel.util.PropsKeys; -import com.liferay.portal.kernel.util.PropsUtil; -import com.liferay.portal.kernel.util.SetUtil; -import com.liferay.portal.kernel.util.StringBundler; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; -import com.liferay.portal.kernel.util.UnmodifiableList; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.uuid.PortalUUIDUtil; -import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.ModelListener; -import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; - -import it.tref.liferay.portos.bo.NoSuchSorteggioException; -import it.tref.liferay.portos.bo.model.Sorteggio; -import it.tref.liferay.portos.bo.model.impl.SorteggioImpl; -import it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl; -import it.tref.liferay.portos.bo.service.persistence.SorteggioPersistence; - -import java.io.Serializable; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.Set; - -/** - * The persistence implementation for the sorteggio service. - * - *

- * Caching information and settings can be found in portal.properties - *

- * - * @author Davide Barbagallo, 3F Consulting - * @see SorteggioPersistence - * @see SorteggioUtil - * @generated - */ -public class SorteggioPersistenceImpl extends BasePersistenceImpl - implements SorteggioPersistence { - /* - * NOTE FOR DEVELOPERS: - * - * Never modify or reference this class directly. Always use {@link SorteggioUtil} to access the sorteggio persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class. - */ - public static final String FINDER_CLASS_NAME_ENTITY = SorteggioImpl.class.getName(); - public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION = FINDER_CLASS_NAME_ENTITY + - ".List1"; - public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION = FINDER_CLASS_NAME_ENTITY + - ".List2"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findAll", new String[0]); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findAll", new String[0]); - public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByUuid", - new String[] { - String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByUuid", - new String[] { String.class.getName() }, - SorteggioModelImpl.UUID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid", - new String[] { String.class.getName() }); - - /** - * Returns all the sorteggios where uuid = ?. - * - * @param uuid the uuid - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid) throws SystemException { - return findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid, int start, int end) - throws SystemException { - return findByUuid(uuid, start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios where uuid = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid(String uuid, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID; - finderArgs = new Object[] { uuid }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID; - finderArgs = new Object[] { uuid, start, end, orderByComparator }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Sorteggio sorteggio : list) { - if (!Validator.equals(uuid, sorteggio.getUuid())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(3 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByUuid_First(String uuid, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByUuid_First(uuid, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByUuid_First(String uuid, - OrderByComparator orderByComparator) throws SystemException { - List list = findByUuid(uuid, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByUuid_Last(String uuid, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByUuid_Last(uuid, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ?. - * - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByUuid_Last(String uuid, - OrderByComparator orderByComparator) throws SystemException { - int count = countByUuid(uuid); - - if (count == 0) { - return null; - } - - List list = findByUuid(uuid, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where uuid = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param uuid the uuid - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio[] findByUuid_PrevAndNext(long sorteggioId, String uuid, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByPrimaryKey(sorteggioId); - - Session session = null; - - try { - session = openSession(); - - Sorteggio[] array = new SorteggioImpl[3]; - - array[0] = getByUuid_PrevAndNext(session, sorteggio, uuid, - orderByComparator, true); - - array[1] = sorteggio; - - array[2] = getByUuid_PrevAndNext(session, sorteggio, uuid, - orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Sorteggio getByUuid_PrevAndNext(Session session, - Sorteggio sorteggio, String uuid, OrderByComparator orderByComparator, - boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(sorteggio); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the sorteggios where uuid = ? from the database. - * - * @param uuid the uuid - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByUuid(String uuid) throws SystemException { - for (Sorteggio sorteggio : findByUuid(uuid, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null)) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios where uuid = ?. - * - * @param uuid the uuid - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUuid(String uuid) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID; - - Object[] finderArgs = new Object[] { uuid }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_UUID_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_UUID_1 = "sorteggio.uuid IS NULL"; - private static final String _FINDER_COLUMN_UUID_UUID_2 = "sorteggio.uuid = ?"; - private static final String _FINDER_COLUMN_UUID_UUID_3 = "(sorteggio.uuid IS NULL OR sorteggio.uuid = '')"; - public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByUUID_G", - new String[] { String.class.getName(), Long.class.getName() }, - SorteggioModelImpl.UUID_COLUMN_BITMASK | - SorteggioModelImpl.GROUPID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUUID_G", - new String[] { String.class.getName(), Long.class.getName() }); - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByUUID_G(String uuid, long groupId) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByUUID_G(uuid, groupId); - - if (sorteggio == null) { - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", groupId="); - msg.append(groupId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchSorteggioException(msg.toString()); - } - - return sorteggio; - } - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByUUID_G(String uuid, long groupId) - throws SystemException { - return fetchByUUID_G(uuid, groupId, true); - } - - /** - * Returns the sorteggio where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param uuid the uuid - * @param groupId the group ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByUUID_G(String uuid, long groupId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { uuid, groupId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, this); - } - - if (result instanceof Sorteggio) { - Sorteggio sorteggio = (Sorteggio)result; - - if (!Validator.equals(uuid, sorteggio.getUuid()) || - (groupId != sorteggio.getGroupId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(4); - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_G_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_G_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_G_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(groupId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, list); - } - else { - Sorteggio sorteggio = list.get(0); - - result = sorteggio; - - cacheResult(sorteggio); - - if ((sorteggio.getUuid() == null) || - !sorteggio.getUuid().equals(uuid) || - (sorteggio.getGroupId() != groupId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs, sorteggio); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Sorteggio)result; - } - } - - /** - * Removes the sorteggio where uuid = ? and groupId = ? from the database. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio removeByUUID_G(String uuid, long groupId) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByUUID_G(uuid, groupId); - - return remove(sorteggio); - } - - /** - * Returns the number of sorteggios where uuid = ? and groupId = ?. - * - * @param uuid the uuid - * @param groupId the group ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUUID_G(String uuid, long groupId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G; - - Object[] finderArgs = new Object[] { uuid, groupId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_G_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_G_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_G_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(groupId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_G_UUID_1 = "sorteggio.uuid IS NULL AND "; - private static final String _FINDER_COLUMN_UUID_G_UUID_2 = "sorteggio.uuid = ? AND "; - private static final String _FINDER_COLUMN_UUID_G_UUID_3 = "(sorteggio.uuid IS NULL OR sorteggio.uuid = '') AND "; - private static final String _FINDER_COLUMN_UUID_G_GROUPID_2 = "sorteggio.groupId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByUuid_C", - new String[] { - String.class.getName(), Long.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByUuid_C", - new String[] { String.class.getName(), Long.class.getName() }, - SorteggioModelImpl.UUID_COLUMN_BITMASK | - SorteggioModelImpl.COMPANYID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid_C", - new String[] { String.class.getName(), Long.class.getName() }); - - /** - * Returns all the sorteggios where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId) - throws SystemException { - return findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId, int start, - int end) throws SystemException { - return findByUuid_C(uuid, companyId, start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios where uuid = ? and companyId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param uuid the uuid - * @param companyId the company ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByUuid_C(String uuid, long companyId, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C; - finderArgs = new Object[] { uuid, companyId }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C; - finderArgs = new Object[] { - uuid, companyId, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Sorteggio sorteggio : list) { - if (!Validator.equals(uuid, sorteggio.getUuid()) || - (companyId != sorteggio.getCompanyId())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByUuid_C_First(String uuid, long companyId, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByUuid_C_First(uuid, companyId, - orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", companyId="); - msg.append(companyId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the first sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByUuid_C_First(String uuid, long companyId, - OrderByComparator orderByComparator) throws SystemException { - List list = findByUuid_C(uuid, companyId, 0, 1, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByUuid_C_Last(String uuid, long companyId, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByUuid_C_Last(uuid, companyId, - orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("uuid="); - msg.append(uuid); - - msg.append(", companyId="); - msg.append(companyId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the last sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByUuid_C_Last(String uuid, long companyId, - OrderByComparator orderByComparator) throws SystemException { - int count = countByUuid_C(uuid, companyId); - - if (count == 0) { - return null; - } - - List list = findByUuid_C(uuid, companyId, count - 1, count, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where uuid = ? and companyId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param uuid the uuid - * @param companyId the company ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio[] findByUuid_C_PrevAndNext(long sorteggioId, String uuid, - long companyId, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByPrimaryKey(sorteggioId); - - Session session = null; - - try { - session = openSession(); - - Sorteggio[] array = new SorteggioImpl[3]; - - array[0] = getByUuid_C_PrevAndNext(session, sorteggio, uuid, - companyId, orderByComparator, true); - - array[1] = sorteggio; - - array[2] = getByUuid_C_PrevAndNext(session, sorteggio, uuid, - companyId, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Sorteggio getByUuid_C_PrevAndNext(Session session, - Sorteggio sorteggio, String uuid, long companyId, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(sorteggio); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the sorteggios where uuid = ? and companyId = ? from the database. - * - * @param uuid the uuid - * @param companyId the company ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByUuid_C(String uuid, long companyId) - throws SystemException { - for (Sorteggio sorteggio : findByUuid_C(uuid, companyId, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios where uuid = ? and companyId = ?. - * - * @param uuid the uuid - * @param companyId the company ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByUuid_C(String uuid, long companyId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C; - - Object[] finderArgs = new Object[] { uuid, companyId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - boolean bindUuid = false; - - if (uuid == null) { - query.append(_FINDER_COLUMN_UUID_C_UUID_1); - } - else if (uuid.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_UUID_C_UUID_3); - } - else { - bindUuid = true; - - query.append(_FINDER_COLUMN_UUID_C_UUID_2); - } - - query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindUuid) { - qPos.add(uuid); - } - - qPos.add(companyId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_UUID_C_UUID_1 = "sorteggio.uuid IS NULL AND "; - private static final String _FINDER_COLUMN_UUID_C_UUID_2 = "sorteggio.uuid = ? AND "; - private static final String _FINDER_COLUMN_UUID_C_UUID_3 = "(sorteggio.uuid IS NULL OR sorteggio.uuid = '') AND "; - private static final String _FINDER_COLUMN_UUID_C_COMPANYID_2 = "sorteggio.companyId = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDSORTEGGIOID = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldSorteggioId", - new String[] { Long.class.getName() }, - SorteggioModelImpl.OLDSORTEGGIOID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDSORTEGGIOID = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByOldSorteggioId", - new String[] { Long.class.getName() }); - - /** - * Returns the sorteggio where oldSorteggioId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param oldSorteggioId the old sorteggio ID - * @return the matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByOldSorteggioId(long oldSorteggioId) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByOldSorteggioId(oldSorteggioId); - - if (sorteggio == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldSorteggioId="); - msg.append(oldSorteggioId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchSorteggioException(msg.toString()); - } - - return sorteggio; - } - - /** - * Returns the sorteggio where oldSorteggioId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldSorteggioId the old sorteggio ID - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByOldSorteggioId(long oldSorteggioId) - throws SystemException { - return fetchByOldSorteggioId(oldSorteggioId, true); - } - - /** - * Returns the sorteggio where oldSorteggioId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldSorteggioId the old sorteggio ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByOldSorteggioId(long oldSorteggioId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldSorteggioId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - finderArgs, this); - } - - if (result instanceof Sorteggio) { - Sorteggio sorteggio = (Sorteggio)result; - - if ((oldSorteggioId != sorteggio.getOldSorteggioId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_OLDSORTEGGIOID_OLDSORTEGGIOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldSorteggioId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "SorteggioPersistenceImpl.fetchByOldSorteggioId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - Sorteggio sorteggio = list.get(0); - - result = sorteggio; - - cacheResult(sorteggio); - - if ((sorteggio.getOldSorteggioId() != oldSorteggioId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - finderArgs, sorteggio); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Sorteggio)result; - } - } - - /** - * Removes the sorteggio where oldSorteggioId = ? from the database. - * - * @param oldSorteggioId the old sorteggio ID - * @return the sorteggio that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio removeByOldSorteggioId(long oldSorteggioId) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByOldSorteggioId(oldSorteggioId); - - return remove(sorteggio); - } - - /** - * Returns the number of sorteggios where oldSorteggioId = ?. - * - * @param oldSorteggioId the old sorteggio ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldSorteggioId(long oldSorteggioId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDSORTEGGIOID; - - Object[] finderArgs = new Object[] { oldSorteggioId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_OLDSORTEGGIOID_OLDSORTEGGIOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldSorteggioId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDSORTEGGIOID_OLDSORTEGGIOID_2 = "sorteggio.oldSorteggioId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_GROUPID = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByC_GroupId", - new String[] { - Long.class.getName(), Long.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_GROUPID = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByC_GroupId", - new String[] { Long.class.getName(), Long.class.getName() }, - SorteggioModelImpl.COMPANYID_COLUMN_BITMASK | - SorteggioModelImpl.GROUPID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_C_GROUPID = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByC_GroupId", - new String[] { Long.class.getName(), Long.class.getName() }); - - /** - * Returns all the sorteggios where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByC_GroupId(long companyId, long groupId) - throws SystemException { - return findByC_GroupId(companyId, groupId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios where companyId = ? and groupId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param groupId the group ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByC_GroupId(long companyId, long groupId, - int start, int end) throws SystemException { - return findByC_GroupId(companyId, groupId, start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios where companyId = ? and groupId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param groupId the group ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByC_GroupId(long companyId, long groupId, - int start, int end, OrderByComparator orderByComparator) - throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_GROUPID; - finderArgs = new Object[] { companyId, groupId }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_C_GROUPID; - finderArgs = new Object[] { - companyId, groupId, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Sorteggio sorteggio : list) { - if ((companyId != sorteggio.getCompanyId()) || - (groupId != sorteggio.getGroupId())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_C_GROUPID_COMPANYID_2); - - query.append(_FINDER_COLUMN_C_GROUPID_GROUPID_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(companyId); - - qPos.add(groupId); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByC_GroupId_First(long companyId, long groupId, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByC_GroupId_First(companyId, groupId, - orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("companyId="); - msg.append(companyId); - - msg.append(", groupId="); - msg.append(groupId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByC_GroupId_First(long companyId, long groupId, - OrderByComparator orderByComparator) throws SystemException { - List list = findByC_GroupId(companyId, groupId, 0, 1, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByC_GroupId_Last(long companyId, long groupId, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByC_GroupId_Last(companyId, groupId, - orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("companyId="); - msg.append(companyId); - - msg.append(", groupId="); - msg.append(groupId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByC_GroupId_Last(long companyId, long groupId, - OrderByComparator orderByComparator) throws SystemException { - int count = countByC_GroupId(companyId, groupId); - - if (count == 0) { - return null; - } - - List list = findByC_GroupId(companyId, groupId, count - 1, - count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where companyId = ? and groupId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param companyId the company ID - * @param groupId the group ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio[] findByC_GroupId_PrevAndNext(long sorteggioId, - long companyId, long groupId, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByPrimaryKey(sorteggioId); - - Session session = null; - - try { - session = openSession(); - - Sorteggio[] array = new SorteggioImpl[3]; - - array[0] = getByC_GroupId_PrevAndNext(session, sorteggio, - companyId, groupId, orderByComparator, true); - - array[1] = sorteggio; - - array[2] = getByC_GroupId_PrevAndNext(session, sorteggio, - companyId, groupId, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Sorteggio getByC_GroupId_PrevAndNext(Session session, - Sorteggio sorteggio, long companyId, long groupId, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_C_GROUPID_COMPANYID_2); - - query.append(_FINDER_COLUMN_C_GROUPID_GROUPID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(companyId); - - qPos.add(groupId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(sorteggio); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the sorteggios where companyId = ? and groupId = ? from the database. - * - * @param companyId the company ID - * @param groupId the group ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByC_GroupId(long companyId, long groupId) - throws SystemException { - for (Sorteggio sorteggio : findByC_GroupId(companyId, groupId, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios where companyId = ? and groupId = ?. - * - * @param companyId the company ID - * @param groupId the group ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByC_GroupId(long companyId, long groupId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_C_GROUPID; - - Object[] finderArgs = new Object[] { companyId, groupId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_C_GROUPID_COMPANYID_2); - - query.append(_FINDER_COLUMN_C_GROUPID_GROUPID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(companyId); - - qPos.add(groupId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_C_GROUPID_COMPANYID_2 = "sorteggio.companyId = ? AND "; - private static final String _FINDER_COLUMN_C_GROUPID_GROUPID_2 = "sorteggio.groupId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_DETTPRATICA = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByC_DettPratica", - new String[] { - Long.class.getName(), Long.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DETTPRATICA = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByC_DettPratica", - new String[] { Long.class.getName(), Long.class.getName() }, - SorteggioModelImpl.COMPANYID_COLUMN_BITMASK | - SorteggioModelImpl.DETTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_C_DETTPRATICA = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByC_DettPratica", - new String[] { Long.class.getName(), Long.class.getName() }); - - /** - * Returns all the sorteggios where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByC_DettPratica(long companyId, - long dettPraticaId) throws SystemException { - return findByC_DettPratica(companyId, dettPraticaId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios where companyId = ? and dettPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByC_DettPratica(long companyId, - long dettPraticaId, int start, int end) throws SystemException { - return findByC_DettPratica(companyId, dettPraticaId, start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios where companyId = ? and dettPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByC_DettPratica(long companyId, - long dettPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DETTPRATICA; - finderArgs = new Object[] { companyId, dettPraticaId }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_C_DETTPRATICA; - finderArgs = new Object[] { - companyId, dettPraticaId, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Sorteggio sorteggio : list) { - if ((companyId != sorteggio.getCompanyId()) || - (dettPraticaId != sorteggio.getDettPraticaId())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_C_DETTPRATICA_COMPANYID_2); - - query.append(_FINDER_COLUMN_C_DETTPRATICA_DETTPRATICAID_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(companyId); - - qPos.add(dettPraticaId); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByC_DettPratica_First(long companyId, - long dettPraticaId, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByC_DettPratica_First(companyId, - dettPraticaId, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("companyId="); - msg.append(companyId); - - msg.append(", dettPraticaId="); - msg.append(dettPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the first sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByC_DettPratica_First(long companyId, - long dettPraticaId, OrderByComparator orderByComparator) - throws SystemException { - List list = findByC_DettPratica(companyId, dettPraticaId, 0, - 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByC_DettPratica_Last(long companyId, - long dettPraticaId, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByC_DettPratica_Last(companyId, - dettPraticaId, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("companyId="); - msg.append(companyId); - - msg.append(", dettPraticaId="); - msg.append(dettPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the last sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByC_DettPratica_Last(long companyId, - long dettPraticaId, OrderByComparator orderByComparator) - throws SystemException { - int count = countByC_DettPratica(companyId, dettPraticaId); - - if (count == 0) { - return null; - } - - List list = findByC_DettPratica(companyId, dettPraticaId, - count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where companyId = ? and dettPraticaId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio[] findByC_DettPratica_PrevAndNext(long sorteggioId, - long companyId, long dettPraticaId, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByPrimaryKey(sorteggioId); - - Session session = null; - - try { - session = openSession(); - - Sorteggio[] array = new SorteggioImpl[3]; - - array[0] = getByC_DettPratica_PrevAndNext(session, sorteggio, - companyId, dettPraticaId, orderByComparator, true); - - array[1] = sorteggio; - - array[2] = getByC_DettPratica_PrevAndNext(session, sorteggio, - companyId, dettPraticaId, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Sorteggio getByC_DettPratica_PrevAndNext(Session session, - Sorteggio sorteggio, long companyId, long dettPraticaId, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_C_DETTPRATICA_COMPANYID_2); - - query.append(_FINDER_COLUMN_C_DETTPRATICA_DETTPRATICAID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(companyId); - - qPos.add(dettPraticaId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(sorteggio); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the sorteggios where companyId = ? and dettPraticaId = ? from the database. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByC_DettPratica(long companyId, long dettPraticaId) - throws SystemException { - for (Sorteggio sorteggio : findByC_DettPratica(companyId, - dettPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios where companyId = ? and dettPraticaId = ?. - * - * @param companyId the company ID - * @param dettPraticaId the dett pratica ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByC_DettPratica(long companyId, long dettPraticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_C_DETTPRATICA; - - Object[] finderArgs = new Object[] { companyId, dettPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_C_DETTPRATICA_COMPANYID_2); - - query.append(_FINDER_COLUMN_C_DETTPRATICA_DETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(companyId); - - qPos.add(dettPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_C_DETTPRATICA_COMPANYID_2 = "sorteggio.companyId = ? AND "; - private static final String _FINDER_COLUMN_C_DETTPRATICA_DETTPRATICAID_2 = "sorteggio.dettPraticaId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByIntPraticaId", - new String[] { - Long.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByIntPraticaId", - new String[] { Long.class.getName() }, - SorteggioModelImpl.INTPRATICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_INTPRATICAID = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByIntPraticaId", - new String[] { Long.class.getName() }); - - /** - * Returns all the sorteggios where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPraticaId(long intPraticaId) - throws SystemException { - return findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPraticaId(long intPraticaId, int start, - int end) throws SystemException { - return findByIntPraticaId(intPraticaId, start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPraticaId(long intPraticaId, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID; - finderArgs = new Object[] { intPraticaId }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID; - finderArgs = new Object[] { - intPraticaId, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Sorteggio sorteggio : list) { - if ((intPraticaId != sorteggio.getIntPraticaId())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(3 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByIntPraticaId_First(long intPraticaId, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByIntPraticaId_First(intPraticaId, - orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the first sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByIntPraticaId_First(long intPraticaId, - OrderByComparator orderByComparator) throws SystemException { - List list = findByIntPraticaId(intPraticaId, 0, 1, - orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByIntPraticaId_Last(long intPraticaId, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByIntPraticaId_Last(intPraticaId, - orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the last sorteggio in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByIntPraticaId_Last(long intPraticaId, - OrderByComparator orderByComparator) throws SystemException { - int count = countByIntPraticaId(intPraticaId); - - if (count == 0) { - return null; - } - - List list = findByIntPraticaId(intPraticaId, count - 1, - count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where intPraticaId = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio[] findByIntPraticaId_PrevAndNext(long sorteggioId, - long intPraticaId, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByPrimaryKey(sorteggioId); - - Session session = null; - - try { - session = openSession(); - - Sorteggio[] array = new SorteggioImpl[3]; - - array[0] = getByIntPraticaId_PrevAndNext(session, sorteggio, - intPraticaId, orderByComparator, true); - - array[1] = sorteggio; - - array[2] = getByIntPraticaId_PrevAndNext(session, sorteggio, - intPraticaId, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Sorteggio getByIntPraticaId_PrevAndNext(Session session, - Sorteggio sorteggio, long intPraticaId, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(sorteggio); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the sorteggios where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByIntPraticaId(long intPraticaId) - throws SystemException { - for (Sorteggio sorteggio : findByIntPraticaId(intPraticaId, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByIntPraticaId(long intPraticaId) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICAID; - - Object[] finderArgs = new Object[] { intPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2 = "sorteggio.intPraticaId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID_ANNO_MESE_SETTIMANA = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByGroupId_Anno_Mese_Settimana", - new String[] { - Long.class.getName(), String.class.getName(), - String.class.getName(), Integer.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID_ANNO_MESE_SETTIMANA = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByGroupId_Anno_Mese_Settimana", - new String[] { - Long.class.getName(), String.class.getName(), - String.class.getName(), Integer.class.getName() - }, - SorteggioModelImpl.GROUPID_COLUMN_BITMASK | - SorteggioModelImpl.ANNO_COLUMN_BITMASK | - SorteggioModelImpl.MESE_COLUMN_BITMASK | - SorteggioModelImpl.SETTIMANA_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID_ANNO_MESE_SETTIMANA = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByGroupId_Anno_Mese_Settimana", - new String[] { - Long.class.getName(), String.class.getName(), - String.class.getName(), Integer.class.getName() - }); - - /** - * Returns all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByGroupId_Anno_Mese_Settimana(long groupId, - String anno, String mese, int settimana) throws SystemException { - return findByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByGroupId_Anno_Mese_Settimana(long groupId, - String anno, String mese, int settimana, int start, int end) - throws SystemException { - return findByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana, start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByGroupId_Anno_Mese_Settimana(long groupId, - String anno, String mese, int settimana, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID_ANNO_MESE_SETTIMANA; - finderArgs = new Object[] { groupId, anno, mese, settimana }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID_ANNO_MESE_SETTIMANA; - finderArgs = new Object[] { - groupId, anno, mese, settimana, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Sorteggio sorteggio : list) { - if ((groupId != sorteggio.getGroupId()) || - !Validator.equals(anno, sorteggio.getAnno()) || - !Validator.equals(mese, sorteggio.getMese()) || - (settimana != sorteggio.getSettimana())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(6); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_GROUPID_2); - - boolean bindAnno = false; - - if (anno == null) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_1); - } - else if (anno.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_3); - } - else { - bindAnno = true; - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_2); - } - - boolean bindMese = false; - - if (mese == null) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_1); - } - else if (mese.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_3); - } - else { - bindMese = true; - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_2); - } - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_SETTIMANA_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(groupId); - - if (bindAnno) { - qPos.add(anno); - } - - if (bindMese) { - qPos.add(mese); - } - - qPos.add(settimana); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByGroupId_Anno_Mese_Settimana_First(long groupId, - String anno, String mese, int settimana, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByGroupId_Anno_Mese_Settimana_First(groupId, - anno, mese, settimana, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(10); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("groupId="); - msg.append(groupId); - - msg.append(", anno="); - msg.append(anno); - - msg.append(", mese="); - msg.append(mese); - - msg.append(", settimana="); - msg.append(settimana); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the first sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByGroupId_Anno_Mese_Settimana_First(long groupId, - String anno, String mese, int settimana, - OrderByComparator orderByComparator) throws SystemException { - List list = findByGroupId_Anno_Mese_Settimana(groupId, anno, - mese, settimana, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByGroupId_Anno_Mese_Settimana_Last(long groupId, - String anno, String mese, int settimana, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByGroupId_Anno_Mese_Settimana_Last(groupId, - anno, mese, settimana, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(10); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("groupId="); - msg.append(groupId); - - msg.append(", anno="); - msg.append(anno); - - msg.append(", mese="); - msg.append(mese); - - msg.append(", settimana="); - msg.append(settimana); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the last sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByGroupId_Anno_Mese_Settimana_Last(long groupId, - String anno, String mese, int settimana, - OrderByComparator orderByComparator) throws SystemException { - int count = countByGroupId_Anno_Mese_Settimana(groupId, anno, mese, - settimana); - - if (count == 0) { - return null; - } - - List list = findByGroupId_Anno_Mese_Settimana(groupId, anno, - mese, settimana, count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio[] findByGroupId_Anno_Mese_Settimana_PrevAndNext( - long sorteggioId, long groupId, String anno, String mese, - int settimana, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByPrimaryKey(sorteggioId); - - Session session = null; - - try { - session = openSession(); - - Sorteggio[] array = new SorteggioImpl[3]; - - array[0] = getByGroupId_Anno_Mese_Settimana_PrevAndNext(session, - sorteggio, groupId, anno, mese, settimana, - orderByComparator, true); - - array[1] = sorteggio; - - array[2] = getByGroupId_Anno_Mese_Settimana_PrevAndNext(session, - sorteggio, groupId, anno, mese, settimana, - orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Sorteggio getByGroupId_Anno_Mese_Settimana_PrevAndNext( - Session session, Sorteggio sorteggio, long groupId, String anno, - String mese, int settimana, OrderByComparator orderByComparator, - boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_GROUPID_2); - - boolean bindAnno = false; - - if (anno == null) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_1); - } - else if (anno.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_3); - } - else { - bindAnno = true; - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_2); - } - - boolean bindMese = false; - - if (mese == null) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_1); - } - else if (mese.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_3); - } - else { - bindMese = true; - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_2); - } - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_SETTIMANA_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(groupId); - - if (bindAnno) { - qPos.add(anno); - } - - if (bindMese) { - qPos.add(mese); - } - - qPos.add(settimana); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(sorteggio); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ? from the database. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByGroupId_Anno_Mese_Settimana(long groupId, String anno, - String mese, int settimana) throws SystemException { - for (Sorteggio sorteggio : findByGroupId_Anno_Mese_Settimana(groupId, - anno, mese, settimana, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - null)) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios where groupId = ? and anno = ? and mese = ? and settimana = ?. - * - * @param groupId the group ID - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByGroupId_Anno_Mese_Settimana(long groupId, String anno, - String mese, int settimana) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_GROUPID_ANNO_MESE_SETTIMANA; - - Object[] finderArgs = new Object[] { groupId, anno, mese, settimana }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(5); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_GROUPID_2); - - boolean bindAnno = false; - - if (anno == null) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_1); - } - else if (anno.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_3); - } - else { - bindAnno = true; - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_2); - } - - boolean bindMese = false; - - if (mese == null) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_1); - } - else if (mese.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_3); - } - else { - bindMese = true; - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_2); - } - - query.append(_FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_SETTIMANA_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(groupId); - - if (bindAnno) { - qPos.add(anno); - } - - if (bindMese) { - qPos.add(mese); - } - - qPos.add(settimana); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_GROUPID_2 = - "sorteggio.groupId = ? AND "; - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_1 = - "sorteggio.anno IS NULL AND "; - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_2 = - "sorteggio.anno = ? AND "; - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_ANNO_3 = - "(sorteggio.anno IS NULL OR sorteggio.anno = '') AND "; - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_1 = - "sorteggio.mese IS NULL AND "; - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_2 = - "sorteggio.mese = ? AND "; - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_MESE_3 = - "(sorteggio.mese IS NULL OR sorteggio.mese = '') AND "; - private static final String _FINDER_COLUMN_GROUPID_ANNO_MESE_SETTIMANA_SETTIMANA_2 = - "sorteggio.settimana = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ANNO_MESE_SETTIMANA = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByAnno_Mese_Settimana", - new String[] { - String.class.getName(), String.class.getName(), - Integer.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ANNO_MESE_SETTIMANA = - new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, SorteggioImpl.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByAnno_Mese_Settimana", - new String[] { - String.class.getName(), String.class.getName(), - Integer.class.getName() - }, - SorteggioModelImpl.ANNO_COLUMN_BITMASK | - SorteggioModelImpl.MESE_COLUMN_BITMASK | - SorteggioModelImpl.SETTIMANA_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_ANNO_MESE_SETTIMANA = new FinderPath(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByAnno_Mese_Settimana", - new String[] { - String.class.getName(), String.class.getName(), - Integer.class.getName() - }); - - /** - * Returns all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByAnno_Mese_Settimana(String anno, String mese, - int settimana) throws SystemException { - return findByAnno_Mese_Settimana(anno, mese, settimana, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByAnno_Mese_Settimana(String anno, String mese, - int settimana, int start, int end) throws SystemException { - return findByAnno_Mese_Settimana(anno, mese, settimana, start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios where anno = ? and mese = ? and settimana = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findByAnno_Mese_Settimana(String anno, String mese, - int settimana, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ANNO_MESE_SETTIMANA; - finderArgs = new Object[] { anno, mese, settimana }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_ANNO_MESE_SETTIMANA; - finderArgs = new Object[] { - anno, mese, settimana, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Sorteggio sorteggio : list) { - if (!Validator.equals(anno, sorteggio.getAnno()) || - !Validator.equals(mese, sorteggio.getMese()) || - (settimana != sorteggio.getSettimana())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(5 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(5); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - boolean bindAnno = false; - - if (anno == null) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_1); - } - else if (anno.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_3); - } - else { - bindAnno = true; - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_2); - } - - boolean bindMese = false; - - if (mese == null) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_1); - } - else if (mese.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_3); - } - else { - bindMese = true; - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_2); - } - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_SETTIMANA_2); - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindAnno) { - qPos.add(anno); - } - - if (bindMese) { - qPos.add(mese); - } - - qPos.add(settimana); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByAnno_Mese_Settimana_First(String anno, String mese, - int settimana, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByAnno_Mese_Settimana_First(anno, mese, - settimana, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("anno="); - msg.append(anno); - - msg.append(", mese="); - msg.append(mese); - - msg.append(", settimana="); - msg.append(settimana); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the first sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByAnno_Mese_Settimana_First(String anno, String mese, - int settimana, OrderByComparator orderByComparator) - throws SystemException { - List list = findByAnno_Mese_Settimana(anno, mese, settimana, - 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByAnno_Mese_Settimana_Last(String anno, String mese, - int settimana, OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByAnno_Mese_Settimana_Last(anno, mese, - settimana, orderByComparator); - - if (sorteggio != null) { - return sorteggio; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("anno="); - msg.append(anno); - - msg.append(", mese="); - msg.append(mese); - - msg.append(", settimana="); - msg.append(settimana); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchSorteggioException(msg.toString()); - } - - /** - * Returns the last sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching sorteggio, or null if a matching sorteggio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByAnno_Mese_Settimana_Last(String anno, String mese, - int settimana, OrderByComparator orderByComparator) - throws SystemException { - int count = countByAnno_Mese_Settimana(anno, mese, settimana); - - if (count == 0) { - return null; - } - - List list = findByAnno_Mese_Settimana(anno, mese, settimana, - count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the sorteggios before and after the current sorteggio in the ordered set where anno = ? and mese = ? and settimana = ?. - * - * @param sorteggioId the primary key of the current sorteggio - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio[] findByAnno_Mese_Settimana_PrevAndNext(long sorteggioId, - String anno, String mese, int settimana, - OrderByComparator orderByComparator) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = findByPrimaryKey(sorteggioId); - - Session session = null; - - try { - session = openSession(); - - Sorteggio[] array = new SorteggioImpl[3]; - - array[0] = getByAnno_Mese_Settimana_PrevAndNext(session, sorteggio, - anno, mese, settimana, orderByComparator, true); - - array[1] = sorteggio; - - array[2] = getByAnno_Mese_Settimana_PrevAndNext(session, sorteggio, - anno, mese, settimana, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Sorteggio getByAnno_Mese_Settimana_PrevAndNext(Session session, - Sorteggio sorteggio, String anno, String mese, int settimana, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_SORTEGGIO_WHERE); - - boolean bindAnno = false; - - if (anno == null) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_1); - } - else if (anno.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_3); - } - else { - bindAnno = true; - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_2); - } - - boolean bindMese = false; - - if (mese == null) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_1); - } - else if (mese.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_3); - } - else { - bindMese = true; - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_2); - } - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_SETTIMANA_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(SorteggioModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindAnno) { - qPos.add(anno); - } - - if (bindMese) { - qPos.add(mese); - } - - qPos.add(settimana); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(sorteggio); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the sorteggios where anno = ? and mese = ? and settimana = ? from the database. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByAnno_Mese_Settimana(String anno, String mese, - int settimana) throws SystemException { - for (Sorteggio sorteggio : findByAnno_Mese_Settimana(anno, mese, - settimana, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios where anno = ? and mese = ? and settimana = ?. - * - * @param anno the anno - * @param mese the mese - * @param settimana the settimana - * @return the number of matching sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByAnno_Mese_Settimana(String anno, String mese, - int settimana) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_ANNO_MESE_SETTIMANA; - - Object[] finderArgs = new Object[] { anno, mese, settimana }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(4); - - query.append(_SQL_COUNT_SORTEGGIO_WHERE); - - boolean bindAnno = false; - - if (anno == null) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_1); - } - else if (anno.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_3); - } - else { - bindAnno = true; - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_2); - } - - boolean bindMese = false; - - if (mese == null) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_1); - } - else if (mese.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_3); - } - else { - bindMese = true; - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_2); - } - - query.append(_FINDER_COLUMN_ANNO_MESE_SETTIMANA_SETTIMANA_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindAnno) { - qPos.add(anno); - } - - if (bindMese) { - qPos.add(mese); - } - - qPos.add(settimana); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_1 = "sorteggio.anno IS NULL AND "; - private static final String _FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_2 = "sorteggio.anno = ? AND "; - private static final String _FINDER_COLUMN_ANNO_MESE_SETTIMANA_ANNO_3 = "(sorteggio.anno IS NULL OR sorteggio.anno = '') AND "; - private static final String _FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_1 = "sorteggio.mese IS NULL AND "; - private static final String _FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_2 = "sorteggio.mese = ? AND "; - private static final String _FINDER_COLUMN_ANNO_MESE_SETTIMANA_MESE_3 = "(sorteggio.mese IS NULL OR sorteggio.mese = '') AND "; - private static final String _FINDER_COLUMN_ANNO_MESE_SETTIMANA_SETTIMANA_2 = "sorteggio.settimana = ?"; - - public SorteggioPersistenceImpl() { - setModelClass(Sorteggio.class); - } - - /** - * Caches the sorteggio in the entity cache if it is enabled. - * - * @param sorteggio the sorteggio - */ - @Override - public void cacheResult(Sorteggio sorteggio) { - EntityCacheUtil.putResult(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, sorteggio.getPrimaryKey(), sorteggio); - - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, - new Object[] { sorteggio.getUuid(), sorteggio.getGroupId() }, - sorteggio); - - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - new Object[] { sorteggio.getOldSorteggioId() }, sorteggio); - - sorteggio.resetOriginalValues(); - } - - /** - * Caches the sorteggios in the entity cache if it is enabled. - * - * @param sorteggios the sorteggios - */ - @Override - public void cacheResult(List sorteggios) { - for (Sorteggio sorteggio : sorteggios) { - if (EntityCacheUtil.getResult( - SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, sorteggio.getPrimaryKey()) == null) { - cacheResult(sorteggio); - } - else { - sorteggio.resetOriginalValues(); - } - } - } - - /** - * Clears the cache for all sorteggios. - * - *

- * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. - *

- */ - @Override - public void clearCache() { - if (_HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE) { - CacheRegistryUtil.clear(SorteggioImpl.class.getName()); - } - - EntityCacheUtil.clearCache(SorteggioImpl.class.getName()); - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_ENTITY); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - /** - * Clears the cache for the sorteggio. - * - *

- * The {@link com.liferay.portal.kernel.dao.orm.EntityCache} and {@link com.liferay.portal.kernel.dao.orm.FinderCache} are both cleared by this method. - *

- */ - @Override - public void clearCache(Sorteggio sorteggio) { - EntityCacheUtil.removeResult(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, sorteggio.getPrimaryKey()); - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - - clearUniqueFindersCache(sorteggio); - } - - @Override - public void clearCache(List sorteggios) { - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - - for (Sorteggio sorteggio : sorteggios) { - EntityCacheUtil.removeResult(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, sorteggio.getPrimaryKey()); - - clearUniqueFindersCache(sorteggio); - } - } - - protected void cacheUniqueFindersCache(Sorteggio sorteggio) { - if (sorteggio.isNew()) { - Object[] args = new Object[] { - sorteggio.getUuid(), sorteggio.getGroupId() - }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, - sorteggio); - - args = new Object[] { sorteggio.getOldSorteggioId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDSORTEGGIOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - args, sorteggio); - } - else { - SorteggioModelImpl sorteggioModelImpl = (SorteggioModelImpl)sorteggio; - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggio.getUuid(), sorteggio.getGroupId() - }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_UUID_G, args, - Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, - sorteggio); - } - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDSORTEGGIOID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { sorteggio.getOldSorteggioId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDSORTEGGIOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - args, sorteggio); - } - } - } - - protected void clearUniqueFindersCache(Sorteggio sorteggio) { - SorteggioModelImpl sorteggioModelImpl = (SorteggioModelImpl)sorteggio; - - Object[] args = new Object[] { sorteggio.getUuid(), sorteggio.getGroupId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_UUID_G.getColumnBitmask()) != 0) { - args = new Object[] { - sorteggioModelImpl.getOriginalUuid(), - sorteggioModelImpl.getOriginalGroupId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); - } - - args = new Object[] { sorteggio.getOldSorteggioId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDSORTEGGIOID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, args); - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDSORTEGGIOID.getColumnBitmask()) != 0) { - args = new Object[] { sorteggioModelImpl.getOriginalOldSorteggioId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDSORTEGGIOID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDSORTEGGIOID, - args); - } - } - - /** - * Creates a new sorteggio with the primary key. Does not add the sorteggio to the database. - * - * @param sorteggioId the primary key for the new sorteggio - * @return the new sorteggio - */ - @Override - public Sorteggio create(long sorteggioId) { - Sorteggio sorteggio = new SorteggioImpl(); - - sorteggio.setNew(true); - sorteggio.setPrimaryKey(sorteggioId); - - String uuid = PortalUUIDUtil.generate(); - - sorteggio.setUuid(uuid); - - return sorteggio; - } - - /** - * Removes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio remove(long sorteggioId) - throws NoSuchSorteggioException, SystemException { - return remove((Serializable)sorteggioId); - } - - /** - * Removes the sorteggio with the primary key from the database. Also notifies the appropriate model listeners. - * - * @param primaryKey the primary key of the sorteggio - * @return the sorteggio that was removed - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio remove(Serializable primaryKey) - throws NoSuchSorteggioException, SystemException { - Session session = null; - - try { - session = openSession(); - - Sorteggio sorteggio = (Sorteggio)session.get(SorteggioImpl.class, - primaryKey); - - if (sorteggio == null) { - if (_log.isWarnEnabled()) { - _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); - } - - throw new NoSuchSorteggioException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + - primaryKey); - } - - return remove(sorteggio); - } - catch (NoSuchSorteggioException nsee) { - throw nsee; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - @Override - protected Sorteggio removeImpl(Sorteggio sorteggio) - throws SystemException { - sorteggio = toUnwrappedModel(sorteggio); - - Session session = null; - - try { - session = openSession(); - - if (!session.contains(sorteggio)) { - sorteggio = (Sorteggio)session.get(SorteggioImpl.class, - sorteggio.getPrimaryKeyObj()); - } - - if (sorteggio != null) { - session.delete(sorteggio); - } - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - - if (sorteggio != null) { - clearCache(sorteggio); - } - - return sorteggio; - } - - @Override - public Sorteggio updateImpl( - it.tref.liferay.portos.bo.model.Sorteggio sorteggio) - throws SystemException { - sorteggio = toUnwrappedModel(sorteggio); - - boolean isNew = sorteggio.isNew(); - - SorteggioModelImpl sorteggioModelImpl = (SorteggioModelImpl)sorteggio; - - if (Validator.isNull(sorteggio.getUuid())) { - String uuid = PortalUUIDUtil.generate(); - - sorteggio.setUuid(uuid); - } - - Session session = null; - - try { - session = openSession(); - - if (sorteggio.isNew()) { - session.save(sorteggio); - - sorteggio.setNew(false); - } - else { - session.merge(sorteggio); - } - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - - if (isNew || !SorteggioModelImpl.COLUMN_BITMASK_ENABLED) { - FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - else { - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggioModelImpl.getOriginalUuid() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, - args); - - args = new Object[] { sorteggioModelImpl.getUuid() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID, - args); - } - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggioModelImpl.getOriginalUuid(), - sorteggioModelImpl.getOriginalCompanyId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, - args); - - args = new Object[] { - sorteggioModelImpl.getUuid(), - sorteggioModelImpl.getCompanyId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_C, args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C, - args); - } - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_GROUPID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggioModelImpl.getOriginalCompanyId(), - sorteggioModelImpl.getOriginalGroupId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_C_GROUPID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_GROUPID, - args); - - args = new Object[] { - sorteggioModelImpl.getCompanyId(), - sorteggioModelImpl.getGroupId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_C_GROUPID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_GROUPID, - args); - } - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DETTPRATICA.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggioModelImpl.getOriginalCompanyId(), - sorteggioModelImpl.getOriginalDettPraticaId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_C_DETTPRATICA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DETTPRATICA, - args); - - args = new Object[] { - sorteggioModelImpl.getCompanyId(), - sorteggioModelImpl.getDettPraticaId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_C_DETTPRATICA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DETTPRATICA, - args); - } - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggioModelImpl.getOriginalIntPraticaId() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICAID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID, - args); - - args = new Object[] { sorteggioModelImpl.getIntPraticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICAID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID, - args); - } - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID_ANNO_MESE_SETTIMANA.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggioModelImpl.getOriginalGroupId(), - sorteggioModelImpl.getOriginalAnno(), - sorteggioModelImpl.getOriginalMese(), - sorteggioModelImpl.getOriginalSettimana() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_GROUPID_ANNO_MESE_SETTIMANA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID_ANNO_MESE_SETTIMANA, - args); - - args = new Object[] { - sorteggioModelImpl.getGroupId(), - sorteggioModelImpl.getAnno(), - sorteggioModelImpl.getMese(), - sorteggioModelImpl.getSettimana() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_GROUPID_ANNO_MESE_SETTIMANA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID_ANNO_MESE_SETTIMANA, - args); - } - - if ((sorteggioModelImpl.getColumnBitmask() & - FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ANNO_MESE_SETTIMANA.getColumnBitmask()) != 0) { - Object[] args = new Object[] { - sorteggioModelImpl.getOriginalAnno(), - sorteggioModelImpl.getOriginalMese(), - sorteggioModelImpl.getOriginalSettimana() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ANNO_MESE_SETTIMANA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ANNO_MESE_SETTIMANA, - args); - - args = new Object[] { - sorteggioModelImpl.getAnno(), - sorteggioModelImpl.getMese(), - sorteggioModelImpl.getSettimana() - }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ANNO_MESE_SETTIMANA, - args); - FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ANNO_MESE_SETTIMANA, - args); - } - } - - EntityCacheUtil.putResult(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, sorteggio.getPrimaryKey(), sorteggio); - - clearUniqueFindersCache(sorteggio); - cacheUniqueFindersCache(sorteggio); - - return sorteggio; - } - - protected Sorteggio toUnwrappedModel(Sorteggio sorteggio) { - if (sorteggio instanceof SorteggioImpl) { - return sorteggio; - } - - SorteggioImpl sorteggioImpl = new SorteggioImpl(); - - sorteggioImpl.setNew(sorteggio.isNew()); - sorteggioImpl.setPrimaryKey(sorteggio.getPrimaryKey()); - - sorteggioImpl.setUuid(sorteggio.getUuid()); - sorteggioImpl.setSorteggioId(sorteggio.getSorteggioId()); - sorteggioImpl.setCompanyId(sorteggio.getCompanyId()); - sorteggioImpl.setUserId(sorteggio.getUserId()); - sorteggioImpl.setUserName(sorteggio.getUserName()); - sorteggioImpl.setCreateDate(sorteggio.getCreateDate()); - sorteggioImpl.setModifiedDate(sorteggio.getModifiedDate()); - sorteggioImpl.setGroupId(sorteggio.getGroupId()); - sorteggioImpl.setStatus(sorteggio.getStatus()); - sorteggioImpl.setStatusByUserId(sorteggio.getStatusByUserId()); - sorteggioImpl.setStatusByUserName(sorteggio.getStatusByUserName()); - sorteggioImpl.setStatusDate(sorteggio.getStatusDate()); - sorteggioImpl.setIntPraticaId(sorteggio.getIntPraticaId()); - sorteggioImpl.setDettPraticaId(sorteggio.getDettPraticaId()); - sorteggioImpl.setNote(sorteggio.getNote()); - sorteggioImpl.setAnno(sorteggio.getAnno()); - sorteggioImpl.setMese(sorteggio.getMese()); - sorteggioImpl.setSettimana(sorteggio.getSettimana()); - sorteggioImpl.setDtSorteggio(sorteggio.getDtSorteggio()); - sorteggioImpl.setStato(sorteggio.getStato()); - sorteggioImpl.setDettagli(sorteggio.getDettagli()); - sorteggioImpl.setNumeroEstrazione(sorteggio.getNumeroEstrazione()); - sorteggioImpl.setPratica(sorteggio.getPratica()); - sorteggioImpl.setCommittente(sorteggio.getCommittente()); - sorteggioImpl.setComune(sorteggio.getComune()); - sorteggioImpl.setProvincia(sorteggio.getProvincia()); - sorteggioImpl.setTecnico(sorteggio.getTecnico()); - sorteggioImpl.setMesePrecedente(sorteggio.getMesePrecedente()); - sorteggioImpl.setEsterna(sorteggio.isEsterna()); - sorteggioImpl.setPraticaEsternaId(sorteggio.getPraticaEsternaId()); - sorteggioImpl.setOldSorteggioId(sorteggio.getOldSorteggioId()); - - return sorteggioImpl; - } - - /** - * Returns the sorteggio with the primary key or throws a {@link com.liferay.portal.NoSuchModelException} if it could not be found. - * - * @param primaryKey the primary key of the sorteggio - * @return the sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByPrimaryKey(Serializable primaryKey) - throws NoSuchSorteggioException, SystemException { - Sorteggio sorteggio = fetchByPrimaryKey(primaryKey); - - if (sorteggio == null) { - if (_log.isWarnEnabled()) { - _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); - } - - throw new NoSuchSorteggioException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + - primaryKey); - } - - return sorteggio; - } - - /** - * Returns the sorteggio with the primary key or throws a {@link it.tref.liferay.portos.bo.NoSuchSorteggioException} if it could not be found. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio - * @throws it.tref.liferay.portos.bo.NoSuchSorteggioException if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio findByPrimaryKey(long sorteggioId) - throws NoSuchSorteggioException, SystemException { - return findByPrimaryKey((Serializable)sorteggioId); - } - - /** - * Returns the sorteggio with the primary key or returns null if it could not be found. - * - * @param primaryKey the primary key of the sorteggio - * @return the sorteggio, or null if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByPrimaryKey(Serializable primaryKey) - throws SystemException { - Sorteggio sorteggio = (Sorteggio)EntityCacheUtil.getResult(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, primaryKey); - - if (sorteggio == _nullSorteggio) { - return null; - } - - if (sorteggio == null) { - Session session = null; - - try { - session = openSession(); - - sorteggio = (Sorteggio)session.get(SorteggioImpl.class, - primaryKey); - - if (sorteggio != null) { - cacheResult(sorteggio); - } - else { - EntityCacheUtil.putResult(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, primaryKey, _nullSorteggio); - } - } - catch (Exception e) { - EntityCacheUtil.removeResult(SorteggioModelImpl.ENTITY_CACHE_ENABLED, - SorteggioImpl.class, primaryKey); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return sorteggio; - } - - /** - * Returns the sorteggio with the primary key or returns null if it could not be found. - * - * @param sorteggioId the primary key of the sorteggio - * @return the sorteggio, or null if a sorteggio with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Sorteggio fetchByPrimaryKey(long sorteggioId) - throws SystemException { - return fetchByPrimaryKey((Serializable)sorteggioId); - } - - /** - * Returns all the sorteggios. - * - * @return the sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll() throws SystemException { - return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @return the range of sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll(int start, int end) - throws SystemException { - return findAll(start, end, null); - } - - /** - * Returns an ordered range of all the sorteggios. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.SorteggioModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param start the lower bound of the range of sorteggios - * @param end the upper bound of the range of sorteggios (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public List findAll(int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL; - finderArgs = FINDER_ARGS_EMPTY; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_ALL; - finderArgs = new Object[] { start, end, orderByComparator }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if (list == null) { - StringBundler query = null; - String sql = null; - - if (orderByComparator != null) { - query = new StringBundler(2 + - (orderByComparator.getOrderByFields().length * 3)); - - query.append(_SQL_SELECT_SORTEGGIO); - - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - - sql = query.toString(); - } - else { - sql = _SQL_SELECT_SORTEGGIO; - - if (pagination) { - sql = sql.concat(SorteggioModelImpl.ORDER_BY_JPQL); - } - } - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Removes all the sorteggios from the database. - * - * @throws SystemException if a system exception occurred - */ - @Override - public void removeAll() throws SystemException { - for (Sorteggio sorteggio : findAll()) { - remove(sorteggio); - } - } - - /** - * Returns the number of sorteggios. - * - * @return the number of sorteggios - * @throws SystemException if a system exception occurred - */ - @Override - public int countAll() throws SystemException { - Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY, this); - - if (count == null) { - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(_SQL_COUNT_SORTEGGIO); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_ALL, - FINDER_ARGS_EMPTY); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - @Override - protected Set getBadColumnNames() { - return _badColumnNames; - } - - /** - * Initializes the sorteggio persistence. - */ - public void afterPropertiesSet() { - String[] listenerClassNames = StringUtil.split(GetterUtil.getString( - com.liferay.util.service.ServiceProps.get( - "value.object.listener.it.tref.liferay.portos.bo.model.Sorteggio"))); - - if (listenerClassNames.length > 0) { - try { - List> listenersList = new ArrayList>(); - - for (String listenerClassName : listenerClassNames) { - listenersList.add((ModelListener)InstanceFactory.newInstance( - getClassLoader(), listenerClassName)); - } - - listeners = listenersList.toArray(new ModelListener[listenersList.size()]); - } - catch (Exception e) { - _log.error(e); - } - } - } - - public void destroy() { - EntityCacheUtil.removeCache(SorteggioImpl.class.getName()); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_ENTITY); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); - FinderCacheUtil.removeCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); - } - - private static final String _SQL_SELECT_SORTEGGIO = "SELECT sorteggio FROM Sorteggio sorteggio"; - private static final String _SQL_SELECT_SORTEGGIO_WHERE = "SELECT sorteggio FROM Sorteggio sorteggio WHERE "; - private static final String _SQL_COUNT_SORTEGGIO = "SELECT COUNT(sorteggio) FROM Sorteggio sorteggio"; - private static final String _SQL_COUNT_SORTEGGIO_WHERE = "SELECT COUNT(sorteggio) FROM Sorteggio sorteggio WHERE "; - private static final String _ORDER_BY_ENTITY_ALIAS = "sorteggio."; - private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No Sorteggio exists with the primary key "; - private static final String _NO_SUCH_ENTITY_WITH_KEY = "No Sorteggio exists with the key {"; - private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get( - PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE)); - private static Log _log = LogFactoryUtil.getLog(SorteggioPersistenceImpl.class); - private static Set _badColumnNames = SetUtil.fromArray(new String[] { - "uuid" - }); - private static Sorteggio _nullSorteggio = new SorteggioImpl() { - @Override - public Object clone() { - return this; - } - - @Override - public CacheModel toCacheModel() { - return _nullSorteggioCacheModel; - } - }; - - private static CacheModel _nullSorteggioCacheModel = new CacheModel() { - @Override - public Sorteggio toEntityModel() { - return _nullSorteggio; - } - }; -} \ No newline at end of file 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 0c095d3d..da5af496 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; @@ -625,234 +624,6 @@ public class StoricoSoggettoPraticaPersistenceImpl extends BasePersistenceImpl) { - return null; - } - else { - return (StoricoSoggettoPratica)result; - } - } - - /** - * Removes the storico soggetto pratica where oldStoricoSoggettoPraticaId = ? from the database. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the storico soggetto pratica that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public StoricoSoggettoPratica removeByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) - throws NoSuchStoricoSoggettoPraticaException, SystemException { - StoricoSoggettoPratica storicoSoggettoPratica = findByOldStoricoSoggettoPraticaId(oldStoricoSoggettoPraticaId); - - return remove(storicoSoggettoPratica); - } - - /** - * Returns the number of storico soggetto praticas where oldStoricoSoggettoPraticaId = ?. - * - * @param oldStoricoSoggettoPraticaId the old storico soggetto pratica ID - * @return the number of matching storico soggetto praticas - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldStoricoSoggettoPraticaId( - long oldStoricoSoggettoPraticaId) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDSTORICOSOGGETTOPRATICAID; - - Object[] finderArgs = new Object[] { oldStoricoSoggettoPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_STORICOSOGGETTOPRATICA_WHERE); - - query.append(_FINDER_COLUMN_OLDSTORICOSOGGETTOPRATICAID_OLDSTORICOSOGGETTOPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldStoricoSoggettoPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDSTORICOSOGGETTOPRATICAID_OLDSTORICOSOGGETTOPRATICAID_2 = - "storicoSoggettoPratica.oldStoricoSoggettoPraticaId = ?"; public StoricoSoggettoPraticaPersistenceImpl() { setModelClass(StoricoSoggettoPratica.class); @@ -869,10 +640,6 @@ public class StoricoSoggettoPraticaPersistenceImpl extends BasePersistenceImpl implements TempisticaFinder { - private final String COUNT_SCADENZE_PRATICHE_IN_SCADENZA_OLD = "Tempistica.countScadenzePraticheInScadenza.OLD"; - private final String COUNT_PRATICHE_ATTIVE_OLD = "Tempistica.countPraticheAttive.OLD"; - private final String COUNT_SCADENZE_PRATICHE_SCADUTE_OLD = "Tempistica.countScadenzePraticheScadute.OLD"; private final String COUNT_SCADENZE_INTEGRAZIONI_SCADUTE = "Tempistica.countScadenzeIntegrazioniScadute"; - + private final String COUNT_SCADENZE_PRATICHE_IN_SCADENZA = "Tempistica.countScadenzePraticheInScadenza"; - private final String COUNT_PRATICHE_ATTIVE = "Tempistica.countPraticheAttive"; - private final String COUNT_SCADENZE_PRATICHE_SCADUTE = "Tempistica.countScadenzePraticheScadute"; + private final String COUNT_PRATICHE_ATTIVE = "Tempistica.countPraticheAttive"; + private final String COUNT_SCADENZE_PRATICHE_SCADUTE = "Tempistica.countScadenzePraticheScadute"; - - - private final String SCADENZE_PRATICHE = "Tempistica.scadenzePratiche"; - private final String SCADENZE_INTEGRAZIONI = "Tempistica.scadenzeIntegrazioni"; - private final String COUNT_SCADENZE_PRATICHE = "Tempistica.countScadenzePratiche"; - private final String COUNT_SCADENZE_INTEGRAZIONI = "Tempistica.countScadenzeIntegrazioni"; + private final String SCADENZE_PRATICHE = "Tempistica.scadenzePratiche"; + private final String SCADENZE_INTEGRAZIONI = "Tempistica.scadenzeIntegrazioni"; + private final String COUNT_SCADENZE_PRATICHE = "Tempistica.countScadenzePratiche"; + private final String COUNT_SCADENZE_INTEGRAZIONI = "Tempistica.countScadenzeIntegrazioni"; private final String COUNT_SCADUTE_AUTORIZZAZIONE = "Tempistica.countPraticheScaduteAutorizzazione"; - private final String COUNT_SCADUTE_SORTEGGIATE = "Tempistica.countPraticheScaduteSorteggiate"; private final String COUNT_SCADUTE_CONTROLLO_OBBLIGATORIO = "Tempistica.countPraticheScaduteControlloObbligatorio"; - + private final String COUNT_IN_SCADENZA_AUTORIZZAZIONE = "Tempistica.countPraticheInScadenzaAutorizzazioni"; - private final String COUNT_IN_SCADENZA_SORTEGGIATE = "Tempistica.countPraticheInScadenzaSorteggiate"; private final String COUNT_IN_SCADENZA_CONTROLLO_OBBLIGATORIO = "Tempistica.countPraticheInScadenzaControlloObbligatorio"; - + private final String PRATICHE_ATTIVE_AUTORIZZAZIONE = "Tempistica.praticheAttiveAutorizzazioni"; - private final String PRATICHE_ATTIVE_SORTEGGIATE = "Tempistica.praticheAttiveSorteggiate"; private final String PRATICHE_ATTIVE_CONTROLLO_OBBLIGATORIO = "Tempistica.praticheAttiveControlloObbligatorio"; private final String SCADENZE_PRATICHE_FOR_BACKWARD_COMPATIBILITY = "Tempistica.scadenzePraticheForBackwardCompatibility"; - + + @Override public int countScadenzePraticheInScadenza(long companyId, long groupId) { int count = 0; @@ -65,22 +57,20 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_SCADENZE_PRATICHE_IN_SCADENZA); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND temp.GROUPID=" + groupId); } SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -88,7 +78,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } return count; } - + + @Override public int countPraticheInScadenzaAutorizzazioni(long companyId, long groupId) { int count = 0; @@ -99,23 +90,18 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_IN_SCADENZA_AUTORIZZAZIONE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); -// } + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); - qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -123,41 +109,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } return count; } - - public int countPraticheInScadenzaSorteggiate(long companyId, long groupId) { - int count = 0; - Session session = null; - try { - session = openSession(); - long[] giorni = getGiorniScadenzePratiche(); - String sql = CustomSQLUtil.get(COUNT_IN_SCADENZA_SORTEGGIATE); - sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); - sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); -// } - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); - query.addScalar("INTPRATICAID", Type.LONG); - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(TempisticaConstants.TIPO_PRATICA); - qPos.add(companyId); - - List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); - } finally { - if (session != null) { - closeSession(session); - } - } - return count; - } - + @Override public int countPraticheInScadenzaControlloObbligatorio(long companyId, long groupId) { int count = 0; @@ -168,22 +121,17 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_IN_SCADENZA_CONTROLLO_OBBLIGATORIO); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); -// } + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -192,6 +140,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } + @Override public int countPraticheAttive(long companyId, long groupId) { int count = 0; @@ -202,22 +151,20 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_PRATICHE_ATTIVE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND temp.GROUPID=" + groupId); } SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -225,7 +172,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } return count; } - + + @Override public List countPraticheAttivePerDiscriminazione(long companyId, long groupId) { Session session = null; @@ -235,33 +183,30 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_PRATICHE_ATTIVE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND temp.GROUPID=" + groupId); } SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); return list; } finally { if (session != null) { closeSession(session); } } - } - + + @Override public List praticheAttiveAutorizzazioni(long companyId, long groupId) { - int count = 0; Session session = null; try { session = openSession(); @@ -269,18 +214,15 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(PRATICHE_ATTIVE_AUTORIZZAZIONE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); -// } + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); query.addScalar("INTPRATICAID", Type.LONG); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); return list; } finally { @@ -289,41 +231,10 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } } } - - public List praticheAttiveSorteggiate(long companyId, long groupId) { - - int count = 0; - Session session = null; - try { - session = openSession(); - long[] giorni = getGiorniPraticheAttive(); - String sql = CustomSQLUtil.get(PRATICHE_ATTIVE_SORTEGGIATE); - sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); - sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); -// } - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(TempisticaConstants.TIPO_PRATICA); - query.addScalar("INTPRATICAID", Type.LONG); - qPos.add(companyId); - List list = query.list(); - return list; - } finally { - if (session != null) { - closeSession(session); - } - } - } - + @Override public List praticheAttiveControlloObbligatorio(long companyId, long groupId) { - int count = 0; Session session = null; try { session = openSession(); @@ -331,18 +242,15 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(PRATICHE_ATTIVE_CONTROLLO_OBBLIGATORIO); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); -// } + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); QueryPos qPos = QueryPos.getInstance(query); query.addScalar("INTPRATICAID", Type.LONG); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); return list; } finally { @@ -351,16 +259,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } } } - - -// -// -// public static void main(String[] args) {//3369600000-0-1526853600000 -// System.out.println(TimeUnit.DAYS.toMillis(39) + "-" + TimeUnit.DAYS.toMillis(0)); -//// System.out.println(TimeUnit.DAYS.toMillis(60) + "-" + TimeUnit.DAYS.toMillis(40)); -// System.out.println(String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// } + @Override public int countScadenzePraticheScadute(long companyId, long groupId) { int count = 0; @@ -371,22 +271,20 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_SCADENZE_PRATICHE_SCADUTE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND temp.GROUPID=" + groupId); } SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -395,7 +293,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } - + @Override public int countPraticheScaduteAutorizzazione(long companyId, long groupId) { int count = 0; @@ -406,22 +304,17 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_SCADUTE_AUTORIZZAZIONE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND temp.GROUPID=" + groupId); -// } + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -429,41 +322,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } return count; } - - public int countPraticheScaduteSorteggiate(long companyId, long groupId) { - int count = 0; - Session session = null; - try { - session = openSession(); - long[] giorni = getGiorniScadenzePratiche(); - String sql = CustomSQLUtil.get(COUNT_SCADUTE_SORTEGGIATE); - sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); - sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND temp.GROUPID=" + groupId); -// } - SQLQuery query = session.createSQLQuery(sql); - query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); - query.addScalar("INTPRATICAID", Type.LONG); - QueryPos qPos = QueryPos.getInstance(query); - qPos.add(TempisticaConstants.TIPO_PRATICA); - qPos.add(companyId); - - List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); - } finally { - if (session != null) { - closeSession(session); - } - } - return count; - } - + @Override public int countPraticheScaduteControlloObbligatorio(long companyId, long groupId) { int count = 0; @@ -474,22 +334,17 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_SCADUTE_CONTROLLO_OBBLIGATORIO); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); -// if (Validator.isNotNull(groupId)) { -// sql = CustomSQLUtil.appendCriteria(sql, "AND temp.GROUPID=" + groupId); -// } + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_INTPRATICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -498,9 +353,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } - - - + @Override public int countScadenzeIntegrazioniScadute(long companyId, long groupId) { int count = 0; @@ -514,16 +367,14 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); -// query.addScalar("COUNT_TEMPISTICA", Type.LONG); query.addScalar("INTPRATICAID", Type.LONG); QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_INTEGRAZIONE); qPos.add(companyId); - qPos.add(DateUtils.truncate(data, Calendar.DATE).getTime()); + @SuppressWarnings("unchecked") List list = query.list(); -// count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); - count = (int) (list != null && !list.isEmpty() ? list.size() : 0); + count = list != null && !list.isEmpty() ? list.size() : 0; } finally { if (session != null) { closeSession(session); @@ -532,11 +383,14 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } - //ADT - BUG-14 - Scadenziario - //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - public List scadenzePratiche(long companyId, long groupId, int start, int end, Integer statoPratica, String tipoPratica, String istruttore) { + // ADT - BUG-14 - Scadenziario + // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + @SuppressWarnings("unchecked") + @Override + public List scadenzePratiche(long companyId, long groupId, int start, int end, Integer statoPratica, + String tipoPratica, String istruttore) { - List list = Collections.emptyList(); + List list = Collections. emptyList(); Session session = null; try { session = openSession(); @@ -544,19 +398,20 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(SCADENZE_PRATICHE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); } - - sql = StringUtil.replace(sql, "[$DT_STATO$]", (statoPratica != null ? String.valueOf(statoPratica) : "1 OR 1=1")); - - //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - sql = StringUtil.replace(sql, "[$DT_TIPOPRATICA$]", Validator.isNull(tipoPratica) ? "%" : tipoPratica.toUpperCase()); - sql = StringUtil.replace(sql, "[$DT_ISTRUTTORE$]", Validator.isNull(istruttore) ? "%" : istruttore.toUpperCase()); - sql = StringUtil.replace(sql, "[$DT_STATO$]", Validator.isNull(statoPratica) ? "1 OR 1=1" : String.valueOf(statoPratica)); - + sql = StringUtil.replace(sql, "[$DT_STATO$]", (statoPratica != null ? String.valueOf(statoPratica) + : "1 OR 1=1")); + // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + sql = StringUtil.replace(sql, "[$DT_TIPOPRATICA$]", + Validator.isNull(tipoPratica) ? StringPool.PERCENT : tipoPratica.toUpperCase()); + sql = StringUtil.replace(sql, "[$DT_ISTRUTTORE$]", + Validator.isNull(istruttore) ? StringPool.PERCENT : istruttore.toUpperCase()); + sql = StringUtil.replace(sql, "[$DT_STATO$]", + Validator.isNull(statoPratica) ? "1 OR 1=1" : String.valueOf(statoPratica)); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); query.addScalar("INTPRATICAID", Type.LONG); @@ -568,55 +423,31 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); -// qPos.add(statoPratica); - list = (List) QueryUtil.list(query, getDialect(), start, end); } finally { if (session != null) { closeSession(session); } } - -// if(statoPratica != null){ -// List filteredlist = new ArrayList(); -// for (Iterator iterator = list.iterator(); iterator.hasNext();) { -// Object[] objects = (Object[]) iterator.next(); -// -// if(statoPratica == (Integer)objects[5]) -// filteredlist.add(objects); -// } -// -// list = filteredlist; -// } - - //ADT - BUG-14 - Scadenziario - Fissato bug relativo al paginatore -// List filteredlist = new ArrayList(); -// List alreadyInserted = new ArrayList(); -// for (Iterator iterator = list.iterator(); iterator.hasNext();) { -// Object[] objects = (Object[]) iterator.next(); -// -// if(!alreadyInserted.contains(objects[0])){ -// filteredlist.add(objects); -// alreadyInserted.add((Long)objects[0]); -// } -// } -// list = filteredlist; - return list; } - //ADT - BUG-14 - Scadenziario + // ADT - BUG-14 - Scadenziario + @SuppressWarnings("unchecked") + @Override public List scadenzeIntegrazioni(long companyId, long groupId, int start, int end, Integer statoPratica) { - //ADT : bug BO ID=3 -INTEGRAZIONI NEGATIVE - List list = Collections.emptyList(); + // ADT : bug BO ID=3 -INTEGRAZIONI NEGATIVE + List list = Collections. emptyList(); Session session = null; try { session = openSession(); Date data = getDataScadenzaIntegrazioni(); String sql = CustomSQLUtil.get(SCADENZE_INTEGRAZIONI); - sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); - sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(DateUtils.truncate(data, Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_1$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil + .replace(sql, "[$DT_2$]", String.valueOf(DateUtils.truncate(data, Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); } @@ -630,35 +461,19 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_INTEGRAZIONE); qPos.add(companyId); - list = (List) QueryUtil.list(query, getDialect(), start, end); } finally { if (session != null) { closeSession(session); } } - -// if(statoPratica != null){ -// List filteredlist = new ArrayList(); -// for (Iterator iterator = list.iterator(); iterator.hasNext();) { -// Object[] objects = (Object[]) iterator.next(); -// -// if(statoPratica == (Integer)objects[3]) -// filteredlist.add(objects); -// else if(statoPratica == (Integer)objects[3]) -// filteredlist.add(objects); -// else if(statoPratica == (Integer)objects[3]) -// filteredlist.add(objects); -// } -// -// list = filteredlist; -// } - return list; } - //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - public int countScadenzePratiche(long companyId, long groupId, Integer statoPratica, String tipoPratica, String istruttore) { + // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + @Override + public int countScadenzePratiche(long companyId, long groupId, Integer statoPratica, String tipoPratica, + String istruttore) { int count = 0; Session session = null; @@ -668,30 +483,28 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(COUNT_SCADENZE_PRATICHE); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); } - - sql = StringUtil.replace(sql, "[$DT_STATO$]", (statoPratica != null ? String.valueOf(statoPratica) : "1 OR 1=1")); - - //ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca - sql = StringUtil.replace(sql, "[$DT_TIPOPRATICA$]", Validator.isNull(tipoPratica) ? "%" : tipoPratica.toUpperCase()); - sql = StringUtil.replace(sql, "[$DT_ISTRUTTORE$]", Validator.isNull(istruttore) ? "%" : istruttore.toUpperCase()); - sql = StringUtil.replace(sql, "[$DT_STATO$]", Validator.isNull(statoPratica) ? "1 OR 1=1" : String.valueOf(statoPratica)); - + sql = StringUtil.replace(sql, "[$DT_STATO$]", (statoPratica != null ? String.valueOf(statoPratica) + : "1 OR 1=1")); + // ADT - BUG-29 - Scadenziario / Creazione Filtri Ricerca + sql = StringUtil.replace(sql, "[$DT_TIPOPRATICA$]", + Validator.isNull(tipoPratica) ? StringPool.PERCENT : tipoPratica.toUpperCase()); + sql = StringUtil.replace(sql, "[$DT_ISTRUTTORE$]", + Validator.isNull(istruttore) ? StringPool.PERCENT : istruttore.toUpperCase()); + sql = StringUtil.replace(sql, "[$DT_STATO$]", + Validator.isNull(statoPratica) ? "1 OR 1=1" : String.valueOf(statoPratica)); SQLQuery query = session.createSQLQuery(sql); query.setCacheable(false); query.addScalar("COUNT_TEMPISTICA", Type.LONG); - QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_PRATICA); qPos.add(companyId); -// qPos.add(statoPratica); - - List list = query.list(); - + @SuppressWarnings("unchecked") + List list = query.list(); count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); } finally { if (session != null) { @@ -701,6 +514,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } + @Override public int countScadenzeIntegrazioni(long companyId, long groupId) { int count = 0; @@ -709,7 +523,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem session = openSession(); Date data = getDataScadenzaIntegrazioni(); String sql = CustomSQLUtil.get(COUNT_SCADENZE_INTEGRAZIONI); - sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(DateUtils.truncate(data, Calendar.DATE).getTime())); + sql = StringUtil + .replace(sql, "[$DT_1$]", String.valueOf(DateUtils.truncate(data, Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); } @@ -719,7 +534,7 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem QueryPos qPos = QueryPos.getInstance(query); qPos.add(TempisticaConstants.TIPO_INTEGRAZIONE); qPos.add(companyId); - + @SuppressWarnings("unchecked") List list = query.list(); count = (int) (list != null && !list.isEmpty() ? list.get(0) : 0); } finally { @@ -730,9 +545,11 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem return count; } + @SuppressWarnings("unchecked") + @Override public List scadenzePraticheForBackwardCompatibility(long companyId, long groupId, int start, int end) { - List list = Collections.emptyList(); + List list = Collections. emptyList(); Session session = null; try { session = openSession(); @@ -740,8 +557,8 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem String sql = CustomSQLUtil.get(SCADENZE_PRATICHE_FOR_BACKWARD_COMPATIBILITY); sql = StringUtil.replace(sql, "[$DT_1$]", String.valueOf(giorni[0])); sql = StringUtil.replace(sql, "[$DT_2$]", String.valueOf(giorni[1])); - sql = - StringUtil.replace(sql, "[$DT_3$]", String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); + sql = StringUtil.replace(sql, "[$DT_3$]", + String.valueOf(DateUtils.truncate(new Date(), Calendar.DATE).getTime())); if (Validator.isNotNull(groupId)) { sql = CustomSQLUtil.appendCriteria(sql, "AND GROUPID=" + groupId); } @@ -765,17 +582,15 @@ public class TempisticaFinderImpl extends BasePersistenceImpl implem } return list; } - + private long[] getGiorniScadenzePratiche() { - return new long[] {TimeUnit.DAYS.toMillis(60), TimeUnit.DAYS.toMillis(40)}; + return new long[] { TimeUnit.DAYS.toMillis(60), TimeUnit.DAYS.toMillis(40) }; } private long[] getGiorniPraticheAttive() { - + // ADT - BUG-14 - Scadenziario - Fissato bug relativo al conteggio delle pratiche -// return new long[] {TimeUnit.DAYS.toMillis(39), TimeUnit.DAYS.toMillis(0)}; - return getGiorniScadenzePratiche(); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java index 252fc452..90d5b692 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TempisticaPersistenceImpl.java @@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchTempisticaException; import it.tref.liferay.portos.bo.model.Tempistica; import it.tref.liferay.portos.bo.model.impl.TempisticaImpl; import it.tref.liferay.portos.bo.model.impl.TempisticaModelImpl; -import it.tref.liferay.portos.bo.service.persistence.TempisticaPersistence; import java.io.Serializable; @@ -2525,226 +2524,6 @@ public class TempisticaPersistenceImpl extends BasePersistenceImpl private static final String _FINDER_COLUMN_INTPRATICA_TIPO_TIPO_1 = "tempistica.tipo IS NULL"; private static final String _FINDER_COLUMN_INTPRATICA_TIPO_TIPO_2 = "tempistica.tipo = ?"; private static final String _FINDER_COLUMN_INTPRATICA_TIPO_TIPO_3 = "(tempistica.tipo IS NULL OR tempistica.tipo = '')"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDTEMPISTICAID = new FinderPath(TempisticaModelImpl.ENTITY_CACHE_ENABLED, - TempisticaModelImpl.FINDER_CACHE_ENABLED, TempisticaImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldTempisticaId", - new String[] { Long.class.getName() }, - TempisticaModelImpl.OLDTEMPISTICAID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDTEMPISTICAID = new FinderPath(TempisticaModelImpl.ENTITY_CACHE_ENABLED, - TempisticaModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByOldTempisticaId", new String[] { Long.class.getName() }); - - /** - * Returns the tempistica where oldTempisticaId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchTempisticaException} if it could not be found. - * - * @param oldTempisticaId the old tempistica ID - * @return the matching tempistica - * @throws it.tref.liferay.portos.bo.NoSuchTempisticaException if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Tempistica findByOldTempisticaId(long oldTempisticaId) - throws NoSuchTempisticaException, SystemException { - Tempistica tempistica = fetchByOldTempisticaId(oldTempisticaId); - - if (tempistica == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldTempisticaId="); - msg.append(oldTempisticaId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchTempisticaException(msg.toString()); - } - - return tempistica; - } - - /** - * Returns the tempistica where oldTempisticaId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldTempisticaId the old tempistica ID - * @return the matching tempistica, or null if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Tempistica fetchByOldTempisticaId(long oldTempisticaId) - throws SystemException { - return fetchByOldTempisticaId(oldTempisticaId, true); - } - - /** - * Returns the tempistica where oldTempisticaId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldTempisticaId the old tempistica ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching tempistica, or null if a matching tempistica could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Tempistica fetchByOldTempisticaId(long oldTempisticaId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldTempisticaId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - finderArgs, this); - } - - if (result instanceof Tempistica) { - Tempistica tempistica = (Tempistica)result; - - if ((oldTempisticaId != tempistica.getOldTempisticaId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_TEMPISTICA_WHERE); - - query.append(_FINDER_COLUMN_OLDTEMPISTICAID_OLDTEMPISTICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldTempisticaId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "TempisticaPersistenceImpl.fetchByOldTempisticaId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - Tempistica tempistica = list.get(0); - - result = tempistica; - - cacheResult(tempistica); - - if ((tempistica.getOldTempisticaId() != oldTempisticaId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - finderArgs, tempistica); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Tempistica)result; - } - } - - /** - * Removes the tempistica where oldTempisticaId = ? from the database. - * - * @param oldTempisticaId the old tempistica ID - * @return the tempistica that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Tempistica removeByOldTempisticaId(long oldTempisticaId) - throws NoSuchTempisticaException, SystemException { - Tempistica tempistica = findByOldTempisticaId(oldTempisticaId); - - return remove(tempistica); - } - - /** - * Returns the number of tempisticas where oldTempisticaId = ?. - * - * @param oldTempisticaId the old tempistica ID - * @return the number of matching tempisticas - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldTempisticaId(long oldTempisticaId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDTEMPISTICAID; - - Object[] finderArgs = new Object[] { oldTempisticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_TEMPISTICA_WHERE); - - query.append(_FINDER_COLUMN_OLDTEMPISTICAID_OLDTEMPISTICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldTempisticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDTEMPISTICAID_OLDTEMPISTICAID_2 = - "tempistica.oldTempisticaId = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_INTPRATICA_TIPO_COMPLETO = new FinderPath(TempisticaModelImpl.ENTITY_CACHE_ENABLED, TempisticaModelImpl.FINDER_CACHE_ENABLED, TempisticaImpl.class, @@ -3435,9 +3214,6 @@ public class TempisticaPersistenceImpl extends BasePersistenceImpl new Object[] { tempistica.getUuid(), tempistica.getGroupId() }, tempistica); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - new Object[] { tempistica.getOldTempisticaId() }, tempistica); - tempistica.resetOriginalValues(); } @@ -3521,13 +3297,6 @@ public class TempisticaPersistenceImpl extends BasePersistenceImpl Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, tempistica); - - args = new Object[] { tempistica.getOldTempisticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDTEMPISTICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - args, tempistica); } else { TempisticaModelImpl tempisticaModelImpl = (TempisticaModelImpl)tempistica; @@ -3543,16 +3312,6 @@ public class TempisticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, args, tempistica); } - - if ((tempisticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDTEMPISTICAID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { tempistica.getOldTempisticaId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDTEMPISTICAID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - args, tempistica); - } } } @@ -3576,21 +3335,6 @@ public class TempisticaPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_UUID_G, args); FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, args); } - - args = new Object[] { tempistica.getOldTempisticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDTEMPISTICAID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, args); - - if ((tempisticaModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDTEMPISTICAID.getColumnBitmask()) != 0) { - args = new Object[] { tempisticaModelImpl.getOriginalOldTempisticaId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDTEMPISTICAID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDTEMPISTICAID, - args); - } } /** @@ -3887,7 +3631,6 @@ public class TempisticaPersistenceImpl extends BasePersistenceImpl tempisticaImpl.setStop(tempistica.getStop()); tempisticaImpl.setWait(tempistica.getWait()); tempisticaImpl.setCompleto(tempistica.isCompleto()); - tempisticaImpl.setOldTempisticaId(tempistica.getOldTempisticaId()); return tempisticaImpl; } 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 c8e0dee9..6e60848d 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; @@ -3529,226 +3528,6 @@ public class TerritorioPersistenceImpl extends BasePersistenceImpl } private static final String _FINDER_COLUMN_C_COMPANYID_2 = "territorio.companyId = ?"; - public static final FinderPath FINDER_PATH_FETCH_BY_OLDTERRITORIOID = new FinderPath(TerritorioModelImpl.ENTITY_CACHE_ENABLED, - TerritorioModelImpl.FINDER_CACHE_ENABLED, TerritorioImpl.class, - FINDER_CLASS_NAME_ENTITY, "fetchByOldTerritorioId", - new String[] { Long.class.getName() }, - TerritorioModelImpl.OLDTERRITORIOID_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_OLDTERRITORIOID = new FinderPath(TerritorioModelImpl.ENTITY_CACHE_ENABLED, - TerritorioModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByOldTerritorioId", new String[] { Long.class.getName() }); - - /** - * Returns the territorio where oldTerritorioId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchTerritorioException} if it could not be found. - * - * @param oldTerritorioId the old territorio ID - * @return the matching territorio - * @throws it.tref.liferay.portos.bo.NoSuchTerritorioException if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Territorio findByOldTerritorioId(long oldTerritorioId) - throws NoSuchTerritorioException, SystemException { - Territorio territorio = fetchByOldTerritorioId(oldTerritorioId); - - if (territorio == null) { - StringBundler msg = new StringBundler(4); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("oldTerritorioId="); - msg.append(oldTerritorioId); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - if (_log.isWarnEnabled()) { - _log.warn(msg.toString()); - } - - throw new NoSuchTerritorioException(msg.toString()); - } - - return territorio; - } - - /** - * Returns the territorio where oldTerritorioId = ? or returns null if it could not be found. Uses the finder cache. - * - * @param oldTerritorioId the old territorio ID - * @return the matching territorio, or null if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Territorio fetchByOldTerritorioId(long oldTerritorioId) - throws SystemException { - return fetchByOldTerritorioId(oldTerritorioId, true); - } - - /** - * Returns the territorio where oldTerritorioId = ? or returns null if it could not be found, optionally using the finder cache. - * - * @param oldTerritorioId the old territorio ID - * @param retrieveFromCache whether to use the finder cache - * @return the matching territorio, or null if a matching territorio could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Territorio fetchByOldTerritorioId(long oldTerritorioId, - boolean retrieveFromCache) throws SystemException { - Object[] finderArgs = new Object[] { oldTerritorioId }; - - Object result = null; - - if (retrieveFromCache) { - result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - finderArgs, this); - } - - if (result instanceof Territorio) { - Territorio territorio = (Territorio)result; - - if ((oldTerritorioId != territorio.getOldTerritorioId())) { - result = null; - } - } - - if (result == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_SELECT_TERRITORIO_WHERE); - - query.append(_FINDER_COLUMN_OLDTERRITORIOID_OLDTERRITORIOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldTerritorioId); - - List list = q.list(); - - if (list.isEmpty()) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - finderArgs, list); - } - else { - if ((list.size() > 1) && _log.isWarnEnabled()) { - _log.warn( - "TerritorioPersistenceImpl.fetchByOldTerritorioId(long, boolean) with parameters (" + - StringUtil.merge(finderArgs) + - ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder."); - } - - Territorio territorio = list.get(0); - - result = territorio; - - cacheResult(territorio); - - if ((territorio.getOldTerritorioId() != oldTerritorioId)) { - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - finderArgs, territorio); - } - } - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - if (result instanceof List) { - return null; - } - else { - return (Territorio)result; - } - } - - /** - * Removes the territorio where oldTerritorioId = ? from the database. - * - * @param oldTerritorioId the old territorio ID - * @return the territorio that was removed - * @throws SystemException if a system exception occurred - */ - @Override - public Territorio removeByOldTerritorioId(long oldTerritorioId) - throws NoSuchTerritorioException, SystemException { - Territorio territorio = findByOldTerritorioId(oldTerritorioId); - - return remove(territorio); - } - - /** - * Returns the number of territorios where oldTerritorioId = ?. - * - * @param oldTerritorioId the old territorio ID - * @return the number of matching territorios - * @throws SystemException if a system exception occurred - */ - @Override - public int countByOldTerritorioId(long oldTerritorioId) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_OLDTERRITORIOID; - - Object[] finderArgs = new Object[] { oldTerritorioId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_TERRITORIO_WHERE); - - query.append(_FINDER_COLUMN_OLDTERRITORIOID_OLDTERRITORIOID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(oldTerritorioId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_OLDTERRITORIOID_OLDTERRITORIOID_2 = - "territorio.oldTerritorioId = ?"; public TerritorioPersistenceImpl() { setModelClass(Territorio.class); @@ -3771,9 +3550,6 @@ public class TerritorioPersistenceImpl extends BasePersistenceImpl territorio.getDtIni() }, territorio); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - new Object[] { territorio.getOldTerritorioId() }, territorio); - territorio.resetOriginalValues(); } @@ -3859,13 +3635,6 @@ public class TerritorioPersistenceImpl extends BasePersistenceImpl Long.valueOf(1)); FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_Z_F_D, args, territorio); - - args = new Object[] { territorio.getOldTerritorioId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDTERRITORIOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - args, territorio); } else { TerritorioModelImpl territorioModelImpl = (TerritorioModelImpl)territorio; @@ -3883,16 +3652,6 @@ public class TerritorioPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_C_G_Z_F_D, args, territorio); } - - if ((territorioModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDTERRITORIOID.getColumnBitmask()) != 0) { - Object[] args = new Object[] { territorio.getOldTerritorioId() }; - - FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_OLDTERRITORIOID, - args, Long.valueOf(1)); - FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - args, territorio); - } } } @@ -3921,21 +3680,6 @@ public class TerritorioPersistenceImpl extends BasePersistenceImpl FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_C_G_Z_F_D, args); FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_C_G_Z_F_D, args); } - - args = new Object[] { territorio.getOldTerritorioId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDTERRITORIOID, args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, args); - - if ((territorioModelImpl.getColumnBitmask() & - FINDER_PATH_FETCH_BY_OLDTERRITORIOID.getColumnBitmask()) != 0) { - args = new Object[] { territorioModelImpl.getOriginalOldTerritorioId() }; - - FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OLDTERRITORIOID, - args); - FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_OLDTERRITORIOID, - args); - } } /** @@ -4220,7 +3964,6 @@ public class TerritorioPersistenceImpl extends BasePersistenceImpl territorioImpl.setArticolo61(territorio.isArticolo61()); territorioImpl.setDtIni(territorio.getDtIni()); territorioImpl.setDtFin(territorio.getDtFin()); - territorioImpl.setOldTerritorioId(territorio.getOldTerritorioId()); territorioImpl.setAgMin(territorio.getAgMin()); territorioImpl.setAgMax(territorio.getAgMax()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java index 35c2d287..981ce6fc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/CompanyExpandoStartupAction.java @@ -1,9 +1,9 @@ package it.tref.liferay.portos.bo.startup; -import java.util.Date; - import it.tref.liferay.portos.bo.shared.util.Constants; +import java.util.Date; + import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.exception.PortalException; @@ -35,16 +35,11 @@ public class CompanyExpandoStartupAction extends SimpleAction { String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE }; String[] guestActions = { ActionKeys.VIEW }; - try { - for (String companyIdStr : companyIds) { - long companyId = Long.valueOf(companyIdStr); initExpandoColumnCompany(companyId, defaultActions, guestActions); - } - } catch (Exception e) { _log.error("Errore nella procedura automatizzata di configurazione", e); } @@ -54,65 +49,45 @@ public class CompanyExpandoStartupAction extends SimpleAction { throws NumberFormatException, SystemException { String className = Company.class.getName(); - addExpandoColumnIfNotExists(companyId, className, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_CHANGES, - ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_CHANGES_URL, + ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_CHANGES_URL, defaultActions, + guestActions); + addExpandoColumnIfNotExists(companyId, className, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS, + ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_URL, defaultActions, + guestActions); + addExpandoColumnIfNotExists(companyId, className, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT, + ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT_URL, defaultActions, guestActions); - - addExpandoColumnIfNotExists(companyId, className, - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS, ExpandoColumnConstants.STRING, - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_URL, defaultActions, guestActions); - - addExpandoColumnIfNotExists(companyId, className, - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT, ExpandoColumnConstants.STRING, - Constants.COMPANY_CUSTOM_FIELD_VERSIONING_SNAPSHOTS_COUNT_URL, defaultActions, guestActions); - addExpandoColumnIfNotExists(companyId, className, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT, - ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT_URL, - defaultActions, guestActions); - + ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT_URL, defaultActions, + guestActions); addExpandoColumnIfNotExists(companyId, className, - Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_INIZIALE_LABEL, - ExpandoColumnConstants.STRING, + Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_INIZIALE_LABEL, ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_INIZIALE_VALUE, defaultActions, guestActions); - addExpandoColumnIfNotExists(companyId, className, - Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_SEGUENTE_LABEL, - ExpandoColumnConstants.STRING, + Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_SEGUENTE_LABEL, ExpandoColumnConstants.STRING, Constants.COMPANY_CUSTOM_FIELD_PROTOCOLLO_CODICE_SEGUENTE_VALUE, defaultActions, guestActions); - - addExpandoColumnIfNotExists(companyId, className, Constants.ORG_CUSTOM_FIELD_PO, - ExpandoColumnConstants.STRING, StringPool.BLANK, defaultActions, guestActions); - + addExpandoColumnIfNotExists(companyId, className, Constants.ORG_CUSTOM_FIELD_PO, ExpandoColumnConstants.STRING, + StringPool.BLANK, defaultActions, guestActions); addExpandoColumnIfNotExists(companyId, className, Constants.GESTIONE_PRATICA_URL_FE, ExpandoColumnConstants.STRING, StringPool.BLANK, defaultActions, guestActions); - addExpandoColumnIfNotExists(companyId, className, Constants.GESTIONE_PRATICA_URL_BO, ExpandoColumnConstants.STRING, StringPool.BLANK, defaultActions, guestActions); - addExpandoColumnIfNotExists(companyId, className, Constants.CF_ORGANIZATION_MEMBERSHIP, ExpandoColumnConstants.STRING, StringPool.BLANK, defaultActions, guestActions); - - // Manifattura Web Group, mofidica per rendere la dimensione massima - // degli allegati configurabile da pannello di controllo. In origine era - // hardcoded a 20971520 byte. + // Manifattura Web Group, mofidica per rendere la dimensione massima degli allegati configurabile da pannello di + // controllo. In origine era hardcoded a 20971520 byte. addExpandoColumnIfNotExists(companyId, className, - Constants.COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_IN_MIB, - ExpandoColumnConstants.SHORT, - Constants.COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_DEFAULT, defaultActions, - guestActions); - + Constants.COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_IN_MIB, ExpandoColumnConstants.SHORT, + Constants.COMPANY_CUSTOM_FIELD_DIMENSIONE_MASSIMA_ALLEGATI_DEFAULT, defaultActions, guestActions); addExpandoColumnIfNotExists(companyId, className, Constants.COMPANY_CUSTOM_FIELD_LINK_SEED, - ExpandoColumnConstants.STRING, String.valueOf(new Date().getTime()), defaultActions, - guestActions); + ExpandoColumnConstants.STRING, String.valueOf(new Date().getTime()), defaultActions, guestActions); } - private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, - int type, String defaultData, String[] defaultActions, String[] guestActions) - throws SystemException { + private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type, + String defaultData, String[] defaultActions, String[] guestActions) throws SystemException { long classNameId = PortalUtil.getClassNameId(className); - ExpandoTable expandoTable = null; try { expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, @@ -124,56 +99,46 @@ public class CompanyExpandoStartupAction extends SimpleAction { } catch (PortalException e1) { } } - - ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil - .getColumn(expandoTable.getTableId(), name); - + ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name); if (expandoColumn == null) { - try { - // Manifattura Web Group, modifica per rendere possibile la - // creazione di campi personalizzati di tipo intero + // Manifattura Web Group, modifica per rendere possibile la creazione di campi personalizzati di tipo + // intero switch (type) { case ExpandoColumnConstants.INTEGER: - expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, - type, Integer.valueOf(defaultData)); + expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type, + Integer.valueOf(defaultData)); break; case ExpandoColumnConstants.LONG: - expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, - type, Long.valueOf(defaultData)); + expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type, + Long.valueOf(defaultData)); break; case ExpandoColumnConstants.SHORT: - expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, - type, Short.valueOf(defaultData)); + expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type, + Short.valueOf(defaultData)); break; default: - expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, - type, defaultData); + expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type, + defaultData); } - } catch (PortalException e) { } } - try { - Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST); Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER); Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER); - - ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, - ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, - String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), guestActions); - ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, - ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, - String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), defaultActions); - ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, - ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, - String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), defaultActions); + ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), + ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), + roleGuest.getRoleId(), guestActions); + ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), + ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), + rolePowerUser.getRoleId(), defaultActions); + ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), + ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), + roleUser.getRoleId(), defaultActions); } catch (PortalException e) { } - return expandoColumn; } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/KaleoListenereStartupAction.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/KaleoListenereStartupAction.java index 783a4a16..a52d0bf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/KaleoListenereStartupAction.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/KaleoListenereStartupAction.java @@ -14,18 +14,18 @@ import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; public class KaleoListenereStartupAction extends ModelListenerStartupAction { - @Override - public ModelListenerWrapper[] getModelListenerWrappers() { + @Override + public ModelListenerWrapper[] getModelListenerWrappers() { - return new ModelListenerWrapper[] { - new ModelListenerWrapper("portos-kaleo-web", KaleoInstance.class.getName(), - KaleoInstanceModelListener.class.getName()), - new ModelListenerWrapper("portos-kaleo-web", KaleoTaskInstanceToken.class.getName(), - KaleoTaskInstanceTokenModelListener.class.getName()), - new ModelListenerWrapper("portos-kaleo-web", KaleoInstanceToken.class.getName(), - KaleoInstanceTokenModelListener.class.getName()), - new ModelListenerWrapper("portos-kaleo-web", KaleoLog.class.getName(), KaleoLogModelListener.class.getName()) - - }; - } + return new ModelListenerWrapper[] { + new ModelListenerWrapper("portos-kaleo-web", KaleoInstance.class.getName(), + KaleoInstanceModelListener.class.getName()), + new ModelListenerWrapper("portos-kaleo-web", KaleoTaskInstanceToken.class.getName(), + KaleoTaskInstanceTokenModelListener.class.getName()), + new ModelListenerWrapper("portos-kaleo-web", KaleoInstanceToken.class.getName(), + KaleoInstanceTokenModelListener.class.getName()), + new ModelListenerWrapper("portos-kaleo-web", KaleoLog.class.getName(), + KaleoLogModelListener.class.getName()) + }; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/RoleUpdateAction.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/RoleUpdateAction.java index 8f197296..146edac8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/RoleUpdateAction.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/startup/RoleUpdateAction.java @@ -28,6 +28,7 @@ public class RoleUpdateAction extends SimpleAction { super(); } + @Override public void run(String[] ids) throws ActionException { for (String companyId : ids) { @@ -38,12 +39,12 @@ public class RoleUpdateAction extends SimpleAction { if (Validator.isNull(role)) { long userId = UserLocalServiceUtil.getDefaultUserId(Long.valueOf(companyId)); String className = Role.class.getName(); - long classPK = 0l; + long classPK = 0L; String name = Constants.ROLE_NAME_GEOLOGO; Map titleMap = new LinkedHashMap(); titleMap.put(Locale.ITALY, Constants.ROLE_NAME_GEOLOGO); Map descriptionMap = new LinkedHashMap(); - descriptionMap.put(Locale.ITALY, "E' un geologo"); + descriptionMap.put(Locale.ITALY, "È un geologo"); int type = RoleConstants.TYPE_REGULAR; String subtype = null; ServiceContext serviceContext = null; @@ -51,11 +52,9 @@ public class RoleUpdateAction extends SimpleAction { type, subtype, serviceContext); _log.info("Aggiunto ruolo " + name); } - } catch (PortalException | SystemException e) { _log.error("Errore durante l'aggiunta di un ruolo", e); } } } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/Constants.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/Constants.java index 234c9d49..6765421b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/Constants.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/Constants.java @@ -1,6 +1,7 @@ package it.tref.liferay.portos.bo.util; public class Constants extends it.tref.liferay.portos.bo.shared.util.Constants { + public static final String NUMERO_PROGETTO_KEY_DB = "numero.progetto.key.db"; public static final String[] AMMINISTRAZIONE_CSV_HEADERS_COMUNI = { "Codice Regione", "Codice Città Metropolitana", "Codice Provincia (1)", "Progressivo del Comune (2)", diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/FestivitaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/FestivitaUtil.java deleted file mode 100644 index 725256cb..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/FestivitaUtil.java +++ /dev/null @@ -1,147 +0,0 @@ -package it.tref.liferay.portos.bo.util; - -import java.util.Calendar; -import java.util.Date; -import java.util.GregorianCalendar; - -import org.apache.commons.lang.time.DateUtils; - -public class FestivitaUtil { - - public final static boolean isFestivo(Date date) { - - int year = DateUtils.toCalendar(date).get(Calendar.YEAR); - - boolean isCapodanno = is(date, 1, 1); - boolean isBefana = is(date, 6, 1); - boolean isPasqua = isPasqua(date); - - boolean isPasquetta = false; - Date dtPasqua = findPasqua(year); - if (dtPasqua != null) { - Calendar calendar = DateUtils.toCalendar(dtPasqua); - while (calendar.get(Calendar.DAY_OF_WEEK) != Calendar.MONDAY) { - calendar.add(Calendar.DATE, 1); - } - isPasquetta = is(date, calendar.getTime()); - } - - boolean isFestaDellaLiberazione = is(date, 25, 4); - boolean isFestaDeiLavoratori = is(date, 1, 5); - boolean isFestaDellaRepubblica = is(date, 2, 6); - boolean isFerragosto = is(date, 15, 8); - boolean isOgnissanti = is(date, 1, 11); - boolean isImmacolataConcezione = is(date, 8, 12); - boolean isNatale = is(date, 25, 12); - boolean isSantoStefano = is(date, 26, 12); - - return isCapodanno || isBefana || isPasqua || isPasquetta || isFestaDellaLiberazione - || isFestaDeiLavoratori || isFestaDellaRepubblica || isFerragosto || isOgnissanti - || isImmacolataConcezione || isNatale || isSantoStefano; - } - - private final static boolean isPasqua(Date date) { - - Calendar calendar = new GregorianCalendar(); - calendar.setTime(date); - - int year = calendar.get(Calendar.YEAR); - int dateYMD = year * 10000 + calendar.get(Calendar.MONTH) * 100 + calendar.get(Calendar.DAY_OF_MONTH); - - Date pasqua = findPasqua(year); - if (pasqua != null) { - calendar.setTime(pasqua); - int pasquaYMD = year * 10000 + calendar.get(Calendar.MONTH) * 100 - + calendar.get(Calendar.DAY_OF_MONTH); - return (pasquaYMD == dateYMD); - } - - return false; - } - - private final static boolean is(Date date, int day, int month) { - Calendar calendar = DateUtils.toCalendar(date); - return calendar.get(Calendar.DATE) == day && (calendar.get(Calendar.MONTH) + 1) == month; - } - - private final static boolean is(Date date, Date date2) { - Calendar calendar = Calendar.getInstance(); - calendar.setTime(date); - Calendar calendar2 = Calendar.getInstance(); - calendar2.setTime(date2); - return calendar.get(Calendar.DATE) == calendar2.get(Calendar.DATE) - && calendar.get(Calendar.MONTH) == calendar2.get(Calendar.MONTH); - } - - private final static Date findPasqua(int year) { - - if ((year < 1573) || (year > 2499)) { - throw null; - } - - int a = year % 19; - int b = year % 4; - int c = year % 7; - - int m = 0; - int n = 0; - - if ((year >= 1583) && (year <= 1699)) { - m = 22; - n = 2; - } - if ((year >= 1700) && (year <= 1799)) { - m = 23; - n = 3; - } - if ((year >= 1800) && (year <= 1899)) { - m = 23; - n = 4; - } - if ((year >= 1900) && (year <= 2099)) { - m = 24; - n = 5; - } - if ((year >= 2100) && (year <= 2199)) { - m = 24; - n = 6; - } - if ((year >= 2200) && (year <= 2299)) { - m = 25; - n = 0; - } - if ((year >= 2300) && (year <= 2399)) { - m = 26; - n = 1; - } - if ((year >= 2400) && (year <= 2499)) { - m = 25; - n = 1; - } - - int d = (19 * a + m) % 30; - int e = (2 * b + 4 * c + 6 * d + n) % 7; - - Calendar calendar = new GregorianCalendar(); - calendar.set(Calendar.YEAR, year); - - if (d + e < 10) { - calendar.set(Calendar.YEAR, year); - calendar.set(Calendar.MONTH, Calendar.MARCH); - calendar.set(Calendar.DAY_OF_MONTH, d + e + 22); - } else { - calendar.set(Calendar.MONTH, Calendar.APRIL); - int day = d + e - 9; - if (26 == day) { - day = 19; - } - if ((25 == day) && (28 == d) && (e == 6) && (a > 10)) { - day = 18; - } - calendar.set(Calendar.DAY_OF_MONTH, day); - } - - return calendar.getTime(); - } - -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GenioCivileBaseUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GenioCivileBaseUtil.java index 918a4a69..ba53d4ab 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GenioCivileBaseUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GenioCivileBaseUtil.java @@ -20,71 +20,57 @@ import com.liferay.portlet.PortletURLFactoryUtil; public class GenioCivileBaseUtil { - public static String getDettPraticaURL(long plid, long resourcePrimKey, int status, String portalURL, - boolean maximized) { - return getDettPraticaURL(plid, resourcePrimKey, status, portalURL, maximized, null); - } - - public static String getDettPraticaURL(long plid, long resourcePrimKey, int status, String portalURL, - boolean maximized, String redirect) { - - StringBundler sb = new StringBundler(11); - - sb.append(portalURL); - sb.append(PortalUtil.getPathMain()); - sb.append("/portal/dettaglio_pratica/find_entry"); - sb.append(StringPool.QUESTION); - sb.append("p_l_id"); - sb.append(StringPool.EQUAL); - sb.append(String.valueOf(plid)); - sb.append(StringPool.AMPERSAND); - // control panel - if (Validator.isNotNull(redirect)) { - sb.append("doAsGroupId"); - sb.append(StringPool.EQUAL); - sb.append(HttpUtil.getParameter(redirect, "doAsGroupId", false)); - sb.append(StringPool.AMPERSAND); - } - sb.append("resourcePrimKey"); - sb.append(StringPool.EQUAL); - sb.append(String.valueOf(resourcePrimKey)); - - String url = sb.toString(); - - if (status != WorkflowConstants.STATUS_APPROVED) { - url = HttpUtil.addParameter(url, "status", String.valueOf(status)); - } - - if (maximized) { - url = HttpUtil.addParameter(url, "maximized", String.valueOf(maximized)); - } - - if (Validator.isNotNull(redirect)) { - url = HttpUtil.addParameter(url, "redirect", redirect); - } - - return url; - } - - public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey, int status) - throws PortletModeException, WindowStateException { - return getDettPraticaURL(request, plid, resourcePrimKey, status, null); - } - - public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey, int status, - String redirect) throws PortletModeException, WindowStateException { - - PortletURL url = PortletURLFactoryUtil.create(request, PortletKeys.FASCICOLO, plid, PortletRequest.RENDER_PHASE); - url.setParameter("mvcPath", "/html/pratichegeniocivile/view.jsp"); - url.setParameter("resourcePrimKey", String.valueOf(resourcePrimKey)); - url.setParameter("redirect", redirect); - url.setPortletMode(PortletMode.VIEW); - url.setWindowState(LiferayWindowState.POP_UP); - - if (status != WorkflowConstants.STATUS_APPROVED) { - url.setParameter("status", String.valueOf(status)); - } - - return url.toString(); - } + public static String getDettPraticaURL(long plid, long resourcePrimKey, int status, String portalURL, + boolean maximized) { + + return getDettPraticaURL(plid, resourcePrimKey, status, portalURL, maximized, null); + } + + public static String getDettPraticaURL(long plid, long resourcePrimKey, int status, String portalURL, + boolean maximized, String redirect) { + + StringBundler sb = new StringBundler(11); + sb.append(portalURL).append(PortalUtil.getPathMain()).append("/portal/dettaglio_pratica/find_entry") + .append(StringPool.QUESTION).append("p_l_id").append(StringPool.EQUAL).append(String.valueOf(plid)) + .append(StringPool.AMPERSAND); + // control panel + if (Validator.isNotNull(redirect)) { + sb.append("doAsGroupId").append(StringPool.EQUAL) + .append(HttpUtil.getParameter(redirect, "doAsGroupId", false)).append(StringPool.AMPERSAND); + } + sb.append("resourcePrimKey").append(StringPool.EQUAL).append(String.valueOf(resourcePrimKey)); + String url = sb.toString(); + if (status != WorkflowConstants.STATUS_APPROVED) { + url = HttpUtil.addParameter(url, "status", String.valueOf(status)); + } + if (maximized) { + url = HttpUtil.addParameter(url, "maximized", String.valueOf(maximized)); + } + if (Validator.isNotNull(redirect)) { + url = HttpUtil.addParameter(url, "redirect", redirect); + } + return url; + } + + public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey, int status) + throws PortletModeException, WindowStateException { + + return getDettPraticaURL(request, plid, resourcePrimKey, status, null); + } + + public static String getDettPraticaURL(HttpServletRequest request, long plid, long resourcePrimKey, int status, + String redirect) throws PortletModeException, WindowStateException { + + PortletURL url = PortletURLFactoryUtil + .create(request, PortletKeys.FASCICOLO, plid, PortletRequest.RENDER_PHASE); + url.setParameter("mvcPath", "/html/pratichegeniocivile/view.jsp"); + url.setParameter("resourcePrimKey", String.valueOf(resourcePrimKey)); + url.setParameter("redirect", redirect); + url.setPortletMode(PortletMode.VIEW); + url.setWindowState(LiferayWindowState.POP_UP); + if (status != WorkflowConstants.STATUS_APPROVED) { + url.setParameter("status", String.valueOf(status)); + } + return url.toString(); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GestioneFirmeUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GestioneFirmeUtil.java index 99e33757..35901c36 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GestioneFirmeUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/GestioneFirmeUtil.java @@ -28,24 +28,23 @@ public class GestioneFirmeUtil { } }; - public static boolean hasFirmaPermision(long userId, long groupId) throws PortalException, - SystemException { - return UserGroupRoleLocalServiceUtil.hasUserGroupRole(userId, groupId, Constants.ROLE_NAME_FIRMA, - true); + public static boolean hasFirmaPermision(long userId, long groupId) throws PortalException, SystemException { + + return UserGroupRoleLocalServiceUtil.hasUserGroupRole(userId, groupId, Constants.ROLE_NAME_FIRMA, true); } - public static boolean hasFirmaPermisionDirigente(long userId, long groupId) throws PortalException, - SystemException { - return UserGroupRoleLocalServiceUtil.hasUserGroupRole(userId, groupId, - Constants.ROLE_NAME_FIRMA_DIRIGENTE, true); + public static boolean hasFirmaPermisionDirigente(long userId, long groupId) throws PortalException, SystemException { + + return UserGroupRoleLocalServiceUtil.hasUserGroupRole(userId, groupId, Constants.ROLE_NAME_FIRMA_DIRIGENTE, + true); } public static boolean userCanSignAvviso(long userId, long groupId, long avvisoId) throws PortalException, SystemException { + Avviso avviso = AvvisoLocalServiceUtil.getAvviso(avvisoId); boolean firma = hasFirmaPermision(userId, groupId); boolean firmaDirigente = hasFirmaPermisionDirigente(userId, groupId); - return firmaDirigente || (firma && tipoDocumentoFirmaBase.contains(avviso.getTipoDocumento())); } @@ -54,15 +53,13 @@ public class GestioneFirmeUtil { Role role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_DIRIGENTE); String codiceFiscaleFirma = StringPool.BLANK; - if (tipoDocumentoFirmaBase.contains(tipoDocumento)) { role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_PO); } else { role = RoleLocalServiceUtil.getRole(companyId, Constants.ROLE_NAME_FIRMA_DIRIGENTE); } - List UserGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( - groupId, role.getRoleId()); - + List UserGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(groupId, + role.getRoleId()); if (UserGroupRoles.size() == 1) { User user = UserLocalServiceUtil.getUser(UserGroupRoles.get(0).getUserId()); codiceFiscaleFirma = user.getScreenName(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/OggettoProtocollo.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/OggettoProtocollo.java index e7b2c5d0..a146e053 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/OggettoProtocollo.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/OggettoProtocollo.java @@ -8,68 +8,63 @@ import org.apache.commons.lang.StringUtils; public class OggettoProtocollo { - private final String protocolloEntityId; - private final String protocolloEntityUtenteId; - private final String protocolloEntityUfficioId; - private final String dataInserimento; - private final String protocolloEntityOggetto; - private final String protocolloEntityFascicoloNumero; - private final String fascicoloEntityTipo; + private final String protocolloEntityId; + private final String protocolloEntityUtenteId; + private final String protocolloEntityUfficioId; + private final String dataInserimento; + private final String protocolloEntityOggetto; + private final String protocolloEntityFascicoloNumero; + private final String fascicoloEntityTipo; - public OggettoProtocollo(String protocolloEntityId, String protocolloEntityUtenteId, - String protocolloEntityUfficioId, String protocolloEntityOggetto, String protocolloEntityFascicoloNumero, - String dataInserimento, String fascicoloEntityTipo) throws ParseException { + public OggettoProtocollo(String protocolloEntityId, String protocolloEntityUtenteId, + String protocolloEntityUfficioId, String protocolloEntityOggetto, String protocolloEntityFascicoloNumero, + String dataInserimento, String fascicoloEntityTipo) throws ParseException { - super(); - this.protocolloEntityId = protocolloEntityId; - this.protocolloEntityUtenteId = protocolloEntityUtenteId; - this.protocolloEntityUfficioId = protocolloEntityUfficioId; - this.protocolloEntityOggetto = protocolloEntityOggetto; - this.dataInserimento = dataInserimento; - SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); - Calendar calendar = Calendar.getInstance(); - calendar.setTime(sdf.parse(dataInserimento)); + this.protocolloEntityId = protocolloEntityId; + this.protocolloEntityUtenteId = protocolloEntityUtenteId; + this.protocolloEntityUfficioId = protocolloEntityUfficioId; + this.protocolloEntityOggetto = protocolloEntityOggetto; + this.dataInserimento = dataInserimento; + SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + Calendar calendar = Calendar.getInstance(); + calendar.setTime(sdf.parse(dataInserimento)); + this.protocolloEntityFascicoloNumero = calendar.get(Calendar.YEAR) + + StringUtils.leftPad(protocolloEntityFascicoloNumero, 7).replace(' ', '0'); + this.fascicoloEntityTipo = fascicoloEntityTipo.equals("1") ? "partenza" : "arrivo"; + } - this.protocolloEntityFascicoloNumero = - calendar.get(Calendar.YEAR) + StringUtils.leftPad(protocolloEntityFascicoloNumero, 7).replace(' ', '0'); + public String getProtocolloEntityId() { - this.fascicoloEntityTipo = fascicoloEntityTipo.equals("1") ? "partenza" : "arrivo"; - } + return protocolloEntityId; + } - public String getProtocolloEntityId() { + public String getProtocolloEntityUtenteId() { - return protocolloEntityId; - } + return protocolloEntityUtenteId; + } - public String getProtocolloEntityUtenteId() { + public String getProtocolloEntityUfficioId() { - return protocolloEntityUtenteId; - } + return protocolloEntityUfficioId; + } - public String getProtocolloEntityUfficioId() { + public String getProtocolloEntityOggetto() { - return protocolloEntityUfficioId; - } + return protocolloEntityOggetto; + } - public String getProtocolloEntityOggetto() { + public String getDataInserimento() { - return protocolloEntityOggetto; - } + return dataInserimento; + } - public String getDataInserimento() { + public String getProtocolloEntityFascicoloNumero() { - return dataInserimento; - } - - public String getProtocolloEntityFascicoloNumero() { - - return protocolloEntityFascicoloNumero; - } - - public String getFascicoloEntityTipo() { - - return fascicoloEntityTipo; - } + return protocolloEntityFascicoloNumero; + } + public String getFascicoloEntityTipo() { + return fascicoloEntityTipo; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PagamentiUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PagamentiUtil.java index 77578646..427848b1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PagamentiUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PagamentiUtil.java @@ -1,296 +1,31 @@ package it.tref.liferay.portos.bo.util; -import it.tasgroup.idp.generazioneiuv.ElencoIdentificativiType; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.IdpOTFType; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.InformazioniPagamentoType; -import it.toscana.rete.cart.www.servizi.iris_1_1.IdpEsito.VerificaStatoPagamentoDettagliato; -import it.tref.liferay.portos.bo.iris.IrisCommonUtil; -import it.tref.liferay.portos.bo.iris.IrisComunicaPosizioniDebitorie; -import it.tref.liferay.portos.bo.iris.IrisVerificaPagamenti; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.FineLavori; -import it.tref.liferay.portos.bo.model.IUV; import it.tref.liferay.portos.bo.model.Pagamento; -import it.tref.liferay.portos.bo.model.Provincia; -import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IUVLocalServiceUtil; import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.GenericUtils; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; -import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; -import java.util.Map; 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.CalendarFactoryUtil; -import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.StringUtil; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.service.ServiceContext; public abstract class PagamentiUtil { - private static final Log _log = LogFactoryUtil.getLog(PagamentiUtil.class); - - public static void verificaPagamentoIRIS(Pagamento pagamento) throws IOException, SystemException, - PortalException { - - // long companyId = pagamento.getCompanyId(); - // long groupId = pagamento.getGroupId(); - // - // InformazioniPagamentoType[] statoPagamentiType = - // IrisVerificaPagamenti - // .verificaPagamenti(companyId, groupId, pagamento.getCodice(), - // pagamento.getTipoPagamento()); - - // List infoPagamentoTypes = - // IrisVerificaPagamenti - // .verificaPagamenti(companyId, groupId, pagamento.getCodice(), - // pagamento.getTipoPagamento()); - // String statoPagamento = StringPool.BLANK; - // if (infoPagamentoTypes != null) { - // InformazioniPagamentoType infoPagamentoType = - // infoPagamentoTypes.get(0); - // if - // (infoPagamentoType.getStato().equals(VerificaStatoPagamentoDettagliato.POSIZIONE_NON_PRESENTE)) - // { - // // "Posizione non presente" -> si riprova successivamente - // return; - // } else if - // (infoPagamentoType.getStato().equals(VerificaStatoPagamentoDettagliato.POSIZIONE_NON_PAGABILE)) - // { - // // "Posizione non pagabile" -> esito negativo - // statoPagamento = PagamentoConstants.UTILIZZATA_NON_PAGABILE; - // } else if - // (infoPagamentoType.getStato().equals(VerificaStatoPagamentoDettagliato.POSIZIONE_NON_PAGATA)) - // { - // // "Pagamento non eseguito" -> esito negativo - // statoPagamento = PagamentoConstants.UTILIZZATA_RIFIUTATA; - // } else if - // (infoPagamentoType.getStato().equals(VerificaStatoPagamentoDettagliato.POSIZIONE_CON_PAG_IN_CORSO)) - // { - // // "Pagamento non eseguito" -> esito in corso - // statoPagamento = PagamentoConstants.UTILIZZATA_IN_CORSO; - // return; - // } else if - // (infoPagamentoType.getStato().equals(VerificaStatoPagamentoDettagliato.POSIZIONE_PAGATA) - // || - // infoPagamentoType.getStato().equals(VerificaStatoPagamentoDettagliato.POSIZIONE_PAGATA_SBF)) - // { - // // "Pagamento eseguito" -> esito positivo - // statoPagamento = PagamentoConstants.UTILIZZATA_PAGATA; - // } - - // String statoPagamento = StringPool.BLANK; - // if (statoPagamentiType != null) { - // InformazioniPagamentoType statoPagamentoType = statoPagamentiType[0]; - // String statoPendenza = statoPagamentoType.getStato().getValue(); - // - // if - // (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGATA)) - // { - // if (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase( - // VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGATA)) { - // // "Posizione non presente" -> si riprova successivamente - // return; - // } else if - // (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase("PAG_NON_ESEGUITO")) - // { - // statoPagamento = PagamentoConstants.UTILIZZATA_RIFIUTATA; - // } - // } else if - // (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGABILE)) - // { - // // "Posizione non pagabile" -> esito negativo - // statoPagamento = PagamentoConstants.UTILIZZATA_NON_PAGABILE; - // // } else if (statoPendenza.equals(StatoPagamentoType._value3)) { - // // "Pagamento non ancora eseguito" -> si riprova successivamente - // // if (!pagamento.getOtf()) { - // // return; - // // } - // // "Pagamento non eseguito" -> esito negativo - // // statoPagamento = PagamentoConstants.UTILIZZATA_RIFIUTATA; - // } else if - // (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_PAGATA) - // || - // statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_PAGATA_SBF)) - // { - // // "Pagamento eseguito" -> esito positivo - // statoPagamento = PagamentoConstants.UTILIZZATA_PAGATA; - // } else if - // (statoPendenza.equals(VerificaStatoPagamentoDettagliato.POSIZIONE_CON_PAG_IN_CORSO)) - // { - // // "Pagamento non eseguito" -> esito in corso - // statoPagamento = PagamentoConstants.UTILIZZATA_IN_CORSO; - // return; - // } - - // StatoPagamentoType statoPagamentoType = statoPagamentiType[0]; - // if - // (statoPagamentoType.enumValue().equals(VerificaStatoPagamento.POSIZIONE_NON_PRESENTE)) - // { - // // "Posizione non presente" -> si riprova successivamente - // return; - // } else if - // (statoPagamentoType.enumValue().equals(VerificaStatoPagamento.POSIZIONE_NON_PAGABILE)) - // { - // // "Posizione non pagabile" -> esito negativo - // statoPagamento = PagamentoConstants.UTILIZZATA_NON_PAGABILE; - // } else if - // (statoPagamentoType.enumValue().equals(VerificaStatoPagamento.PAGAMENTO_NON_ESEGUITO)) - // { - // // "Pagamento non ancora eseguito" -> si riprova successivamente - // if (!pagamento.getOtf()) { - // return; - // } - // // "Pagamento non eseguito" -> esito negativo - // statoPagamento = PagamentoConstants.UTILIZZATA_RIFIUTATA; - // } else if - // (statoPagamentoType.enumValue().equals(VerificaStatoPagamento.POSIZIONE_NON_PAGABILE)) - // { - // // "Pagamento eseguito" -> esito positivo - // statoPagamento = PagamentoConstants.UTILIZZATA_PAGATA; - // } - - // if (DettPratica.class.getName().equals(pagamento.getClassName())) { - // DettPraticaLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), - // pagamento.getClassPk(), - // statoPagamento); - // } else if - // (FineLavori.class.getName().equals(pagamento.getClassName())) { - // FineLavoriLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), - // pagamento.getClassPk(), - // statoPagamento); - // } else if (Collaudo.class.getName().equals(pagamento.getClassName())) - // { - // CollaudoLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), - // pagamento.getClassPk(), - // statoPagamento); - // } else { - // throw new - // RuntimeException("unable to update pagamento esito for entity type " - // + - // pagamento.getClassName() - // + " with id " + pagamento.getClassPk()); - // } - // - // } - - String statoPagamento = callVerificaPagamenti(pagamento); - if (Validator.isNotNull(statoPagamento)) { - if (DettPratica.class.getName().equals(pagamento.getClassName())) { - DettPraticaLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), - pagamento.getClassPk(), statoPagamento); - } else if (FineLavori.class.getName().equals(pagamento.getClassName())) { - FineLavoriLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), - pagamento.getClassPk(), statoPagamento); - } else if (Collaudo.class.getName().equals(pagamento.getClassName())) { - CollaudoLocalServiceUtil.updateEsitoPagamento(pagamento.getPagamentoId(), - pagamento.getClassPk(), statoPagamento); - } else { - throw new RuntimeException("unable to update pagamento esito for entity type " - + pagamento.getClassName() + " with id " + pagamento.getClassPk()); - } - } - - } - - private static String callVerificaPagamenti(Pagamento pagamento) throws SystemException { - - long companyId = pagamento.getCompanyId(); - long groupId = pagamento.getGroupId(); - - if (PagamentoConstants.PAGAMENTO_ONERI.equals(pagamento.getTipoPagamento())) { - InformazioniPagamentoType[] statoPagamentiType = IrisVerificaPagamenti.verificaPagamenti( - companyId, groupId, pagamento.getCodice(), pagamento.getTipoPagamento()); - - return checkStatoPagamento(statoPagamentiType); - - } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(pagamento.getTipoPagamento())) { - List iuvs = IUVLocalServiceUtil.findByPagamento(pagamento.getPagamentoId()); - List statiPagamento = new ArrayList(); - for (IUV iuv : iuvs) { - InformazioniPagamentoType[] statoPagamentiType = IrisVerificaPagamenti.verificaPagamenti( - companyId, groupId, iuv.getCodice(), pagamento.getTipoPagamento()); - GenericUtils.addIfnotExist(statiPagamento, checkStatoPagamento(statoPagamentiType)); - } - - if (statiPagamento.size() > 1) { - // return - // VerificaStatoPagamentoDettagliato._POSIZIONE_CON_PAG_IN_CORSO; - return StringPool.BLANK; - } - return statiPagamento.get(0); - } - - throw new SystemException("error.geniocivile.tipopagamento.notexist"); - - } - - private static String checkStatoPagamento(InformazioniPagamentoType[] statoPagamentiType) { - - if (statoPagamentiType == null) { - return null; - } - - InformazioniPagamentoType statoPagamentoType = statoPagamentiType[0]; - String statoPendenza = statoPagamentoType.getStato().getValue(); - - String statoPagamento = StringPool.BLANK; - if (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGATA)) { - if (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase( - VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGATA)) { - // "Posizione non presente" -> si riprova successivamente - return StringPool.BLANK; - } else if (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase("PAG_NON_ESEGUITO")) { - statoPagamento = PagamentoConstants.UTILIZZATA_RIFIUTATA; - } else if (statoPagamentoType.getDescrizioneStato().equalsIgnoreCase("PAG_IN_ERRORE")) { - statoPagamento = PagamentoConstants.UTILIZZATA_NON_PAGABILE; - } - _log.debug(statoPagamento); - } else if (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_NON_PAGABILE)) { - // "Posizione non pagabile" -> esito negativo - statoPagamento = PagamentoConstants.UTILIZZATA_NON_PAGABILE; - // } else if (statoPendenza.equals(StatoPagamentoType._value3)) { - // "Pagamento non ancora eseguito" -> si riprova successivamente - // if (!pagamento.getOtf()) { - // return; - // } - // "Pagamento non eseguito" -> esito negativo - // statoPagamento = PagamentoConstants.UTILIZZATA_RIFIUTATA; - _log.debug(statoPagamento); - } else if (statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_PAGATA) - || statoPendenza.equals(VerificaStatoPagamentoDettagliato._POSIZIONE_PAGATA_SBF)) { - // "Pagamento eseguito" -> esito positivo - statoPagamento = PagamentoConstants.UTILIZZATA_PAGATA; - _log.debug(statoPagamento); - } else if (statoPendenza - .equalsIgnoreCase(VerificaStatoPagamentoDettagliato._POSIZIONE_CON_PAG_IN_CORSO)) { - // "Pagamento non eseguito" -> esito in corso - statoPagamento = PagamentoConstants.UTILIZZATA_IN_CORSO; - return StringPool.BLANK; - } - - return statoPagamento; - } - public static BigDecimal getImportoBolli(long companyId, long dettPraticaId, String tipoIntegrazione) throws PortalException, SystemException { @@ -310,19 +45,14 @@ public abstract class PagamentiUtil { return pagamento.getCreateDate().compareTo(getScadenzaPending()) < 0; } - public static Pagamento nuovoPagamento(String currentURL, long classPk, String className, - String tipoPagamento, String importo, String codiceFiscaleCommittente, - ServiceContext serviceContext) throws PortalException, SystemException { - - boolean irisDisabled = !PagamentiCommonUtil.irisIsEnable(serviceContext.getCompanyId()); + public static Pagamento nuovoPagamento(String currentURL, long classPk, String className, String tipoPagamento, + String importo, String codiceFiscaleCommittente, ServiceContext serviceContext) throws PortalException, + SystemException { boolean esenzioneBolli = false; boolean esenzioneSpeseIstruttoria = false; String tipoIntegrazione = StringPool.BLANK; - long pagamentoId = 0l; - long intPraticaId = 0l; - - // long dettPraticaId = 0l; + long pagamentoId = 0L; if (DettPratica.class.getName().equals(className)) { DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPk); esenzioneBolli = dettPratica.isNormEsenteBollo(); @@ -333,8 +63,6 @@ public abstract class PagamentiUtil { } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { pagamentoId = dettPratica.getPagamentoIdBolli(); } - intPraticaId = dettPratica.getIntPraticaId(); - // dettPraticaId = classPk; } else if (FineLavori.class.getName().equals(className)) { FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPk); esenzioneBolli = fineLavori.isNormEsenteBollo(); @@ -345,9 +73,6 @@ public abstract class PagamentiUtil { } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { pagamentoId = fineLavori.getPagamentoId(); } - // dettPraticaId = - // DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(fineLavori.getIntPraticaId()).getDettPraticaId(); - intPraticaId = fineLavori.getIntPraticaId(); } else if (Collaudo.class.getName().equals(className)) { Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPk); esenzioneBolli = collaudo.isNormEsenteBollo(); @@ -358,21 +83,15 @@ public abstract class PagamentiUtil { } else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) { pagamentoId = collaudo.getPagamentoId(); } - // dettPraticaId = - // DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(collaudo.getIntPraticaId()).getDettPraticaId(); - intPraticaId = collaudo.getIntPraticaId(); } else { throw new SystemException("error.fields.pratica.pagamento.classPk.invalid"); } - List importi = new ArrayList<>(); - if (esenzioneSpeseIstruttoria && esenzioneBolli) { throw new SystemException("error.fields.pratica.pagamento.esente.oneri.bolli"); } else { if ((PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) && !esenzioneBolli) || (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento) && !esenzioneSpeseIstruttoria)) { - if (Validator.isNotNull(importo)) { importo = importo.replaceAll(StringPool.COMMA, StringPool.PERIOD); try { @@ -387,7 +106,6 @@ public abstract class PagamentiUtil { } else if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) { importi.add(importo); } - } catch (NumberFormatException e) { throw new SystemException("error.fields.pratica.pagamento." + (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli" @@ -405,97 +123,20 @@ public abstract class PagamentiUtil { return null; } } - - if (!irisDisabled) { - if (Validator.isNull(pagamentoId)) { - - Soggetto committente = SoggettoLocalServiceUtil - .getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, - codiceFiscaleCommittente, TipoSoggettoUtil.COMMITTENTE); - String provincia = StringPool.BLANK; - String codiceProvincia = committente.getProvincia(); - if (codiceProvincia.equalsIgnoreCase("ee")) { - provincia = "EE"; - } else { - Provincia provinciaEntity = ProvinciaLocalServiceUtil.fetchByC_C( - serviceContext.getCompanyId(), codiceProvincia); - if (Validator.isNotNull(provinciaEntity)) { - provincia = provinciaEntity.getSigla(); - } - } - - String codice = IrisCommonUtil.createCodicePendenza(); - String causale = IrisCommonUtil.getDescrizioneCausale(tipoPagamento); - - long irisPagamentoId = PagamentoLocalServiceUtil.createPagamentoId(); - - currentURL = StringUtil.replaceLast(currentURL, "/0", StringPool.SLASH + irisPagamentoId); - - String auth = HttpUtil.getParameter(currentURL, "p_auth", false); - - // XXX Se non li rimuovi non funziona più - Map parameters = HttpUtil.getParameterMap(HttpUtil - .getQueryString(currentURL)); - for (String key : parameters.keySet()) { - currentURL = HttpUtil.removeParameter(currentURL, key); - } - - if (Validator.isNotNull(auth)) { - currentURL = HttpUtil.addParameter(currentURL, "p_auth", auth); - } - - if (Validator.isNull(codiceFiscaleCommittente)) { - throw new SystemException("error.fields.pratica.pagamento.codicefiscale.richiesto"); - } - - List iuvs = new ArrayList(); - if (PagamentoConstants.PAGAMENTO_BOLLI.equalsIgnoreCase(tipoPagamento)) { - iuvs = IrisComunicaPosizioniDebitorie.generaIUV(serviceContext.getCompanyId(), - importi.size()); - } - - IdpOTFType idpOTFType = IrisComunicaPosizioniDebitorie.comunicaPosizioniDebitorieOTF( - serviceContext.getCompanyId(), serviceContext.getScopeGroupId(), - serviceContext.getUserId(), codice, causale, codiceFiscaleCommittente, tipoPagamento, - importi, iuvs, currentURL, currentURL, provincia); - - String urlPagamento = ""; - - if (idpOTFType == null) { - urlPagamento = currentURL; - throw new SystemException("error.geniocivilefe.pratica.pagamento | intPraticaId=" - + intPraticaId + " | classPk=" + classPk + " | className=" + className); - - } else { - urlPagamento = idpOTFType.getUrlGW().toString(); - } - - return PagamentoLocalServiceUtil.addPagamentoAndUpdate(irisPagamentoId, codice, causale, - PagamentoConstants.MEZZO_IRIS, codiceFiscaleCommittente, tipoPagamento, importo, - PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, 0l, urlPagamento, iuvs, - serviceContext); - // actionResponse.sendRedirect(idpOTFType.getUrlGW().toString()); - } else { - return PagamentoLocalServiceUtil.getPagamento(pagamentoId); - } - // } - } else { - boolean add = true; - if (Validator.isNotNull(pagamentoId)) { - Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId); - if (pagamento.getClassPk() == classPk) { - add = false; - PagamentoLocalServiceUtil.updatePagamento(pagamentoId, codiceFiscaleCommittente, importo); - } - return pagamento; - } - if (add) { - return PagamentoLocalServiceUtil.addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK, - PagamentoConstants.MEZZO_MANUALE, codiceFiscaleCommittente, tipoPagamento, importo, - PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, 0l, serviceContext); + boolean add = true; + if (Validator.isNotNull(pagamentoId)) { + Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId); + if (pagamento.getClassPk() == classPk) { + add = false; + PagamentoLocalServiceUtil.updatePagamento(pagamentoId, codiceFiscaleCommittente, importo); } - return null; + return pagamento; } - + if (add) { + return PagamentoLocalServiceUtil.addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK, + PagamentoConstants.MEZZO_MANUALE, codiceFiscaleCommittente, tipoPagamento, importo, + PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, serviceContext); + } + return null; } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java index cca45d77..62236e45 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/ProtocollazioneUtil.java @@ -16,11 +16,11 @@ import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo; import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo.TipoProtocollo; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.FileReader; +import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.Reader; import java.net.HttpURLConnection; import java.net.URL; import java.text.ParseException; @@ -29,14 +29,19 @@ import java.util.Collections; import java.util.List; import javax.servlet.http.HttpServletRequest; + import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVRecord; import org.apache.commons.io.IOUtils; + import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.repository.model.FileEntry; +import com.liferay.portal.kernel.servlet.HttpHeaders; +import com.liferay.portal.kernel.servlet.HttpMethods; +import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.StreamUtil; @@ -53,38 +58,27 @@ public class ProtocollazioneUtil { public static String protocollaPartenza(Avviso avviso, Long fileEntryId) throws Exception { String protocollo = null; - InputStream inputStream = null; - try { IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId()); long groupId = avviso.getGroupId(); - File allegato = new File(); if (Validator.isNotNull(fileEntryId)) { FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(fileEntryId); - inputStream = DLFileEntryLocalServiceUtil.getFileAsStream(fileEntry.getFileEntryId(), fileEntry.getVersion()); - String sha256 = DigestUtils.sha256Hex(inputStream); allegato.setFileId(String.valueOf(fileEntryId)); allegato.setFileSha256(sha256); - } else { String doc = String.valueOf(avviso.getAvvisoId()); - String sha256 = DigestUtils.sha256Hex(doc); - allegato.setFileId("0"); allegato.setFileSha256(sha256); } - - // utilizzato anche come discriminate tra la 1a e la 2a chiamata 1a - // recupero numero protocollo -> 1 allegato finto 2a aggiorno dati - // del documento prodotto -> 2 allegati, il 1o giusto e il 2o per - // recupero num protocollo - + // utilizzato anche come discriminate tra la 1ª e la 2ª chiamata 1ª recupero numero protocollo -> 1 allegato + // finto 2ª aggiorno dati del documento prodotto -> 2 allegati, il 1º giusto e il 2º per recupero num + // protocollo Protocollo protocolloBean = new Protocollo(); protocolloBean.setOggetto(generaOggettoProtocollo(avviso.getClassName(), avviso.getAvvisoId())); protocolloBean.setChiuso(false); @@ -98,15 +92,14 @@ public class ProtocollazioneUtil { } finally { StreamUtil.cleanUp(inputStream); } - return protocollo; } public static String protocollaArrivo(Object praticaInstance, String title) throws Exception { - long groupId = 0l; - long praticaId = 0l; - long companyId = 0l; + long groupId = 0L; + long praticaId = 0L; + long companyId = 0L; String utenteScreenName = StringPool.BLANK; String className = StringPool.BLANK; if (praticaInstance instanceof DettPratica) { @@ -118,20 +111,17 @@ public class ProtocollazioneUtil { className = DettPratica.class.getName(); } else if (praticaInstance instanceof FineLavori) { groupId = ((FineLavori) praticaInstance).getGroupId(); - utenteScreenName = UserLocalServiceUtil.getUser(((FineLavori) praticaInstance).getUserId()) - .getScreenName(); + utenteScreenName = UserLocalServiceUtil.getUser(((FineLavori) praticaInstance).getUserId()).getScreenName(); praticaId = ((FineLavori) praticaInstance).getFineLavoriId(); companyId = ((FineLavori) praticaInstance).getCompanyId(); className = FineLavori.class.getName(); } else if (praticaInstance instanceof Collaudo) { groupId = ((Collaudo) praticaInstance).getGroupId(); - utenteScreenName = UserLocalServiceUtil.getUser(((Collaudo) praticaInstance).getUserId()) - .getScreenName(); + utenteScreenName = UserLocalServiceUtil.getUser(((Collaudo) praticaInstance).getUserId()).getScreenName(); praticaId = ((Collaudo) praticaInstance).getCollaudoId(); companyId = ((Collaudo) praticaInstance).getCompanyId(); className = Collaudo.class.getName(); } - List allegati = new ArrayList(); List docPraticas = DocPraticaLocalServiceUtil.findByClassPk(praticaId); for (DocPratica docPratica : docPraticas) { @@ -150,12 +140,10 @@ public class ProtocollazioneUtil { StreamUtil.cleanUp(inputStream); } } - allegato.setFileId(String.valueOf(docPratica.getDlFileEntryId())); allegato.setFileSha256(sha256); allegati.add(allegato); } - Protocollo protocolloBean = new Protocollo(); protocolloBean.setOggetto(generaOggettoProtocollo(className, praticaId)); protocolloBean.setChiuso(false); @@ -163,14 +151,13 @@ public class ProtocollazioneUtil { protocolloBean.setUtenteId(utenteScreenName); protocolloBean.setUfficioId(String.valueOf(groupId)); protocolloBean.setPraticaId(String.valueOf(praticaId)); - protocolloBean.setFiles(allegati); JSONObject risposta = HttpServiceUtil.postProtocolloBean(companyId, protocolloBean); return risposta.getString("anno") + String.format("%07d", risposta.getInt("numero")); } - public static String protocollaArrivoAccessoAtti(long groupId, long companyId, String userName, - long accessoAttiId, String className) throws Exception { + public static String protocollaArrivoAccessoAtti(long groupId, long companyId, String userName, long accessoAttiId, + String className) throws Exception { List allegati = new ArrayList(); File allegato = new File(); @@ -179,7 +166,6 @@ public class ProtocollazioneUtil { allegato.setFileId("0"); allegato.setFileSha256(sha256); allegati.add(allegato); - Protocollo protocolloBean = new Protocollo(); protocolloBean.setOggetto(generaOggettoProtocollo(className, accessoAttiId)); protocolloBean.setChiuso(false); @@ -187,7 +173,6 @@ public class ProtocollazioneUtil { protocolloBean.setUtenteId(userName); protocolloBean.setUfficioId(String.valueOf(groupId)); protocolloBean.setPraticaId(String.valueOf(accessoAttiId)); - protocolloBean.setFiles(allegati); JSONObject risposta = HttpServiceUtil.postProtocolloBean(companyId, protocolloBean); return risposta.getString("anno") + String.format("%07d", risposta.getInt("numero")); @@ -203,113 +188,75 @@ public class ProtocollazioneUtil { } catch (SystemException | PortalException e) { e.printStackTrace(); } - - return "Oggetto: " + className + " " + classPk; + return "Oggetto: " + className + StringPool.SPACE + classPk; } - public static List csvToOggettoProtocollo(java.io.File file) - throws FileNotFoundException, IOException, ParseException { + private static final String[] FILE_PROTOCOLLO_HEADER = { "id", "mittente/destinatario id", "ufficio id", "oggetto", + "numero fascicolo", "data inserimento", "tipo" }; - String[] FILE_PROTOCOLLO_HEADER = { "id", "mittente/destinatario id", "ufficio id", "oggetto", - "numero fascicolo", "data inserimento", "tipo" }; + private static List csvToOggettoProtocollo(byte[] bytes) throws IOException, ParseException { CSVFormat format = CSVFormat.EXCEL.withTrailingDelimiter().withHeader(FILE_PROTOCOLLO_HEADER) .withSkipHeaderRecord().withIgnoreEmptyLines().withIgnoreSurroundingSpaces(); - - Iterable records = format.parse(new FileReader(file)); - + Reader reader = new InputStreamReader(new ByteArrayInputStream(bytes)); + Iterable records = format.parse(reader); List listaOggettoProtocollo = new ArrayList<>(); - - for (CSVRecord csvRecord : records) { - - listaOggettoProtocollo.add(new OggettoProtocollo(csvRecord.get("id"), csvRecord - .get("mittente/destinatario id"), csvRecord.get("ufficio id"), csvRecord.get("oggetto"), - csvRecord.get("numero fascicolo"), csvRecord.get("data inserimento"), csvRecord - .get("tipo"))); - + reader.close(); + for (CSVRecord record : records) { + listaOggettoProtocollo.add(new OggettoProtocollo(record.get("id"), record.get("mittente/destinatario id"), + record.get("ufficio id"), record.get("oggetto"), record.get("numero fascicolo"), record + .get("data inserimento"), record.get("tipo"))); } - return listaOggettoProtocollo; } - public static List searchProtocolli(HttpServletRequest request, long companyId, - long userId) { - - List result = Collections.emptyList(); - - String ufficioIds = ""; + public static List searchProtocolli(HttpServletRequest request, long companyId, long userId) { + List result = Collections. emptyList(); + String ufficioIds = StringPool.BLANK; String anno = ParamUtil.getString(request, "annoRiferimento"); String numeroProtocollo = ParamUtil.getString(request, "numeroProtocollo"); int ufficioId = ParamUtil.getInteger(request, "ufficio"); - - if ((anno.equals("0000") || anno.equals(StringPool.BLANK)) - && (numeroProtocollo.equals(StringPool.BLANK))) { + if ((anno.equals("0000") || anno.equals(StringPool.BLANK)) && (numeroProtocollo.equals(StringPool.BLANK))) { return result; } - try { - if (ufficioId == -1) { - List organizationList = OrganizationLocalServiceUtil - .getUserOrganizations(userId); + List organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId); if (organizationList != null && !organizationList.isEmpty()) { List lista = new ArrayList(); - for (Organization org : organizationList) { lista.add(GetterUtil.getInteger(org.getGroupId())); } - ufficioIds = lista.toString().substring(1, lista.toString().length() - 1); } } else { - ufficioIds = "" + ufficioId; + ufficioIds = String.valueOf(ufficioId); } - - ufficioIds = ufficioIds.replaceAll(" ", ""); - - // String urlCSVService = PortletProps.get("protocollo.cvs.url"); + ufficioIds = ufficioIds.replaceAll(StringPool.SPACE, StringPool.BLANK); String urlCSVService = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); - String numeroFascicoloEntity = StringPool.BLANK; if (Validator.isNotNull(numeroProtocollo)) { anno = numeroProtocollo.substring(0, 4); - numeroFascicoloEntity = numeroProtocollo.substring(4, numeroProtocollo.length()) - .replaceFirst("^0+(?!$)", StringPool.BLANK); + numeroFascicoloEntity = numeroProtocollo.substring(4, numeroProtocollo.length()).replaceFirst( + "^0+(?!$)", StringPool.BLANK); } - String data = String.format("?anno=%s&ufficioIds=%s&numeroFascicolo=%s", anno, ufficioIds, numeroFascicoloEntity); - URL url = new URL(urlCSVService + data); - HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); - conn.setRequestMethod("POST"); - conn.setRequestProperty("Content-Type", "application/json"); - + conn.setRequestMethod(HttpMethods.POST); + conn.setRequestProperty(HttpHeaders.CONTENT_TYPE, ContentTypes.APPLICATION_JSON); if (conn.getResponseCode() != HttpURLConnection.HTTP_OK) { throw new RuntimeException("Failed : HTTP error code : " + conn.getResponseCode()); } - byte[] bytes = IOUtils.toByteArray(conn.getInputStream()); - - java.io.File tempFile = java.io.File.createTempFile("prefix", "suffix", null); - FileOutputStream fos = new FileOutputStream(tempFile); - fos.write(bytes); - - fos.flush(); - fos.close(); conn.disconnect(); - - return ProtocollazioneUtil.csvToOggettoProtocollo(tempFile); - + return csvToOggettoProtocollo(bytes); } catch (Exception e) { - } - return result; - } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/TempisticaConstants.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/TempisticaConstants.java index 24578633..9b95aebb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/TempisticaConstants.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/TempisticaConstants.java @@ -2,11 +2,10 @@ package it.tref.liferay.portos.bo.util; public class TempisticaConstants { - public static final String TIPO_PRATICA = "P"; - public static final String TIPO_INTEGRAZIONE = "I"; - - public static final int STATO_ATTIVA = 1; - public static final int STATO_IN_SCADENZA = 0; - public static final int STATO_SCADUTA = -1; + public static final String TIPO_PRATICA = "P"; + public static final String TIPO_INTEGRAZIONE = "I"; + public static final int STATO_ATTIVA = 1; + public static final int STATO_IN_SCADENZA = 0; + public static final int STATO_SCADUTA = -1; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/workflow/ControlloPraticaWorkflowHandler.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/workflow/ControlloPraticaWorkflowHandler.java index 84fe0be8..5ed1756a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/workflow/ControlloPraticaWorkflowHandler.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/workflow/ControlloPraticaWorkflowHandler.java @@ -13,8 +13,6 @@ import java.util.Map; 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.GetterUtil; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.BaseWorkflowHandler; @@ -22,15 +20,15 @@ import com.liferay.portal.service.ServiceContext; public class ControlloPraticaWorkflowHandler extends BaseWorkflowHandler { - private Log _log = LogFactoryUtil.getLog(ControlloPraticaWorkflowHandler.class); - @Override public String getClassName() { + return ControlloPratica.class.getName(); } @Override public String getType(Locale locale) { + return "controlloPratica"; } @@ -41,91 +39,20 @@ public class ControlloPraticaWorkflowHandler extends BaseWorkflowHandler { if (Validator.isNull(workflowContext)) { workflowContext = new HashMap(); } - - // ControlloPratica issueEvent = (ControlloPratica) model; - // - // - // Issue issue = - // IssueLocalServiceUtil.getIssue(issueEvent.getIssueId()); - // - // - // - // String host = IssueUtil.generateIssueLink(issue); - // // workflowContext.put(WorkflowConstants.ENI_ROLE_LIST, - // issueEvent.getRoleList()); - // - // Organization orgSubsi = - // OrganizationLocalServiceUtil.getOrganization(issue.getSubsidiaryOrgId()); - // Organization orgHq = - // OrganizationLocalServiceUtil.getOrganization(companyId, - // Constants.EMERGENCY_HQ_ORG); - // List orgHqSubsi = new ArrayList(); - // - // String subsidiaryCountry = (String) - // orgSubsi.getExpandoBridge().getAttribute(Constants.CUSTOM_FIELD_ORG_COUNTRY); - // EniGroupUtil.retriveHqbySubsidiary(companyId, orgHqSubsi, - // subsidiaryCountry); - // String orgList = orgHq.getOrganizationId() + "," + - // orgSubsi.getOrganizationId(); - // for (Organization organization : orgHqSubsi) { - // orgList += "," + organization.getOrganizationId(); - // } - // - // workflowContext.put(WorkflowConstants.ENI_ORG_LIST, orgList); - // - // workflowContext.put(WorkflowConstants.ENI_ISSUE_VERSION, - // issue.getIssueVersion()); - // workflowContext.put(WorkflowConstants.ENI_TRAINING, - // issue.getEmTraining()); - // workflowContext.put(WorkflowConstants.ENI_COUNTRY, - // issue.getCountry()); - // workflowContext.put(WorkflowConstants.ENI_SUBSIDIARY, - // OrganizationLocalServiceUtil.getOrganization(issue.getSubsidiaryOrgId()).getName()); - // workflowContext.put(WorkflowConstants.ENI_SITE_NAME, - // issue.getEmSite()); - // workflowContext.put(WorkflowConstants.ENI_SITE_DESCRIPTION, - // issue.getEmSiteDescription()); - // workflowContext.put(WorkflowConstants.ENI_SITE_URL, host); - // workflowContext.put(WorkflowConstants.ENI_ISSUE_DATE, - // DateUtil.getLocalTimeString(issue.getEmTimezone(), Locale.US, - // issue.getIssueDate())); - // workflowContext.put(WorkflowConstants.ENI_ISSUE_STATUS, - // issue.getEmStatus()); - // workflowContext.put(WorkflowConstants.ENI_ISSUE_GROUP_ID, - // issue.getGroupId()); - // workflowContext.put(WorkflowConstants.ENI_ISSUE_EM_LEVEL, - // issue.getEmLevel()); - // workflowContext.put(WorkflowConstants.ENI_FILE_ENTRY_ATTACHMENT_ID, - // issue.getFileEntryAttachmentId()); - // workflowContext.put(WorkflowConstants.ENI_FILE_ENTRY_ATTACHMENT_WELL_ID, - // issue.getFileEntryQuotedWellSketchId()); super.startWorkflowInstance(companyId, groupId, userId, classPK, model, workflowContext); } @Override public Object updateStatus(int status, Map workflowContext) throws PortalException, SystemException { - long userId = GetterUtil.getLong(workflowContext.get(WorkflowConstants.CONTEXT_USER_ID)); - long resourcePrimKey = GetterUtil.getLong(workflowContext - .get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)); - - ServiceContext serviceContext = (ServiceContext) workflowContext - .get(WorkflowConstants.CONTEXT_SERVICE_CONTEXT); + long userId = GetterUtil.getLong(workflowContext.get(WorkflowConstants.CONTEXT_USER_ID)); + long resourcePrimKey = GetterUtil.getLong(workflowContext.get(WorkflowConstants.CONTEXT_ENTRY_CLASS_PK)); + ServiceContext serviceContext = (ServiceContext) workflowContext.get(WorkflowConstants.CONTEXT_SERVICE_CONTEXT); // bug BO id=7 GESTIONE WORKFLOW VARIANTI List wfNewListVarianti = new ArrayList(); ControlloPratica cp = ControlloPraticaLocalServiceUtil.updateStatus(userId, resourcePrimKey, status, serviceContext, wfNewListVarianti); - // E richiamiamo il nostro metodo che farà update dello status sul - // nostro asset! - if (wfNewListVarianti.size() > 0) { - _log.info("wfNewListVarianti size >0" + wfNewListVarianti.size()); - - ControlloPraticaLocalServiceUtil.gestioneWFVarianti(wfNewListVarianti.get(0)); - } - return cp; - } - } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portal.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portal.properties index a2b84929..86e0e590 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portal.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portal.properties @@ -1,10 +1,7 @@ -# -#Fri Sep 01 17:17:51 CEST 2017 application.startup.events=\ it.tref.liferay.portos.bo.startup.RoleUpdateAction,\ it.tref.liferay.portos.bo.startup.KaleoListenereStartupAction,\ - it.tref.liferay.portos.bo.startup.CompanyExpandoStartupAction,\ - it.mwg.sismica.bo.startup.DatabaseUpdateAction + it.tref.liferay.portos.bo.startup.CompanyExpandoStartupAction #MODEL LISTENER value.object.listener.it.tref.liferay.portos.bo.model.DettPratica=it.tref.liferay.portos.bo.model.listener.DettPraticaModelListener @@ -12,12 +9,3 @@ value.object.listener.it.tref.liferay.portos.bo.model.Soggetto=it.tref.liferay.p value.object.listener.it.tref.liferay.portos.bo.model.DocPratica=it.tref.liferay.portos.bo.model.listener.DocPraticaModelListener value.object.listener.it.tref.liferay.portos.bo.model.IntPratica=it.tref.liferay.portos.bo.model.listener.IntPraticaModelListener value.object.listener.it.tref.liferay.portos.bo.model.ControlloPratica=it.tref.liferay.portos.bo.model.listener.ControlloPraticaModelListener - -# -# Input a class name that implements -# com.liferay.portal.security.membershippolicy.OrganizationMembershipPolicy. -# This class will be called whenever a user is added or removed from an -# organization or when a user is assigned or unassigned to a organization -# role or when a new organization is added or updated. -# -#membership.policy.organizations=it.tref.liferay.portos.bo.hook.CfOrganizationMembershipPolicy \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties index eab79b7f..26dad894 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/portlet.properties @@ -1,64 +1,2 @@ resource.actions.configs=resource-actions/default.xml - -# IRIS ## -geniocivile.iris.receiver.id = RTIRIS -geniocivile.iris.receiver.sys = SIL_IRIS_ITR - -geniocivile.iris.speseistruttoria.sender.id = RegioneToscana -geniocivile.iris.speseistruttoria.sender.sys = SIL_RTOSCANA_GC -geniocivile.iris.bolli.sender.id = RegioneToscana -#geniocivile.iris.bolli.sender.id = SPC/RegioneToscana -geniocivile.iris.bolli.sender.sys = SIL_E_BOLLO - -#geniocivile.iris.iuv.keystore.path = /resource/iris/keystore_iuv.p12 -#geniocivile.iris.iuv.keystore.password = p0rt0s -geniocivile.iris.iuv.sender.id = 01386030488 - -geniocivile.iris.mittente.id = RT_GENCIV -geniocivile.iris.mittente.descrizione = Genio Civile RT - -geniocivile.iris.speseistruttoria.tipopendenza = SPESE_GC -geniocivile.iris.speseistruttoria.descrizionecausale = Spese istruttoria Genio Civile -geniocivile.iris.bolli.tipopendenza = E_BOLLO -geniocivile.iris.bolli.descrizionecausale = Bolli Genio Civile - -#geniocivile.iris.bolli.iban = IT05N0200802800123456789012 -#geniocivile.iris.bolli.beneficiario = ALTRO BENEFICIARIO -#geniocivile.iris.spese.iban = IT05N0200802800123456789012 -#geniocivile.iris.spese.beneficiario = ALTRO BENEFICIARIO - -geniocivile.iris.bolli.riscossore.id = ADE -geniocivile.iris.bolli.riscossore.riferimento = BOLLI_GC - -geniocivile.iris.speseistruttoria.username = SIL_RTOSCANA_GC -#PRODUZIONE -geniocivile.iris.speseistruttoria.password = jsdf714t3 -#STAGING -#geniocivile.iris.speseistruttoria.password = ihr7snas - -geniocivile.iris.bolli.username = SIL_E_BOLLO -#PRODUZIONE -geniocivile.iris.bolli.password = Zui6(hR4 -#STAGING -#geniocivile.iris.bolli.password = kith6T(x - -geniocivile.iris.error.tipopagamento.notallowed = Tipologia Pagamento non supportata -geniocivile.iris.error.iuv.url = IUV service url not set -geniocivile.iris.error.iuv.falut = IUV Fault - -geniocivile.iris.email.destinatario = support.iris@tasgroup.it -geniocivile.iris.email.mittente = noreply-FE-PORTOS@regione.toscana.it -geniocivile.iris.email.oggetto = Notifica pendenza in corso -geniocivile.iris.email.corpo = La pendenza [$CODICE_PENDENZA$] con causale [$DESCRIZIONE_CAUSALE$] creata in data [$DATA_CREAZIONE_PENDENZA$] e associata a [$CODICE_FISCALE_PAGAMENTO$] \uFFFD in pending. - -#protocollo.cvs.url=http://localhost:9090/portos-protocollazione-service/v1/api-rest/export-protocolli protocollo.cvs.url=http://localhost:9080/portos-protocollazione-service/v1/api-rest/export-protocolli - -## Importer ## -portos.files.importer.callback.address=http://localhost:9080/portos-file-retriever-portlet/FileRetriever - -## SOLO PER STAGING ## -#portos.default.company=20404 - -## SOLO PER LOCALE ## -portos.default.company=20155 \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html index fc7a6c18..f545706c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/calcolista.html @@ -1,74 +1,74 @@ -

- DPR 380/2001, artt. 93 e 94-bis
- NTC D.M. 17.01.2018
- Legge 190/2012, art. 1, comma 9 lettera “e”
- Legge Regionale 1/2019, art. 36 comma 2
- D. Lgs. 101/2018 -

-

ASSEVERAZIONE DEL CALCOLISTA

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, calcolista, consapevole - delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: -

-
    -
  • - che il progetto strutturale esecutivo, allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme - tecniche per le costruzioni (D.M. 17.01.2018 e relativa circolare ministeriale dell’11.02.2019) in coerenza con il - progetto architettonico di cui alla richiesta del titolo abilitativo urbanistico, nel rispetto di eventuali - prescrizioni sismiche contenute negli strumenti di pianificazione urbanistica; -
  • -
  • - che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo - anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; -
  • -
  • - che l'intervento previsto nel progetto esecutivo strutturale si identifica, in relazione alle linee guida - contenute nell’allegato “A” del DDG 8/2020 emanato dal Dirigente del Dipartimento Regionale Tecnico, fra gli:
    - [{{rilevanti}}] interventi "rilevanti" nei riguardi della pubblica incolumità;
    -
    - [{{agalto}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località - sismiche ad alta sismicità (Zona 1) e a media sismicità (Zona 2, limitatamente a valori di peak ground - acceleration-PGA compresi fra 0,20g e 0,25g);
    - [{{complesse}}] nuove costruzioni che si discostino dalle usuali tipologie o che per la loro particolare - complessità strutturale richiedano più articolate calcolazioni e verifiche;
    - [{{strategico}}] interventi relativi ad edifici di interesse strategico e alle opere infrastrutturali la - cui funzionalità durante gli eventi sismici assume rilievo fondamentale per le finalità di protezione civile, - nonché relativi agli edifici e alle opere infrastrutturali che possono assumere rilevanza in relazione alle - conseguenze di un loro eventuale collasso;
    -
    - [{{nonrilevanti}}] interventi di “minore rilevanza” nei riguardi della pubblica incolumità;
    -
    - [{{agmedio}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località - sismiche a media sismicità (Zona 2, limitatamente a valori di peak ground acceleration-PGA compresi fra 0,15g e - 0,20g e zona 3);
    - [{{riparazioni}}] riparazioni e interventi locali sulle costruzioni esistenti;
    - [{{nuove}}] nuove costruzioni che non rientrano nella fattispecie di cui alla lettera a), n.2 del comma 1 - dell'art. 94-bis del DPR 380/2001;
    - [{{agricoli}}] nuove costruzioni appartenenti alla classe di costruzioni con presenza solo occasionale di - persone e edifici agricoli di cui al punto 2.4.2 del decreto del Ministro delle infrastrutture e dei Trasporti del - 17 gennaio 2018; -
    -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} -
  • -## -##lavoripubblici -
  • - ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state - regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
+

+ DPR 380/2001, artt. 93 e 94-bis
+ NTC D.M. 17.01.2018
+ Legge 190/2012, art. 1, comma 9 lettera “e”
+ Legge Regionale 1/2019, art. 36 comma 2
+ D. Lgs. 101/2018 +

+

ASSEVERAZIONE DEL CALCOLISTA

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, calcolista, consapevole + delle sanzioni civili e penali previste dalla normativa vigente a seguito di dichiarazioni mendaci, dichiara: +

+
    +
  • + che il progetto strutturale esecutivo, allegato alla denuncia dei lavori, è stato redatto nel rispetto delle norme + tecniche per le costruzioni (D.M. 17.01.2018 e relativa circolare ministeriale dell’11.02.2019) in coerenza con il + progetto architettonico di cui alla richiesta del titolo abilitativo urbanistico, nel rispetto di eventuali + prescrizioni sismiche contenute negli strumenti di pianificazione urbanistica; +
  • +
  • + che il progetto strutturale esecutivo possiede i requisiti di completezza indicata nelle NTC 2018, con riguardo + anche alle indagini specialistiche ritenute necessarie alla realizzazione dell'opera; +
  • +
  • + che l'intervento previsto nel progetto esecutivo strutturale si identifica, in relazione alle linee guida + contenute nell’allegato “A” del DDG 8/2020 emanato dal Dirigente del Dipartimento Regionale Tecnico, fra gli:
    + [{{rilevanti}}] interventi "rilevanti" nei riguardi della pubblica incolumità;
    +
    + [{{agalto}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località + sismiche ad alta sismicità (Zona 1) e a media sismicità (Zona 2, limitatamente a valori di peak ground + acceleration-PGA compresi fra 0,20g e 0,25g);
    + [{{complesse}}] nuove costruzioni che si discostino dalle usuali tipologie o che per la loro particolare + complessità strutturale richiedano più articolate calcolazioni e verifiche;
    + [{{strategico}}] interventi relativi ad edifici di interesse strategico e alle opere infrastrutturali la + cui funzionalità durante gli eventi sismici assume rilievo fondamentale per le finalità di protezione civile, + nonché relativi agli edifici e alle opere infrastrutturali che possono assumere rilevanza in relazione alle + conseguenze di un loro eventuale collasso;
    +
    + [{{nonrilevanti}}] interventi di “minore rilevanza” nei riguardi della pubblica incolumità;
    +
    + [{{agmedio}}] interventi di adeguamento o miglioramento sismico di costruzioni esistenti nelle località + sismiche a media sismicità (Zona 2, limitatamente a valori di peak ground acceleration-PGA compresi fra 0,15g e + 0,20g e zona 3);
    + [{{riparazioni}}] riparazioni e interventi locali sulle costruzioni esistenti;
    + [{{nuove}}] nuove costruzioni che non rientrano nella fattispecie di cui alla lettera a), n.2 del comma 1 + dell'art. 94-bis del DPR 380/2001;
    + [{{agricoli}}] nuove costruzioni appartenenti alla classe di costruzioni con presenza solo occasionale di + persone e edifici agricoli di cui al punto 2.4.2 del decreto del Ministro delle infrastrutture e dei Trasporti del + 17 gennaio 2018; +
    +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} +
  • +## +##lavoripubblici +
  • + ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state + regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html index 5745f0fa..a42eebfa 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/collaudatore.html @@ -1,57 +1,57 @@ -

-D.P.R. n. 380/2001, art. 93
-Legge n. 190/2012, art. 1 comma 9 lettera e, per dichiarazione di coniugio
-D. Lgs. N. 101/2018 -

-

DICHIARAZIONE / ASSEVERAZIONE DEL COLLAUDATORE DELLE STRUTTURE

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto di assumere - la qualità di persona esercente un servizio di pubblica necessità ai sensi degli artt. 359 e 481 del Codice Penale, - consapevole che le dichiarazioni false, la falsità degli atti e l’uso degli atti falsi comportano l’applicazione di - sanzioni penali previste dagli artt. 75 e 76 del D.P.R. n. 445/2000,
- preso atto della propria nomina a collaudatore delle strutture, ai sensi dell'art. 67 del D.P.R. 380/01; - dichiara, sotto la propria responsabilità: -

-
    -
  • - di accettare l'incarico; -
  • -
  • - di essere iscritto all'albo {{albo}} della provincia di {{albop}} al n° {{albon}} da più di dieci anni: -
  • -
  • - di non essere intervenuto in alcun modo nella progettazione impegnandosi a non partecipare alla direzione - dei lavori e all’esecuzione dell'opera; -
  • -
  • - di impegnarsi ad effettuare il collaudo delle strutture entro 60 giorni dalla comunicazione del direttore - dei lavori sull’avvenuta ultimazione delle strutture; -
  • -
-
    -
  • - ai sensi del cap. 9.1 del D.M 17.01.2018, di aver esaminato le autorizzazioni rese ai sensi - del Codice dei Beni Culturali e del Paesaggio (D.Lgs. n. 42/2004), il progetto dell'opera, - l'impostazione generale, la progettazione nei suoi aspetti strutturale e geotecnico, - gli schemi di calcolo e le azioni considerate, le indagini eseguite; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
-

- Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005 -

+

+D.P.R. n. 380/2001, art. 93
+Legge n. 190/2012, art. 1 comma 9 lettera e, per dichiarazione di coniugio
+D. Lgs. N. 101/2018 +

+

DICHIARAZIONE / ASSEVERAZIONE DEL COLLAUDATORE DELLE STRUTTURE

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto di assumere + la qualità di persona esercente un servizio di pubblica necessità ai sensi degli artt. 359 e 481 del Codice Penale, + consapevole che le dichiarazioni false, la falsità degli atti e l’uso degli atti falsi comportano l’applicazione di + sanzioni penali previste dagli artt. 75 e 76 del D.P.R. n. 445/2000,
+ preso atto della propria nomina a collaudatore delle strutture, ai sensi dell'art. 67 del D.P.R. 380/01; + dichiara, sotto la propria responsabilità: +

+
    +
  • + di accettare l'incarico; +
  • +
  • + di essere iscritto all'albo {{albo}} della provincia di {{albop}} al n° {{albon}} da più di dieci anni: +
  • +
  • + di non essere intervenuto in alcun modo nella progettazione impegnandosi a non partecipare alla direzione + dei lavori e all’esecuzione dell'opera; +
  • +
  • + di impegnarsi ad effettuare il collaudo delle strutture entro 60 giorni dalla comunicazione del direttore + dei lavori sull’avvenuta ultimazione delle strutture; +
  • +
+
    +
  • + ai sensi del cap. 9.1 del D.M 17.01.2018, di aver esaminato le autorizzazioni rese ai sensi + del Codice dei Beni Culturali e del Paesaggio (D.Lgs. n. 42/2004), il progetto dell'opera, + l'impostazione generale, la progettazione nei suoi aspetti strutturale e geotecnico, + gli schemi di calcolo e le azioni considerate, le indagini eseguite; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
+

+ Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005 +

diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html index e04cb39c..57854355 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/costruttore.html @@ -1,45 +1,45 @@ -

-D.P.R. n. 380/2001, art. 93
-Legge n. 190/2012, art. 1 comma 9 lettera e, per dichiarazione di coniugio
-D. Lgs. N. 101/2018 -

-

DICHIARAZIONE / ASSEVERAZIONE DELL'IMPRESA

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto di assumere - la qualità di persona esercente un servizio di pubblica necessità ai sensi degli artt. 359 e 481 del Codice Penale, - consapevole che le dichiarazioni false, la falsità degli atti e l’uso degli atti falsi comportano l’applicazione di - sanzioni penali previste dagli artt. 75 e 76 del D.P.R. n. 445/2000,
- preso atto dell'incarico conferito per la realizzazione dei lavori; dichiara, sotto la propria responsabilità: -

-
    -
  • - di accettare l'incarico; -
  • -
  • - di aver preso visione del progetto; -
  • -
  • - di impegnarsi a realizzare l’opera così come è descritta nel progetto, - a rispettare le indicazioni del direttore dei lavori, le prescrizioni inerenti alla qualità dei materiali impiegati - e alla corretta posa in opera degli elementi prefabbricati, nel caso di loro utilizzo; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento.;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
-

- Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005 +

+D.P.R. n. 380/2001, art. 93
+Legge n. 190/2012, art. 1 comma 9 lettera e, per dichiarazione di coniugio
+D. Lgs. N. 101/2018 +

+

DICHIARAZIONE / ASSEVERAZIONE DELL'IMPRESA

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto di assumere + la qualità di persona esercente un servizio di pubblica necessità ai sensi degli artt. 359 e 481 del Codice Penale, + consapevole che le dichiarazioni false, la falsità degli atti e l’uso degli atti falsi comportano l’applicazione di + sanzioni penali previste dagli artt. 75 e 76 del D.P.R. n. 445/2000,
+ preso atto dell'incarico conferito per la realizzazione dei lavori; dichiara, sotto la propria responsabilità: +

+
    +
  • + di accettare l'incarico; +
  • +
  • + di aver preso visione del progetto; +
  • +
  • + di impegnarsi a realizzare l’opera così come è descritta nel progetto, + a rispettare le indicazioni del direttore dei lavori, le prescrizioni inerenti alla qualità dei materiali impiegati + e alla corretta posa in opera degli elementi prefabbricati, nel caso di loro utilizzo; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento.;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
+

+ Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005

\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html index b6fa7536..15e5f294 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/geologo.html @@ -1,51 +1,51 @@ -

- DPR 380/2001, Capitolo 6
- Legge 190/2012, art. 1, comma 9 lettera “e”
- Legge Regionale 1/2019, art. 36 comma 2
- D. Lgs. 101/2018 -

-

ASSEVERAZIONE DEL GEOLOGO

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, tecnico incaricato per l’esecuzione delle indagini per la - caratterizzazione e la modellazione geologica del sito, consapevole delle sanzioni civili e penali previste dalla - normativa vigente a seguito di dichiarazioni mendaci, dichiara: -

-
    -
  • - che la caratterizzazione e la modellazione geologica del sito relativa al progetto allegato alla denuncia dei - lavori è stata eseguita nel rispetto delle norme tecniche per le costruzioni e la relazione allegata possiede i - requisiti di completezza specificata nelle NTC 2018, paragrafo 6.2.1; -
  • -
  • - che l’opera prevista in progetto non è in contrasto con i vincoli di natura geologica gravanti sull’area di sedime - della stessa, con particolare riguardo alle norme di attuazione di cui al Piano Stralcio per l’Assetto - Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera e - specificatamente:
    - [{{rischio}}] l’intervento ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – - R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015;
    - [{{!rischio}}] l’intervento non ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – R3 – - P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} -
  • -## -##lavoripubblici -
  • - ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state - regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
+

+ DPR 380/2001, Capitolo 6
+ Legge 190/2012, art. 1, comma 9 lettera “e”
+ Legge Regionale 1/2019, art. 36 comma 2
+ D. Lgs. 101/2018 +

+

ASSEVERAZIONE DEL GEOLOGO

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, tecnico incaricato per l’esecuzione delle indagini per la + caratterizzazione e la modellazione geologica del sito, consapevole delle sanzioni civili e penali previste dalla + normativa vigente a seguito di dichiarazioni mendaci, dichiara: +

+
    +
  • + che la caratterizzazione e la modellazione geologica del sito relativa al progetto allegato alla denuncia dei + lavori è stata eseguita nel rispetto delle norme tecniche per le costruzioni e la relazione allegata possiede i + requisiti di completezza specificata nelle NTC 2018, paragrafo 6.2.1; +
  • +
  • + che l’opera prevista in progetto non è in contrasto con i vincoli di natura geologica gravanti sull’area di sedime + della stessa, con particolare riguardo alle norme di attuazione di cui al Piano Stralcio per l’Assetto + Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera e + specificatamente:
    + [{{rischio}}] l’intervento ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – + R3 – P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015;
    + [{{!rischio}}] l’intervento non ricade in zona ove è previsto una pericolosità o un rischio elevato o molto elevato R4 – R3 – + P4 – P3 o nelle relative fasce di rispetto di cui al DPRS 15.04.2015; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} +
  • +## +##lavoripubblici +
  • + ai sensi dell'art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico sono state + regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html index cd9bb3d0..80480680 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/progettista_architettonico.html @@ -1,80 +1,80 @@ -

-D.P.R. n. 380/2001, art. 93
-Legge n. 190/2012, art. 1 comma 9 lettera e, per dichiarazione di coniugio
-Legge Regionale n. 1/2019, art. 36 comma 2
-D. Lgs. n. 101/2018 -

-

DICHIARAZIONE / ASSEVERAZIONE DEL PROGETTISTA E/O PROGETTISTA ARCHITETTONICO

-

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

-

- Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto di assumere - la qualità di persona esercente un servizio di pubblica necessità ai sensi degli artt. 359 e 481 del Codice Penale, - consapevole che le dichiarazioni false, la falsità degli atti e l’uso degli atti falsi comportano l’applicazione di - sanzioni penali previste dagli artt. 75 e 76 del D.P.R. n. 445/2000,
- n.q. di progettista e/o progettista architettonico, sotto la propria responsabilità, dichiara: -

-
    -
  • - che il progetto è stato redatto nel rispetto delle norme del Codice dei Beni Culturali - e del Paesaggio (D.Lgs. n. 42/2004 e ss.mm.ii.) -
  • -
  • - che, nel caso di progetto architettonico, il progetto allegato, è stato redatto nel rispetto delle norme - tecniche per le costruzioni e gli elaborati progettuali possiedono i requisiti di completezza specificata; -
  • -
  • - che le opere previste in progetto, qualora trattasi di interventi su fabbricato esistente, ricadono su fabbricato - e sue pertinenze edilizie in possesso dei titoli abilitativi di cui - al titolo II del DPR n. 380/2001, recepito nella Regione Siciliana con la L.R. 16/2016; -
  • -
  • - che, qualora si tratti di lavori da realizzare su lotto di terreno, tutti gli interventi precedentemente - realizzati su di esso sono stati eseguiti nel rispetto nel rispetto delle norme del Codice dei Beni Culturali - e del Paesaggio (D.Lgs. n. 42/2004 e ss.mm.ii.) e, se necessario, sono in possesso dei titoli abilitativi - di cui al Titolo II del DPR n. 380/2001, recepito nella Regione Siciliana con la L.R. 16/2016; -
  • -
  • - che l’opera prevista in progetto non è in contrasto con i vincoli gravanti sull’area di sedime - della stessa ed in particolare è stata progettata nel rispetto delle - seguenti disposizioni di legge: -
      -
    • Codice dei Beni Culturali e del Paesaggio (D.Lgs. n. 42/2004 e ss.mm.ii.);
    • -
    • art. 13 Legge n. 64/74 (compatibilità geomorfologia);
    • -
    • norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera;
    • -
    • art.15 della L.R. n. 78/76 (distanza dalla battigia, dai laghi, dai boschi);
    • -
    • art. 93 e seguenti del Testo Unico n. 523/1904 (distanza dai corsi d’acqua);
    • -
    • normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime;
    • -
    -
  • -
-
    -
  • - che l'importo dei diritti fissi versati dal committente ai sensi dell'art. 37, comma 1, della L.R. n. 20/2003, - art. 37 è congruo in relazione al tipo di intervento ed al volume dell'opera; -
  • -##anteprima -
  • - ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    - [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del - convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    - [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti - dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} -
  • -## -##lavoripubblici -
  • - ai sensi dell’art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico - sono state regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; -
  • -## -
  • - di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le - modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di - cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati - personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. -
  • -
-

- Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005 -

- +

+D.P.R. n. 380/2001, art. 93
+Legge n. 190/2012, art. 1 comma 9 lettera e, per dichiarazione di coniugio
+Legge Regionale n. 1/2019, art. 36 comma 2
+D. Lgs. n. 101/2018 +

+

DICHIARAZIONE / ASSEVERAZIONE DEL PROGETTISTA E/O PROGETTISTA ARCHITETTONICO

+

(resa ai sensi del D.P.R. n° 445 del 28.12.2000 e ss.mm.ii.)

+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, preso atto di assumere + la qualità di persona esercente un servizio di pubblica necessità ai sensi degli artt. 359 e 481 del Codice Penale, + consapevole che le dichiarazioni false, la falsità degli atti e l’uso degli atti falsi comportano l’applicazione di + sanzioni penali previste dagli artt. 75 e 76 del D.P.R. n. 445/2000,
+ n.q. di progettista e/o progettista architettonico, sotto la propria responsabilità, dichiara: +

+
    +
  • + che il progetto è stato redatto nel rispetto delle norme del Codice dei Beni Culturali + e del Paesaggio (D.Lgs. n. 42/2004 e ss.mm.ii.) +
  • +
  • + che, nel caso di progetto architettonico, il progetto allegato, è stato redatto nel rispetto delle norme + tecniche per le costruzioni e gli elaborati progettuali possiedono i requisiti di completezza specificata; +
  • +
  • + che le opere previste in progetto, qualora trattasi di interventi su fabbricato esistente, ricadono su fabbricato + e sue pertinenze edilizie in possesso dei titoli abilitativi di cui + al titolo II del DPR n. 380/2001, recepito nella Regione Siciliana con la L.R. 16/2016; +
  • +
  • + che, qualora si tratti di lavori da realizzare su lotto di terreno, tutti gli interventi precedentemente + realizzati su di esso sono stati eseguiti nel rispetto delle norme del Codice dei Beni Culturali + e del Paesaggio (D.Lgs. n. 42/2004 e ss.mm.ii.) e, se necessario, sono in possesso dei titoli abilitativi + di cui al Titolo II del DPR n. 380/2001, recepito nella Regione Siciliana con la L.R. 16/2016; +
  • +
  • + che l’opera prevista in progetto non è in contrasto con i vincoli gravanti sull’area di sedime + della stessa ed in particolare è stata progettata nel rispetto delle + seguenti disposizioni di legge: +
      +
    • Codice dei Beni Culturali e del Paesaggio (D.Lgs. n. 42/2004 e ss.mm.ii.);
    • +
    • art. 13 Legge n. 64/74 (compatibilità geomorfologia);
    • +
    • norme di attuazione di cui al Piano Stralcio per l’Assetto Idrogeologico (PAI) del Bacino Idrografico, e dei relativi aggiornamenti, nel quale insiste l’opera;
    • +
    • art.15 della L.R. n. 78/76 (distanza dalla battigia, dai laghi, dai boschi);
    • +
    • art. 93 e seguenti del Testo Unico n. 523/1904 (distanza dai corsi d’acqua);
    • +
    • normativa relativa ad eventuali altri vincoli che gravano sull’area di sedime;
    • +
    +
  • +
+
    +
  • + che l'importo dei diritti fissi versati dal committente ai sensi dell'art. 7 e ss.mm. della L.R. n. 17/2004 + è congruo in relazione al tipo di intervento ed al volume dell'opera; +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} +
  • +## +##lavoripubblici +
  • + ai sensi dell’art. 36, comma 2, della L.R. 1/2019, che le spettanze correlate al proprio incarico + sono state regolarmente liquidate dal committente secondo quanto concordato in sede di affidamento dell'incarico; +
  • +## +
  • + di essere informato, ai sensi dell’art. 13 del Regolamento UE 2016/679, recepito con D.Lgs. 101/2018, circa le + modalità di trattamento e l'utilizzo dei dati personali raccolti e di acconsentire, ai sensi e per gli effetti di + cui all’art. 7 e ss. del sopraccitato Regolamento, al trattamento, anche con strumenti informatici, dei dati + personali con le modalità e per le finalità connesse al procedimento cui la presente è riferita. +
  • +
+

+ Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005 +

+ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/titolare_digitale.html b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/titolare_digitale.html new file mode 100644 index 00000000..565f74ba --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/resource/asseverazioni/titolare_digitale.html @@ -0,0 +1,40 @@ +
+

DICHIARAZIONE/ASSEVERAZIONE SOSTITUTIVA DELL’ATTO DI NOTORIETÀ DEL PROCURATORE

+

(resa ai sensi e per gli effetti dell’art. 47 del D.P.R. 445/2000)

+
+

+ Il sottoscritto {{nome}} {{cognome}}, C.F. {{codicefiscale}}, titolare digitale, che sottoscrive con + firma elettronica avanzata la copia informatica del presente documento, consapevole delle responsabilità penali per + le ipotesi di falsità in atti e dichiarazioni mendaci, di cui all’art. 76 del D.P.R. 445/2000 ed all’art. 19, co. + 6, della Legge 241/1990 +

+

DICHIARA

+
    +
  • + di agire in qualità di procuratore speciale in rappresentanza dei soggetti che hanno apposto la propria firma + autografa/digitale nel documento di delega alla presentazione telematica della richiesta di autorizzazione ai + sensi del codice dei beni culturali, nonché ai sensi dell’art. 46, co. 1, lett. u), del D.P.R. 445/2000, per + l’espletamento degli adempimenti amministrativi connessi alla pratica in oggetto; +
  • +
+


Dichiara ed ASSEVERA INOLTRE

+
    +
  • + in qualità di incaricato per l’adempimento agli obblighi di cui al D. Lgs. n. 231/2007, di avere verificato + l’autenticità dei dati, delle informazioni e delle generalità riportati nel portale nonché di avere + sottoscritto con la funzione di firma elettronica avanzata disponibile sul portale gli atti e i documenti + obbligatori richiesti ai fini dell'istruttoria dell'istanza (allegati). +
  • +##anteprima +
  • + ai sensi dell'art. 1, comma 9 lettera “e”, della legge n° 190/2012:
    + [{{!coniugio}}] di non trovarsi in rapporti di coniugio, parentela o affinità, del coniuge o del + convivente, entro il 2° grado, con i dirigenti e i dipendenti dell'Ufficio deputato alla trattazione del procedimento;
    + [{{coniugio}}] di trovarsi in rapporti di coniugio, parentela o affinità entro il 2° grado con i seguenti + dipendenti dell'Ufficio deputato alla trattazione del procedimento: {{relazioni}} +
  • +## +
+

+
Confermando, si sottoscrive ai sensi del D.Lgs. 82/2005 +

\ No newline at end of file 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 296ca100..b906d2fa 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=2901 - build.date=1614956751482 + build.number=3148 + build.date=1621869003568 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/edit_allegato_manuale.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/edit_allegato_manuale.jsp index 8dbfa740..b9ca9332 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/edit_allegato_manuale.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/edit_allegato_manuale.jsp @@ -1,41 +1,37 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> <%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%> -<%@ include file="/html/doc_aggiuntiva/init.jsp" %> - +<%@include file="/html/doc_aggiuntiva/init.jsp"%> <% - long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); - long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); - String formName = "fmAllegatoManuale"; - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - long territorioGroupId = territorio.getGroupId(); +long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); +long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); +String formName = "fmAllegatoManuale"; +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); +Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); +long territorioGroupId = territorio.getGroupId(); %> - - - + - - - + + + -
-
+
- +
-
- +
+ - +
@@ -46,21 +42,17 @@
- - window.parent.Liferay.fire('allegati_manuali-open'); + window.parent.Liferay.fire('allegati_manuali-open'); - - - - +
- +
-
\ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/init.jsp index 505d90c5..340337b8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/init.jsp @@ -1,2 +1,2 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/html/init.jsp" %> \ No newline at end of file +<%@include file="/html/init.jsp"%> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp index 1e23f4a1..1a4e1022 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/allegati_manuali/view.jsp @@ -1,195 +1,170 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> -<%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%> -<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> +<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> -<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> -<%@ include file="/html/allegati_manuali/init.jsp" %> - +<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> +<%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> +<%@include file="/html/allegati_manuali/init.jsp"%> <% - long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); - long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - long territorioGroupId = territorio.getGroupId(); +long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); +long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); +Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); +long territorioGroupId = territorio.getGroupId(); %> - - - +
-
- - - - - +
+ + + + + -
- - - - - + - + - + - -
- - - + + results="<%= AllegatoManualeLocalServiceUtil.findByIntPratica(intPraticaId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null) %>" + total="<%= AllegatoManualeLocalServiceUtil.countByIntPratica(intPraticaId) %>"> - - + <% - String title = StringPool.BLANK; - if(Validator.isNotNull(allegatoManuale.getFileEntryId())){ - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId()); - title = fileEntry.getTitle(); - } + String title = StringPool.BLANK; + if (Validator.isNotNull(allegatoManuale.getFileEntryId())) { + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId()); + title = fileEntry.getTitle(); + } %> - - + - - + - - + <% - if(Validator.isNotNull(allegatoManuale.getFileEntryId())){ - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId()); + if (Validator.isNotNull(allegatoManuale.getFileEntryId())) { + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(allegatoManuale.getFileEntryId()); %> - - + + - +
  • - +
  • <% - String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); + String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), + themeDisplay, "&download=true"); %>
  • - +
  • - <% - Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId()); + Avviso avviso = AvvisoLocalServiceUtil.fetchAvviso(allegatoManuale.getAvvisoId()); %> - +
  • - + - - - - A.one('<%="#"+renderResponse.getNamespace()+"delete_"+allegatoManuale.getAllegatoManualeId() %>').on( - 'click', - function(event) { - event.preventDefault(); - A.io.request( - '<%=deleteUrl%>', - { - on: { - failure: function() { - alert('impossibile rimuovere il documento!'); - }, - success: function(event, id, obj) { - window.parent.Liferay.fire('allegati_manuali-open'); - Liferay.Portlet.refresh("#p_p_id"); - } - } - } - ); + + + A.one('<%= "#" + renderResponse.getNamespace() + "delete_" + + allegatoManuale.getAllegatoManualeId() %>').on( + 'click', + function(event) { + event.preventDefault(); + A.io.request('<%= deleteUrl %>', { + on: { + failure: function() { + alert('impossibile rimuovere il documento!'); + }, + success: function(event, id, obj) { + window.parent.Liferay.fire('allegati_manuali-open'); + Liferay.Portlet.refresh("#p_p_id"); + } } - ); - + }); + } + ); +
  • <% - } else if(Validator.isNull(allegatoManuale.getFileEntryId()) && Validator.isNotNull(allegatoManuale.getOldFileEntryId())){ - %> - - - - - - <% - } + } %>
    -
    - - +
    -
    Liferay.fire('allegati_manuali-ready'); - - - - - - +
    - +
    -
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/init.jsp index 02059103..5d4e76c9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/init.jsp @@ -71,8 +71,5 @@ Format dateFormatDate = FastDateFormatFactoryUtil.getDate(locale, timeZone); Format dateFormatDateTime = FastDateFormatFactoryUtil.getDateTime(locale, timeZone); WindowState windowState = renderRequest.getWindowState(); PortletMode portletMode = renderRequest.getPortletMode(); - String currentURL = PortalUtil.getCurrentURL(liferayPortletRequest); - - %> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp index d6427582..cd09fa9d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp @@ -1,13 +1,11 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/amministrazione/init.jsp" %> - <% long comuneId = ParamUtil.getLong(renderRequest, "comuneId"); -Comune comune = (Comune)request.getAttribute(it.tref.liferay.portos.bo.util.WebKeys.PORTOS_AMM_COMUNE); - +Comune comune = (Comune) request.getAttribute(it.tref.liferay.portos.bo.shared.util.WebKeys.PORTOS_AMM_COMUNE); String title = null; -if(comune == null) { - if(comuneId > 0) { +if (comune == null) { + if (comuneId > 0) { comune = ComuneLocalServiceUtil.getComune(comuneId); title = comune.getDenominazione(); } else { @@ -17,14 +15,12 @@ if(comune == null) { } else { title = comune.getDenominazione(); } - String codiceProvinciaValue = StringPool.BLANK; -if(Validator.isNotNull(comune.getCodiceProvincia())) { +if (Validator.isNotNull(comune.getCodiceProvincia())) { Provincia item = ProvinciaLocalServiceUtil.findByC_C(company.getCompanyId(), comune.getCodiceProvincia()); codiceProvinciaValue = HtmlUtil.escape(item.getProvincia()); } %> - @@ -33,40 +29,27 @@ if(Validator.isNotNull(comune.getCodiceProvincia())) { - - - - + - - + + - - <%=comune.getCodiceComune() %> + <%= comune.getCodiceComune() %> - - + - + - + @@ -75,9 +58,8 @@ if(Validator.isNotNull(comune.getCodiceProvincia())) { - - - + + @@ -90,7 +72,7 @@ A.one('#selectProvinciaLink').on('click', function(event) { }, id: 'selectProvincia', title: '', - uri: '<%=selectProvinciaURL %>' + uri: '<%= selectProvinciaURL %>' }, function(event) { A.one('#codiceProvincia').val(event.codiceprovincia); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/import.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/import.jsp index 7ba553e0..fe865a00 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/import.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/import.jsp @@ -1,38 +1,30 @@ <%-- LIFERAY_CRUD_GENERATOR_DO_NOT_GENERATE --%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@ include file="/html/amministrazione/init.jsp" %> - - -
    + arguments="<%= new String[] { StringUtil.merge(Constants.AMMINISTRAZIONE_CSV_HEADERS_COMUNI, + StringPool.COMMA_AND_SPACE) } %>" + key="csv-file-headers-format-must-be-x" translateArguments="false" />
    - - - - + + 'csv' - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/search.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/search.jsp index 5b03c171..ee1da622 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/search.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/search.jsp @@ -1,13 +1,8 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@ include file="/html/amministrazione/init.jsp" %> - <% SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); DisplayTerms displayTerms = (DisplayTerms) searchContainer.getDisplayTerms(); %> - - \ No newline at end of file + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/select_comune.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/select_comune.jsp index 2a33157a..5fc75b03 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/select_comune.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/select_comune.jsp @@ -1,20 +1,16 @@ <%-- LIFERAY_CRUD_GENERATOR_DO_NOT_GENERATE --%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@ include file="/html/amministrazione/init.jsp" %> - <% String eventName = ParamUtil.getString(request, "eventName", liferayPortletResponse.getNamespace() + "selectComune"); %> - - + results="<%= ComuneLocalServiceUtil.findByCompanyId(company.getCompanyId(), QueryUtil.ALL_POS, + QueryUtil.ALL_POS) %>" /> @@ -32,22 +28,18 @@ String eventName = ParamUtil.getString(request, "eventName", liferayPortletRespo - - var Util = Liferay.Util; - A.one('#selectEntryFm').delegate( 'click', function(event) { var result = Util.getAttributes(event.currentTarget, 'data-'); Util.getOpener().Liferay.fire('<%= HtmlUtil.escapeJS(eventName) %>', result); - Util.getWindow().hide(); }, - '.selector-button' + '.selector-button', ); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp index 2dba5845..398bab60 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp @@ -1,17 +1,13 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/amministrazione/init.jsp" %> - - <% String orderByCol = ParamUtil.getString(renderRequest, SearchContainer.DEFAULT_ORDER_BY_COL_PARAM, "denominazione"); String orderByType = ParamUtil.getString(renderRequest, SearchContainer.DEFAULT_ORDER_BY_TYPE_PARAM, "asc"); -OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create(ComuneImpl.TABLE_NAME, orderByCol, "asc".equals(orderByType)); - +OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create(ComuneImpl.TABLE_NAME, orderByCol, + "asc".equals(orderByType)); DisplayTerms displayTerms = new DisplayTerms(renderRequest); %> - - @@ -25,68 +21,75 @@ DisplayTerms displayTerms = new DisplayTerms(renderRequest); - - - + - - <% String taglibOnClick = renderResponse.getNamespace() + "deleteComunes()"; %> - + <% + String taglibOnClick = renderResponse.getNamespace() + "deleteComunes()"; + %> + - <% - if(Validator.isNull(displayTerms.getKeywords())) { - results = ComuneLocalServiceUtil.findByCompanyId(company.getCompanyId(), searchContainer.getStart(), searchContainer.getEnd(), orderByComparator); + if (Validator.isNull(displayTerms.getKeywords())) { + results = ComuneLocalServiceUtil.findByCompanyId(company.getCompanyId(), searchContainer.getStart(), + searchContainer.getEnd(), orderByComparator); total = ComuneLocalServiceUtil.countByCompanyId(company.getCompanyId()); } else { - results = ComuneLocalServiceUtil.findByKeywords(company.getCompanyId(), displayTerms.getKeywords(), searchContainer.getStart(), searchContainer.getEnd(), orderByComparator); + results = ComuneLocalServiceUtil.findByKeywords(company.getCompanyId(), displayTerms.getKeywords(), + searchContainer.getStart(), searchContainer.getEnd(), orderByComparator); total = (int) ComuneLocalServiceUtil.countByKeywords(company.getCompanyId(), displayTerms.getKeywords()); } pageContext.setAttribute("results", results); pageContext.setAttribute("total", total); %> - - + - + - - - - - - - - - + + + + + + + + - - -Liferay.Util.toggleSearchContainerButton('#deleteAll', '#<%= searchContainerReference.getId("searchContainer") %>SearchContainer', document.fm, 'allRowIds'); - +Liferay.Util.toggleSearchContainerButton('#deleteAll', + '#<%= searchContainerReference.getId("searchContainer") %>SearchContainer', + document.fm, 'allRowIds'); Liferay.provide( window, 'deleteComunes', function(cmd) { - if (confirm('<%= UnicodeLanguageUtil.get(pageContext, "are-you-sure-you-want-to-permanently-delete-the-selected-comunes") %>')) { + if (confirm('<%= UnicodeLanguageUtil.get(pageContext, + "are-you-sure-you-want-to-permanently-delete-the-selected-comunes") %>')) { document.fm.method = "post"; - document.fm.deleteComuneIds.value = Liferay.Util.listCheckedExcept(document.fm, 'allRowIds'); - + document.fm.deleteComuneIds.value = + Liferay.Util.listCheckedExcept(document.fm, 'allRowIds'); submitForm(document.fm, ""); } }, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view_buttons.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view_buttons.jsp index 0d19ed7a..fcba0000 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view_buttons.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view_buttons.jsp @@ -1,29 +1,23 @@ <%-- LIFERAY_CRUD_GENERATOR_DO_NOT_GENERATE --%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@ include file="/html/amministrazione/init.jsp" %> - <% -ResultRow row = (ResultRow)request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); -Comune comune = (Comune)row.getObject(); +ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); +Comune comune = (Comune) row.getObject(); %> - - - - - - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/parametri/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/parametri/view.jsp index f0bc524a..49efca0d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/parametri/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/parametri/view.jsp @@ -1,263 +1,121 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%> +<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> +<%@page import="com.liferay.portlet.documentlibrary.model.DLFolder"%> +<%@page import="com.liferay.portlet.documentlibrary.model.DLFolderConstants"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil"%> -<%@page import="com.liferay.portlet.documentlibrary.model.DLFolder"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil"%> -<%@ include file="/html/init.jsp"%> -<%@page import="com.liferay.portlet.documentlibrary.model.DLFolderConstants"%> -<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> -<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> -<%@page import="com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryUtil"%> -<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> -<%@page import="com.liferay.portal.kernel.util.CalendarFactoryUtil"%> - -<%@page import="java.util.Collection"%> -<%@page import="java.util.Calendar"%> - +<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%> <%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%> - +<%@page import="java.util.Collection"%> +<%@ include file="/html/init.jsp"%> <% - long companyId = company.getCompanyId(); - String tabs1 = "parametri"; - String redirect = "/html/amministrazione/tabs/view.jps"; - - String schedulerVersioning = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.SCHEDULER_VERSIONING); - String schedulerGeneraDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); - String schedulerFirmaDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO); - String schedulerInvioDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO); - String schedulerIris = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.SCHEDULER_IRIS); - - boolean schedulerVersioningBoolean = Boolean.parseBoolean(schedulerVersioning); - boolean schedulerGeneraDocumentoBoolean = Boolean.parseBoolean(schedulerGeneraDocumento); - boolean schedulerFirmaDocumentoBoolean = Boolean.parseBoolean(schedulerFirmaDocumento); - boolean schedulerInvioDocumentoBoolean = Boolean.parseBoolean(schedulerInvioDocumento); - boolean schedulerIrisBoolean = Boolean.parseBoolean(schedulerIris); - - String irisVerificaPagamentiURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.IRIS_VERIFICA_PAGAMENTI_URL); - - String protocollazioneServiceURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL); - - String protocollazioneExportURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); - - String protocollazioneImportURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL); - - String irisComunicazioniDebitorieURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.IRIS_COMUNICAZIONI_DEBITORIE_URL); - - String irisGenerazioneIUVURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.IRIS_GENERAZIONE_IUV_URL); - - String importobollo = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.IMPORTO_BOLLO); - - int dayOfWeekSorteggio = -1; - String dayOfWeekSorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.DAY_OF_WEEK_SORTEGGIO); - if (Validator.isNotNull(dayOfWeekSorteggioString)) { - dayOfWeekSorteggio = Integer.parseInt(dayOfWeekSorteggioString); - } - - String hourOfDaySorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO); - if (Validator.isNull(hourOfDaySorteggioString)) { - hourOfDaySorteggioString = LanguageUtil.get(pageContext, - ConfigurazioneConstants.HOUR_OF_DAY_SORTEGGIO_DEFAULT); - } - int hourOfDaySorteggio = Integer.parseInt(hourOfDaySorteggioString); - - int dayOfWeekPubblicazione = -1; - String dayOfWeekPubblicazioneString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString( - companyId, ConfigurazioneConstants.DAY_OF_WEEK_PUBBLICAZIONE); - if (Validator.isNotNull(dayOfWeekPubblicazioneString)) { - dayOfWeekPubblicazione = Integer.parseInt(dayOfWeekPubblicazioneString); - } - - int startDaySorteggio = -1; - String startDaySorteggioString = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(companyId, - ConfigurazioneConstants.START_DAY_SORTEGGIO); - if (Validator.isNotNull(startDaySorteggioString)) { - startDaySorteggio = Integer.parseInt(startDaySorteggioString); - } +long companyId = company.getCompanyId(); +String tabs1 = "parametri"; +String redirect = "/html/amministrazione/tabs/view.jps"; +String schedulerVersioning = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, + ConfigurazioneConstants.SCHEDULER_VERSIONING); +String schedulerGeneraDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, + ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO); +String schedulerFirmaDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, + ConfigurazioneConstants.SCHEDULER_FIRMA_DOCUMENTO); +String schedulerInvioDocumento = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, + ConfigurazioneConstants.SCHEDULER_INVIO_DOCUMENTO); +boolean schedulerVersioningBoolean = Boolean.parseBoolean(schedulerVersioning); +boolean schedulerGeneraDocumentoBoolean = Boolean.parseBoolean(schedulerGeneraDocumento); +boolean schedulerFirmaDocumentoBoolean = Boolean.parseBoolean(schedulerFirmaDocumento); +boolean schedulerInvioDocumentoBoolean = Boolean.parseBoolean(schedulerInvioDocumento); +String protocollazioneServiceURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, + ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_URL); +String protocollazioneExportURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, + ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_EXPORT_URL); +String protocollazioneImportURL = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, + ConfigurazioneConstants.PROTOCOLLAZIONE_SERVICE_IMPORT_URL); +String importobollo = ConfigurazioneServiceUtil.findByC_ChiaveString(companyId, ConfigurazioneConstants.IMPORTO_BOLLO); %> - - +
    - - - + + - - - - - - - - - - - + + + + - - - - + + + - - - - + + + -
    - - - + + + - - - - - - - - -
    - - - <% - int days[] = new int[] { Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, - Calendar.THURSDAY, Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY }; - Format dayFormat = FastDateFormatFactoryUtil.getSimpleDateFormat("EEEE", locale); - Calendar cal = CalendarFactoryUtil.getCalendar(); - cal.set(Calendar.DATE, 1); - for (int day : days) { - cal.set(Calendar.DAY_OF_WEEK, day); - String dayString = dayFormat.format(cal); - %> - - <% - } - %> - - - - - <% - for (int i = 0; i < 24; i++) { - %> - - <% - } - %> - - - - - <% - int days[] = new int[] { Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, - Calendar.THURSDAY, Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY }; - Format dayFormat = FastDateFormatFactoryUtil.getSimpleDateFormat("EEEE", locale); - Calendar cal = CalendarFactoryUtil.getCalendar(); - cal.set(Calendar.DATE, 1); - for (int day : days) { - cal.set(Calendar.DAY_OF_WEEK, day); - String dayString = dayFormat.format(cal); - %> - - <% - } - %> - - - + + + +
    - - - <% - List rootfolders = DLFolderServiceUtil.getFolders(portletGroupId, - DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - long templateFolderId = ConfigurazioneServiceUtil.findByC_ChiaveLong(companyId, - ConfigurazioneConstants.TEMPLATE_FOLDER_ID); +List rootfolders = DLFolderServiceUtil.getFolders(portletGroupId, + DLFolderConstants.DEFAULT_PARENT_FOLDER_ID, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); +long templateFolderId = ConfigurazioneServiceUtil.findByC_ChiaveLong(companyId, ConfigurazioneConstants.TEMPLATE_FOLDER_ID); %> - - + + - +
    - - - + + <% - for (DLFolder dlFolder : rootfolders) { + for (DLFolder dlFolder : rootfolders) { %> <%=dlFolder.getName()%> + selected="<%= dlFolder.getFolderId() == templateFolderId %>"><%= dlFolder.getName() %> <% - } + } %> - + <% - DLFolder dlFolder = DLFolderLocalServiceUtil.getFolder(templateFolderId); - List fileList = DLAppServiceUtil.getFileEntries(dlFolder.getRepositoryId(), templateFolderId); - Collection keyColl = AvvisoUtil.getUniqueTipoDocumentoFileTemplateProps(); - for (String key : keyColl) { + DLFolder dlFolder = DLFolderLocalServiceUtil.getFolder(templateFolderId); + List fileList = DLAppServiceUtil.getFileEntries(dlFolder.getRepositoryId(), templateFolderId); + Collection keyColl = AvvisoUtil.getUniqueTipoDocumentoFileTemplateProps(); + for (String key : keyColl) { %> - + <% - for (FileEntry fileEntry : fileList) { - long currentFileId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, key); + for (FileEntry fileEntry : fileList) { + long currentFileId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, key); %> - <%=fileEntry.getTitle()%> + <%= fileEntry.getTitle() %> <% - } + } %> <% - } + } %> @@ -265,66 +123,65 @@
    - -
    - + <% - Collection keyColl = AvvisoUtil.getAllTipoDocumentoFolderProps().values(); - for (String key : keyColl) { + Collection keyColl = AvvisoUtil.getAllTipoDocumentoFolderProps().values(); + for (String key : keyColl) { %> - + <% - for (DLFolder fd : rootfolders) { - long currentFolderId = ConfigurazioneServiceUtil.findByC_ChiaveLong( - companyId, key); - String parentFolderName = StringPool.BLANK; - DLFolder parentFolder = fd.getParentFolder(); - if (parentFolder != null) - parentFolderName = parentFolder.getName(); + for (DLFolder fd : rootfolders) { + long currentFolderId = ConfigurazioneServiceUtil.findByC_ChiaveLong(companyId, key); + String parentFolderName = StringPool.BLANK; + DLFolder parentFolder = fd.getParentFolder(); + if (parentFolder != null) + parentFolderName = parentFolder.getName(); %> - <%=parentFolderName.equals(StringPool.BLANK) ? fd.getName() - : parentFolderName + StringPool.MINUS + fd.getName()%> + + <%= parentFolderName.equals(StringPool.BLANK) ? fd.getName() + : parentFolderName + StringPool.MINUS + fd.getName() %> <% - } + } %> <% - } + } %>
    - +
    - + <% - String key = ConfigurazioneConstants.ATTACHMENT_FOLDER_ID; + String key = ConfigurazioneConstants.ATTACHMENT_FOLDER_ID; %> - + <% - for (DLFolder fd : rootfolders) { - long currentFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong( - companyId, key); - String parentFolderName = StringPool.BLANK; - DLFolder parentFolder = fd.getParentFolder(); - if (parentFolder != null) - parentFolderName = parentFolder.getName(); + for (DLFolder fd : rootfolders) { + long currentFolderId = ConfigurazioneLocalServiceUtil.findByC_ChiaveLong(companyId, key); + String parentFolderName = StringPool.BLANK; + DLFolder parentFolder = fd.getParentFolder(); + if (parentFolder != null) { + parentFolderName = parentFolder.getName(); + } %> - <%=parentFolderName.equals(StringPool.BLANK) ? fd.getName() - : parentFolderName + StringPool.MINUS + fd.getName()%> + + <%= parentFolderName.equals(StringPool.BLANK) ? fd.getName() + : parentFolderName + StringPool.MINUS + fd.getName() %> <% - } + } %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/view.jsp index 753f5b93..5dc987a6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/view.jsp @@ -1,17 +1,9 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/amministrazione/init.jsp" %> - <% String currentTab = ParamUtil.getString(request, "tabs1", "territori"); %> - - - - \ No newline at end of file + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp index add4dc99..7d6d52df 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/full_content.jsp @@ -1,3 +1,4 @@ +<%@page import="com.liferay.portal.kernel.util.MapUtil"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> @@ -14,14 +15,10 @@ <%@page import="it.tref.liferay.portos.bo.util.WorkflowUtil"%> <%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> -<%@ include file="/html/asset/controllopratica/init.jsp" %> - +<%@include file="/html/asset/controllopratica/init.jsp"%> <% -ControlloPratica controlloPratica = (ControlloPratica)request.getAttribute("controlloPratica"); - +ControlloPratica controlloPratica = (ControlloPratica) request.getAttribute("controlloPratica"); Map parametri = WorkflowUtil.getFormParameters(controlloPratica); - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); DettPratica controlloDettPratica = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica.getDettPraticaId()); @@ -30,49 +27,55 @@ Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getT Group groupTerritorio = GroupLocalServiceUtil.getGroup(territorio.getGroupId()); Organization org = OrganizationLocalServiceUtil.getOrganization(groupTerritorio.getOrganizationId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); -List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); +List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(intPratica.getIntPraticaId(), + QueryUtil.ALL_POS, QueryUtil.ALL_POS); +List nascosti = Arrays.asList(new String[] { "base64" }); %> - -

    <%=intPratica.getTitle(true) %>

    - - +

    <%= intPratica.getTitle(true) %>

    + + - - - + + +
    - +

    Unità Operativa: <%= intPratica.getUnitaOperativa() %> - - Tecnico istruttore: <%= tecnicoIstruttore!=null?tecnicoIstruttore.getFullName(): "Nessun istruttore" %> -

    + Tecnico istruttore: <%= tecnicoIstruttore != null ? tecnicoIstruttore.getFullName() + : "Nessun istruttore" %> +

    -
    - +

    Parere Endoprocedimentale:

      <% - if(pareriGeologo.isEmpty()){ - out.print("nessun parere richiesto"); - }else{ - for(ParereGeologo parereGeologo: pareriGeologo){ - User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId()); - + if (pareriGeologo.isEmpty()) { + out.print("nessun parere richiesto"); + } else { SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/YYYY"); + for (ParereGeologo parereGeologo : pareriGeologo) { + User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId()); %>
    • - <%= geologo.getFullName()%> - : + <%= geologo.getFullName() %> + : Parere non espresso @@ -80,15 +83,19 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati <%= parereGeologo.getParere() %> <% - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parereGeologo.getFileEntryId()); - String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(parereGeologo.getFileEntryId()); + String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, + "&download=true"); %> - + -
      - Data richiesta parere endoprocedimentale: <%= sdf.format(parereGeologo.getDtRichista()) %> +
      + + Data richiesta parere endoprocedimentale: + <%= sdf.format(parereGeologo.getDtRichista()) %>

      @@ -96,16 +103,16 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati
    • <% - } } + } %>
    -

    Provincia: <%=org.getName() %>

    +

    Provincia: <%= org.getName() %>

    -

    Comune: <%=comune.getDenominazione() %>

    +

    Comune: <%= comune.getDenominazione() %>

    Dettagli dati inseriti nel Workflow

    @@ -114,19 +121,23 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati if (parametri.isEmpty()) { out.print("
  • Nessun dato inserito
  • "); } else { + boolean base64 = MapUtil.getBoolean(parametri, "base64", false); for (Entry entry : parametri.entrySet()) { String key = entry.getKey(); if (key.equals("ingloba_variante")) { - String value = entry.getValue().toString(); - out.print("
  • "+value+"
  • "); - } else { - String value = entry.getValue().toString(); - out.print("
  • " + LanguageUtil.get(pageContext, key) + ": " - + LanguageUtil.get(pageContext, - WorkflowUtil.adjustWorkflowContextValue(key, value, intPratica.getIntPraticaId())) - + "
  • "); - } - } + String value = entry.getValue().toString(); + out.print("
  • " + value + "
  • "); + } else if (!nascosti.contains(key)) { + String value = entry.getValue().toString(); + if (base64 && key.equalsIgnoreCase("testo_del_documento")) { + value = "File allegato"; + } + out.print("
  • " + LanguageUtil.get(pageContext, key) + ": " + + LanguageUtil.get(pageContext, + WorkflowUtil.adjustWorkflowContextValue(key, value, intPratica.getIntPraticaId())) + + "
  • "); + } + } } %> @@ -141,8 +152,8 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati <% for(Avviso avviso : avvisi){ String tipoDocumento = avviso.translateTipoDocumento(); - out.print("
  • "+dateFormatDateTime.format(avviso.getDtRifiuto())+" - "+LanguageUtil.get(pageContext, tipoDocumento)+":
    " - +(Validator.isNotNull(avviso.getCommentoRifiuto()) ? avviso.getCommentoRifiuto() : "Nessun Commento")+"
  • "); + out.print("
  • "+dateFormatDateTime.format(avviso.getDtRifiuto())+" - "+LanguageUtil.get(pageContext, tipoDocumento)+":
    " + +(Validator.isNotNull(avviso.getCommentoRifiuto()) ? avviso.getCommentoRifiuto() : "Nessun Commento")+"
  • "); } %> @@ -151,21 +162,21 @@ List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPrati - - -
    +
    - - +Chart.plugins.register({ + afterDatasetsDraw: function(chart, easing) { + // To only draw at the end of animation, check for easing === 1 + var ctx = chart.ctx; + chart.data.datasets.forEach(function (dataset, i) { + var meta = chart.getDatasetMeta(i); + if (!meta.hidden) { + meta.data.forEach(function(element, index) { + // Draw the text in black, with the specified font + ctx.fillStyle = 'rgb(0, 0, 0)'; + var fontSize = 16; + var fontStyle = 'normal'; + var fontFamily = 'Helvetica Neue'; + ctx.font = Chart.helpers.fontString(fontSize, fontStyle, fontFamily); + // Just naively convert to string for now + var dataString = dataset.data[index].toString(); + // Make sure alignment settings are correct + ctx.textAlign = 'center'; + ctx.textBaseline = 'middle'; + var padding = 10; + var position = element.tooltipPosition(); + ctx.fillText(dataString, position.x + padding, position.y); + }); + } + }); + } +}); + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_import_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_import_window.jsp index f4a915d6..a1731172 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_import_window.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_import_window.jsp @@ -1,61 +1,45 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/html/init.jsp" %> - +<%@include file="/html/init.jsp"%> <% - String titolo = ParamUtil.getString(request, "titolo","Dettaglio"); - String buttonId = ParamUtil.getString(request, "buttonId","sumbit-button"); - - String width = ParamUtil.getString(request, "width","700"); - String height = ParamUtil.getString(request, "height"); - - String contentDiv = ParamUtil.getString(request, "contentDiv"); - - String function = ParamUtil.getString(request, "function"); - - String randomId = StringUtil.randomId(); +String titolo = ParamUtil.getString(request, "titolo", "Dettaglio"); +String buttonId = ParamUtil.getString(request, "buttonId", "sumbit-button"); +String width = ParamUtil.getString(request, "width", "700"); +String height = ParamUtil.getString(request, "height"); +String contentDiv = ParamUtil.getString(request, "contentDiv"); +String function = ParamUtil.getString(request, "function"); +String randomId = StringUtil.randomId(); %> -
    - - - AUI().ready( - 'aui-modal', - function(A) { - - var modal = new A.Modal( - { - bodyContent: A.one('#<%=contentDiv%>'), - width:<%=width%>, - <% - if(!height.equalsIgnoreCase(StringPool.BLANK)){ - %> - height:<%=height%>, - <% - } - %> - centered: true, - destroyOnHide: false, - headerContent: '', - modal: true, - render: '#confirmModal_<%=randomId%>', - visible: false, - toolbars: { - header: [] - }, - resizable: { - handles: '' - } - }).render(); - - +
    + +AUI().ready('aui-modal', function(A) { + var modal = new A.Modal({ + bodyContent: A.one('#<%= contentDiv %>'), + width:<%= width %>, + <% + if (!height.equals(StringPool.BLANK)) { + %> + height:<%=height%>, + <% + } + %> + centered: true, + destroyOnHide: false, + headerContent: '', + modal: true, + render: '#confirmModal_<%= randomId %>', + visible: false, + toolbars: { + header: [] + }, + resizable: { + handles: '' + } + }).render(); - A.one('#<%= buttonId %>').on( - 'click', - function() { - <%= function %> - A.one('#<%=contentDiv%>').show(); - modal.show(); - } - ); - } - ); - + A.one('#<%= buttonId %>').on('click', function() { + <%= function %> + A.one('#<%= contentDiv %>').show(); + modal.show(); + }); +}); +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_window.jsp index 4c7e8a6c..851517e0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_window.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/confirm_window.jsp @@ -1,66 +1,50 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/html/init.jsp" %> - +<%@include file="/html/init.jsp"%> <% - String titolo = ParamUtil.getString(request, "titolo","Dettaglio"); - String buttonId = ParamUtil.getString(request, "buttonId","sumbit-button"); - - String width = ParamUtil.getString(request, "width","700"); - String height = ParamUtil.getString(request, "height"); - - String contentDiv = ParamUtil.getString(request, "contentDiv",""); - String randomId = StringUtil.randomId(); +String titolo = ParamUtil.getString(request, "titolo", "Dettaglio"); +String buttonId = ParamUtil.getString(request, "buttonId", "sumbit-button"); +String width = ParamUtil.getString(request, "width", "700"); +String height = ParamUtil.getString(request, "height"); +String contentDiv = ParamUtil.getString(request, "contentDiv", StringPool.BLANK); +String randomId = StringUtil.randomId(); %> -
    +
    + +AUI().ready('aui-modal', function(A) { + var modal = new A.Modal({ + bodyContent: A.one('#<%= contentDiv %>'), + width:<%= width %>, + <% + if (!height.equals(StringPool.BLANK)) { + %> + height: <%= height %>, + <% + } + %> + centered: true, + destroyOnHide: false, + headerContent: '', + modal: true, + render: '#confirmModal_<%= randomId %>', + visible: false, + close: true, + resizable: { + handles: '' + } + }).render(); - - AUI().ready( - 'aui-modal', - function(A) { - - var modal = new A.Modal( - { - bodyContent: A.one('#<%=contentDiv%>'), - width:<%=width%>, - <% - if(!height.equalsIgnoreCase(StringPool.BLANK)){ - %> - height:<%=height%>, - <% - } - %> - centered: true, - destroyOnHide: false, - headerContent: '', - modal: true, - render: '#confirmModal_<%=randomId%>', - visible: false, - close: true, - resizable: { - handles: '' - } - }).render(); - - modal.addToolbar( - [ - { - label: 'Chiudi', - on: { - click: function() { - modal.hide(); - } - } - } - ] - ); + modal.addToolbar([{ + label: 'Chiudi', + on: { + click: function() { + modal.hide(); + } + } + }]); - A.one('#<%= buttonId %>').on( - 'click', - function() { - A.one('#<%=contentDiv%>').show(); - modal.show(); - } - ); - } - ); - + A.one('#<%= buttonId %>').on('click', function() { + A.one('#<%= contentDiv %>').show(); + modal.show(); + }); +}); + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/import_all_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/import_all_window.jsp deleted file mode 100644 index 48a9c7f0..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/import_all_window.jsp +++ /dev/null @@ -1,84 +0,0 @@ -<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> -<%@ include file="/html/init.jsp"%> - -<% - String intPraticaId = ParamUtil.getString(request, "intPraticaId"); - - String tooltip = ParamUtil.getString(request, "tooltip"); - String message = ParamUtil.getString(request, "message", StringPool.BLANK); - String buttonClass = ParamUtil.getString(request, "buttonClass", StringPool.BLANK); - - String random = StringUtil.randomId(); - String buttonId = "eventButton" + random; - String contentId = "contentDiv" + random; - String titleId = "Importazione Files"; -%> - - - - - - - - - -
    -
    -

    Importazione files del fascicolo in corso...

    -

    Il processo può impiegare diversi minuti.

    -

    Si prega di attendere...

    -
    - - - - - - - - -
    -
    - <%--
    -

    - Completato -

    - Refresh -
    --%> -
    - - -<% - String function = "A.io.request('" - + importFileURL - + "',{data: {" - + renderResponse.getNamespace() - + "intPraticaId: '" - + intPraticaId - + "'}," - + "dataType: 'json',on: {failure: function() {alert('impossibile importare il file allegato...');},success: function(event, id, obj) {var content = A.one('#" - + renderResponse.getNamespace() + contentId - + "');var response = this.get('responseData');content.html(response)}}});"; -%> - - - - - - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/import_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/import_window.jsp index 58af495f..6d23548a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/import_window.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/import_window.jsp @@ -1,54 +1,48 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> -<%@ include file="/html/init.jsp"%> - +<%@include file="/html/init.jsp"%> <% - String classPk = ParamUtil.getString(request, "classPk"); - String className = ParamUtil.getString(request, "className"); - - // Serve perché da view_accordion dà problemi - String classPK = ParamUtil.getString(request, "classPK"); - String classNAME = ParamUtil.getString(request, "classNAME"); - if (Validator.isNotNull(classPK) && Validator.isNotNull(classNAME)) { - classPk = classPK; - className = classNAME; - } - - String tooltip = ParamUtil.getString(request, "tooltip"); - String message = ParamUtil.getString(request, "message", StringPool.BLANK); - String buttonClass = ParamUtil.getString(request, "buttonClass", StringPool.BLANK); - - String random = StringUtil.randomId(); - String buttonId = "eventButton" + random; - String contentId = "contentDiv" + random; - String titleId = "Importazione File"; +String classPk = ParamUtil.getString(request, "classPk"); +String className = ParamUtil.getString(request, "className"); +// Serve perché da view_accordion dà problemi +String classPK = ParamUtil.getString(request, "classPK"); +String classNAME = ParamUtil.getString(request, "classNAME"); +if (Validator.isNotNull(classPK) && Validator.isNotNull(classNAME)) { + classPk = classPK; + className = classNAME; +} +String tooltip = ParamUtil.getString(request, "tooltip"); +String message = ParamUtil.getString(request, "message", StringPool.BLANK); +String buttonClass = ParamUtil.getString(request, "buttonClass", StringPool.BLANK); +String random = StringUtil.randomId(); +String buttonId = "eventButton" + random; +String contentId = "contentDiv" + random; +String titleId = "Importazione File"; %> - - - + + + - - + + - -
    +

    File non ancora importato

    Processo in corso...

    Si prega di attendere qualche minuto

    + preserveAspectRatio="xMidYMid" class="lds-double-ring"> + keyTimes="0;1" dur="1.5s" begin="0s" repeatCount="indefinite" /> + keyTimes="0;1" dur="1.5s" begin="0s" repeatCount="indefinite" />
    - <%--
    -

    - Completato -

    - Refresh -
    --%>
    - - - + + <% - String function = "A.io.request('" - + importFileURL - + "',{" - + "dataType: 'json',on: {failure: function() {alert('impossibile importare il file allegato...');},success: function(event, id, obj) {var content = A.one('#" - + renderResponse.getNamespace() + contentId - + "');var response = this.get('responseData');content.html(response)}}});"; +String function = "A.io.request('" + importFileURL + "',{" + + "dataType: 'json',on: {failure: function() {alert('impossibile importare il file allegato...');},success: function(event, id, obj) {var content = A.one('#" + + renderResponse.getNamespace() + contentId + + "');var response = this.get('responseData');content.html(response)}}});"; %> - - - - - - + + + + + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_form_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_form_window.jsp new file mode 100644 index 00000000..51b47fce --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_form_window.jsp @@ -0,0 +1,134 @@ +<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@include file="/html/init.jsp"%> +<% +String formName = ParamUtil.getString(request, "formName", "fm"); +String titolo = ParamUtil.getString(request, "titolo", "Invio"); +String buttonId = ParamUtil.getString(request, "buttonId", "sumbit-button"); +String buttonConferma = ParamUtil.getString(request, "buttonConferma", "Modifica"); +String buttonAnnulla = ParamUtil.getString(request, "buttonAnnulla", "Annulla"); +String width = ParamUtil.getString(request, "width", "700"); +String height = ParamUtil.getString(request, "height"); +String contentDiv = ParamUtil.getString(request, "contentDiv", "saveAndCloseDiv"); +boolean buttonBar = ParamUtil.getBoolean(request, "buttonBar", true); +String randomId = StringUtil.randomId(); +String onClick = ParamUtil.getString(request, "onClick"); +boolean externalForm = ParamUtil.getBoolean(request, "externalForm", false); +boolean okVisible = ParamUtil.getBoolean(request, "okVisible", true); +%> + +
    +
    +

    + +
    + + +AUI().ready('aui-modal', 'aui-io-request', 'aui-form-validator', function(A) { + var modal = new A.Modal({ + bodyContent: A.one('#<%=contentDiv%>'), + width: <%= width %>, + <% + if (!height.equals(StringPool.BLANK)) { + %> + height: <%= height %>, + <% + } + %> + centered: true, + destroyOnHide: false, + headerContent: '

    <%= titolo %>

    ', + modal: true, + render: '#saveAndCloseModal_<%= randomId %>', + visible: false, + close: false, + }).render(); + <% + if (buttonBar) { + %> + modal.addToolbar( + [ + { + label: '<%= buttonAnnulla %>', + on: { + click: function() { + modal.hide(); + } + } + }, + <% + if (okVisible) { + %> + { + label: '<%= buttonConferma %>', + cssClass: 'btn-primary', + on: { + click: function() { + <% + if (Validator.isNotNull(onClick)) { + out.print(onClick); + } else { + %> + submitForm(document.<%= formName %>); + var formValidator = Liferay.Form.get('<%= formName %>') + .formValidator; + <% + if (externalForm) { + %> + if (!formValidator.hasErrors()) { + A.one('#confirmClose_<%= randomId %>') + .set('value', 'true'); + } else { + alert("Attenzione!\nCampi richiesti non compilati correttamente"); + } + modal.hide(); + <% + } else { + %> + if (!formValidator.hasErrors()) { + modal.hide(); + A.one('#confirmClose_<%= randomId %>') + .set('value', 'true'); + } + <% + } + %> + <% + } + %> + } + } + } + <% + } + %> + ] + ); + <% + } + %> + + A.one('#<%= buttonId %>').on('click', function() { + A.one('#<%=contentDiv%>').show(); + modal.show(); + }); + + window.alert = function(msg) { + $('.message').text(msg); + $('.customAlert').css('animation', 'fadeIn 0.3s linear'); + $('.customAlert').css('display', 'inline'); + setTimeout(function() { + $('.customAlert').css('animation', 'none'); + }, 100); + }; + + $(function(){ + $('.confirmButton').click(function(){ + $('.customAlert').css('animation', 'fadeOut 0.3s linear'); + setTimeout(function(){ + $('.customAlert').css('animation', 'none'); + $('.customAlert').css('display', 'none'); + }, 100); + }); + }); +}); +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_window.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_window.jsp index bb2d07ab..d8e0c647 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_window.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/common/submit_window.jsp @@ -1,149 +1,133 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/html/init.jsp" %> - +<%@include file="/html/init.jsp"%> <% - String formName = ParamUtil.getString(request, "formName","fm"); - String titolo = ParamUtil.getString(request, "titolo","Invio"); - String buttonId = ParamUtil.getString(request, "buttonId","sumbit-button"); - String buttonConferma = ParamUtil.getString(request, "buttonConferma","Crea"); - String buttonAnnulla = ParamUtil.getString(request, "buttonAnnulla","Annulla"); - String width = ParamUtil.getString(request, "width","700"); - String height = ParamUtil.getString(request, "height"); - String contentDiv = ParamUtil.getString(request, "contentDiv","saveAndCloseDiv"); - boolean buttonBar = ParamUtil.getBoolean(request, "buttonBar",true); - String randomId = StringUtil.randomId(); - - String onClick = ParamUtil.getString(request, "onClick"); - boolean externalForm = ParamUtil.getBoolean(request, "externalForm",false); - boolean okVisible = ParamUtil.getBoolean(request, "okVisible", true); +String formName = ParamUtil.getString(request, "formName", "fm"); +String titolo = ParamUtil.getString(request, "titolo", "Invio"); +String buttonId = ParamUtil.getString(request, "buttonId", "sumbit-button"); +String buttonConferma = ParamUtil.getString(request, "buttonConferma", "Crea"); +String buttonAnnulla = ParamUtil.getString(request, "buttonAnnulla", "Annulla"); +String width = ParamUtil.getString(request, "width", "700"); +String height = ParamUtil.getString(request, "height"); +String contentDiv = ParamUtil.getString(request, "contentDiv", "saveAndCloseDiv"); +boolean buttonBar = ParamUtil.getBoolean(request, "buttonBar", true); +String randomId = StringUtil.randomId(); +String onClick = ParamUtil.getString(request, "onClick"); +boolean externalForm = ParamUtil.getBoolean(request, "externalForm", false); +boolean okVisible = ParamUtil.getBoolean(request, "okVisible", true); %> - - -
    - -
    - + +
    -

    +

    + + +AUI().ready('aui-modal', 'aui-io-request', 'aui-form-validator', function(A) { + var modal = new A.Modal({ + bodyContent: A.one('#<%=contentDiv%>'), + width: <%= width %>, + <% + if (!height.equals(StringPool.BLANK)) { + %> + height: <%= height %>, + <% + } + %> + centered: true, + destroyOnHide: false, + headerContent: '

    <%= titolo %>

    ', + modal: true, + render: '#saveAndCloseModal_<%= randomId %>', + visible: false, + close: false, + }).render(); + <% + if (buttonBar) { + %> + modal.addToolbar( + [ + { + label: '<%= buttonAnnulla %>', + on: { + click: function() { + modal.hide(); + } + } + }, + <% + if (okVisible) { + %> + { + label: '<%= buttonConferma %>', + on: { + click: function() { + <% + if (Validator.isNotNull(onClick)) { + out.print(onClick); + } else { + %> + submitForm(document.<%= formName %>); + var formValidator = Liferay.Form.get('<%= formName %>') + .formValidator; + <% + if (externalForm) { + %> + if (!formValidator.hasErrors()) { + A.one('#confirmClose_<%= randomId %>') + .set('value', 'true'); + } else { + alert("Attenzione!\nCampi richiesti non compilati correttamente"); + } + modal.hide(); + <% + } else { + %> + if (!formValidator.hasErrors()) { + modal.hide(); + A.one('#confirmClose_<%= randomId %>') + .set('value', 'true'); + } + <% + } + %> + <% + } + %> + } + } + } + <% + } + %> + ] + ); + <% + } + %> + A.one('#<%= buttonId %>').on('click', function() { + A.one('#<%=contentDiv%>').show(); + modal.show(); + }); - - - - - AUI().ready( - 'aui-modal','aui-io-request','aui-form-validator', - function(A) { - - var modal = new A.Modal( - { - bodyContent: A.one('#<%=contentDiv%>'), - width:<%=width%>, - <% - if(!height.equalsIgnoreCase(StringPool.BLANK)){ - %> - height:<%=height%>, - <% - } - %> - centered: true, - destroyOnHide: false, - headerContent: '

    <%=titolo%>

    ', - modal: true, - render: '#saveAndCloseModal_<%=randomId%>', - visible: false, - close: false - } - ).render(); - - <% - if(buttonBar){ - %> - modal.addToolbar( - [ - { - label: '<%= buttonAnnulla %>', - on: { - click: function() { - modal.hide(); - - } - } - } - <% if(okVisible){ %> - , - { - label: '<%=buttonConferma%>', - on: { - click: function() { - - <% if(Validator.isNotNull(onClick)){ - out.print(onClick); - } else { - %> - submitForm(document.<%= formName %>); - var formValidator = Liferay.Form.get('<%= formName %>').formValidator; - <% - if(externalForm){ - %> - if (!formValidator.hasErrors()) { - A.one('#confirmClose_<%=randomId%>').set('value','true'); - }else{ - alert("Attenzione!\nCampi richiesti non compilati correttamente"); - } - modal.hide(); - <% - } else { - %> - if (!formValidator.hasErrors()) { - modal.hide(); - A.one('#confirmClose_<%=randomId%>').set('value','true'); - } - <% - } - } - %> - } - } - } - <% } %> - ] - ); - <% - } - %> + window.alert = function(msg) { + $('.message').text(msg); + $('.customAlert').css('animation', 'fadeIn 0.3s linear'); + $('.customAlert').css('display', 'inline'); + setTimeout(function() { + $('.customAlert').css('animation', 'none'); + }, 100); + }; - A.one('#<%= buttonId %>').on( - 'click', - function() { - <%-- console.log('<%=contentDiv%>') --%> - A.one('#<%=contentDiv%>').show(); - modal.show(); - } - ); - - - window.alert = function(msg){ - $('.message').text(msg); - $('.customAlert').css('animation', 'fadeIn 0.3s linear'); - $('.customAlert').css('display', 'inline'); - setTimeout(function(){ - $('.customAlert').css('animation', 'none'); - }, 100); - }; - - $(function(){ - $('.confirmButton').click(function(){ - $('.customAlert').css('animation', 'fadeOut 0.3s linear'); - setTimeout(function(){ - $('.customAlert').css('animation', 'none'); - $('.customAlert').css('display', 'none'); - }, 100); - }); - }); - - }); - -
    + $(function(){ + $('.confirmButton').click(function(){ + $('.customAlert').css('animation', 'fadeOut 0.3s linear'); + setTimeout(function(){ + $('.customAlert').css('animation', 'none'); + $('.customAlert').css('display', 'none'); + }, 100); + }); + }); +}); +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/init.jsp index 7f058349..87f4525a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/init.jsp @@ -1,2 +1,2 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/html/init.jsp" %> +<%@include file="/html/init.jsp"%> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp index 2a9a3003..2fa0e02c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp @@ -1,582 +1,429 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%> -<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> +<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> +<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> +<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="com.liferay.portal.model.User"%> +<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionUtil"%> -<%@page import="it.tref.liferay.portos.bo.shared.bean.CronostoriaTypeEnum"%> +<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%> +<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> +<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.bean.CronostoriaLink"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.CronostoriaUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%> -<%@page import="org.apache.jasper.tagplugins.jstl.core.Param"%> -<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> -<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> -<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> -<%@page import="com.liferay.portlet.documentlibrary.model.DLFileEntry"%> -<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"%> -<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> -<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> -<%@page import="it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.model.Avviso"%> -<%@page import="com.liferay.portal.kernel.portlet.LiferayPortletMode"%> -<%@page import="javax.portlet.PortletRequest"%> -<%@page import="javax.portlet.PortletURL"%> -<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%> -<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> -<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.CronostoriaUtil"%> -<%@page import="java.util.Comparator"%> +<%@page import="java.util.ArrayList"%> <%@page import="java.util.Collections"%> +<%@page import="java.util.Comparator"%> <%@page import="java.util.Date"%> -<%@page import="it.tref.liferay.portos.bo.shared.bean.CronostoriaBean"%> -<%@page import="java.util.ArrayList"%> -<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQuery"%> -<%@page import="com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"%> -<%@page import="com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil"%> -<%@page import="com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil"%> - - - -<%@ include file="/html/cronologia/init.jsp" %> - +<%@page import="javax.portlet.PortletURL"%> +<%@page import="javax.portlet.PortletRequest"%> +<%@include file="/html/cronologia/init.jsp"%> - - <% - String toImport = "toImport"; - - long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - - //ADT: bug BO ID=6 stampa varianti in BO - long groupId=GroupLocalServiceUtil.getGroup(intPratica.getCompanyId(), "Portos").getGroupId(); - long plidNew=PortalUtil.getPlidFromPortletId(groupId, true, PortletKeys.FASCICOLOFE); - ///////////////////////////////////////////////////////////// - - - int sort = ParamUtil.getInteger(request, "sort", 0); - - boolean inBO = ParamUtil.getBoolean(request, "inBO"); - - List events = new ArrayList(); - List pratiche = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); - //ADT BUG FE ID = 9 - if(intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)){ - Date dataEvento = intPratica.getDtAnnullamento(); - if(Validator.isNotNull(dataEvento)){ - String tipoEvento = CronostoriaUtil.TIPO_UTENTE; - String testoEvento ="Invio della Richiesta di Annullamento '"+ pratiche.get(0).getTitle()+"'"; - //testoEvento += " al Genio Civile"; - String tipoLink = CronostoriaUtil.LINK; - - PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, PortletRequest.RENDER_PHASE); - portletURL.setWindowState(LiferayWindowState.POP_UP); - portletURL.setParameter("mvcPath","/html/fascicolofe/edit_fascicolo.jsp"); - portletURL.setParameter("intPraticaId",String.valueOf(intPraticaId)); - portletURL.setParameter("dettPraticaId",String.valueOf(pratiche.get(0).getDettPraticaId())); +String toImport = "toImport"; +long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L); +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); +//ADT: bug BO ID=6 stampa varianti in BO +long groupId=GroupLocalServiceUtil.getGroup(intPratica.getCompanyId(), "Portos").getGroupId(); +long plidNew=PortalUtil.getPlidFromPortletId(groupId, true, PortletKeys.FASCICOLOFE); +int sort = ParamUtil.getInteger(request, "sort", 0); +boolean inBO = ParamUtil.getBoolean(request, "inBO"); +List events = new ArrayList(); +List pratiche = DettPraticaLocalServiceUtil.findByIntPraticaId(intPraticaId); +if (intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { + Date dataEvento = intPratica.getDtAnnullamento(); + if (Validator.isNotNull(dataEvento)) { + String tipoEvento = CronostoriaUtil.TIPO_UTENTE; + String testoEvento = "Invio della Richiesta di Annullamento '" + pratiche.get(0).getTitle() + + StringPool.APOSTROPHE; + String tipoLink = CronostoriaUtil.LINK; + PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, + PortletRequest.RENDER_PHASE); + portletURL.setWindowState(LiferayWindowState.POP_UP); + portletURL.setParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + portletURL.setParameter("intPraticaId", String.valueOf(intPraticaId)); + portletURL.setParameter("dettPraticaId", String.valueOf(pratiche.get(0).getDettPraticaId())); String link = portletURL.toString(); - - events.add(new CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink, String.valueOf(pratiche.get(0).getDettPraticaId()), DettPratica.class.getName(), new CronostoriaLink[]{new CronostoriaLink(CronostoriaTypeEnum.VIEW, link)})); + events.add(new CronostoriaBean(dataEvento, tipoEvento, testoEvento, tipoLink, String.valueOf( + pratiche.get(0).getDettPraticaId()), DettPratica.class.getName(), new CronostoriaLink[] + { new CronostoriaLink(CronostoriaTypeEnum.VIEW, link) })); } } - for(DettPratica dettPratica: pratiche){ - Date dataEvento = dettPratica.getDataEffettuazione(); - if(Validator.isNotNull(dataEvento)){ + for (DettPratica dettPratica: pratiche) { + Date dataEvento = dettPratica.getDataEffettuazione(); + if (Validator.isNotNull(dataEvento)) { String tipoEvento = CronostoriaUtil.TIPO_UTENTE; - String tipoIntegrazione = Validator.isNull(dettPratica.getTipoIntegrazione()) ? "Domanda" : LanguageUtil.get(pageContext, "label-integrazione-"+dettPratica.getTipoIntegrazione()); - String testoEvento ="Invio della "+tipoIntegrazione+" '"+ dettPratica.getTitle()+"'"; - //testoEvento += " al Genio Civile"; + String tipoIntegrazione = Validator.isNull(dettPratica.getTipoIntegrazione()) ? "Domanda" + : LanguageUtil.get(pageContext, "label-integrazione-"+dettPratica.getTipoIntegrazione()); + String testoEvento = "Invio della " + tipoIntegrazione + " '" + dettPratica.getTitle() + + StringPool.APOSTROPHE; String tipoLink = CronostoriaUtil.LINK; - - PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, PortletRequest.RENDER_PHASE); + PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, + PortletRequest.RENDER_PHASE); portletURL.setWindowState(LiferayWindowState.POP_UP); - portletURL.setParameter("mvcPath","/html/fascicolofe/edit_fascicolo.jsp"); - portletURL.setParameter("intPraticaId",String.valueOf(intPraticaId)); - portletURL.setParameter("dettPraticaId",String.valueOf(dettPratica.getDettPraticaId())); + portletURL.setParameter("mvcPath", "/html/fascicolofe/edit_fascicolo.jsp"); + portletURL.setParameter("intPraticaId", String.valueOf(intPraticaId)); + portletURL.setParameter("dettPraticaId", String.valueOf(dettPratica.getDettPraticaId())); String link = portletURL.toString(); - - events.add(new CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink, String.valueOf(dettPratica.getDettPraticaId()), DettPratica.class.getName(), new CronostoriaLink[]{new CronostoriaLink(CronostoriaTypeEnum.VIEW, link)})); + events.add(new CronostoriaBean(dataEvento, tipoEvento, testoEvento, tipoLink, String.valueOf( + dettPratica.getDettPraticaId()), DettPratica.class.getName(), new CronostoriaLink[] + { new CronostoriaLink(CronostoriaTypeEnum.VIEW, link) })); } } - List avvisi = AvvisoLocalServiceUtil.findByIntPratica_Inviato(intPraticaId, AvvisoUtil.DOCUMENTO_INVIATO, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - for(Avviso avviso:avvisi){ - Date dataEvento = avviso.getDtInvio(); - if(Validator.isNotNull(avviso.getDtInvio())){ + List avvisi = AvvisoLocalServiceUtil.findByIntPratica_Inviato(intPraticaId, AvvisoUtil.DOCUMENTO_INVIATO, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + for (Avviso avviso : avvisi) { + Date dataEvento = avviso.getDtInvio(); + if (Validator.isNotNull(avviso.getDtInvio())) { String tipoEvento = CronostoriaUtil.TIPO_GENIO_CIVILE; String testoEvento = avviso.getFullDescription(); - String tipoLink = CronostoriaUtil.DOWNLOAD; List links = new ArrayList(); - String linkInvio = StringPool.BLANK; - if(Validator.isNull(avviso.getFileEntryIdInvio()) && Validator.isNotNull(avviso.getOldAvvisoId())){ - linkInvio = toImport+"-invio_"+avviso.getAvvisoId(); - links.add(new CronostoriaLink(CronostoriaTypeEnum.IMPORT, linkInvio)); - } else { + { FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdInvio()); linkInvio = DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); CronostoriaTypeEnum type = null; - if(fileEntry.getExtension().equals("pdf")){ - type = CronostoriaTypeEnum.PROTOCOLLO; + if (fileEntry.getExtension().equalsIgnoreCase("pdf")) { + type = CronostoriaTypeEnum.PROTOCOLLO; } else { - type = CronostoriaTypeEnum.FIRMA; + type = CronostoriaTypeEnum.FIRMA; } - links.add(new CronostoriaLink(type, linkInvio)); } - - if(Validator.isNotNull(avviso.getFileEntryIdProtocollo()) && avviso.getFileEntryIdProtocollo()!=avviso.getFileEntryIdInvio()){ + if (Validator.isNotNull(avviso.getFileEntryIdProtocollo()) && avviso.getFileEntryIdProtocollo() != + avviso.getFileEntryIdInvio()) { FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(avviso.getFileEntryIdProtocollo()); - String linkProtocollo = DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); + String linkProtocollo = DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, + "&download=true"); links.add(new CronostoriaLink(CronostoriaTypeEnum.PROTOCOLLO, linkProtocollo)); } - - events.add(new CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink, links.toArray(new CronostoriaLink[0]))); - } + events.add(new CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink, links.toArray(new CronostoriaLink[0]))); + } } - List fineLavoris = FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - for(FineLavori fineLavori : fineLavoris){ - Date dataEvento = fineLavori.getDataEffettuazione(); - if(Validator.isNotNull(dataEvento)){ + List fineLavoris = FineLavoriLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + for (FineLavori fineLavori : fineLavoris) { + Date dataEvento = fineLavori.getDataEffettuazione(); + if (Validator.isNotNull(dataEvento)) { String tipoEvento = CronostoriaUtil.TIPO_UTENTE; - String tipoIntegrazione = "Fine Lavori "+(fineLavori.getParziale() ? " Parziale" : ""); - String testoEvento ="Invio della "+tipoIntegrazione+" '"+ fineLavori.getTitle()+"' al Genio Civile"; + String tipoIntegrazione = "Fine Lavori " + (fineLavori.getParziale() ? " Parziale" : StringPool.BLANK); + String testoEvento = "Invio della " + tipoIntegrazione + " '" + fineLavori.getTitle() + "' al Genio Civile"; String tipoLink = CronostoriaUtil.LINK; - - PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, PortletRequest.RENDER_PHASE); + PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, + PortletRequest.RENDER_PHASE); portletURL.setWindowState(LiferayWindowState.POP_UP); - portletURL.setParameter("mvcPath","/html/fascicolofe/edit_fine-lavori.jsp"); - portletURL.setParameter("intPraticaId",String.valueOf(intPraticaId)); - portletURL.setParameter("fineLavoriId",String.valueOf(fineLavori.getFineLavoriId())); + portletURL.setParameter("mvcPath", "/html/fascicolofe/edit_fine-lavori.jsp"); + portletURL.setParameter("intPraticaId", String.valueOf(intPraticaId)); + portletURL.setParameter("fineLavoriId", String.valueOf(fineLavori.getFineLavoriId())); String link = portletURL.toString(); - - events.add(new CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink,String.valueOf(fineLavori.getFineLavoriId()), FineLavori.class.getName(),new CronostoriaLink[]{new CronostoriaLink(CronostoriaTypeEnum.VIEW, link)})); - } + events.add(new CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink,String.valueOf( + fineLavori.getFineLavoriId()), FineLavori.class.getName(), new CronostoriaLink[] + { new CronostoriaLink(CronostoriaTypeEnum.VIEW, link) })); + } } - List collaudi = CollaudoLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - for(Collaudo collaudo : collaudi){ - Date dataEvento = collaudo.getDataEffettuazione(); - if(Validator.isNotNull(dataEvento)){ + List collaudi = CollaudoLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + for (Collaudo collaudo : collaudi) { + Date dataEvento = collaudo.getDataEffettuazione(); + if (Validator.isNotNull(dataEvento)) { String tipoEvento = CronostoriaUtil.TIPO_UTENTE; - String tipoIntegrazione = "Collaudo "+(collaudo.getParziale() ? " Parziale" : ""); - String testoEvento ="Invio del "+tipoIntegrazione+" '"+ collaudo.getTitle()+"' al Genio Civile"; + String tipoIntegrazione = "Collaudo " + (collaudo.getParziale() ? " Parziale" : StringPool.BLANK); + String testoEvento = "Invio del " + tipoIntegrazione + " '" + collaudo.getTitle() + "' al Genio Civile"; String tipoLink = CronostoriaUtil.LINK; - - PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, PortletRequest.RENDER_PHASE); + PortletURL portletURL = PortletURLFactoryUtil.create(request, portletDisplay.getId(), plid, + PortletRequest.RENDER_PHASE); portletURL.setWindowState(LiferayWindowState.POP_UP); - portletURL.setParameter("mvcPath","/html/fascicolofe/edit_collaudo.jsp"); - portletURL.setParameter("intPraticaId",String.valueOf(intPraticaId)); + portletURL.setParameter("mvcPath", "/html/fascicolofe/edit_collaudo.jsp"); + portletURL.setParameter("intPraticaId", String.valueOf(intPraticaId)); portletURL.setParameter("collaudoId",String.valueOf(collaudo.getCollaudoId())); String link = portletURL.toString(); - - events.add(new CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink,String.valueOf(collaudo.getCollaudoId()), Collaudo.class.getName(),new CronostoriaLink[]{new CronostoriaLink(CronostoriaTypeEnum.VIEW, link)})); - } + events.add(new CronostoriaBean(dataEvento, tipoEvento, testoEvento, tipoLink, String.valueOf( + collaudo.getCollaudoId()), Collaudo.class.getName(), new CronostoriaLink[] + { new CronostoriaLink(CronostoriaTypeEnum.VIEW, link) })); + } } - Comparator comparator = null; - if( sort == 0){ - comparator = new Comparator(){ - public int compare(CronostoriaBean evento1,CronostoriaBean evento2){ - return evento1.getDataEvento().compareTo(evento2.getDataEvento()); - } - }; - - } else if( sort == 1){ - comparator = new Comparator(){ - public int compare(CronostoriaBean evento1,CronostoriaBean evento2){ - return evento2.getDataEvento().compareTo(evento1.getDataEvento()); - } + if (sort == 0) { + comparator = new Comparator() { + public int compare(CronostoriaBean evento1, CronostoriaBean evento2) { + return evento1.getDataEvento().compareTo(evento2.getDataEvento()); + } }; - } - - Collections.sort(events,comparator); - - String randomId = StringUtil.randomId(); - String formName = "cronostoriaSorting_"+randomId; - String sortfunction = "reSort('"+renderResponse.getNamespace()+formName+"')"; - - - List historyWorkflowActions = HistoryWorkflowActionLocalServiceUtil.findByIntPratica(intPraticaId, sort); + } else if (sort == 1) { + comparator = new Comparator() { + public int compare(CronostoriaBean evento1, CronostoriaBean evento2) { + return evento2.getDataEvento().compareTo(evento1.getDataEvento()); + } + }; +} +Collections.sort(events,comparator); +String randomId = StringUtil.randomId(); +String formName = "cronostoriaSorting_" + randomId; +String sortfunction = "reSort('" + renderResponse.getNamespace() + formName + "')"; +List historyWorkflowActions = HistoryWorkflowActionLocalServiceUtil.findByIntPratica(intPraticaId, + sort); %> -
    - + - +
    <% - for(CronostoriaBean event: events){ - - String tipo = event.getTipoEvento(); - String data = StringPool.BLANK; - if(Validator.isNotNull(event.getDataEvento())){ - data = new SimpleDateFormat("dd/MM/yyyy HH:mm").format(event.getDataEvento()); - } - String testo = event.getTestoEvento(); - - if(!inBO){ - if(CronostoriaUtil.LINK.equalsIgnoreCase(event.getTipoLink())){ - %> - - - - <% - boolean isVariante = false; - DettPratica dettPraticaStampa = DettPraticaLocalServiceUtil.fetchDettPratica(Long.valueOf(event.getClassPK())); - if(dettPraticaStampa != null){ - if(dettPraticaStampa.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){ - isVariante = true; - } - } - %> - - - - - - - - - - - - - - - - - - - - - - - - - <% - testo+=content1; - }else{ - %> - - <% - for(CronostoriaLink cronostoriaLink : event.getLinks()){ - String link = cronostoriaLink.getLink(); - %> - - - - <% - String avvisoId = link.split("_")[1]; - String className = Avviso.class.getName(); - String random = StringUtil.randomId(); - String buttonId = "eventButton"+random; - String contentId = "contentDiv"+random; - String titleId = "Importazione File"; - %> - <%-- --%> - - <%--
    -

    File non ancora importato

    -

    Processo in corso...

    -

    Si prega di attendere qualche minuto

    -
    - - - - - - - - -
    -
    - - - <% - String function = "A.io.request('"+importFileURL+"',{data: {"+renderResponse.getNamespace()+"classPk: "+avvisoId+", "+renderResponse.getNamespace()+"className: '"+className+"'},"+ - "dataType: 'json',on: {failure: function() {alert('impossibile importare il file allegato...');},success: function(event, id, obj) {var response = this.get('responseData');content.html(response)}}});"; - %> - - - - - - - --%> - - - - - - - - -
    - - <% - boolean isInviato = CronostoriaTypeEnum.FIRMA.equals(cronostoriaLink.getType()); - %> - - -
    + for (CronostoriaBean event: events) { + String tipo = event.getTipoEvento(); + String data = StringPool.BLANK; + if (Validator.isNotNull(event.getDataEvento())) { + data = new SimpleDateFormat("dd/MM/yyyy HH:mm").format(event.getDataEvento()); + } + String testo = event.getTestoEvento(); + if (!inBO) { + if (CronostoriaUtil.LINK.equalsIgnoreCase(event.getTipoLink())) { + %> + + + + <% + boolean isVariante = false; + DettPratica dettPraticaStampa = DettPraticaLocalServiceUtil.fetchDettPratica( + Long.valueOf(event.getClassPK())); + if (dettPraticaStampa != null) { + if (dettPraticaStampa.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { + isVariante = true; + } + } + %> + + + + + + - - <% - } - %> - - <% - testo+=content2; +
    + + + + + + + + + + + + + + +
    + <% + testo += content1; + } else { + %> + + <% + for (CronostoriaLink cronostoriaLink : event.getLinks()) { + String link = cronostoriaLink.getLink(); + %> + + <% + boolean isInviato = CronostoriaTypeEnum.FIRMA.equals(cronostoriaLink.getType()); + %> + + + <% } - }else{ - //IN BO - ADT: bug BO ID=6 stampa fascicolo variante - boolean isVariante = false; - - if(CronostoriaUtil.LINK.equalsIgnoreCase(event.getTipoLink())){ - %> + + <% + testo += content2; + } + } else { + //IN BO - ADT: bug BO ID=6 stampa fascicolo variante + boolean isVariante = false; + if (CronostoriaUtil.LINK.equalsIgnoreCase(event.getTipoLink())) { + %> - - - <% - DettPratica dettPraticaStampa = DettPraticaLocalServiceUtil.fetchDettPratica(Long.valueOf(event.getClassPK())); - if(dettPraticaStampa != null){ - if(dettPraticaStampa.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)){ + + <% + DettPratica dettPraticaStampa = DettPraticaLocalServiceUtil.fetchDettPratica(Long.valueOf( + event.getClassPK())); + if (dettPraticaStampa != null) { + if (dettPraticaStampa.getTipoIntegrazione().equals(TipoIntegrazioneUtil.VARIANTE)) { isVariante = true; - %> - - - - - - - - - <% } - if(Validator.isNull(dettPraticaStampa.getTipoIntegrazione())){ - - %> - - + %> + + + + + + + + <% + } + if (Validator.isNull(dettPraticaStampa.getTipoIntegrazione())) { + %> + + - - - <% }} %> - - - - - - - - - - - - - - - - - - - - <% - testo+=bo_content_new; - } - } - // ADT : fine aggiunta icona stampa variante in back office - - String cssRow = StringPool.BLANK; - String cssCol = StringPool.BLANK; - String contenuto = StringPool.BLANK; - if(CronostoriaUtil.TIPO_UTENTE.equalsIgnoreCase(tipo)){ - cssRow = "row row-user"; - cssCol = "col-xs-12 col-sm-12 col-md-12 text-left"; - %> - - - <%=data %> - - <%=testo %> - - <% - contenuto = content3; - }else{ - cssRow = "row row-regione"; - cssCol = "col-xs-12 col-sm-12 col-md-12 text-right"; - %> - - <%=testo %> - - <%=data %> - - - <% - contenuto = content4; + + <% + } + } + %> + + + + + + + + + + + + + + + + + <% + testo += bo_content_new; } - %> -
    -
    - <%=contenuto %> -
    + } + // ADT : fine aggiunta icona stampa variante in back office + String cssRow = StringPool.BLANK; + String cssCol = StringPool.BLANK; + String contenuto = StringPool.BLANK; + if (CronostoriaUtil.TIPO_UTENTE.equalsIgnoreCase(tipo)) { + cssRow = "row row-user"; + cssCol = "col-xs-12 text-left"; + %> + + + <%= data %> + + <%= testo %> + + <% + contenuto = content3; + } else { + cssRow = "row row-regione"; + cssCol = "col-xs-12 text-right"; + %> + + <%= testo %> + + <%= data %> + + + <% + contenuto = content4; + } + %> +
    +
    + <%= contenuto %>
    - <% +
    + <% } - %> + %>
    -
    +
    - - - -
    -
    -
    - -
    -
    -
    - <% - for(HistoryWorkflowAction historyWorkflowAction: historyWorkflowActions){ - String data = new SimpleDateFormat("dd/MM/yyyy HH:mm").format(historyWorkflowAction.getCreateDate()); - %> -
    -
    - - - <% - User userWorkflow = UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(), historyWorkflowAction.getUserName()); - %> - - <%=userWorkflow.getFullName() %> - - - - - <%=historyWorkflowAction.getAttivato()?"Attivato":"Sospeso" %> - - <%=data %> + +
    +
    +
    + +
    +
    +
    + <% + for (HistoryWorkflowAction historyWorkflowAction : historyWorkflowActions) { + String data = new SimpleDateFormat("dd/MM/yyyy HH:mm").format( + historyWorkflowAction.getCreateDate()); + %> +
    +
    + + + <% + User userWorkflow = UserLocalServiceUtil.fetchUserByScreenName( + themeDisplay.getCompanyId(), historyWorkflowAction.getUserName()); + %> + + <%= userWorkflow.getFullName() %> + + + + <%= historyWorkflowAction.getAttivato() ? "Attivato" + : "Sospeso" %> + + <%= data %> +
    -
    - <% + <% } - %> + %> +
    -
    - + +
    -
    - - - - - - -Liferay.provide( - window, - 'reSort', - function(id) { - var fragment = location.hash, - returnURL = "<%= currentURL %>"+fragment; - submitForm("#"+id, returnURL , true, false); - } - ); + +Liferay.provide(window, 'reSort', function(id) { + var fragment = location.hash, + returnURL = "<%= currentURL %>" + fragment; + submitForm("#" + id, returnURL , true, false); +}); \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp index 45552cd8..d79ba8d3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/doc_aggiuntiva/view.jsp @@ -165,14 +165,6 @@ - <% - } else if(Validator.isNull(docAggiuntiva.getFileEntryId()) && Validator.isNotNull(docAggiuntiva.getOldFileEntryId())){ - %> - - - - - <% } %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp index 3dcf370d..c7bfaa8c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp @@ -1,253 +1,242 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="java.util.ArrayList"%> -<%@page import="java.util.Comparator"%> -<%@page import="java.util.Comparator"%> <%@page import="java.util.Collections"%> -<%@page import="com.liferay.portal.model.Organization"%> -<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> -<%@include file="/html/fascicolo/init.jsp" %> - +<%@page import="java.util.Comparator"%> +<%@include file="/html/fascicolo/init.jsp"%> - - <% - String comune = ParamUtil.getString(request, "comune"); - String provinciaJS = ParamUtil.getString(request, "provinciaJS"); - - %> - - - -
    -
    -
    - -
    -
    - -
    -
    - - Seleziona il tipo di pratica - - - - - -
    -
    - - Stato Pratica - -<%-- --%> -<%-- --%> -<%-- --%> - - - - - - - - - - - - - - - -
    -
    -
    -
    - -
    -
    - - Tipo Intervento - - - - - -
    -
    - - Pratica Aperta : - - - - -
    -
    - -
    -
    - - - <% - List province = TerritorioLocalServiceUtil.getActiveProvince(); - - //ADT BUG-ID=15 Sezione Ricerca / Ordinamento Filtro - List provinceList = new ArrayList(); - for (String codiceProvincia : province) { - Provincia provinciaToStamp = ProvinciaLocalServiceUtil.fetchByC_C(company.getCompanyId(), codiceProvincia); - provinceList.add(provinciaToStamp); - } - - Collections.sort(provinceList, new Comparator(){ - public int compare(Provincia o1, Provincia o2){ - return o1.getProvincia().compareTo(o2.getProvincia()); - } - }); - - for (Provincia provincia : provinceList) { - %> - <%=provincia.getProvincia() %> - <% - } - %> - -
    -
    - - - <% - if(provinciaJS != null && !provinciaJS.equals("") && !provinciaJS.equals("000")){ - List comuni = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia(provinciaJS); - for (long comuneId : comuni) { - Comune comuneToStamp = ComuneLocalServiceUtil.getComune(comuneId); - %> - <%=comuneToStamp.getDenominazione()%> - <% - } - } - %> - - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - - - - - - -
    -
    -
    -
    -
    -
    - - Numero Progetto - Protocollo - Data Invio - -
    -
    - - Dec - Asc - -
    -
    -
    -
    - - + +<% +String comune = ParamUtil.getString(request, "comune"); +String provinciaJS = ParamUtil.getString(request, "provinciaJS"); +%> + +
    +
    +
    + +
    +
    + +
    +
    + + Seleziona il tipo di pratica + + + + +
    +
    + + Stato Pratica + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + + Tipo Intervento + + + + + +
    +
    + + Pratica Aperta : + + + + +
    +
    +
    +
    + + + <% + List province = TerritorioLocalServiceUtil.getActiveProvince(); + //ADT BUG-ID=15 Sezione Ricerca / Ordinamento Filtro + List provinceList = new ArrayList(); + for (String codiceProvincia : province) { + Provincia provinciaToStamp = ProvinciaLocalServiceUtil.fetchByC_C(company.getCompanyId(), + codiceProvincia); + provinceList.add(provinciaToStamp); + } + Collections.sort(provinceList, new Comparator() { + public int compare(Provincia o1, Provincia o2){ + return o1.getProvincia().compareTo(o2.getProvincia()); + } + }); + for (Provincia provincia : provinceList) { + %> + + <%= provincia.getProvincia() %> + + <% + } + %> + +
    +
    + + + <% + if (Validator.isNotNull(provinciaJS) && !provinciaJS.equals("000")) { + List comuni = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia(provinciaJS); + for (long comuneId : comuni) { + Comune comuneToStamp = ComuneLocalServiceUtil.getComune(comuneId); + %> + + <%= comuneToStamp.getDenominazione() %> + + <% + } + } + %> + +
    +
    + +
    +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    +
    + + + + + + + + + + +
    +
    +
    +
    +
    +
    + + Numero Progetto + Protocollo + Data Invio + +
    +
    + + Dec + Asc +
    - - +
    +
    +
    + +
    +
    - - + var getComuni = function(provinciaId, comuneId, comuneValue) { var comuneSelect = A.one("#"+comuneId); - - - if(provinciaId == "" || provinciaId == "000"){ + if (provinciaId == "" || provinciaId == "000") { comuneSelect.html("") - comuneSelect.addClass("disabled").set("disabled", true); + comuneSelect.addClass("disabled").set("disabled", true); } else { - A.io.request( - '<%= getComuniURL %>', - { - data: { - provinciaId: provinciaId - },dataType: 'json', - on: { - success: function() { - - var response = this.get('responseData'); - comuneSelect.html("") - for( index in response ){ - var code =''; - comuneSelect.append(code); - } - - if(provinciaId!="" && provinciaId!="000" ){ - comuneSelect.removeClass("disabled").set("disabled", false); - } + A.io.request('<%= getComuniURL %>', { + data: { + provinciaId: provinciaId + }, + dataType: 'json', + on: { + success: function() { + var response = this.get('responseData'); + comuneSelect.html("") + for (index in response) { + var code = ''; + comuneSelect.append(code); + } + if (provinciaId != "" && provinciaId != "000") { + comuneSelect.removeClass("disabled").set("disabled", false); } } } - ); - } + }); + } }; - -A.ready(function(){ - - - A.one(".provinciaSelect").on('change', function(event){ - +A.ready(function() { + A.one(".provinciaSelect").on('change', function(event) { var provinciaId = event.currentTarget.get('value'), comuneId = event.currentTarget.attr("id").replace("provincia","comune"), comuneValue = "000"; - - getComuni(provinciaId, comuneId, comuneValue) - + getComuni(provinciaId, comuneId, comuneValue) }); }); - - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/init.jsp index 1ba4bb24..8c7d6389 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/init.jsp @@ -1,3 +1,3 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@ include file="/html/init.jsp" %> +<%@include file="/html/init.jsp"%> <%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp index a0b894d6..732f7140 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/header.jsp @@ -79,7 +79,7 @@
    Stato:
    <%=LanguageUtil.get(pageContext, - PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica.getIntPraticaId()))%> + PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica.getTipoProcedura()))%>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp index e3b35950..09fc4797 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati.jsp @@ -1,201 +1,176 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> -<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeDetail"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%> -<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%> -<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> -<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil"%> -<%@page import="java.text.DateFormat"%> -<%@page import="javax.swing.text.html.parser.DocumentParser"%> -<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%> - -<%@page import="java.util.List"%> -<%@page import="java.util.ArrayList"%> -<%@page import="java.util.Comparator"%> -<%@page import="java.util.Collections"%> -<%@page import="javax.portlet.PortletURL"%> - - <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> -<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%> +<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%> <%@page import="java.util.ArrayList"%> -<%@page import="java.io.Serializable"%> -<%@page import="javax.portlet.PortletURL"%> -<%@page import="java.util.LinkedHashMap"%> -<%@page import="java.util.Map.Entry"%> - -<%@ include file="/html/fascicolo/init.jsp" %> - - - -

    - +<%@include file="/html/fascicolo/init.jsp"%> + +

    <% - String comingFrom = ParamUtil.getString(request,"comingFrom", - GetterUtil.getString( - PortalUtil.getOriginalServletRequest(request).getParameter("page_allegati"), - "page_allegati") - ); - DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); - HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); - if(dettPratica==null){ - long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); - if(dettPraticaId==0){ - dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("dettPraticaId")); - } - dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); +String comingFrom = ParamUtil.getString(request, "comingFrom", GetterUtil.getString( + PortalUtil.getOriginalServletRequest(request).getParameter("page_allegati"), "page_allegati")); +DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData"); +HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(request); +if (dettPratica == null) { + long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); + if (dettPraticaId == 0) { + dettPraticaId = GetterUtil.getLong( httpServletRequest.getParameter("dettPraticaId")); } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); + dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); +} +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); %> - - - - - - - -
    - - - - - -
    + + + + + +
    + + + + + +
    <% - List tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); - for(String codiceDoc:tipologiaAllegati){ - List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(), codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); +List tipologiaAllegati = DocumentiPraticaUtil.getDocDomanda(); +for (String codiceDoc : tipologiaAllegati) { + List docPraticas = DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(dettPratica.getIntPraticaId(), + codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); %> - -
    -
    - -
    - <% - if(!docPraticas.isEmpty()){ +
    +
    + +
    + <% + if (!docPraticas.isEmpty()) { %>
    - - + + - + <% - for(DocPratica docPratica:docPraticas){ + for (DocPratica docPratica : docPraticas) { long docPraticaId = docPratica.getDocPraticaId(); %> - - - + + - + - - + + - + + + <% } %> @@ -231,19 +195,17 @@ <% } %> - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati_annullamento.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati_annullamento.jsp index b56a529e..04984be2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati_annullamento.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_allegati_annullamento.jsp @@ -24,9 +24,9 @@ <%@page import="java.util.LinkedHashMap"%> <%@page import="java.util.Map.Entry"%> -<%@ include file="/html/fascicolo/init.jsp" %> +<%@include file="/html/fascicolo/init.jsp"%> - +

    @@ -175,17 +175,6 @@ - - <% - String classPk = String.valueOf(docPratica.getDocPraticaId()); - String className = DocPratica.class.getName(); - %> - - - - - - <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp index 0a2f3dd8..0d186773 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_asseverazioni.jsp @@ -1,3 +1,4 @@ +<%@page import="com.liferay.portal.model.User"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> @@ -7,102 +8,99 @@ <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> - -<%@ include file="/html/fascicolo/init.jsp" %> - +<%@include file="/html/fascicolo/init.jsp"%> +

    <% - DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); - long dettPraticaId = dettPratica.getDettPraticaId(); - IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica"); - long intPraticaId = intPratica.getIntPraticaId(); - - OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione", "asseverazioneId", "asc"); +DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); +long dettPraticaId = dettPratica.getDettPraticaId(); +IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica"); +long intPraticaId = intPratica.getIntPraticaId(); +OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create("portos_bo_Asseverazione", + "asseverazioneId", "asc"); %> -
    - - - + + results="<%= AsseverazioneServiceUtil.findByIntPratica_InEsito(intPraticaId, + new String[]{AsseverazioniUtil.STATO_ESEGUITA}, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, orderByComparator) %>" + total="<%= AsseverazioneServiceUtil.countByIntPratica_InEsito(intPraticaId, + new String[]{AsseverazioniUtil.STATO_ESEGUITA}) %>"> - - - + - <% - if(SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale())==0){ - out.print("
    Non esistono soggetti nella pratica abbinato al codice fiscale
    "); - }else{ - if(UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(), asseverazione.getCodiceFiscale())==null){ - out.print("
    Non esiste nessun utente di portale abbinato al codice fiscale
    "); - } - List soggetti = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(intPraticaId, asseverazione.getCodiceFiscale()); - if(!soggetti.isEmpty()){ - out.print("
    "+soggetti.get(0).getDescrizioneCompleta()+"
    "); - } + if (SoggettoLocalServiceUtil.countValidByIntPratica_CodiceFiscale(intPraticaId, + asseverazione.getCodiceFiscale()) == 0) { + if (intPratica.getUserName().equalsIgnoreCase(asseverazione.getCodiceFiscale())) { + User titolare = UserLocalServiceUtil.getUser(intPratica.getUserId()); + out.print(titolare.getFirstName() + StringPool.SPACE + titolare.getLastName()); + } else { + out.print("
    Nella pratica non esistono soggetti abbinati al codice fiscale
    "); } - + } else { + if (UserLocalServiceUtil.fetchUserByScreenName(asseverazione.getCompanyId(), + asseverazione.getCodiceFiscale()) == null) { + out.print("
    Non esistono utenti di portale abbinati al codice fiscale
    "); + } + List soggetti = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale( + intPraticaId, asseverazione.getCodiceFiscale()); + if (!soggetti.isEmpty()) { + out.print("
    "+soggetti.get(0).getDescrizioneCompleta()+"
    "); + } + } %>
    - + - <% - DettPratica rif = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); - out.print(rif.getFullDescription()); + <% + DettPratica rif = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); + out.print(rif.getFullDescription()); %> - + - - + <% - FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(asseverazione.getFileEntryId()); - String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), themeDisplay, "&download=true"); + FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(asseverazione.getFileEntryId()); + String downloadUrl = DLUtil.getPreviewURL(fileEntry, fileEntry.getLatestFileVersion(), + themeDisplay, "&download=true"); %> - + -
    - - +
    -
    - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_avvisi.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_avvisi.jsp index 737352cd..59b42c57 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_avvisi.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_avvisi.jsp @@ -1,24 +1,19 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> -<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> - -<%@ include file="/html/fascicolo/init.jsp" %> - -

    +<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> +<%@include file="/html/fascicolo/init.jsp"%> + +

    <% - DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); - IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica"); +DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData"); +IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica"); %> -
    -
    - - - +
    + + -
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp index ea0ec353..5e0dcd52 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_dettagli_principali.jsp @@ -34,37 +34,19 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune);
    -
    - -
    -
    -
    - Variante <%= LanguageUtil.get(pageContext, "dp-variante-sostanziale") %> -
    -
    - <%= BeanPropertiesUtil.getBoolean(dettPratica, "varianteSostanziale") == true ? "SI" : "NO" %> -
    -
    -
    +
    + +
    +
    +
    +
    +
    -
    - - +
    +
    + +
    -
    -
    - <%= LanguageUtil.get(pageContext, "dp-livello-di-tutela") %> -
    -
    - <%= dettPratica.getLivelloDiTutela() %> -
    -
    - <%= LanguageUtil.get(pageContext, "dp-paesaggio-locale") %> -
    -
    - <%= dettPratica.getPaesaggioLocale() %> -
    -
    @@ -73,28 +55,28 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune);
    - - <%= LanguageUtil.get(pageContext, "sanatoria-edilizia-47") %> + + <%= LanguageUtil.get(pageContext, "sanatoria-edilizia47") %>
    - - <%= LanguageUtil.get(pageContext, "sanatoria-edilizia-724") %> + + <%= LanguageUtil.get(pageContext, "sanatoria-edilizia724") %>
    - - <%= LanguageUtil.get(pageContext, "sanatoria-edilizia-326") %> + + <%= LanguageUtil.get(pageContext, "sanatoria-edilizia326") %>
    -
    - - -
    -
    -
    -
    + + +
    +
    + <%= LanguageUtil.get(pageContext, "intervento-voce-p7") %> <%=dettPratica.getInterventoVoceP7()%> +
    -
    + +
    @@ -130,31 +112,6 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune);
    -
    -
    -
    - -

    <%= LanguageUtil.get(pageContext, "norm-art3com3") %>:

    -
      -
    • <%= LanguageUtil.get(pageContext, "norm-art3com3_1") %>;
    • -
    • <%= LanguageUtil.get(pageContext, "norm-art3com3_2") %>;
    • -
    • <%= LanguageUtil.get(pageContext, "norm-art3com3_3") %>;
    • -
    • <%= LanguageUtil.get(pageContext, "norm-art3com3_4") %>;
    • -
    -
    -
    -
    -
    - -

    <%= LanguageUtil.get(pageContext, "norm-art3com4") %>

    -
    -
    -
    -
    -
    -
    -
    -
    <%= LanguageUtil.get(pageContext, "estremi-prat-com") %>: @@ -298,6 +255,31 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune);
    +
    + +
    +
    +
    + <%= LanguageUtil.get(pageContext, "livello-di-tutela") %> +
    +
    + <%= dettPratica.getLivelloDiTutela() %> +
    +
    + <%= LanguageUtil.get(pageContext, "paesaggio-locale") %> +
    +
    + <%= dettPratica.getPaesaggioLocale() %> +
    +
    +
    +
    +
    +
    +
    + +
    +
    @@ -345,8 +327,8 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune); <%= LanguageUtil.get(pageContext, "tc-costruzioni-esistenti") %>
    - - <%= LanguageUtil.get(pageContext, "tc-manut-ord-rest-dem") %> + + <%=LanguageUtil.get(pageContext, "tc-manut-ord-straord") %>
    @@ -361,8 +343,8 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune); <%= LanguageUtil.get(pageContext, "tc-opera-a25") %>
    - - <%= LanguageUtil.get(pageContext, "tc-altro-intervento") %> + + <%=LanguageUtil.get(pageContext, "tc-altri-interventi") %> : <%= dettPratica.getTcAltriInterventiDesc() %> @@ -379,9 +361,9 @@ String urlIframeMappe = MappeUtil.getUrlBo(request, dettPratica, comune);
    -
    - - <%= LanguageUtil.get(pageContext, "tc-in-ca") %> +
    + + <%=LanguageUtil.get(pageContext, "tc-in-c-a") %>
    diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_riepilogo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_riepilogo.jsp index d42bfbc8..2a67f9ac 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_riepilogo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_riepilogo.jsp @@ -1,125 +1,111 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.util.Constants"%> -<%@page import="it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo.TipoProtocollo"%> -<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> +<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> <%@page import="com.liferay.portal.model.User"%> +<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> -<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> -<%@page import="java.util.ArrayList"%> -<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%> -<%@ include file="/html/fascicolo/init.jsp" %> - +<%@page import="it.tref.liferay.portos.bo.util.Constants"%> +<%@include file="/html/fascicolo/init.jsp"%> + <% - DettPratica dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); - IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica"); - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); - Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); - - - long intPraticaId = ParamUtil.getLong(request, "intPraticaId",0l); - long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId",0l); - - if(intPraticaId!=0l){ - intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); - if(dettPratica==null){ - dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - } - dettPraticaId = dettPratica.getDettPraticaId(); - } - - - int nVarianti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIANTE})); - int nCambioSoggetti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, Arrays.asList(new String[]{TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO})); - int nFineLavori = FineLavoriLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true); - int nCollaudo = CollaudoLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true); - - List historyWorkflowActions = HistoryWorkflowActionLocalServiceUtil.findByIntPratica(intPraticaId, 0); - +DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData"); +IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica"); +Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); +Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); +Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); +long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L); +long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0L); +if (intPraticaId != 0L) { + intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); + if (dettPratica == null) { + dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); + } + dettPraticaId = dettPratica.getDettPraticaId(); +} +int nVarianti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, + Arrays.asList(new String[] { TipoIntegrazioneUtil.VARIANTE })); +int nCambioSoggetti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, + Arrays.asList(new String[] { TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO })); +int nFineLavori = FineLavoriLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true); +int nCollaudo = CollaudoLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, true); +List historyWorkflowActions = HistoryWorkflowActionLocalServiceUtil.findByIntPratica( + intPraticaId, 0); %>
    -
    -
    - <% - Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(intPratica.getIntPraticaId()); - %> - -
    - - Fascicolo sorteggiato in data <%= dateFormatDate.format(sorteggio.getDtSorteggio()) %> - -
    -
    +
    - +
    - <% if(nVarianti == 0 ) { %> - Varianti Non presentate - <% } else if(nVarianti == 1 ) { %> - Variante Presentata <%=nVarianti %> volta + <% if (nVarianti == 0) { %> + Varianti Non + presentate + <% } else if (nVarianti == 1) { %> + Variante Presentata 1 + volta <% } else { %> - Varianti Presentate <%=nVarianti %> volte + Varianti Presentate + <%= nVarianti %> volte <% } %>
    -
    - <% if(nCambioSoggetti == 0 ) { %> - Cambio soggetti Non presentata - <% } else if(nCambioSoggetti == 1 ) { %> - Cambio soggetti Presentata <%=nCambioSoggetti %> volta + <% if (nCambioSoggetti == 0) { %> + Cambio soggetti Non + presentato + <% } else if (nCambioSoggetti == 1) { %> + Cambio soggetti Presentato 1 + volta <% } else { %> - Cambio soggetti Presentata <%=nCambioSoggetti %> volte + Cambio soggetti Presentato + <%= nCambioSoggetti %> volte <% } %>
    - <% if(nFineLavori == 0 ) { %> - Fine Lavori Non presentata - <% } else if(nVarianti == 1 ) { %> - Fine Lavori Presentata <%=nFineLavori %> volta + <% if (nFineLavori == 0) { %> + Fine Lavori Non presentata + <% } else if(nVarianti == 1) { %> + Fine Lavori Presentata 1 volta <% } else { %> - Fine Lavori Presentata <%=nFineLavori %> volte + Fine Lavori Presentata <%= nFineLavori %> + volte <% } %>
    - <% if(nCollaudo == 0 ) { %> - Collaudo Non presentato - <% } else if(nCollaudo == 1 ) { %> - Collaudo Presentato <%=nFineLavori %> volta + <% if (nCollaudo == 0) { %> + Collaudo Non presentato + <% } else if(nCollaudo == 1) { %> + Collaudo Presentato 1 + volta <% } else { %> - Collaudo Presentato <%=nFineLavori %> volte + Collaudo Presentato + <%= nFineLavori %> volte <% } %>
    -
    -
    +
    - +
    - <% - User titolareUser = UserLocalServiceUtil.getUserById(intPratica.getUserId()); - /*List titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(dettPratica.getIntPraticaId(), dettPratica.getCodiceFiscaleDelegatoCommittente()); - Soggetto titolare = null; - if(!titolari.isEmpty()){ - titolare = titolari.get(0); - }*/ + <% + User titolareUser = UserLocalServiceUtil.getUserById(intPratica.getUserId()); %>
    - Nome: + Nome: <%= titolareUser.getFirstName() %>
    - Cognome: + Cognome: <%= titolareUser.getLastName() %>
    - Codice Fiscale: + Codice Fiscale: <%= titolareUser.getScreenName() %>
    @@ -128,13 +114,13 @@
    -
    - +
    - <%=BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %> + <%= BeanPropertiesUtil.getString(dettPratica, "descLongIntervento") %>
    @@ -147,42 +133,42 @@
    - <%= LanguageUtil.get(pageContext, "dp-paesaggio-locale") %> + <%= LanguageUtil.get(pageContext, "paesaggio-locale") %>
    - <%=dettPratica.getPaesaggioLocale()%> + <%= dettPratica.getPaesaggioLocale() %>
    - <%= LanguageUtil.get(pageContext, "dp-livello-di-tutela") %> + <%= LanguageUtil.get(pageContext, "livello-di-tutela") %>
    - <%=dettPratica.getLivelloDiTutela()%> + <%= dettPratica.getLivelloDiTutela() %>
    - <%= LanguageUtil.get(pageContext, "dp-vincoli") %> + <%= LanguageUtil.get(pageContext, "vincoli") %>
    - <%=dettPratica.getVincoli()%> + <%= dettPratica.getVincoli() %>
    - +
    <%= LanguageUtil.get(pageContext, "sanatoria-edilizia") %>
    - <%= LanguageUtil.get(pageContext, "sanatoria-edilizia-47") %>
    + <%= LanguageUtil.get(pageContext, "sanatoria-edilizia47") %>
    - <%= LanguageUtil.get(pageContext, "sanatoria-edilizia-724") %>
    + <%= LanguageUtil.get(pageContext, "sanatoria-edilizia724") %>
    - <%= LanguageUtil.get(pageContext, "sanatoria-edilizia-326") %> + <%= LanguageUtil.get(pageContext, "sanatoria-edilizia326") %>
    @@ -191,45 +177,53 @@
    -
    - +
    - +
    - - <%=LanguageUtil.get(pageContext, "tc-nuova-costruzione") %> + + <%= LanguageUtil.get(pageContext, "tc-nuova-costruzione") %>
    - - <%=LanguageUtil.get(pageContext, "tc-nuova-costruzione-pertinenza") %> + + <%= LanguageUtil.get(pageContext, "tc-nuova-costruzione-pertinenza") %>
    - - <%=LanguageUtil.get(pageContext, "tc-costruzioni-esistenti") %> + + <%= LanguageUtil.get(pageContext, "tc-costruzioni-esistenti") %>
    - - <%=LanguageUtil.get(pageContext, "tc-manut-ord-rest-dem") %> + + <%= LanguageUtil.get(pageContext, "tc-manut-ord-straord") %>
    - - <%=LanguageUtil.get(pageContext, "tc-intervento-opere-escavazione") %> + + <%= LanguageUtil.get(pageContext, "tc-intervento-opere-escavazione") %>
    - - <%=LanguageUtil.get(pageContext, "tc-viarch") %> + + <%= LanguageUtil.get(pageContext, "tc-viarch") %>
    - - <%=LanguageUtil.get(pageContext, "tc-opera-a25") %> + + <%= LanguageUtil.get(pageContext, "tc-opera-a25") %>
    - - <%=LanguageUtil.get(pageContext, "tc-altro-intervento") %> + + <%= LanguageUtil.get(pageContext, "tc-altri-interventi") %> : <%= dettPratica.getTcAltriInterventiDesc() %> @@ -243,44 +237,47 @@
    - +
    <%= LanguageUtil.get(pageContext, "dp-dc-prov") %>
    - <%=BeanPropertiesUtil.getString(provincia, "provincia")%> + <%= BeanPropertiesUtil.getString(provincia, "provincia") %>
    <%= LanguageUtil.get(pageContext, "dp-dc-comune") %>
    - <%=BeanPropertiesUtil.getString(comune, "denominazione")%> + <%= BeanPropertiesUtil.getString(comune, "denominazione") %>
    <%= LanguageUtil.get(pageContext, "dp-dc-loc") %>
    - <%=BeanPropertiesUtil.getString(dettPratica, "localita") %> + <%= BeanPropertiesUtil.getString(dettPratica, "localita") %>
    <%= LanguageUtil.get(pageContext, "dp-dc-via") %>
    - <%=BeanPropertiesUtil.getString(dettPratica, "via") %> + <%= BeanPropertiesUtil.getString(dettPratica, "via") %>
    -
    +
    - - + + @@ -289,14 +286,4 @@
    - -
    - - - - - - - - - \ No newline at end of file +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_sez_geologica.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_sez_geologica.jsp index b8452b26..f6be9469 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_sez_geologica.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_sez_geologica.jsp @@ -295,7 +295,7 @@
    - <%=LanguageUtil.get(pageContext, "geo-rischio-geomorfologico") %>: + <%=LanguageUtil.get(pageContext, "geo-rischio-geomorfologico-pai") %>:
    <% String geoRischioGeomorfologicoPai = BeanPropertiesUtil.getString(dettPratica, "geoRischioGeomorfologicoPai"); %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_versioning.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_versioning.jsp index 4d504763..23885b86 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_versioning.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_versioning.jsp @@ -1,75 +1,137 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="com.liferay.portal.kernel.json.JSONArray"%> -<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%> -<%@page import="com.liferay.portal.kernel.json.JSONObject"%> -<%@page import="com.liferay.portal.kernel.json.JSONFactoryUtil"%> -<%@page import="com.liferay.portal.kernel.json.JSONSerializer"%> -<%@ include file="/html/fascicolo/init.jsp" %> - -

    - +<%@include file="/html/fascicolo/init.jsp"%> +<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> +<%@page import="it.tref.liferay.portos.bo.util.DocumentiPraticaUtil"%> +<%@page import="java.io.Serializable"%> +<%@page import="java.util.ArrayList"%> +<%@page import="java.util.HashMap"%> +<%@page import="java.util.Map"%> + +

    <% - long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0l); - DettPratica dettPratica; - if(Validator.isNotNull(dettPraticaId)) { - dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); - } else { - dettPratica = (DettPratica)request.getAttribute("bean.dettPratica.lastData"); - } - IntPratica intPratica = (IntPratica)request.getAttribute("bean.intPratica"); - if(intPratica == null){ - intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - } - +long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0L); +DettPratica dettPratica; +if (Validator.isNull(dettPraticaId)) { + dettPratica = (DettPratica) request.getAttribute("bean.dettPratica.lastData"); +} else { + dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); +} +IntPratica intPratica = (IntPratica) request.getAttribute("bean.intPratica"); +if (Validator.isNull(intPratica)) { + intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); +} +long intPraticaId = intPratica.getIntPraticaId(); +List dps = DettPraticaServiceUtil.getVersioni(intPraticaId); +int size = dps.size(); +List> changes = DettPraticaServiceUtil.callForChanges(intPraticaId); +SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); +int primo = ParamUtil.getInteger(request, "primo", size - 1); +int secondo = ParamUtil.getInteger(request, "secondo", size); %> -
    - -

    -
    -
    - -
    - <% - JSONObject jsonObjectResponse = JSONFactoryUtil.createJSONObject(dettPratica.serializeToVersioningPage()); - JSONArray jsonFields = jsonObjectResponse.getJSONArray("fields"); - StringBuilder sb = new StringBuilder(); - for(int i=0;i") - .append(LanguageUtil.get(pageContext, item.replaceAll("([A-Z])", "-$1").toLowerCase())) - .append(":
    "); +
    STATO ALLEGATO FIRME AGGIUNTO DA INVALIDATO DA AZIONI
    - - - <%= docPratica.getFileName() %> - - <% - FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); - StringBuilder title = new StringBuilder(); - if(firme.numeroFirme()>0){ - List cfCheck = new ArrayList(); - if(!firme.getFirmeDigitali().isEmpty()){ - title.append("Firma sul file:
      "); - for(FirmeDetail firma: firme.getFirmeDigitali()){ - List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); - if (soggetti.size() > 0 ){ - title.append("
    • "+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"
    • "); +
    + + + <%= docPratica.getFileName() %> + + <% + FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); + StringBuilder title = new StringBuilder(); + if (firme.numeroFirme() > 0) { + List cfCheck = new ArrayList(); + if (!firme.getFirmeDigitali().isEmpty()) { + title.append("Firma sul file:
      "); + for (FirmeDetail firma : firme.getFirmeDigitali()) { + List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale( + docPratica.getIntPraticaId(), firma.getCfFirmatario()); + if (soggetti.size() > 0) { + title.append("
    • ").append(soggetti.get(0).getNome()).append(StringPool.SPACE) + .append(soggetti.get(0).getCognome()).append("
    • "); } - title.append("
    • "+firma.getCfFirmatario()); - cfCheck.add(firma.getCfFirmatario().trim()); - if(Validator.isNotNull(firma.getDtFirma())){ - title.append(" del "+dateFormatDate.format(firma.getDtFirma())); - } - title.append("
    • "); - } - title.append("
    "); - } - if(!firme.getFirmeApplicativo().isEmpty()){ - title.append("Firme da applicativo:
      "); - for(FirmeDetail firma: firme.getFirmeApplicativo()){ - List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(docPratica.getIntPraticaId(), firma.getCfFirmatario()); + title.append("
    • ").append(firma.getCfFirmatario()); + cfCheck.add(firma.getCfFirmatario().trim()); + if (Validator.isNotNull(firma.getDtFirma())) { + title.append(" del ").append(dateFormatDate.format(firma.getDtFirma())); + } + title.append("
    • "); + } + title.append("
    "); + } + if (!firme.getFirmeApplicativo().isEmpty()) { + title.append("Firme da applicativo:
      "); + for (FirmeDetail firma : firme.getFirmeApplicativo()) { + List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale( + docPratica.getIntPraticaId(), firma.getCfFirmatario()); if (soggetti.size() > 0 ){ - title.append("
    • "+soggetti.get(0).getNome() + " " + soggetti.get(0).getCognome()+"
    • "); + title.append("
    • ").append(soggetti.get(0).getNome()).append(StringPool.SPACE) + .append(soggetti.get(0).getCognome()).append("
    • "); + } + title.append("
    • ").append(firma.getCfFirmatario()); + if (Validator.isNotNull(firma.getDtFirma())) { + title.append(" del ").append(dateFormatDate.format(firma.getDtFirma())); } - title.append("
    • "+firma.getCfFirmatario()); - if(Validator.isNotNull(firma.getDtFirma())){ - title.append(" del "+dateFormatDate.format(firma.getDtFirma())); - } - title.append("
    • "); - } - title.append("
    "); - } - } - if(firme.numeroFirme()>0){ - %> - - <%=firme.numeroFirme() %> - - <% - }else{ - %> - - <% + title.append(""); + } + title.append(""); } + } + if (firme.numeroFirme() > 0) { %> -
    - <% - String description = StringPool.BLANK; + + <%= firme.numeroFirme() %> + + <% + } else { + %> + + <% + } + %> + + <% + String description = StringPool.BLANK; - if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){ - DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); - if(adding!=null){ - //description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ; - description = adding.getFullDescription(); - } - }else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){ - FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); - if(adding!=null){ - description = adding.getFullDescription() ; - } - }else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){ - Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); - if(adding!=null){ - description = adding.getFullDescription() ; - } - } - - out.print(description); - %> - - <% - //Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati - DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); - if(removing != null){ - %> - <%= removing.getFullDescription() %> - <% - } - %> - - + if(DettPratica.class.getName().equalsIgnoreCase(docPratica.getClassName())){ + DettPratica adding = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getClassPk()); + if(adding!=null){ + //description = Validator.isNotNull(adding.getTipoIntegrazione()) ? LanguageUtil.get(pageContext, "label-integrazione-"+adding.getTipoIntegrazione())+" del "+adding.getDataEffettuazione() : "" ; + description = adding.getFullDescription(); + } + }else if(FineLavori.class.getName().equalsIgnoreCase(docPratica.getClassName())){ + FineLavori adding = FineLavoriLocalServiceUtil.fetchFineLavori(docPratica.getClassPk()); + if(adding!=null){ + description = adding.getFullDescription() ; + } + }else if(Collaudo.class.getName().equalsIgnoreCase(docPratica.getClassName())){ + Collaudo adding = CollaudoLocalServiceUtil.fetchCollaudo(docPratica.getClassPk()); + if(adding!=null){ + description = adding.getFullDescription() ; + } + } + + out.print(description); + %> + + <% + //Lasciato solo dettpratica perche' fine lavori e collaudo non possono rimuovere gli allegati + DettPratica removing = DettPraticaLocalServiceUtil.fetchDettPratica(docPratica.getDettPraticaIdRimozione()); + if(removing != null){ + %> + <%= removing.getFullDescription() %> + <% + } + %> + + @@ -203,20 +178,9 @@ - - - <% - String classPk = String.valueOf(docPratica.getDocPraticaId()); - String className = DocPratica.class.getName(); - %> - - - - - - -
    + + + + <% + for (int i = 0; i < size; i++) { + String tipoIntegrazione = dps.get(i).getTipoIntegrazione(); + %> + + <% + } + %> + + + + <% + if (size == 0) { + %> + + <% + } else { + for (String item : DettPraticaLocalServiceUtil.getDettPraticaFields()) { + if (changes.get(0).containsKey(item)) { + %> + + + <% + Serializable precedente = null; + for (Map values : changes) { + Serializable value = values.get(item); + String style = (precedente == null ? value == null : precedente.equals(value)) ? "color:#AAA" + : StringPool.BLANK; + %> + + <% + precedente = value; + } + %> + <% + } + } + } + %> + + <% + Map> liste = new HashMap>(); + for (String codice : DocumentiPraticaUtil.getDocDomanda()) { + liste.clear(); + int nDocs = 0; + for (DocPratica doc : DocPraticaLocalServiceUtil.findByIntPratica_Tipologia(intPraticaId, codice, QueryUtil.ALL_POS, + QueryUtil.ALL_POS)) { + if (doc.getClassName().equals(DettPratica.class.getName())) { + long classPk = doc.getClassPk(); + if (!liste.containsKey(classPk)) { + liste.put(classPk, new ArrayList()); + } + liste.get(classPk).add(doc); + nDocs++; } - %> -
    -
    -

    Version #

    -
    -
    - <%= sb.toString() %> -
    -
    -
    -
    -

    Versione Corrente

    -
    -
    - <%= sb.toString() %> -
    -
    - - + } + if (nDocs > 0) { + %> +
    + + <% + for (DettPratica dp : dps) { + List lista = liste.get(dp.getDettPraticaId()); + %> + + <% + } + %> + + <% + } + } + %> +
    <%= tipoIntegrazione.isEmpty() ? "Pratica" + : LanguageUtil.get(pageContext, "label-integrazione-" + tipoIntegrazione) %>
    + del <%= sdf.format(dps.get(i).getDtProtocollo()) %>
    Nessuna differenza
    <%= LanguageUtil.get(pageContext, item.replaceAll("([A-Z])", "-$1").toLowerCase()) %><%= DettPraticaServiceUtil.format(item, value) %>
    <%= LanguageUtil.get(pageContext, "label-documenti-tipologia-" + codice) %> + <% + if (Validator.isNotNull(lista)) { + boolean separatore = false; + for (DocPratica doc : liste.get(dp.getDettPraticaId())) { + if (separatore) { + out.print("
    "); + } + %> + <%= doc.getFileName() %> + +
    + + + + + + +
    +
    + <% + separatore = true; + } + } + %> +
    - - - Liferay.Service( - '/portos-bo-portlet.dettpratica/get-numero-di-versioni', - { - intPraticaId: <%= intPratica.getIntPraticaId() %>, - companyId : <%= company.getCompanyId() %> - }, - function(obj) { - sliderVersion.init(obj, <%= intPratica.getIntPraticaId() %>, <%= company.getCompanyId() %>); - } - ); - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp index 116838a2..c1d2cce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view.jsp @@ -1,4 +1,5 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@page import="it.tref.liferay.portos.bo.util.Constants"%> <%@page import="com.liferay.portal.kernel.log.LogFactoryUtil"%> <%@page import="com.liferay.portal.kernel.log.Log"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> @@ -143,7 +144,7 @@ String keywords = StringPool.BLANK; - + @@ -282,7 +283,7 @@ String keywords = StringPool.BLANK; - <%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPraticaId)) %> + <%= LanguageUtil.get(pageContext, PraticaUtil.getStatoPraticaLabel(intPratica.getStatoPratica(), intPratica.getTipoProcedura())) %> <% diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp index ff4f3ac6..837ba538 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/view_fascicolo.jsp @@ -1,22 +1,25 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@ include file="/html/fascicolo/init.jsp" %> - <% -String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; -String[] pageIntegrazioni = new String[] { "page_in_dettagli","page_in_allegati","page_in_soggetti"}; -String[] pageVarianti = new String[] { "page_va_dettagli","page_va_allegati","page_va_soggetti"}; -String[] pageComunicazioni = new String[] { "page_bo_fe","page_doc_aggiuntiva","page_allegati_manuali"}; +String[] pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali", "page_desc_edificio", "page_sez_geologica", + "page_soggetti", "page_allegati", "page_asseverazioni", "page_pagamenti", "page_andamento", "page_avvisi", + "page_storico_titolari", "page_versioning" }; +String[] pageIntegrazioni = new String[] { "page_in_dettagli", "page_in_allegati", "page_in_soggetti" }; +String[] pageVarianti = new String[] { "page_va_dettagli", "page_va_allegati", "page_va_soggetti" }; +String[] pageComunicazioni = new String[] { "page_bo_fe", "page_doc_aggiuntiva", "page_allegati_manuali" }; long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); if (intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.ANNULLATA)) { - pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali","page_desc_edificio","page_sez_geologica","page_soggetti","page_allegati","page_allegati_annullamento","page_asseverazioni","page_pagamenti","page_andamento","page_avvisi","page_storico_titolari","page_versioning"}; + pageRiepilogo = new String[] { "page_riepilogo", "page_dettagli_principali", "page_desc_edificio", "page_sez_geologica", + "page_soggetti", "page_allegati", "page_allegati_annullamento", "page_asseverazioni", "page_pagamenti", + "page_andamento", "page_avvisi", "page_storico_titolari", "page_versioning" }; } -String[][] categorySections = { pageRiepilogo,pageIntegrazioni,pageVarianti,pageComunicazioni}; +String[][] categorySections = { pageRiepilogo, pageIntegrazioni, pageVarianti, pageComunicazioni }; -String[] _CATEGORY_NAMES = { "cat_riepilogo","cat_integrazioni","cat_varianti","cat_comunicazioni"}; +String[] _CATEGORY_NAMES = { "cat_riepilogo", "cat_integrazioni", "cat_varianti", "cat_comunicazioni" }; DettPratica dettPraticaLast = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()); DettPratica dettPraticaLastData = dettPraticaLast; @@ -25,20 +28,11 @@ request.setAttribute("bean.dettPratica.last", dettPraticaLast); request.setAttribute("bean.dettPratica.lastData", dettPraticaLastData); %> - <%@ include file="/html/fascicolo/html_bottom.jspf" %> - <%@ include file="/html/fascicolo/html_top.jspf" %> + <%@ include file="/html/fascicolo/html_top.jspf" %> - - - + \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp index 40c25e93..c8ed14f8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/action_button.jsp @@ -1,239 +1,191 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="it.tref.liferay.portos.bo.util.WorkflowConstants"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> -<%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%> -<%@page import="com.liferay.portal.model.Role"%> -<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskAssignee"%> +<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowTask"%> +<%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskAssignee"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil"%> -<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%> -<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%> -<%@page import="com.liferay.portal.service.persistence.WorkflowInstanceLinkUtil"%> -<%@page import="com.liferay.portal.kernel.workflow.WorkflowDefinitionManagerUtil"%> -<%@page import="javax.portlet.PortletRequest"%> -<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%> <%@page import="com.liferay.portal.model.GroupConstants"%> +<%@page import="com.liferay.portal.model.WorkflowInstanceLink"%> <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> +<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%> +<%@page import="com.liferay.portal.service.WorkflowInstanceLinkLocalServiceUtil"%> <%@page import="com.liferay.portlet.PortletURLFactoryUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil"%> -<%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%> -<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> +<%@page import="it.tref.liferay.portos.bo.service.permission.IntPraticaPermission"%> +<%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> +<%@page import="it.tref.liferay.portos.bo.util.WorkflowConstants"%> <%@page import="it.tref.liferay.portos.bo.util.WorkflowUtil"%> -<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> -<%@page import="com.liferay.portal.kernel.util.ListUtil"%> -<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%> +<%@page import="javax.portlet.PortletRequest"%> <%@page import="java.util.ArrayList"%> -<%@page import="com.liferay.portal.kernel.util.WebKeys"%> -<%@page import="com.liferay.portal.kernel.dao.search.SearchContainer"%> -<%@page import="java.util.Map"%> -<%@page import="java.util.HashMap"%> -<%@page import="com.liferay.portal.kernel.util.StringUtil"%> -<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> -<%@page import="com.liferay.portal.service.permission.PortletPermissionUtil"%> -<%@ include file="/html/gestioneattivita/init.jsp" %> - +<%@include file="/html/gestioneattivita/init.jsp"%> <% - - SearchContainer searchContainer = (SearchContainer) request - .getAttribute("liferay-ui:search:searchContainer"); - String redirect = ParamUtil.getString(request, "backUrl"); - ControlloPratica controlloPratica = null; - - redirect = searchContainer.getIteratorURL().toString(); - - ResultRow row = (ResultRow) request - .getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); - - controlloPratica = (ControlloPratica) row.getObject(); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); - Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL); - long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(),true); - - WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( - controlloPratica.getCompanyId(),controlloPratica.getGroupId(), ControlloPratica.class.getName(),controlloPratica.getPrimaryKey()); - - List listaTask = null; - if (workflowInstanceLink == null) { - listaTask = new ArrayList(); - } else { - listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, - workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - //long workflowInstanceId = workflowInstanceLink.getWorkflowInstanceId(); - String randomId = StringUtil.randomId(); - - long lastDettPraticaId = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPratica.getIntPraticaId()).getDettPraticaId(); - - String buttonIdCambioIstruttore = "buttonIdCambioIstruttore_"+randomId; - String buttonIdSelezionaGeologo = "buttonIdSelezionaGeologo_"+randomId; - String buttonIdAnnullaRicGeologo = "buttonIdAnnullaRicGeologo_"+randomId; - String buttonIdAggiungiDettPraticheAlControllo = "buttonIdAggiungiDettPraticheAlControllo_"+randomId; - - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - long territorioGroupId = territorio.getGroupId(); +SearchContainer searchContainer = (SearchContainer) request.getAttribute("liferay-ui:search:searchContainer"); +String redirect = searchContainer.getIteratorURL().toString(); +ResultRow row = (ResultRow) request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW); +ControlloPratica controlloPratica = (ControlloPratica) row.getObject(); +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(controlloPratica.getIntPraticaId()); +Group controlPanelGroup = GroupLocalServiceUtil.getGroup(company.getCompanyId(), GroupConstants.CONTROL_PANEL); +long controlPanelPlid = LayoutLocalServiceUtil.getDefaultPlid(controlPanelGroup.getGroupId(), true); +WorkflowInstanceLink workflowInstanceLink = WorkflowInstanceLinkLocalServiceUtil.fetchWorkflowInstanceLink( + controlloPratica.getCompanyId(), controlloPratica.getGroupId(), ControlloPratica.class.getName(), + controlloPratica.getPrimaryKey()); +List listaTask = null; +if (workflowInstanceLink == null) { + listaTask = new ArrayList(); +} else { + listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, + workflowInstanceLink.getWorkflowInstanceId(), false, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); +} +long lastDettPraticaId = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica( + intPratica.getIntPraticaId()).getDettPraticaId(); +String randomId = StringUtil.randomId(); +String buttonIdCambioIstruttore = "buttonIdCambioIstruttore_" + randomId; +String buttonIdSelezionaGeologo = "buttonIdSelezionaGeologo_" + randomId; +String buttonIdAnnullaRicGeologo = "buttonIdAnnullaRicGeologo_" + randomId; +String buttonIdAggiungiDettPraticheAlControllo = "buttonIdAggiungiDettPraticheAlControllo_" + randomId; +Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); +long territorioGroupId = territorio.getGroupId(); %> - -
    - +
    +
    <% - listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, - workflowInstanceLink.getWorkflowInstanceId(), true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + listaTask = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance(controlloPratica.getCompanyId(), null, + workflowInstanceLink.getWorkflowInstanceId(), true, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); %> <% - PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS,controlPanelPlid, PortletRequest.RENDER_PHASE); - workflowTaskURL.setParameter("struts_action", - "/my_workflow_tasks/edit_workflow_task"); - workflowTaskURL.setParameter("workflowTaskId",String.valueOf(listaTask.get(0).getWorkflowTaskId())); - workflowTaskURL.setPortletMode(PortletMode.VIEW); - workflowTaskURL.setWindowState(LiferayWindowState.POP_UP); + PortletURL workflowTaskURL = PortletURLFactoryUtil.create(request, PortletKeys.MY_WORKFLOW_TASKS, + controlPanelPlid, PortletRequest.RENDER_PHASE); + workflowTaskURL.setParameter("struts_action", "/my_workflow_tasks/edit_workflow_task"); + workflowTaskURL.setParameter("workflowTaskId", String.valueOf(listaTask.get(0).getWorkflowTaskId())); + workflowTaskURL.setPortletMode(PortletMode.VIEW); + workflowTaskURL.setWindowState(LiferayWindowState.POP_UP); %> - -
    - +
    +
    - - + + - + - - - - + + + + -
    - +
    +
    - + <% - boolean assegnazionePossibile = false; - for(WorkflowTaskAssignee workflowTaskAssignee: listaTask.get(0).getWorkflowTaskAssignees()){ - if(workflowTaskAssignee.getAssigneeClassName().equalsIgnoreCase(Role.class.getName()) - && UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), controlloPratica.getGroupId(), workflowTaskAssignee.getAssigneeClassPK(), true)){ - assegnazionePossibile = true; - } + boolean assegnazionePossibile = false; + for (WorkflowTaskAssignee workflowTaskAssignee : listaTask.get(0).getWorkflowTaskAssignees()) { + if (workflowTaskAssignee.getAssigneeClassName().equalsIgnoreCase(Role.class.getName()) + && UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), controlloPratica.getGroupId(), + workflowTaskAssignee.getAssigneeClassPK(), true)) { + assegnazionePossibile = true; } + } %> - <%-- - - - - - - - - -
    - -
    -
    -
    --%> - - - - - - - + + + + + + -
    - +
    +
    - - - - - - - - + + + + + + + - -
    - +
    +
    - - - - - - + + + + + + - -
    - +
    +
    - - - - - - - - + + + + + - -
    - +
    +
    - - \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_al_controllo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_al_controllo.jsp index 03d3fb1a..100c2c0a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_al_controllo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_aggiungi_al_controllo.jsp @@ -1,77 +1,63 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> -<%@page import="com.liferay.portal.model.UserGroupRole"%> -<%@page import="com.liferay.portal.model.UserGroup"%> -<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.util.Constants"%> -<%@page import="com.liferay.portal.service.RoleLocalServiceUtil"%> -<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> -<%@page import="java.util.ArrayList"%> <%@page import="com.liferay.portal.model.User"%> -<%@page import="com.liferay.portal.model.Role"%> -<%@page import="javax.portlet.PortletURL"%> +<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> +<%@page import="it.tref.liferay.portos.bo.util.Constants"%> <%@include file="/html/gestioneattivita/init.jsp"%> - - <% - long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); - long controlloPraticaId = ParamUtil.getLong(request, "controlloPraticaId"); - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); - - String buttonIdAggiungiDettPraticheAlControllo = ParamUtil.getString(request, "buttonIdAggiungiDettPraticheAlControllo"); - PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); - String orderByType = ParamUtil.getString(request, "orderByType", "asc"); - String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); - - String randomId = StringUtil.randomId(); - String formNameAggiungiDettPraticheAlControllo = "formNameAggiungiDettPraticheAlControllo_"+randomId; - String divIdAggiungiDettPraticheAlControllo = "divIdAggiungiDettPraticheAlControllo_"+randomId; - - User istruttore = UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()); - Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(),Constants.ROLE_NAME_ISTRUTTORE); - List userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(controlloPratica.getGroupId(),role.getRoleId()); - DettPratica dettPraticaAttuale = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica.getDettPraticaId()); - DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(controlloPratica.getIntPraticaId()); +long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); +long controlloPraticaId = ParamUtil.getLong(request, "controlloPraticaId"); +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); +ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); +String buttonIdAggiungiDettPraticheAlControllo = ParamUtil.getString(request, "buttonIdAggiungiDettPraticheAlControllo"); +PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); +String orderByType = ParamUtil.getString(request, "orderByType", "asc"); +String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); +String randomId = StringUtil.randomId(); +String formNameAggiungiDettPraticheAlControllo = "formNameAggiungiDettPraticheAlControllo_" + randomId; +String divIdAggiungiDettPraticheAlControllo = "divIdAggiungiDettPraticheAlControllo_" + randomId; +User istruttore = UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()); +Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE); +DettPratica dettPraticaAttuale = DettPraticaLocalServiceUtil.getDettPratica(controlloPratica.getDettPraticaId()); +DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(controlloPratica.getIntPraticaId()); %> - - - - - + + + + - - - -
    - + +
    - <%=dettPraticaAttuale.getTitle(locale) %> + <%= dettPraticaAttuale.getTitle(locale) %>
    - +
      <% - List elencoPratiche = DettPraticaLocalServiceUtil.findCompletedByIntPraticaAndSuccessivoDettPratica(intPraticaId, controlloPratica.getDettPraticaId()); - for(DettPratica dettPratica: elencoPratiche){ - out.print("
    • "+dettPratica.getFullDescription()+"
    • "); + List elencoPratiche = DettPraticaLocalServiceUtil + .findCompletedByIntPraticaAndSuccessivoDettPratica(intPraticaId, + controlloPratica.getDettPraticaId()); + for (DettPratica dettPratica: elencoPratiche) { + out.print("
    • "); + out.print(dettPratica.getFullDescription()); + out.print("
    • "); } %> -
    - +
    - - - - - - - - + + + + + + + +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_cambio_istruttore.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_cambio_istruttore.jsp index 7f3678fd..b0ecb2d3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_cambio_istruttore.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_cambio_istruttore.jsp @@ -10,61 +10,56 @@ <%@page import="com.liferay.portal.model.Role"%> <%@page import="javax.portlet.PortletURL"%> <%@include file="/html/gestioneattivita/init.jsp"%> - <% - long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); - long controlloPraticaId = ParamUtil.getLong(request, "controlloPraticaId"); - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); - - String buttonIdCambioIstruttore = ParamUtil.getString(request, "buttonIdCambioIstruttore"); - PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); - String orderByType = ParamUtil.getString(request, "orderByType", "asc"); - String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); - - String randomId = StringUtil.randomId(); - String formNameSelezionaCambioIstruttore = "formNameSelezionaCambioIstruttore_"+randomId; - String divIdSelezionaCambioIstruttore = "divIdSelezionaCambioIstruttore_"+randomId; - - User istruttore = UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()); - Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(),Constants.ROLE_NAME_ISTRUTTORE); - List userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole(controlloPratica.getGroupId(),role.getRoleId()); +long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); +long controlloPraticaId = ParamUtil.getLong(request, "controlloPraticaId"); +IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); +ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId); +String buttonIdCambioIstruttore = ParamUtil.getString(request, "buttonIdCambioIstruttore"); +PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); +String orderByType = ParamUtil.getString(request, "orderByType", "asc"); +String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); +String randomId = StringUtil.randomId(); +String formNameSelezionaCambioIstruttore = "formNameSelezionaCambioIstruttore_" + randomId; +String divIdSelezionaCambioIstruttore = "divIdSelezionaCambioIstruttore_" + randomId; +User istruttore = UserLocalServiceUtil.getUser(intPratica.getStatusByUserId()); +Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE); +List userGroupRoles = UserGroupRoleLocalServiceUtil.getUserGroupRolesByGroupAndRole( + controlloPratica.getGroupId(), role.getRoleId()); %> - - - - + + + - - - -
    + +
    - <%=istruttore.getFullName() %> + <%= istruttore.getFullName() %>
    - - - <% - for (UserGroupRole userGroupRole: userGroupRoles) { - if(userGroupRole.getUserId()!=istruttore.getUserId()){ - User istruttoreTmp = UserLocalServiceUtil.getUser(userGroupRole.getUserId()); - String nominativo = istruttoreTmp.getFullName()+StringPool.SPACE+StringPool.DASH+StringPool.SPACE+istruttoreTmp.getScreenName();%> - - <% - } + + + <% + for (UserGroupRole userGroupRole: userGroupRoles) { + if (userGroupRole.getUserId() != istruttore.getUserId()) { + User istruttoreTmp = UserLocalServiceUtil.getUser(userGroupRole.getUserId()); + String nominativo = istruttoreTmp.getFullName() + StringPool.SPACE + StringPool.DASH + + StringPool.SPACE + istruttoreTmp.getScreenName(); + %> + + <% } - %> + } + %>
    - - - - - - - - + + + + + + + +
    \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_seleziona_geologo.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_seleziona_geologo.jsp index 1d157a68..e2c9a075 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_seleziona_geologo.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/actions/action_seleziona_geologo.jsp @@ -1,74 +1,60 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page import="com.liferay.portal.kernel.util.ListUtil"%> +<%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> -<%@page import="com.liferay.portal.model.Organization"%> -<%@page import="it.tref.liferay.portos.bo.util.Constants"%> -<%@page import="com.liferay.portal.service.RoleLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> -<%@page import="java.util.ArrayList"%> -<%@page import="com.liferay.portal.model.User"%> -<%@page import="com.liferay.portal.model.Role"%> -<%@page import="javax.portlet.PortletURL"%> +<%@page import="it.tref.liferay.portos.bo.util.Constants"%> <%@include file="/html/gestioneattivita/init.jsp"%> - <% - long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); - long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); - - String buttonIdSelezionaGeologo = ParamUtil.getString(request, "buttonIdSelezionaGeologo"); - PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); - String orderByType = ParamUtil.getString(request, "orderByType", "asc"); - String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); - - String randomId = StringUtil.randomId(); - String formNameSelezionaGeologo = "formNameSelezionaGeologo_"+randomId; - String divIdSelezionaGeologo = "divIdSelezionaGeologo_"+randomId; - Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(),Constants.ROLE_NAME_GEOLOGO); - List geologi = UserLocalServiceUtil.getRoleUsers(role.getRoleId()); - List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - for(ParereGeologo parereGeologo : pareriGeologo){ - if(Validator.isNull(parereGeologo.getDtCompilazione())){ +long intPraticaId = ParamUtil.getLong(request, "intPraticaId"); +long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId"); +String buttonIdSelezionaGeologo = ParamUtil.getString(request, "buttonIdSelezionaGeologo"); +PortletURL iteratorURL = liferayPortletResponse.createRenderURL(); +String orderByType = ParamUtil.getString(request, "orderByType", "asc"); +String orderByCol = ParamUtil.getString(request, "orderByCol", "nome"); +String randomId = StringUtil.randomId(); +String formNameSelezionaGeologo = "formNameSelezionaGeologo_" + randomId; +String divIdSelezionaGeologo = "divIdSelezionaGeologo_" + randomId; +Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(),Constants.ROLE_NAME_GEOLOGO); +List geologi = UserLocalServiceUtil.getRoleUsers(role.getRoleId()); +List pareriGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS); +for (ParereGeologo parereGeologo : pareriGeologo) { + if (Validator.isNull(parereGeologo.getDtCompilazione())) { geologi.remove(UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId())); - } } - +} %> - - - - + + + - - -